2008-12-29 Ivan N. Zlatev <contact@i-nz.net>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2008-12-29  Ivan N. Zlatev  <contact@i-nz.net>
2
3         * DataGridView.cs: Remove a bogus ReBind call, which was causing 
4         recursive rebinding.
5
6 2008-12-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7
8         * DateTimePicker.cs: Handle the "MMMM" month format.
9         Fixes #459674.
10
11 2008-12-23  Ivan N. Zlatev  <contact@i-nz.net>
12
13         * DataGridView.cs: 
14            - Make ReBind private and refactor various calls to call ReBind 
15            instead of ClearBinding/DoBinding
16            - Rebind when the column collection changes
17         * DataGridViewColumnCollection.cs: 
18            - Leave the rebinding on change to be handled by the DataGridView.
19
20 2008-12-23  Jonathan Pobst  <monkey@jpobst.com>
21
22         * DataGridView.cs: Add a ReBind convenience method.
23         * DataGridViewColumnCollection.cs: Rebind when a column is added.
24         [Fixes bug #462019]
25
26 2008-12-23  Neville Gao  <nevillegao@gmail.com>
27
28         * StatusBar.cs: Modified argument variable.
29         * SplitContainer.cs: Control enabled to support accessibility.
30         [Fixes Bug #455950]
31
32 2008-12-22  Jonathan Pobst  <monkey@jpobst.com>
33
34         * ToolStripMenuItem.cs: Guard against an NRE.
35         [Fixes bug #457110]
36
37 2008-12-22  Mario Carrion  <mcarrion@novell.com>
38
39         * Control.cs: AccessibleXXXX properties don't return 
40         AccessibleObject.XXXX, instead a local referece is returned.
41
42 2008-12-22  Neville Gao  <nevillegao@gmail.com>
43
44         * PrintPreviewControl.cs: Added internal properties to support
45         accessibility.
46         [Fixes Bug #459699]
47
48 2008-12-19  Mario Carrion  <mcarrion@novell.com>
49
50         * Control.cs: Reverted r121561. 
51
52 2008-12-19  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
53
54         * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
55         it has been moved to the bridge.
56
57 2008-12-18  Brad Taylor  <brad@getcoded.net>
58
59         * DateTimePicker.cs: Add a few UIA specific events, and a couple
60         internal methods useful for UIA.
61
62 2008-12-18  Mario Carrion <mcarrion@novell.com>
63
64         * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
65         [Fixes Bug #455752]
66
67 2008-12-17  Mike Gorse  <mgorse@novell.com>
68
69         * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
70           item's Focused property is set.
71
72 2008-12-17  Sandy Armstrong  <sanfordarmstrong@gmail.com>
73
74         * TreeView.cs:
75         * TreeNode.cs:
76         * TreeNodeCollection.cs: Add events for UIA support:
77         UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
78         UIACollectionChanged.
79
80 2008-12-17  Bill Holmes  <billholmes54@gmail.com>
81
82         * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the 
83           SubItemStyle member field. 
84
85         Contributed under MIT/X11 license.
86
87 2008-12-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
88
89         * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
90         y coord, since it's useless in this case, and we need to rely only on
91         the number of rows and ItemHeight to compute this value.
92         Fixes part of #257471.
93
94 2008-12-15  Mike Gorse  <mgorse@novell.com>
95
96         * StatusBar.cs: Send OnUIACollectionChanged in Remove().
97
98 2008-12-15  Mario Carrion  <mcarrion@novell.com>
99
100         * Control.cs: Accessibility properties instantiate AccessibilityObject when
101         needed.
102         [Fixes Bug #459223]
103
104 2008-12-15  Brad Taylor  <brad@getcoded.net>
105
106         * ToolStripItem.cs: Add a UIA specific event for listening for when a
107         ToolStripItem becomes selected or deselected.
108
109 2008-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
110
111         * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
112         .net does. Use the date in the point of the mouse move coords as the
113         new range as well, if the left button of the mouse is being pressed.
114         Fixes #364914.
115
116 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
117
118         * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
119         MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
120         effectively repaint the control.
121         Fixes the remaining bits of #417961.
122
123 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
124
125         * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
126         range to contain only dates within the new possible range.
127         Fixes part of #417961.
128
129 2008-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
130
131         * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
132         length of the text, but the end position, so we need to substract 1 to
133         have a valid value. Also, in the same InputText method, don't use
134         SelectionLength as the length of the text, since the selected text
135         could actually be empty, but we need to set the value anyway.
136         Fixes #457370.
137
138 2008-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
139
140         * TextBox.cs: Don't do any auto complete task if the custom source is
141         null or empty. Also avoid duplication of code.
142         Fixes #457743.
143
144 2008-12-09  Ivan N. Zlatev  <contact@i-nz.net>
145
146         * DataGridView.cs: Refresh column sizes when new rows are added.
147         [Fixes bug #457050]
148
149 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
150         * RichTextBox.cs: When parsing the contents of a rtf file, don't call
151         Split to create a line - we are already doing this, by _adding_ a new
152         one when rtf_cursor_x is 0 (this field gets this value just after we
153         receive the newline param as true). This avoids having a proportional number
154         of empty lines in the end of the rich text box.
155         Fixes #396664.
156
157 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
158
159         * RichTextBox.cs: When saving the contents as a plain text, don't add
160         a new line for every Line structure, since the data in Document
161         already contains the new line characters. This avoids duplicated new
162         lines using the Save methods.
163         Fixes #445618.
164
165 2008-12-09  Sandy Armstrong  <sanfordarmstrong@gmail.com>
166
167         * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
168         framework.  Fixes bug #457678.
169
170 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
171
172         * DataGridViewRow.cs: Prevent an exception on a not yet databound grid, 
173         where datasource is null.
174         [Fixes exception reported in bug 441240]
175
176 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
177
178         * DataGridView.cs: EndEdit validation fixes.
179
180 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
181
182         * DataGridView.cs: This is the cool patch that adds support for 
183         actually updating the data in the databinding backend after editing. 
184         With bonus firing and handling the DataError event.
185
186 2008-12-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
187
188         * Line.cs: When calculating the text tags's Shift value, store it as
189         pixels instead of points. This way we can actually handle different
190         fonts in the same RichTextBox, as well as the right size of the caret.
191         Fixes part of #351938.
192
193 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
194
195         * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was 
196         casted to CheckState causing InvalidCastExceptions.
197
198 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
199
200         * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior 
201         to not depend on the item being clicked.
202
203 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
204
205         * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no 
206         longer throws a NotImplementedException.
207
208 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
209
210         * DataGridView.cs: Set EditingControlFormattedValue when preparing an 
211         IDataGridViewEditingControl for editing.
212
213 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
214
215         * DataGridViewComboBoxCell.cs: Implement data binding support.
216
217 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
218
219         * DataGridView.cs: Use the CurrencyManager to update the data source 
220         binding position instead of casting the data sourcde to BindingSource.
221         This enables position updating for other type of data sources.
222
223 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
224
225         * ComboBox.cs: Update the SelectedIndex before updating the Text 
226         in OnDisplayMemberChanged.
227
228 2008-12-07  Ivan N. Zlatev  <contact@i-nz.net>
229
230         * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
231         [Fixes bug #457112]
232
233 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
234
235         * DataGridView.cs: Sorting fixes:
236            - Be strict when sorting is enabled.
237            - If there is a data source delegate the sorting request.
238
239 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
240
241         * Binding.cs: When converting the data also try with the destination 
242         type typeconverter. This indirectly adds support for Nullable types 
243         in our databinding layer.
244
245 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
246
247         * DataGridView.cs: When cell editing is finished focus back the 
248         DataGridView. Fixes keyboard navigation post-editing.
249
250 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
251
252         * DataGridView.cs: Fix the cell editing by delaying the currentCell 
253         setting to after EndEdit is called for the old cell.
254
255 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
256
257         * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
258
259 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
260
261         * XplatUIX11.cs: Send WM_HELP only to the focused window.
262
263 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
264
265         * CurrencyManager.cs: Fix exceptions when resetting the data source 
266         for the same time (e.g. in ComboBox): 
267            - Do not set the list position if we are still transferring data
268            - When resetting the list firstly push the data then update the 
269            binding.
270         * Binding.cs: Check BindingManager.Position == -1 instead of 
271         BindingManager.Current == null in order to avoid unexpected 
272         exceptions.
273
274 2008-12-05  Brad Taylor  <brad@getcoded.net>
275
276         * MonthCalendar.cs: Add UIA specific events so that we can know when
277         the selection changes, and when MaxSelectedCount changes.
278
279 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
280
281         * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not 
282         used for anything.
283
284 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
285
286         * DataGridView.cs: Fix scrolling and selection of cells/rows prior
287         to the control being drawn for the first time by:
288            - Implement DisplayedRowsCount to not rely on the control being
289            already painted. Also added support for the partial row flag.
290            - Fix scrolling to take into account partial rows and scroll to
291            them.
292         [Fixes bug #456527]
293
294 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
295
296         * DataGridView.cs: Do not reset the CurrentCell when the handle is
297         created if the user has already set it.
298
299 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
300
301         * DataGridView.cs: Fix CurrentCell to actually select the cell.
302
303 2008-12-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
304
305         * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
306         text and then let the underneath users of IDataObject interpret and
307         parse by themselves. 
308         Fixes #439251.
309
310 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
311
312         * DataGridView.cs: Fix my previous commit to actually update what it 
313         was supposed to.
314
315 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
316
317         * DataGridView.cs: Ensure that when a row is removed the all the 
318         current row/column/cell get updated. Fixes multiple exceptions.
319
320 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
321
322         * DataGridView.cs: Fix scrolling to the current cell when key navigation 
323         is used.
324         [Fixes bug #443560]
325
326 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
327
328         * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
329         * DataGridViewCell.cs: Set the cell as selected prior to setting the 
330         new state.
331         [Fixes issue 1 in bug #443560]
332
333 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
334
335         * DataGridView.cs: Invalidate after the current row/column seletion 
336         chagnes.
337         [Fixes bug #438434]
338
339 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
340
341         * DataGridView.cs: Refresh the data if the data list is reset, etc.
342
343 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
344
345         * DataGridView.cs: Handle datasource state changes:
346            - IBindingList - list changes
347            - BindingSource - list changed and datasource changes
348
349 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
350
351         * DataGridView.cs: Select the first cell when databound. 
352         Visually select when CurrentCell is set.
353
354 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
355
356         * DataGridView.cs: Set the current cell before raising CellClick.
357
358 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
359
360         * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter, 
361         CellLeave events as this is already done in SetCurrentCellAddressCore.
362
363 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
364
365         * DataGridView.cs: Set the minimum size for the columns to be the 
366         width of their header, so that the columns don't get squashed 
367         all together.
368
369 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
370
371         * DataGridView.cs: After the data is bound PerformLayout, so that 
372         the columns get autosized.
373
374 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
375
376         * DataGridView.cs: Move all currentCell setting code into 
377         one central place - SetCurrentCellAddressCore. That way the 
378         current cell is properly updated when programatically set.
379         Fire RowEnter/Leave events.
380
381 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
382
383         * DataGridView.cs: Update the CurrencyManager.Position, so that 
384         when a BindingSource is used BindingSource.Current will be correct.
385
386 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
387
388         * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
389            - No caption text is drawn because Color.Empty is used.
390            - Fix top and height off by 1.
391
392 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
393
394         * DataGridViewRow.cs: Implement DataBoundItem.
395
396 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
397
398         * BindingSource.cs: Return null for Current if there is no data present.
399
400 2008-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
401
402         * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
403         menus using the arrow keys. Also when handling the left arrow key, don't 
404         assign the current menu to the parent one, if the parent is null.
405         Fixes #446392.
406
407 2008-11-24  Everaldo Canuto  <ecanuto@novell.com>
408
409         * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
410         #413501.
411
412 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
413
414         * Scrollbar.cs:
415         * ScrollableControl.cs: Simplify the code to manually set the size of
416         the thum area, avoiding duplication of code, and also preserving the
417         right value for different code paths - this can happen when size
418         changes are made to the scrollbar after setting LargeChange, Maximum
419         or related properties for the ScrollBar.
420
421 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
422
423         * ScrollableControl.cs: When scrolling, don't invalidate the entire
424         area, and call to XplatUIX11.ScrollWindow instead. This is exactly
425         what .Net does: copy the visible area, and only invalidate the part of
426         the area that wasn't visible before scrolling.
427         Fixes #441738.
428
429 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
430
431         * DataGridView.cs: Listen for a DataTable's TableCleared event so we
432         can clear ourselves when it is raised, we don't have a newrowindex
433         if we don't have any columns.
434         * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
435         re-index after each delete so the NewRow will have the correct index.
436         [Fixes bug #448005]
437
438 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
439
440         * Form.cs: Don't change min/max size if it is empty.
441         [Fixes bug #447873]
442
443 2008-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
444
445         * ScrollBar.cs:
446         * ScrollableControl.cs: When the manual thumb size is used, the
447         maximum allowed value should depend on that thumb size, instead of
448         LargeChange (using the maximum - LargeChange + 1 value). But
449         LargeChange should be used normally when incrementing/decrementing.
450         Fixes the remaining part of #441546.
451
452 2008-11-23  Andreia Gaita  <avidigal@novell.com>
453
454         * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream 
455         until an about:blank has been loaded (according to spec). Fix 
456         ScrollbarsEnabled to set when a document is loaded (since we use js 
457         for it). Fix url so it reflects the current loading document and not 
458         the previous one. Send StatusChanged events.
459
460 2008-11-23  Andreia Gaita  <avidigal@novell.com>
461
462         * Application.cs: If a message comes in for an embedded control
463         (like webbrowser) when we're capturing the keyboard, release the
464         capture and continue.
465         [fixes #429462]
466
467 2008-11-22  Andreia Gaita  <avidigal@novell.com>
468
469         * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
470
471 2008-11-21  Andreia Gaita  <avidigal@novell.com>
472
473         * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
474         
475 2008-11-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
476
477         * ScrollBar.cs:
478         * ScrollableControl.cs: Set manually the thumb size for the
479         ScrollableControl scrollbars, so any further changes to the underneath
480         scrollbars respect the original size.
481         Fixes part of #441546.
482
483 2008-11-21  Geoff Norton  <gnorton@novell.com>
484
485         * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
486         PlatformID.MacOSX now exists.
487
488 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
489
490         * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
491         Having something internal abstract isn't very nice for people who want
492         to inherit from this class.
493
494 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
495
496         * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
497         invalid value.  Just return null for the Image, and use the ImageList's
498         ImageSize for calculations.
499
500 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
501
502         * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
503         through DroppedDown so the proper events get called and state gets reset.
504         [Fixes bug #446805]
505
506 2008-11-18  Jonathan Pobst  <monkey@jpobst.com>
507
508         * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
509         the collection is modified.
510
511 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
512
513         * DomainUpDown.cs: Remove string cache and reflection optimizations.  They
514         aren't always correct, and fixing them for every case is not worth the
515         negligible benefit they provide.
516         [Fixes bug #445713]
517
518 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
519
520         * DataGridView.cs: We should never add actual cells to the RowTemplate.
521         Internally, use RowTemplateFull to give us a new row with cells.
522         * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
523         * DataGridViewRowCollection.cs: Use RowTemplateFull.
524
525 2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
526
527         * XplatUIX11.cs: Forms without borders should be able to change its
528         size - specially they should be able to be maximized, adding the
529         respective MotifFunctions.Resize bit when setting window properties as
530         well as *not* marking the Hwnd as size fixed.
531         Fixes #444347.
532
533 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
534
535         * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
536         an alpha value.
537         [Fixes bug #444348]
538
539 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
540
541         * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
542         * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
543         AutoSizeColumnModeChanged.
544         [Fixes bug #443609]
545
546 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
547
548         * DataGridViewRowCollection.cs: Guard against the user deleting the
549         NewRow.  Add an internal delete so we can still delete it.
550         * DataGridView.cs: Use the new internal delete when deleting the NewRow.
551         [Fixes bug #442181]
552
553 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
554
555         * TextControl.cs: Add some order of operation to our math so
556         we don't end up with a negative height for our invalidate rect.
557         [Fixes bug #381889]
558
559 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
560
561         * Control.cs: When our enabled changes, notify our implicit children
562         controls as well as our regular controls.
563         [Fixes bug #441523]
564
565 2008-11-08  Andreia Gaita <shana@jitted.com> 
566
567         * HtmlElement.cs: Small code cleanup
568
569 2008-11-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
570
571         * BindingNavigator.cs: MoveFirstItem should be enabled only if
572         position is larger than 0, not only different than 0. Also Position
573         and Count items should be enabled if the BindingSource is non null and
574         non empty.
575         Fixes #439961.
576
577 2008-11-05  Jonathan Pobst  <monkey@jpobst.com>
578
579         * TabControl.cs: Don't raise SelectedIndexChanged until we have
580         actually modified the tab collection, so TabCount will be correct.
581         [Fixes bug #441896]
582
583 2008-11-05  Sandy Armstrong  <sanfordarmstrong@gmail.com>
584
585         * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
586         NonSerialized to fix serialization of ListViewItem.
587
588 2008-11-04  Mike Gorse  <mgorse@novell.com>
589
590         * ListView.cs: Call OnUIAFocusedItemChanged after completing the
591           focus change, and always call in SetFocusedItem.
592         * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
593
594 2008-11-04  Jonathan Pobst  <monkey@jpobst.com>
595
596         * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
597         mode.  Based on a patch by John Mortlock.
598         [Fixes bug #436790]
599
600 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
601
602         * ListView.cs: Use the UsingGroups property where needed, instead of
603         duplicating the check in other places.
604
605 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
606
607         * ListView.cs: When calculating layout, refresh the count of items
608         belonging to the default item, insteas of doing it only one time. This
609         was already working fine for icon views, not not for details.
610         Fixes #438948.
611
612 2008-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
613
614         * ListView.cs:
615         * ListViewItem.cs:
616         * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
617         to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
618         does.
619         Fixes #437933.
620
621 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
622
623         * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
624
625 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
626
627         * ListView.cs: Add internal UIAFocusedItemChanged event.  Fixes bug
628         #441280, patch by Mike Gorse <mgorse@novell.com>.
629
630 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
631
632         * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
633         if there is no scrollbar.
634         [Fixes bug #440885]
635
636 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
637
638         * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
639         patch from Andy Hume that fixes many issues with ProgressBar.
640         [See bug #440220]
641
642 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
643
644         * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
645         [Fixes bug #438866]
646
647 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
648
649         * UpDownBase.cs:
650         * DomainUpDown.cs:
651         * NumericUpDown.cs: Internal events added to UpDownBase:
652         UIAUpButtonClick and UIADownButtonClick.  Patch by Neville Gao
653         <ngao@novell.com>.
654
655 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
656
657         * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
658
659 2008-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
660
661         * ListView.cs:
662         * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
663         Application.EnableVisualStyles hasn't been called.
664         Fixes part of #437933.
665
666 2008-10-31  Andreia Gaita  <shana@jitted.com>
667
668         * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
669           if the container is not focused already, we need to specifically set
670           focus to the first available control, or to the form itself if there
671           are no controls.
672
673 2008-10-31  Andreia Gaita  <shana@jitted.com>
674
675         activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
676         WM_ACTIVATE have been processed before returning, so it is guaranteed that
677         once it returns and the form is visible, it is actually on the screen on X11
678
679         * ContainerControl.cs: Only send focus to the control if the top container
680           is already focused. This is so that, when a form is first shown, all
681           the enter/leave events are done first before any focus stuff comes in.
682           If a control has no top container, there's an extra check on Control.Focus
683           to make sure it gets focused in this particular case.
684
685         * Control.cs: Force focus if the control is active but did not receive
686           focus after being set as active.
687
688         * MdiClient.cs: Dispose the form when closing
689
690         * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
691           doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
692           if the window is a top Form.
693           Reset all hwnd properties when the window has been destroyed so that
694           we don't land in any codepaths that might try to do something with it.
695           Added a bunch of debugging messages. If TRACE is defined, all X calls
696           are logged through DebugHelper. Set a few missing EntryPoint attributes.
697
698 2008-10-29  Mario Carrion <mcarrion@novell.com>
699
700         * ListViewItem.cs: Control enabled to support Accessibility:
701         - Internal events: UIATextChanged, UIASubItemTextChanged.
702         - Internal event UIATextChanged in ListViewSubItem that triggers
703         UIASubItemTextChanged.
704         * ListView.cs: Control enabled to support Accessibility:
705         - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged, 
706         UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
707         - Internal event UIACollectionChanged in ColumnHeaderCollection.
708         - Internal event UIACollectionChanged in ListViewItemCollection.
709         - Internal properties: UIAHeaderControl, UIAColumns, UIARows, 
710         UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
711         - Internal methods: UIAGetHeaderBounds.
712
713 2008-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
714
715         * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
716         the event from the respective scrollbars.
717         Fixes #436709.
718
719 2008-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
720
721         * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
722         textbox to know whether any navigation key will be handled or not. If
723         not, don't pass the message to the textbox, and use it here instead. 
724         * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
725         is more precise- than the previous AutoCompleteMatches one.
726         This should the keyboard navigation in ComboBox when using auto
727         complete modes.
728
729 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
730
731         * ComboBox.cs: Fix item height calculation based off Font to match .Net.
732         [Fixes bug #436730]
733
734 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
735
736         * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
737         overridden methods will get called.
738         * ToolStripItem.cs: Raise Click before MouseUp.
739         * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
740         the item's location into account.
741         [Fixes bug #437683]
742
743 2008-10-24  Neville Gao  <nevillegao@gmail.com>
744
745         * NumericUpDown.cs: Control enabled to support accessibility.
746         [Fiexes bug #438135]
747
748 2008-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
749
750         * TextBox.cs: Check that we actually have items no navigate, select
751         text when pressing enter, as well as handle direction keys only if
752         mode is different to Suggest or the suggest listbox is visible.
753
754 2008-10-23  Andreia Gaita  <shana@jitted.com>
755
756         * WebBrowser.cs: Use the new ContentStream property to retrieve
757           a stream encoded from the document content
758
759 2008-10-23  Andreia Gaita  <shana@jitted.com>
760
761         * HtmlDocument.cs,
762           HtmlElement.cs,
763           HtmlWindow.cs: Fix GetHashcode for null objects
764
765 2008-10-22  Andreia Gaita  <shana@jitted.com>
766
767         * HtmlDocument.cs,
768           HtmlElement.cs,
769           HtmlWindow.cs: Fix equality operators (fixes #428173)
770
771 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
772
773         * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
774         mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
775         [Fixes bug #436772]
776
777 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
778
779         * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
780         same item with the mouse as was already selected.
781         [Fixes bug #436789]
782
783 2008-10-21  Brad Taylor  <brad@getcoded.net>
784         
785         * TextControl.cs: Break out code to get the visible range into
786           GetVisibleLineIndexes to be used in UIA code.
787         
788         * Line.cs:
789         * TextControl.cs:
790         * TextBoxBase.cs: Add comments indicating that the method or property
791           is used via reflection from UIA code.
792
793 2008-10-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
794
795         * ListViewItem.cs: Match .net serialization.
796         Fixes remaining part of #417520.
797
798 2008-10-20  Jonathan Pobst  <monkey@jpobst.com>
799
800         * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
801
802 2008-10-20  Mario Carrion <mcarrion@novell.com>
803
804         * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property 
805         added: UIAToolTipRectangle.
806
807 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
808
809         * ListViewItem.cs: When deserializing enumerate over the data, instead
810         of accessing the data directly. This way we handle much better the
811         cases were we lack information.
812         Fixes #417520.
813
814 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
815
816         * ListView.cs: When removing an item from a main ListView.Items
817         collection (and not a ListViewGroupCollection.Items one), remove it
818         also from the group, as .net does. Patch by Mario Carrion (mario at
819         novell dot com).
820         Fixes #436653.
821
822 2008-10-19  Andreia Gaita  <avidigal@novell.com>
823
824         * Form.cs: Forms that get closed without a handle being created are
825         disposed in 2.0. Fixes failing FormTest.FormClose and
826         FormTest.FormClose2 on windows.
827
828 2008-10-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
829
830         * ListView.cs: If both scrollbars are visible, the vertical one
831         shouldn't extend too far down.
832         Fixes #435771.
833
834 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
835
836         * DataGridView.cs: Add the ability to resize columns and rows with
837         the mouse.  Also support double-clicking to autoresize.
838         * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
839         * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
840         * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
841         isn't shown on autoresize.
842         [Fixes bug #420193]
843
844 2008-10-17  Mario Carrion <mcarrion@novell.com>
845
846         * ComboBox.cs: Remove UIAListbox.
847
848 2008-10-17  Mario Carrion <mcarrion@novell.com>
849
850         * ComboBox.cs, ListBox.cs: Using added/removed item in 
851           OnUIACollectionChangedEvent instead of index.
852
853 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
854
855         * ComboBox.cs: When we are sorting the items, if the item's type
856         doesn't support IComparer, use a default one that compares based
857         off the item's visible text.
858         [Fixes bug #436328]
859
860 2008-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
861
862         * ColumnHeader.cs: Invalidate ListView.header_control when setting
863         ImageIndex/ImageKey.
864         * ThemeWin32Classic.cs: When drawing the column header, draw a image
865         for the column if available, and make the required adjustments to the
866         text location.
867         Fixes #435105.
868
869 2008-10-17  Neville Gao  <nevillegao@gmail.com>
870
871         * StatusBarPanel.cs: Control enabled to support accessibility.
872         [Fixes bug #435988]
873
874 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
875
876         * DataGridView.cs: When a user begins an edit in the 'new row',
877         make that a real row, and add a new 'new row'.  If the user
878         cancels the edit, remove the new 'new row' and reset everything.
879         Also, ensure UserAddedRow and UserRemovedRow events are raised.
880         [Fixes bug #430954]
881
882 2008-10-16  Ivan N. Zlatev  <contact@i-nz.net>
883
884         * TableLayoutSettings.cs: Fix NREs when deserializing and 
885         panel is not yet set.
886         [Fixes bug #436199]
887
888 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
889
890         * DataGridView.cs: Invalidate after deleting a row.
891
892 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
893
894         * DataGridView.cs: Handle Enter and Escape keys.
895           - Move call to EndEdit to MoveCurrentCell.
896           - Remove call to EndEdit from navigation key routines.
897           - Fire CellLeave and CellEnter.
898
899 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
900
901         * DataGridViewCell.cs: Some fixes to the new cell border
902         painting code.
903
904 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
905
906         * ThemeEngine.cs: Enable visualstyles rendering by default
907         (on platforms that support it).
908
909 2008-10-15  Ivan N. Zlatev  <contact@i-nz.net>
910
911         * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before 
912         MainForm.OnLoad has completed unless DoEvents is forced.
913         [Fixes bug #412536]
914
915 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
916
917         * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
918
919 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
920
921         * Control.cs: Make our implementation of DrawToBitmap better 
922         match WmPaint.  [Fixes bug #435579]
923
924 2008-10-14  Andreia Gaita  <avidigal@novell.com>
925
926         * WebBrowser.cs: Use DocumentElement as the document's root for the
927         whole content. Should fix DocumentText and DocumentStream problems.
928
929 2008-10-14  Jonathan Pobst  <monkey@jpobst.com>
930
931         * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
932         these will get called in DGV.OnCollectionChanged.  Make sure 
933         OnCollectionChanged always gets called.
934         * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
935         from every row.  Call this in OnCollectionChanged.
936         [Fixes bug #433669]
937
938 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
939
940         * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
941         textbox if auto complete is used, since we need to navigate over it.
942         And in this case don't pass this messages to the base impl. Also hide
943         the auto complete list box when displaying the drop down listbox.
944         * TextBox.cs: new internal members to expose some of the auto complete
945         functionality to combobox.
946
947 2008-10-13  Ivan N. Zlatev  <contact@i-nz.net>
948
949         * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before 
950         MainForm.OnLoad has completed.
951         [Fixes bug #412536]
952
953 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
954
955         * TextBox.cs: Apply an old-approved patch that adds autocomplete's
956         Append support to this controls. We need it to apply new patches.
957
958 2008-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
959
960         * Control.cs: When updating z order in child controls, send to back
961         the implicit controls. Also, do it explicitly, instead of making
962         GetAllControls return the implicit controls in a specific order, and
963         thus avoid depending on that, which could change in the future.
964         Fixes #434304.
965
966 2008-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
967
968         * X11Dnd.cs: Try to call Application.DoEvents before returning in a
969         call to StartDrag, since we must fire DragDrop/DragLeave *before*
970         that, as .net does - instead of firing DragDrop/DragLeave *after* the
971         call to Control.DoDragDrop has completed. This is needed since at the
972         point of returning, we have sent related dnd ClientMessages, but we
973         need to wait for them to fire the wmf respective ones.
974         Fixes #325076.
975
976 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
977
978         * LinkLabel.cs: Recreate link pieces when change Padding.
979
980 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
981
982         * LinkLabel.cs: Take Padding into account when recreate link pieces.
983         [Fixes bug #412530]
984
985 2008-10-08  Everaldo Canuto  <ecanuto@novell.com>
986
987         * Control.cs: Implement internal property PaddingClientRectangle, it will be
988         useful for drawing controls that must take care about Padding property.
989
990 2008-10-08  Jonathan Pobst  <monkey@jpobst.com>
991
992         * BindingSource.cs: Make item_type internal so we can access it in DGV.
993         * DataGridView.cs: Add support for autogenerating columns from a
994         BindingSource.
995
996 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
997
998         * DataGridView.cs: Comment out an exception that is getting thrown
999         too often currently.
1000
1001 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
1002
1003         * DataGridView.cs: Always rebind to the datasource, as things may
1004         have changed in it that we aren't capturing yet.
1005
1006 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
1007
1008         * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
1009         drawing mode.  If we are top aligned, give ourselves some top padding.
1010
1011 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1012
1013         * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
1014         events on the control under the mouse pointer, instead of firing them
1015         on the window generating the dnd operation. To achieve this re-use the
1016         code used to get the window under the pointer when getting MouseMove
1017         events.
1018         Fixes #381876.
1019
1020 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1021
1022         * X11Dnd.cs: Don't check that that the window sending the dnd events
1023         is the owner of the selection. Although Gtk+ sets it that way, it's
1024         not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
1025         So, just as Gtk+ does, we set our window sending the dnd events as the
1026         owner of the selection, but don't check it when receiving them. This
1027         should fix interoperability with Qt/Kde.
1028         Fixes #324251.
1029
1030 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
1031
1032         * DataGridView.cs: Make sure we take the vertical scrollbar into
1033         account when autosizing columns.
1034
1035 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
1036
1037         * DataGridView.cs: Handle sorting datetimes.
1038
1039 2008-10-04  Ivan N. Zlatev  <contact@i-nz.net>
1040
1041         * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs, 
1042         TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup 
1043         compilation warnings.
1044
1045 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1046
1047         * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs, 
1048         ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs, 
1049         ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs, 
1050         ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup 
1051         compilation warnings.
1052
1053 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1054
1055         * DataGridView.cs, DataGridViewCell.cs, 
1056         DataGridViewCellValidatingEventArgs.cs, 
1057         DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs, 
1058         DataGridViewRow.cs, DataGridViewRowHeaderCell.cs, 
1059         DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
1060
1061 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1062
1063         * HtmlElementEventArgs.cs, HtmlWindowCollection.cs: 
1064         Cleanup compilation warnings.
1065
1066 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1067
1068         * XplatUIWin32.cs: Cleanup compilation warnings.
1069
1070 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
1071
1072         * PropertyGrid.cs: Cleanup compilation warnings.
1073
1074 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1075
1076         * DataGridViewRow.cs: Only clear the row background if we
1077         are going to paint a new background.
1078
1079 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1080
1081         * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
1082         DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
1083         use PaintBorder instead.        
1084
1085 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1086
1087         * DataGridView.cs: When CellBorderStyle is set, update the
1088         AdvancedCellBorderStyle to match.
1089
1090 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1091
1092         * DataGridViewCell.cs: Add helper methods to convert Alignment
1093         to TextFormatFlags and align rectangles.
1094         * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
1095         * DataGridViewImageCell.cs: Use Alignment when painting the image.
1096
1097 2008-10-02  Ivan N. Zlatev  <contact@i-nz.net>
1098
1099         * ToolTip.cs: Display tooltips only for controls on the active form.
1100         [Fixes bug #428115]
1101
1102 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1103
1104         * DataGridView.cs: Make OnCellValueNeeded internal.
1105         * DataGridViewCell.cs: Raise the CellValueNeeded event so the
1106         user can supply their own value if they choose.
1107
1108 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1109
1110         * DataGridViewColumnHeaderCell.cs: Create a new style object
1111         so the DefaultCellStyle doesn't get changed.
1112
1113 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
1114
1115         * ToolStripItem.cs: Check to make sure the owner is actually
1116         changing in InternalOwner before doing any work.  Fixes some
1117         failing tests.
1118
1119 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1120
1121         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
1122         * DataGridView.cs: Use a column header's inherited style instead
1123         of just using the default.
1124
1125 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1126
1127         * SplitContainer.cs: Raise SplitterMoved when the splitter is
1128         moved through code.
1129
1130 2008-10-01  Mario Carrion <mcarrion@novell.com>
1131
1132         * ScrollBar.cs: Internal property added: UIAThumbPosition.
1133
1134 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1135
1136         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
1137
1138 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1139
1140         * ToolStripItem.cs: When the user sets Owner, we need to remove
1141         it from its previous owner and then add it to the new owner's
1142         item collection.  Also, create InternalOwner, so we can set the owner
1143         that doesn't do this new stuff.
1144         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
1145
1146 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1147
1148         * ToolStripItem.cs: When our parent changes, recalculate our text
1149         size, since we may be getting our Font from our parent.  When our
1150         owner's Font changes, recalculate ourselves as we may be using
1151         that font.
1152
1153 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
1154
1155         * MenuAPI.cs: Select the first option of a popup when opening the popup via
1156         return key. [Fixes bug #413792].
1157
1158 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1159
1160         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
1161         ambient properties.  (Get their value from their parents if
1162         values haven't been set.)
1163
1164 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1165
1166         * ToolStripSystemRenderer.cs: Call overridden methods' bases
1167         after our logic, so users can do painting by handling the events.
1168         Currently, we draw over any user painting.
1169
1170 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
1171
1172         * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
1173         after our logic, so users can do painting by handling the events.
1174         Currently, we draw over any user painting.
1175
1176 2008-09-30  Everaldo Canuto  <ecanuto@novell.com>
1177
1178         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
1179
1180 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
1181
1182         * TreeNode.cs, TreeView.cs: Move logic that determines the node
1183         image to draw to TreeNode.  Give Index/Keys put on the node
1184         precedence over the global one for the TreeView.
1185
1186 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
1187
1188         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
1189
1190 2008-09-29  Mario Carrion <mcarrion@novell.com>
1191
1192         * ListBox.cs: Index fixed.
1193
1194 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1195
1196         * TabControl.cs: When expanding the tab -because it's selected now-,
1197         using Right alignment, instead of adding some selected delta value to
1198         the X origin, substract it, so it gets a location adjacent to the panel, 
1199         instead of be more separated.
1200         Fixes #409170.
1201
1202 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
1203
1204         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
1205         own copies of them.
1206
1207 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1208
1209         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
1210         as well as the other static fields, to avoid using their previous
1211         values my mistake when handling the dnd events. This should avoid
1212         handling any status event after the drop has been finalized/cancelled.
1213
1214 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1215
1216         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
1217         operation, instead of waiting until we get any movement - this will
1218         help us to have the data available in case no movement was detected
1219         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
1220         Finally add a windows.forms-only fallback to fire the mentioned events
1221         if no movement at all was detected, just like .net does.
1222         Fixes #381876.
1223
1224 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
1225
1226         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
1227         return early if the text is empty because the icon doesn't get
1228         drawn then.  [Fixes bug #428113]
1229
1230 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1231
1232         * FileDialog.cs: Implement basic support for sorting by columns in
1233         Details view. Patch by Eric Petit.
1234         Fixes #428006.
1235
1236 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1237
1238         * ThemeWin32Classis.cs: When drawing gridlines take into account the
1239         case where ListView.ItemSize hasn't been computed, and provide a
1240         fallback as well. This prevents a division by 0.
1241
1242 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
1243
1244         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
1245         correctly draw tooltip backgrounds.
1246
1247 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
1248
1249         * ImageList.cs: Change CopyTo implementation to ensure clones are
1250         created of our images.
1251         [Fixes bug #409169]
1252
1253 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
1254
1255         * Control.cs: When setting fonts, we need to ensure we change our
1256         reference to the new font object, even if it represents the same
1257         font as before.  If we don't, the original font can get disposed
1258         and we will still try to use it.
1259         [Fixes bug #386450]
1260
1261 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1262
1263         * FileDialog.cs: Take into account Tile view when selecting the view
1264         (2.0 profile).
1265
1266 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1267
1268         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
1269         the item bounds, since we can't iterate over them in virtual mode.
1270         Also fix wrong calculation of the gridlines when using scrolling.
1271         Fixes #400390.
1272
1273 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1274
1275         * XplatUIX11.cs: When handling EnterNotify events, take into account
1276         both the public and implicit controls when trying to detect the
1277         grab/ungrab process. This should fix ListView selection in Details
1278         view.
1279
1280 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
1281
1282         * TreeView.cs: Redraw the whole node area when the selected node changes.
1283         Things like state images were not getting redrawn because the invalid
1284         rectangle was too small.
1285         [Fixes bug #428211]
1286
1287 2008-09-23  Mario Carrion  <mcarrion@novell.com>
1288
1289         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
1290         [Fixes bug #428993]
1291
1292 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
1293
1294         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
1295         [Fixes bug #428114]
1296
1297 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
1298
1299         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
1300         [Fixes bug #427884]
1301
1302 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
1303
1304         * StatusBar.cs: Add tooltip support.
1305         [Fixes bug #428113]
1306
1307 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1308
1309         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
1310         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
1311         hlaustralia.com.au).
1312         Fixes #425360.
1313
1314 2008-09-23  Neville Gao  <nevillegao@gmail.com>
1315
1316         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
1317         [Fixes bug #419079]
1318
1319 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
1320
1321         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
1322         [Fixes bug #428107]
1323
1324 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1325
1326         * ListView.cs: Don't do anything when EnsureVisible is called inside a
1327         BeginUpdate/EndUpdate block.
1328         Fixes #425049.
1329
1330 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1331
1332         * ListViewItem.cs: The semantics for the public .ctor of
1333         ListViewSubItemCollection need us to already have a Text value for the
1334         item, which in our implementation have as available *after* adding the
1335         first sub item. So create an internal .ctor that satisfies our needs
1336         and let the public .ctor have the same semantics as .net.
1337         Fixes #427561.
1338
1339 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1340
1341         * ListControl.cs: Changes in Formatting related values should call
1342         RefreshItems, as .net does.
1343         * ComboBox.cs:
1344         * ListBox.cs: In the respective overrides of RefreshItems calculate
1345         layout as well as refreshing - again, this is what .net does.
1346         Fixes #426168.
1347
1348 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1349
1350         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
1351         since we are already doing that when we change the value of the
1352         scrollbar or force the call to ScrollWindow in the same method. This
1353         way we don't cause a Invalidate call for all the listbox bounds for
1354         methods calling UpdateTopItem with an already updated top item. This
1355         was happening specially calling EnsureVisible with already visible
1356         items.
1357
1358 2008-09-18  Mike Gorse <mgorse@novell.com>
1359
1360         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
1361           XplatUIStructs.cs: Added KeyFilter
1362         [Fixes bug #427039]
1363
1364 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1365
1366         * RelatedPropertyManager.cs: The properties returned by
1367         GetItemProperties should be that ones of the *actual* object returned
1368         by the property, not the property type - this is very special when the
1369         property exposes a type, but the returned object actually is a child
1370         class and implements more functionality and properties.
1371
1372 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1373
1374         * Binding.cs: Don't look for the property in the data source if the
1375         passed string is empty.
1376
1377 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
1378
1379         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
1380         fix unused variable warnings.
1381
1382 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
1383
1384         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
1385         [Fixes bug #427073]
1386
1387 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
1388
1389         * XplatUIX11.cs: 
1390          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
1391          leads to the window manager overriding our border style and zorder. 
1392          - Allow the activation of non-modal forms, which are children of a 
1393          modal form.
1394         [Fixes bug #423417]
1395
1396 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
1397
1398         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
1399         ask the window manager to do the work instead of changing the property 
1400         directly.
1401         [Fixes bug #423417]
1402
1403 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
1404
1405         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
1406         AddNew to fix some navigation for empty datasets. [Fixes #323053]
1407
1408 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
1409
1410         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
1411         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
1412         border and fixes some drawing issues when resize form.
1413
1414 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
1415
1416         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
1417         
1418         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
1419         AcceptButton.
1420
1421 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
1422
1423         * TextBoxBase.cs: For standard textbox the scrollbars are always 
1424         visible if Multiline is true.
1425         [Fixes bug #426896]
1426
1427 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
1428
1429         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
1430         patch.
1431         
1432 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
1433
1434         [Fixes most od DBNull and HeadersVisible problems]
1435         
1436         * DataGrid.cs:
1437         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
1438         returns the value that we need.
1439         - Fixed FromPixelToColumn method that return zero for first     column and for
1440         row header cell, now it returns -1 for row header cell.
1441         - Fixed HitTest to check row header cell in column header area, it now
1442         returns HitTestType.None. [Fixes #322864]
1443         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
1444         checks for RowHeadersVisible and other things.
1445         - If an exception occurs when setting CurrentCell and user type 'yes' in
1446         message dialog, invalidade current and new cell and set setting_current_cell
1447         to false to prevent future errors. [Partially fixes #323050]
1448
1449         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
1450         value (SetColumnValueAtRow), it must be done by grid to properly show 
1451         messages. [Fixes #323050]
1452
1453         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
1454         better draw column and row header. Also dont draw anything when column
1455         headers is not visible.
1456
1457 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1458
1459         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
1460         logic.
1461
1462 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1463
1464         * TreeView.cs: Don't start editing a node on right click, only
1465         left click.
1466
1467 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1468
1469         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
1470         disabled over a year ago.
1471         * Form.cs: Wrap calling Load in a try/catch because it can happen
1472         before the catch-all one in NativeWindow.
1473         [Fixes bug #425414]
1474
1475 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1476
1477         * ToolStripDropDownMenu.cs: Calculate the connected area better
1478         to take into account when the drop down is not directly under the
1479         owner item.
1480         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
1481
1482 2008-09-16  Mario Carrion <mcarrion@novell.com>
1483
1484         * ScrollBar.cs: New event added: UIAValueChanged, generated when
1485           LargeChange, SmallChange, Maximum or Minimum values are changed.
1486         [Fixes bug #426464]
1487
1488 2008-09-16  Mario Carrion <mcarrion@novell.com>
1489
1490         * ErrorProvider.cs: Component enabled to support accessibility.
1491         * Application.cs: Updated to Initialize UIA in ErrorProvider.
1492         [Fixes bug #426459]
1493
1494 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1495
1496         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
1497         so we don't highlight on first focus.
1498         [Fixes bug #360869]
1499
1500 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1501
1502         * TextControl.cs: Correctly calculate the height of the area we 
1503         need to invalidate when we have started scrolling and viewport_y
1504         is used.  [Fixes bug #387608]
1505
1506 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1507
1508         * TextControl.cs: When getting the SelectedText, don't add in
1509         NewLine characters, as they are already contained in the lines.
1510         [Fixes bug #388115]
1511
1512 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1513
1514         * TextBoxBase.cs: Replace the buggy Lines setter with one that
1515         simply concats the lines and send it to the Text setter.
1516         [Fixes issue #2 and #3 of 388115]
1517
1518 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1519
1520         * Binding.cs: The default value of DataSourceNullValue should be
1521         Convert.DBNull actually. Also, the NullValue should only be used *if*
1522         itself is not null, and use the null/Convert.DBNull value instead.
1523
1524 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
1525
1526         * TextControl.cs: Add a method to convert a string newline to the
1527         newline enum.
1528         * TextBoxBase.cs: When the user hits enter, insert a native newline.
1529         [Fixes part 1 of bug #388115]
1530
1531 2008-09-15  Mario Carrion <mcarrion@novell.com>
1532
1533         * ToolTip.cs: UnPopup event set to internal to match public API.
1534
1535 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
1536
1537         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
1538         have to remove the Ctrl in order for the focus moving code to kick in.
1539         [Fixes bug #426170]
1540
1541 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
1542
1543         * CheckedListBox.cs: Return the real item index from Add.  It may not be
1544         the last item if the list is sorted.  The user can change the NewValue in
1545         the ItemCheck event, we need to use that value if so.
1546         * ListBox.cs: Return the real item index from a sorted Add.
1547         [Fixes bug #426166]
1548
1549 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
1550
1551         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
1552         happen that the icons from the theme is missing or the particular size 
1553         unavailable.
1554         [Fixes bug #424981]
1555
1556 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1557
1558         * Binding.cs: When assigning null or DBNull depending on value/ref type,
1559         use IsValueType instead to get the precise desired value.
1560         Fixes #424276.
1561
1562 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1563
1564         * TreeNodeCollection.cs: When adding a new node to an opened node,
1565         we have to invalidate everything below the parent node because
1566         every node scoots down and we have to repaint them.
1567         [Fixes bug #411386]
1568
1569 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1570
1571         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
1572         property into account when drawing.
1573         [Fixes bug #416064]
1574
1575 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1576
1577         * ListBox.cs: When calling Items.Clear(), call
1578         SelectedIndexCollection.ClearCore instead of normal Clear method, to
1579         not fire any Selected*Changed event - this is done to match .net and
1580         don't have invalid values when changing the DataSourceProperty.
1581         Fixes #424273.
1582
1583 2008-09-12  Mario Carrion  <mcarrion@novell.com>
1584
1585         * HelpProvider.cs: Control enabled to support accessibility.
1586         * Application.cs: Updated to Initialize UIA in HelpProvider.
1587         [Fixes bug #425988]
1588
1589 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1590
1591         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
1592         make the dialog TopMost as well.
1593         [Fixes bug #425984]
1594
1595 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1596
1597         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
1598         clipboard data better.
1599         [Fixes bug #414446]
1600
1601 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1602
1603         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
1604         TextChanged and SelectionChanged events fire in the same order as .Net.
1605         [Fixes bug #425725]
1606
1607 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1608
1609         * DataGridView.cs: When sorting a column, if it only contains numbers,
1610         do a numeric sort instead of a string sort.
1611         [Fixes bug #425849]
1612
1613 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1614
1615         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
1616         against NRE's when the settings have a null panel.
1617         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
1618         the panel gets set.
1619         [Fixes bug #425647]
1620
1621 2008-09-11  Mario Carrion  <mcarrion@novell.com>
1622
1623         * ToolTip.cs: Control enabled to support accessibility.
1624         * Application.cs: Updated to Initialize UIA in ToolTip.
1625         [Fixes bug #425277]
1626
1627 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1628
1629         * Control.cs: Make the custom Enumerator internal to fix build.
1630
1631 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1632
1633         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
1634         already in edit mode, begin edit mode.  Generally edit mode isn't
1635         started until the second click, but CheckBoxes are special.
1636
1637 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1638
1639         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
1640         since that can be set to anything.  Always add them to the Control's
1641         parent.  [Fixes bug #416058]
1642
1643 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1644
1645         * ListView.cs: Use a custom enumerator for ListViewItemCollection
1646         so items can be deleted in a foreach.
1647         [Fixes bug #425342]
1648
1649 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1650
1651         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
1652         Store the user set explicit height so that the row can be AutoSized
1653         and then when AutoSize is turned off, it can get its original size back.
1654         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
1655         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
1656         rows' heights back to their explicit values.
1657         [Fixes bug #415780]
1658
1659 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1660
1661         * DateTimePicker.cs: When getting focus, select the checkbox if we are
1662         already showing it. Also, don't change its value when pressing space
1663         if the checkbox is not visible (ShowCheckBox as false). Finally, the
1664         checkbox should remain selected as long as Checked is false, and the
1665         other parts are disabled.
1666         Fixes #424267.
1667         
1668 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1669
1670         * MessageBox.cs: Handle shortcut keys to dialog buttons.
1671         [Fixes bug #425425]
1672
1673 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1674
1675         * Binding.cs: When the value retrieved from the control property is
1676         null, don't return Convert.DBNull for Nullable instances, since they
1677         can *actually* get a null value.
1678         Fixes #424265.
1679
1680 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
1681
1682         * Control.cs: Add an internal field to force doublebuffering regardless
1683         of what the public mechanisms are set to.  This is because MS's native
1684         controls are doublebuffered even though their .Net bits are set to false.
1685         * ProgressBar.cs: Set force_double_buffer to true.
1686         [Fixes bug #406595]
1687
1688 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
1689
1690         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
1691         the cell template.
1692         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
1693         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
1694         without EditingControls, paint background selection for types without
1695         EditingControls, reset the EditingCellValueChanged flag when the
1696         cell's value is committed.
1697         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
1698         have EditingControls, remove a double call to a cell's OnContentClickInternal,
1699         don't do cell changing logic in OnMouseDown if the cell didn't change.
1700         [Fixes bug #420351]
1701
1702 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1703
1704         * DateTimePicker.cs: Fix the edition of am/pm specifier.
1705
1706 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
1707
1708         * TextControl.cs: Add "&" to the list of valid characters in a URL.
1709
1710 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1711
1712         * DateTimePicker.cs: Before incrementing or decrementing any part in
1713         the textbox, end any current edit. Also when ending the current edit
1714         use the editing_part_index field instead of the current selected
1715         value, since they can be out of synch, and we really need to work on
1716         the *real* current edit part. Finally when PartData.Selected changes,
1717         always try to end any ongoing edit.
1718         This should fix some small errors handling mouse navigation and
1719         increase/decrease operations.
1720
1721 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1722
1723         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
1724         respectively) should handled different, since the 12 hours format
1725         needs the value typed by the user to be adjusted depending on the
1726         a.m/p.m value, so it is preserved, and only changed when the value
1727         reaches the 12 value (when it changes from a.m to p.m).
1728         Fixes part of #416555.
1729
1730 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
1731
1732         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
1733         * ToolStripDropDownItem.cs: Don't fire events and such again if
1734         ShowDropDown is called on an already dropped down item.
1735         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
1736         subitems, the user may add some in the DropDownOpening event.
1737         [Fixes bug #417877]
1738
1739 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
1740
1741         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
1742         [Fixes bug #424270]
1743
1744 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
1745
1746         * MdiClient.cs: When looking for menustrips on a child form to merge,
1747         look inside ToolStripContainers.
1748         [Fixes bug #424264]
1749
1750 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
1751
1752         * ErrorProvider.cs: Unbreak my previous commit.
1753
1754 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
1755
1756         * ErrorProvider.cs: Icon should always be 16x16.
1757         [Fixes bug #424380]
1758
1759 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
1760
1761         * GridEntry.cs: Invalidate the child items cache when the property 
1762         value changes.
1763
1764 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
1765
1766         * GridEntry.cs, PropertyGridView.cs: 
1767            - Update the ReadOnly detection and rendering to finally hopefully 
1768            match the one of MSFT.
1769            - Niceify and move the debug CWLS.
1770         [Fixes bug #409028]
1771
1772 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1773
1774         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
1775         since we are already calling Invalidate for the entire control when
1776         needed - and call Redraw() when size changes, since we need to paint
1777         there by ourselved and not anymore from the mentioned method. 
1778         This should improve the layout process. Also clean some not needed calls 
1779         here and there.
1780
1781 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
1782
1783         * MenuAPI.cs: Add a null check to the Alt-F4 code.
1784         [Fixes bug #420309]
1785
1786 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
1787
1788         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
1789         [Fixes bug #423040]
1790
1791 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
1792
1793         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
1794         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
1795         on item expansion. Improves performance and fixes bug #417955.
1796         [Fixes bug #417955]
1797
1798 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
1799
1800         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
1801         fix the build.
1802
1803 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
1804
1805         * TextControl.cs: Add "_" to the list of valid characters in a URL.
1806         [Fixes bug #423408]
1807
1808 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
1809
1810         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
1811         region gets set.
1812         [Fixes bug #414166]
1813
1814 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
1815
1816         * FontDialog.cs: When storing our font size from the starting font,
1817         use SizeInPoints instead of Size in case Size is a different unit
1818         from Points.
1819         [Fixes bug #416489]
1820
1821 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
1822
1823         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
1824         don't use it for anything else, check if a directory is highlighted.
1825         If it is, navigate into it.
1826         [Fixes bug #422087]
1827
1828 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1829
1830         * Binding.cs: When acquiring a BindingManagerBase for the first time,
1831         check that the specified property actually exists in the data source,
1832         and throw an ArgumentException if that's not the case - this is only
1833         done for this scenario, since for later cases (such Position changes)
1834         we throw different exceptions (match .Net).
1835
1836 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
1837
1838         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
1839           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
1840           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
1841           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
1842           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
1843           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
1844           properties.
1845           [Fixes bug #418684]
1846
1847 2008-09-03  Neville Gao  <nevillegao@gmail.com>
1848
1849         * StatusBar.cs: Control enabled to support accessibility.
1850         [Fixes bug #419079]
1851
1852 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1853
1854         * Binding.cs: When connecting the event handler for the "Changed"
1855         event for the property, only do it for PropertyManager, and not for
1856         CurrencyManager - this is exactly what does .Net, totally ignoring any
1857         change in the property of the elements of a list.
1858         Fixes the tests.
1859
1860 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
1861
1862         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
1863         to Windows when creating a window, as we fake MDI stuffs.
1864         [Fixes bug #421858]
1865
1866 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
1867
1868         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
1869         change takes effect.
1870
1871 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
1872
1873         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
1874         [Fixes bug #419001]
1875
1876 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
1877
1878         * DataGridView.cs: Raise CellContentClick event.
1879         [Fixes part of bug #420351]
1880
1881 2008-08-27  Mario Carrion  <mcarrion@novell.com>
1882
1883         * ScrollBar.cs: Control enabled to support accessibility.
1884         [Fixes bug #416759]
1885
1886 2008-08-27  Mario Carrion  <mcarrion@novell.com>
1887
1888         * ComboBox.cs: Control enabled to support accessibility.
1889         [Fixes bug #416663]
1890
1891 2008-08-27  Mario Carrion  <mcarrion@novell.com>
1892
1893         * ListBox.cs: Control enabled to support accessibility.
1894         [Fixes bug #416640]
1895
1896 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
1897
1898         * ComboBox.cs: Don't suppress the TextChanged event when changing
1899         the SelectedIndex.
1900         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
1901         and re-raise it.
1902         [Fixes bug #420673]
1903
1904 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
1905
1906         * ErrorProvider.cs: Fix a regression NRE when setting properties
1907         for a control before it has a parent.
1908         [Fixes bug #420305]
1909
1910 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1911
1912         * Binding.cs: Use the BindingManagerBase.Current value to obtain
1913         connect the property "Changed" event, instead of using the data
1914         sources - this is useful when the property specifies actually a
1915         multiple objects path.
1916         Fixes part of #417973.
1917
1918 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1919
1920         * RelatedPropertyManager.cs: PropertyManager instances associated to a
1921         nested properties should return not the properties of the data source
1922         itself, but the properties of the type of a specific property in the
1923         data source - match .net.
1924
1925 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
1926
1927         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
1928         AddRange overloads into AddItems method, and added missing NULL check.
1929         Added extra argument check to RemoveAt for compatibility with MS. 
1930         Modified IList implementation of Add, Contains, IndexOf and Remove to
1931         throw an ArgumentException if item is not an int. Modified IList.Insert
1932         to throw a NotSupportException instead of an Exception. Implemented
1933         ICollection.
1934         (ObjectCollection): To avoid duplication, use AddItems method from
1935         AddRange overloads. On 1.0 profile, first perform NULL check on items
1936         in AddItems.
1937
1938 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
1939
1940         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
1941          #419087.
1942
1943 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
1944
1945         * X11Keyboard.cs : comment out some Console.WriteLine().
1946
1947 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
1948
1949         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
1950           even if premises are not filled. Also XLookupString() was not
1951           receiving correct input, which blocked precise input handling
1952           on non-XIM mode.
1953
1954 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1955
1956         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
1957         type of delegate, instead of EventHandler - this was causing a type
1958         cast exception in all apps handling this event.
1959         Fixes #417876.
1960
1961 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
1962
1963         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
1964         ShowDropDown to give the user a chance to dynamically add
1965         drop down items.  [Step 1 of fixing bug #417877]
1966
1967 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1968
1969         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
1970         had any mouse motion since the call to StartDrag, to match the dnd
1971         behaviour of .net.
1972         Fixes part of #381876.
1973
1974 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1975
1976         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
1977         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
1978         Also, if we are actually moving into a different window after
1979         grabbing, generate a LeaveNotify event for the previous window, since
1980         we need to fire the leave events until the grab ends, not when
1981         actually moving outside of the control.
1982
1983 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1984
1985         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
1986         events only for client windows was wrong - we need to compare the
1987         client window against the window receiving the EnterNotify event, not
1988         against zero (since client window is never Zero, btw).
1989         This prevents having unnecessary handling of EnterNotify events for
1990         non-client windows when a gran begins.
1991
1992 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1993
1994         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
1995         MouseMove/MotionNotify events at all (which should only happen after
1996         MouseUp/ButtonRelease, as .Net does).
1997         This avoids firing an extra and unnecessary MouseMove event just after
1998         every MouseDown event.
1999
2000 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
2001
2002         * LinkLabel.cs: Always clear any previous links when LinkArea
2003         is set.  [Fixes bug #410709]
2004
2005 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
2006
2007         * ToolStripProfessionalRenderer.cs: Revert last change.
2008         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
2009         for ToolStripDropDownBackground.
2010
2011 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
2012
2013         * ToolStripProfessionalRenderer.cs: Use Window color for the 
2014         background of dropdowns to match .Net when the user is not
2015         using the default white.  [Fixes bug #418108]
2016
2017 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
2018
2019         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
2020           it caused timer registration twice. Fixed bug #418107.
2021
2022 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2023
2024         [Correction: This is the actual change to X11Dnd issue, not the
2025         previous one, which was actually a different issue.]
2026
2027         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
2028         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2029         when the pointer is actually in motion, but only when the pointer
2030         seems to stop (as .net does).
2031         Fixes part of #381876.
2032
2033
2034 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
2035
2036         * ListBox.cs: Fix CopyTo implementation.
2037         [Fixes bug #409169]
2038
2039 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
2040
2041         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
2042         drawing a ComboBox's background.  Fixes bad disabled rendering when
2043         the control is not at 0,0.
2044         [Fixes bug #416063]
2045
2046 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
2047
2048         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
2049         ComponentModel layer, which will properly prioritize the attributes.
2050         Avoids wrong prioritization of duplicate attributes when retrieving 
2051         the converter and editor.
2052         [Fixes bug #417729]
2053
2054 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2055
2056         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
2057         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2058         when the pointer is actually in motion, but only when the pointer
2059         seems to stop (as .net does).
2060         Fixes part of #381876.
2061
2062 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
2063
2064         * GridEntry.cs: Perform stricter check for the ParentEntry's 
2065         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
2066         implementation.
2067         [Fixes bug #417567]
2068
2069 2008-08-14  Geoff Norton  <gnorton@novell.com>
2070
2071         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
2072         Fixes #396983.  Properly fix ActiveWindow trackin and do not
2073         prematurely show POPUP windows.
2074
2075 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2076
2077         * XplatUIX11.cs: Handle the obscured regions while scrolling using
2078         GraphicsExpose event, processing it just after we copy the scrolled
2079         area. This ensures that the next calls to ScrollWindow will copy
2080         regions already updated, and the scrolling will be smooth. Also remove
2081         the code that was trying to detect the obscured regions, since we are
2082         not using it anymore (too slow).
2083
2084 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2085
2086         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
2087         MultiExtended mode, by separating some logic between the ctrl/shift
2088         handling. Also ignore any MouseMove events generated together with
2089         MouseDown events - we are only interested in the real motion event.
2090         Fixes part of #414963.
2091
2092 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
2093
2094         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
2095         is selected.  [Fixes bug #414143]
2096
2097 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
2098
2099         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
2100         and not the parent one (the propertyowner). Fixes the behavior of 
2101         GetConverter/GetEditor.
2102         [Fixes bug #415452]
2103
2104 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
2105
2106         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
2107         [Fixes part of bug #415452]
2108
2109 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
2110
2111         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
2112         GridEntry, not the current.
2113         [Fixes bug #413896]
2114
2115 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
2116
2117         * TextBoxBase.cs: De-internalize max_length field.
2118         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
2119         share the same logic.
2120         [Fixes bug #414454]
2121
2122 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2123
2124         * ListBox.cs: Selection changes made in the MouseDown handler should
2125         use the *Core versions of selection in SelectedIndices collection,
2126         since the SelectedIndexChanged/SelectedValueChanged events are fired
2127         until we get a MouseUp event, and thus we need to separate the logic
2128         from the events, as done in the keyboard navigation. Also, fire those
2129         selection events from keyboard navigation in SelectionMode.None, even
2130         if we don't have a selection, as .Net does.
2131
2132 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
2133
2134         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
2135         last change introduced when an item is clicked but isn't on a toolstrip.
2136
2137 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2138
2139         * ListBindingHelper.cs: When looking for an object's properties, check
2140         if it implements ICustomTypeDescriptor, in which case we should
2141         resolve the propertu based on its GetProperties method, not in its
2142         actual properties. This is what .Net seems to do.
2143         Fixes a UsingWebBrowser problem during initialization.
2144
2145 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
2146
2147         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
2148         sitting on a MenuStrip.
2149
2150 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
2151
2152         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
2153         no children with the keyboard, we need to release the keyboard capture.
2154         [Fixes bug #413567]
2155
2156 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
2157
2158         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
2159         no children with the keyboard, we need to release the keyboard capture.
2160         [Fixes bug #413567]
2161
2162 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
2163
2164         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
2165         the GTK+-based implementation of VisualStyles.
2166         * ThemeWin32Classic.cs: Exposed various layout values for use in the
2167         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
2168         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
2169         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
2170         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
2171         TrackBarHorizontalTrackHeight.
2172
2173 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
2174
2175         * TabControl.cs: Added hot style handling for the scroll buttons.
2176         right_slider_state, left_slider_state are now of type PushButtonState to
2177         allow for a hot state. Added tracking of the mouse button being held down
2178         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
2179         LeftScrollButtonArea.
2180         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
2181         TabControlGetRightScrollRect.
2182
2183 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2184
2185         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
2186         runtime errors.
2187
2188 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
2189
2190         * Form.cs: Ensure that we reset the shown_raised flag after 
2191         the form is closed, so that we raise the show events the next 
2192         time the form is shown.
2193         [Fixes bug #413141]
2194
2195 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
2196
2197         * Form.cs: Ensure closing events are raised only once.
2198         [Fixes bug #413143]
2199
2200 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
2201
2202         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
2203         so that we can successfully generate the LParam in-place instead of 
2204         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
2205         navigation for menus.
2206
2207 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2208
2209         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
2210         'navigating'. Fixes bug #411356.
2211
2212 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2213
2214         [Fixed remaining issues of #406773 (#1)]
2215         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
2216
2217         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
2218         MainMenu (already done) and ContextMenu creation.
2219
2220         * ContextMenu.cs: Create tracker on construction. 
2221
2222 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2223
2224         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
2225         possible to instantiate MenuTracker without GrabControl.
2226
2227 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2228
2229         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
2230
2231         * MainMenu.cs: Set GrabControl on SetForm using current form.
2232
2233 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2234
2235         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
2236
2237 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2238
2239         * MenuAPI.cs: Check if menu is activated before deactivate it in 
2240         ProcessShortcut.
2241
2242 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
2243
2244         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
2245         ColumnStyle.cs: 
2246         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
2247          - One style instance can only participate in a single style collection.
2248          - Styles can request their owner to layout whenever their properties 
2249          change.
2250          [Fixes bugs #412583 and #412582]
2251
2252 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
2253
2254         * X11Keyboard.cs: Implement the generation of the LParam for 
2255         all keyboard messages.
2256         [Fixes bug #378728]
2257
2258 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
2259
2260         * ListBox.cs: Don't let the user set TopIndex so high that it
2261         scrolls up far enough to show empty items.
2262         [Fixes bug #412728]
2263
2264 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2265
2266         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
2267         (I'm an idiot and forgot to commit the actual changes, as well as
2268         specify the right file, which is this one, not ListView.cs).
2269
2270 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2271
2272         * ListView.cs: Don't draw ListViewSubItem instances from
2273         DrawListViewItem - we need to reuse the main item's drawing for the
2274         first sub item in case owner draw is true, but wants the system to
2275         do the default draw for the first sub item, without incurring in a
2276         recursion problem.
2277         Fixes #410880.
2278
2279 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
2280
2281         * ToolStripButton.cs: Update Checked for CheckOnClick before
2282         raising the Click event.  [Fixes bug #412505]
2283
2284 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
2285
2286         * Form.cs: Remove some seems leftover code for non-TopLevel's 
2287         CreateParams, which is breaking ClientSize sizing, because it 
2288         removes the border window styles.
2289
2290 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
2291
2292         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
2293         changes.
2294
2295 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
2296
2297         * WebBrowser.cs: Removed debug output.
2298
2299 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
2300
2301         * FileDialog.cs: Apply patch from Ernesto to clean up some
2302         dialog messages.
2303
2304 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2305
2306         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
2307         that the change has an immediate effect.
2308
2309 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2310
2311         * ScrollableControl.cs: Update PerformLayout calls to include 
2312         provide the name of the property that changed.
2313
2314 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2315
2316         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
2317         location. Fixes drawing of border and cell borders if scrollable.
2318
2319 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2320
2321         * ScrollableControl.cs: Perform layouting after the AutoScroll 
2322         properties have changed, so that the changes have immediate 
2323         effect.
2324         [Fixes bug #409090]
2325
2326 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2327
2328         * XplatUIX11.cs: Non Client area is actually Client such in the 
2329         case of NotifyIcon, so double check WholeWindow == ClientWindow 
2330         when adding an expose.
2331         [Fixes bugs #324237 and #357022]
2332
2333 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2334
2335         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
2336         repaint the cell borders.
2337
2338 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2339
2340         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
2341         disposal to avoid unexpected ObjectDisposedExceptions.
2342
2343 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
2344
2345         * TableLayoutPanel.cs: Layout on Row/Column count change.
2346
2347 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
2348
2349         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
2350         bug #409351.
2351         * PictureBox.cs: When ImageLocation is set to null or an empty string,
2352         only set image to null if it was previously initialized from an url
2353         (or using ImageLocation). In ImageLocation, load specified image
2354         asynchronously if WaitOnLoad is false. Added support for local file
2355         paths to LoadAsync, and added missing argument check.
2356
2357 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2358
2359         * DateTimePicker.cs: 
2360         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
2361         order to set the value as required (which means: when selection
2362         changes for a part being edited, and not before that if not needed).
2363         Also use an enum to describe which part are we using, and use the
2364         selection as a property in PartData, in order to notify the
2365         DateTimePicker owner that we need to end the current edit.
2366         Fixes #383462.
2367
2368 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
2369
2370         * PropertyGridTextBox.cs: Validation should be performed only if we 
2371         are focused. We can lose focus for example if the Return key is used 
2372         to set the entry and there is an error. When the message box is 
2373         displayed we would have validate on click in the message box.
2374
2375 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
2376
2377         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
2378         in order to determine that we are expandable is wrong. There was a bug, 
2379         now fixed, in TypeDescriptor that was causing the wrong converter to be 
2380         returned which caused GetPropertiesSupported == false in most cases.
2381         [Fixes bug #409027]
2382
2383 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
2384
2385         * ImageList.cs: Fix ICollection.CopyTo implementation for
2386         ImageListCollection.  [Fixes bug #409169]
2387
2388 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
2389
2390         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
2391         WorkingArea so that menus can appear on the second monitor
2392         when one has dual monitors.
2393
2394 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2395
2396         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
2397         Fixes build.
2398
2399 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2400
2401         * TextBox.cs: Implement navigation support for auto complete in
2402         TextBox, as well as refactor the code to show the auto complete window
2403         when receiving a WM_CHAR message, instead of TextChanged, since
2404         autocomplete itself should be able to set the Text a lot of times and
2405         finally only typing should show it, not changes from code.
2406
2407 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2408
2409         * TabControl.cs: When expanding the selected tab, don't adjust the
2410         width if alignment is Right, since it has a different offset than 0,
2411         as opposed to the other alignments.
2412         Fixes the selected tab not being painted at all with alignment = Right
2413         and using FillToRight size mode.
2414
2415 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
2416
2417         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
2418
2419 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
2420
2421         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
2422         values from the textbox to the boundary values.  [Fixes bug #409026]
2423
2424 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
2425
2426         * TreeNodeCollection.cs: We were copying one too many elements when
2427         doing our array copy.  Fixes a crash when RemoveAt is called.
2428         [Fixes bug #408999]
2429
2430 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2431
2432         * TabControl.cs: When doing the layout and need to call FillRow -using
2433         FillToRight size mode-, use the overload receiving a bool param
2434         indicating whether we need to do a vertical or horizontal calculation.
2435         Fixes part of #399583.
2436
2437 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2438
2439         * TextBox.cs: When painting, use the value returned by
2440         GetLastVisibleItem instead of using the cached last_item field, since
2441         there could be a desynchronization between the layout and the
2442         painting. Fixes a AOOR exception in auto complete mode.
2443
2444 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
2445
2446         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
2447         NonClientAreaEnabled until our VisualStyles is modified to allow it.
2448
2449 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
2450
2451         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
2452
2453 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2454
2455         * TextBox.cs: When focus is lost, if the auto complete listbox is
2456         visible, hide it.
2457
2458 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
2459
2460         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
2461         tracking size for tool windows.
2462         * Theme.cs, ThemeWin32Classic.cs : Extracted
2463         ManagedWindowSpacingAfterLastTitleButton.
2464
2465 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
2466
2467         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
2468         They are bit-rotted and have always been listed as "unsupported".
2469
2470 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
2471
2472         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
2473
2474 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
2475
2476         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
2477
2478 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2479
2480         * ListBox.cs: Make sure last_item_visible gets reset before we try
2481         to do a layout due to scrollbars appearing or disappearing.
2482         [Fixes bug #408139]
2483
2484 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2485
2486         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
2487         for different window themes.  [Fixes bug #339140]
2488
2489 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2490
2491         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
2492         in ManagedWindowBorderWidth.
2493
2494 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2495
2496         * InternalWindowManager.cs: Change MouseMove to take a point, so
2497         we can use the same point later on.
2498         * MdiWindowManager.cs: Store point sent to MouseMove so we can
2499         later reset to it.  On Windows, the Cursor.Position had already
2500         changed by the time we were resetting to it.
2501         [Fixes bug #363239]
2502
2503 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2504
2505         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
2506         are inactive.
2507         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
2508         user requested it.
2509         [Fixes bug #398686]
2510
2511 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2512
2513         * MdiWindowManager.cs: Double-clicking on the title bar should not
2514         maximize a MDI form if MaximizeBox = false.
2515
2516 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2517
2518         * ThemeVisualStyles.cs: Fixed a warning.
2519
2520 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2521
2522         * ThemeVisualStyles.cs: Fixed warnings and formatted.
2523
2524 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2525
2526         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
2527         implementation produces a better result.
2528
2529 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2530
2531         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
2532         windows.
2533
2534 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2535
2536         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
2537         cannot be used from the ThemeEngine constructor.
2538         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
2539         Application.VisualStylesEnabled because it does not work on X11.
2540
2541 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
2542
2543         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
2544         that we did not always check for, as well as fixes to the IList
2545         implementations.  [Fixes bug #402703]
2546
2547 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
2548
2549         * IDeviceContext.cs: Added Dispose.
2550
2551 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
2552
2553         * Control.cs: Added OnSizeInitializedOrChanged.
2554         * Form.cs: OnLoadInternal: Added a call to
2555         Control.OnSizeInitializedOrChanged.
2556         * InternalWindowManager.cs:
2557          * HandleTitleBarMouseMove: No longer invalidates the parent window.
2558          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
2559          * TitleButton: Added Entered.
2560          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
2561         * MdiWindowManager.cs:
2562          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
2563          move over the maximized title buttons causes a change.
2564          * IsActive: Can now be called before the window is added to a MDI parent.
2565         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
2566         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2567         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
2568         * ThemeWin32Classic.cs:
2569          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
2570          * DrawTitleButton takes a new form parameter.
2571          * Added ManagedWindowTitleButtonHasHotElementStyle,
2572          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2573
2574 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
2575
2576         * ThemeEngine.cs: ThemeVisualStyles is now selected if
2577         Application.EnableVisualStyles has been called, even if the current system
2578         configuration does not support rendering with Visual Styles.
2579         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
2580         Styles should not be used.
2581
2582 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
2583
2584         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
2585         ComboBox in FormsTest.
2586
2587 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
2588
2589         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
2590         for fixed toolwindows.
2591
2592 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
2593
2594         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
2595
2596 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2597
2598         * Control.cs: CreateControl just returns if the Control is diposed 
2599         and doesn't throw ObjectDisposedException.
2600         [Fixes bug #406566]
2601
2602 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2603
2604         * Control.cs: Do not create the control if the parent isn't created 
2605         yet, e.g in the case of a parented form on which .Show is called.
2606         It will be created when the parent is made visible/created.
2607         Improves #402446.
2608
2609 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2610
2611         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
2612         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
2613         [Fixes bug #406786]
2614
2615 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2616
2617         * Form.cs: When disposed set owner to null. Improves #402446.
2618
2619 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2620
2621         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
2622         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
2623         if not.
2624         * Form.cs: Take the Padding into account for the PreferredSize.
2625         [Fixes bug #402849]
2626
2627 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2628
2629         * TabControl.cs: Since we don't support more than one direction in
2630         TabControl rows alignment (this is, the row becomes the
2631         bottom row when selected), make Direction return always 1. This way
2632         the layout doesn't get confused about a bad calculation.
2633         Fixes #399582.
2634
2635 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2636
2637         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
2638         so that the wparam is properly set.
2639         Fixes form moving in the test case in bug 402446.
2640
2641 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
2642
2643         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
2644         the full tree instead of nothing.  [Improves bug #406584]
2645
2646 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
2647
2648         * ThemeWin32Classic.cs: Adjusted minimized window painting.
2649
2650 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
2651
2652         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
2653         children.
2654
2655 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
2656
2657         * TreeView.cs: Add a null check when using CollapseAll on an
2658         empty tree.  [Fixes bug #406449]
2659
2660 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
2661
2662         * Form.cs: Make OnMenuComplete internal so we can call it.
2663         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
2664         [Fixes bug #399321]
2665
2666 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
2667
2668         * TabControl.cs: Handle Up and Down keys when TabControl is in
2669         vertical alignment.
2670         [Fixes bug #399585]
2671
2672 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
2673
2674         * TabControl.cs: Invalidate when we remove a tab.  Guard against
2675         an AOORE when trying to remove a tabpage that is not owned by the
2676         parent control.
2677         [Fixes bug #399927]
2678
2679 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
2680
2681         * ScrollBar.cs: Change the LargeChange calculation to be correct.
2682         Ensure we are using LargeChange instead of large_change so we our
2683         calculations are correct.
2684         [Fixes bug #403122]
2685
2686 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
2687
2688         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
2689         we need to ensure the ColumnCount/RowCount gets set.
2690         [Fixes bug #404851]
2691
2692 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2693
2694         * ListBox.cs: When handling item navigation, if selection mode is
2695         None, call EnsureVisible, since scrolling is normally handled by
2696         selection, that we are not calling in this case.
2697         Fixes #398345.
2698
2699 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
2700
2701         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
2702         a null check to our focus walking code.  [Fixes bug #394332]
2703
2704 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
2705
2706         * ComboBox.cs: Case missed in bug 379596 "Support item
2707         navigation by entering text": On _close_ drop-down select
2708         the first item matching the text in the textbox.  [Fixes bug #397265]
2709
2710 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
2711
2712         * DataGridView.cs: Fix a crash when sorting by column headers, 
2713         mentioned in bug #404841.  Remove some dead switch cases.
2714
2715 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2716
2717         * ComboBox.cs:
2718         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
2719         uses the AutoComplete support in the internal TextBox. Also TextBox
2720         can store a reference to ComboBox, in case AutoCompleteSource is set
2721         to ListItems (this is, ComboBox's items, and we don't want to pass an
2722         additional collection).
2723
2724 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2725
2726         * ListViewItem.cs: Restore the initial value of bounds rect to
2727         Rectangle.Empty, and is this value for Layout detection in virtual
2728         mode. Fixes the tests.
2729
2730 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
2731
2732         * XPlatUI.cs: Remove references to "new" X11 backend.
2733
2734 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
2735
2736         * Control.cs: Add an internal virtual OnDragDropEnd method 
2737         to allow controls such as ListBox, which depend on a sequence 
2738         of MouseDown+Move+End events, to handle the lack of a MouseUp 
2739         when a DnD operation is started in MouseDown.
2740         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
2741         get a MouseUp, so reset our state whenever a DnD operation ends.
2742
2743 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
2744
2745         * PropertyGrid.cs: Clear the root griditem first thing when 
2746         new object/s is/are selected. Fixes some rare cases where 
2747         the View will get a paint request and won't know that the 
2748         grid is in the process of repopulating.
2749
2750 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
2751
2752         * XplatUIX11.cs, InternalWindowManager.cs: 
2753         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
2754         doesn't automagically update the FormBorderStyle, so we must 
2755         double check the CreateParams explicitly to determine if the 
2756         window is a toolwindow.
2757         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
2758         instead of doing custom checks.
2759
2760         Fixes toolwindows for the test case in bug #402446
2761
2762 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
2763
2764         * Control.cs: Visibility of the control should be false 
2765         when the handle is destroyed in WmDestroy and not immediately 
2766         in Dispose(). This is effectively where the disposing process 
2767         ends even though the control is marked as Disposed immediately 
2768         after calling Dispose().
2769         [Fixes bug #402446]
2770
2771 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
2772
2773         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
2774         when the textbox gets focus.
2775         [Fixes bug #402704]
2776
2777 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
2778
2779         * PropertyGridTextBox.cs, PropertyGridView.cs: 
2780          - Alt + Down should show the drop down editor.
2781          - Focus the editor when showing it
2782         [Fixes bug #402710]
2783
2784 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
2785
2786         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
2787         that are not the first panel.
2788         * StatusBar.cs: Ensure that the X coordinate of panels is always
2789         stored.  Fix IList implementation of StatusBarPanelCollection to
2790         call the regular methods.
2791         [Fixes bug #403599, #402165]
2792
2793 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
2794
2795         * ThemeWin32Classic.cs: Fix position calculation for centered
2796         text on status bar panels.  [Fixes bug #402165]
2797
2798 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
2799
2800         * Splitter.cs: Fix Splitter to:
2801          - Work for arbitrary splitter size
2802          - Handle MinSize and MinExtra properly
2803          - Get rid of absolute positioning during drag and use relative
2804          - Multiple other fixes 
2805          [Fixes bug #338966]
2806
2807 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
2808
2809         * Cursor.cs: Show shouldn't hide the cursor.
2810
2811 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2812
2813         * ListViewItem.cs: When invalidating, add some extra space to bounds,
2814         since focus rectangle and selection can add some space and need to
2815         take into account those small offsets - specially in Details view.
2816         * ListView.cs: Instead of invalidate using item Bounds directly, call
2817         item.Invalidate, to have the code centralized.
2818         Fixes focused/selection garbage when selecting and deselecting items
2819         that are close.
2820
2821 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2822
2823         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
2824         mode we can check whether we have to force a Layout or not, and can
2825         cache based on this, instead of avoiding caching all the the time. Do
2826         this check in GetBounds and TextBounds.
2827         Fixes selection in Details view.
2828
2829 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2830
2831         * ListView.cs: Make HeaderControl internal, thus the theme engine can
2832         get its *real* height instead of trying to infere it.
2833         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
2834         get the position of them, since it's in general a bad idea in general,
2835         and because we can't do that in virtual mode. Instead get the first
2836         visible item as well as item height, and draw them.
2837         Fixes #400390.
2838
2839 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
2840
2841         * ToolStripSplitButton.cs: We can't add in extra width if
2842         the button is not AutoSize.  [Fixes bug #401279]
2843
2844 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
2845
2846         * PaddingConverter.cs: 
2847          - Implement conversion to InstanceDescriptor
2848          - Handle "All" in CreateInstance by using the supplied 
2849          ITypeDescriptorContext.
2850          [Fixes bugs #396076 and #396078]
2851
2852          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
2853          Code contributed under MIT/X11 license.
2854
2855 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
2856
2857         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
2858         ButtonBase.cs:
2859         Add Category attributes.
2860         Code is contributed under the MIT/X11 license.
2861
2862 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
2863
2864         * Form.cs: 
2865          - Fix a NRE when unparenting a form.
2866          - Do not recreate or destroy a parented form when 
2867         unparenting. 
2868
2869 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2870
2871         * TextBox.cs: Implement basic support for AutComplete with custom
2872         sources.
2873
2874 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
2875
2876         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
2877         DropDownButtonBounds should be from the origin of the button, not the
2878         ToolStrip.  [Fixes bug #401279]
2879
2880 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
2881
2882         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
2883           running gtk_init_check.  This prevents GAIL from loading
2884           unnecessarily, which was breaking UIA support.  Initial fix for bug
2885           #375987.
2886         * Application.cs: Add UIA support to Winforms.  New static constructor
2887           uses reflection to initialize UIAutomationWinforms assembly.  Added
2888           PreRun event so UIA can initialize before the mainloop starts, and
2889           FormAdded event so UIA can provide a11y support for new Forms in an
2890           Application.
2891
2892 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
2893
2894         * DataGridView.cs: When binding to a dataset, subscribe to table
2895         and column change events.  Unsubscribe to these when we clear bindings.
2896         [Fixes bug #399601]
2897
2898 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
2899
2900         [DataGrid drawing refactory]
2901
2902         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
2903
2904         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
2905         must be handle by Theme, now it call DataGridPaintColumnHeader.
2906
2907         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
2908         test cases must be also fixed because it checks for wrong size.
2909
2910         * ThemeWin32Classic.cs: 
2911                 - Draw the bottom line of grid caption.
2912                 - Prevent to draw caption text when it is empty.
2913                 - Use CPDrawBorder3D for 3D efects to simplify code.
2914                 - Uses 3D (when not flat) to paint corner shared between row and column
2915                 header.
2916                 - Fix header drawing issues on win32, now borders are drawing.
2917                 - Fix column header paint issues to mimic win32.
2918                 - Adjust header drawing for last column, like first one it must be draw
2919                 different.
2920                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
2921                 not an character.
2922                 - DataGridPaintColumnHeader created to draw column headers, it also
2923                 paint stuff right on Win32.
2924                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
2925                 class.
2926
2927         * Theme.cs: 
2928                 - DataGridPaintRowHeaderStar method added.
2929                 - DataGridPaintColumnHeader method added.
2930
2931 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
2932
2933         * Control.cs: Don't reset to Dock style layout if DockStyle is
2934         set to none.  [Fixes bug #399316]
2935
2936 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
2937
2938         * Win32DnD.cs: Fix the check for control not equal null.
2939         Fixes bug #341420 and #381886. 
2940
2941 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
2942
2943         * DataGridViewRowCollection.cs: Update the indexes of rows after
2944         one has been removed.
2945         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
2946         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
2947         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
2948         rows for the Rows collection, or deleting rows from the bound DataSet.
2949
2950 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
2951
2952         * DataGridView.cs: Listen to a DataSet's changed event even
2953         when autogeneratecolumns is false.  Refactor the changed event's
2954         add row code to use the same as the existing add row code.
2955         [Fixes bug #399601]
2956
2957 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
2958
2959         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
2960         much any time the caret moves and there is text, not just when
2961         the selection changes as one would think.
2962         * RichTextBox.cs: Override RaiseSelectionChanged and fire
2963         SelectionChanged.
2964         [Fixes bug #397271]
2965
2966 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
2967
2968         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
2969         instead of trying to duplicate the code.
2970         * ListBox.cs: Make method internal so we can send keyboard events.
2971         [Fixes bug #398344]
2972         
2973 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
2974
2975         * TextBoxBase.cs: When pasting and checking the max length,
2976         subtract the selected text length (the text we will be replacing) from
2977         the document length.
2978         * TextControl.cs: Ensure every character insertion is reflected in
2979         charcount, so max length will work properly.
2980         [Fixes bug #398605]
2981
2982 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
2983
2984         * ListBox.cs: Ensure scrollbars are updated when a single
2985         column listbox with an already set top-index is created.
2986         [Fixes bug #398342]
2987
2988 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
2989
2990         * FontDialog.cs: Typing in the font/style textboxes should search
2991         the list boxes case-insensitively.  [Fixes bug #398343]
2992
2993 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
2994
2995         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
2996         widths of icon and buttons instead of hard coded values.
2997
2998 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2999
3000         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
3001         as well as generating a SelectedIndexChanged event, just like .Net does
3002         -surprise-.
3003         Fixes #398345.
3004
3005 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3006
3007         * ListBox.cs: When navigating items visually, use FocusedItem as the
3008         reference point instead of SelectedIndex, since even in
3009         SelectionMode.None we need to support navigation, and in that case we
3010         just can't use SelectedIndex.
3011         Fixes part of #398345.
3012
3013 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
3014
3015         * Control.cs: Make a SetBoundsInternal that avoids the new
3016         SetBounds code.
3017         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
3018         SetBoundsInternal instead of SetBoundsCoreInternal.
3019
3020 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
3021
3022         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
3023         SetBounds for the scrollbars.
3024
3025 2008-06-10  Andreia Gaita <avidigal@novell.com> 
3026
3027         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
3028           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
3029           OnMouseMove, OnMouseOver, OnMouseUp
3030         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
3031           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
3032         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
3033           to the WebControl object to pass to new collection objects
3034         * HtmlHistory.cs: Implement support for individual window histories.
3035         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
3036           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
3037           GotFocus, LostFocus, OnLoad, OnUnload
3038         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
3039           ContextMenu
3040         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
3041           security level changes and context menu event support.
3042
3043 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3044
3045         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
3046         as happens with Esc, patch my Andy Hume.
3047         Fixes #396294.
3048
3049 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3050
3051         * MdiWindowManager.cs: DrawMaximizedButtons now uses
3052         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
3053         * Theme.cs: Made MenuButtonSize platform dependent. Added
3054         ManagedWindowButtonSize.
3055         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
3056         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
3057
3058 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3059
3060         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
3061         Added support for rendering with VisualStyles.
3062
3063 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3064
3065         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3066         support for rendering the border with VisualStyles.
3067
3068 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3069
3070         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
3071         the icon is not shown.
3072         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
3073         its own logic.
3074
3075 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
3076
3077         * InternalWindowManager.cs: Draw minimized windows even if they don't have
3078         borders.
3079
3080 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
3081
3082         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
3083
3084 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
3085
3086         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
3087         [Fixes bug #397943]
3088
3089 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3090
3091         * ComboBox.cs: When snaping height -because of IntegralHeight set to
3092         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
3093         if the requested height leaves the listbox area with *less* than the
3094         required are to see one item. We were setting it to PreferredHeight
3095         even for values matching the height for a single item.
3096         Fixes #396297.
3097
3098 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
3099
3100         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
3101
3102 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
3103
3104         * DataGridViewCell.cs: Use property instead of field.
3105
3106 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3107
3108         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
3109         null checks.
3110
3111 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3112
3113         * Theme.cs: Added #region around the managed window code. Made the managed
3114         window methods abstract.
3115         * ThemeWin32Classic.cs: Added #region around the managed window code.
3116
3117 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3118
3119         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
3120         if it has borders.
3121         * ThemeWin32Classic.cs: Removed HasBorders checks in
3122         DrawManagedWindowDecorations.
3123
3124 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
3125
3126         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3127         Extracted ManagedWindowGetTitleBarIconArea.
3128
3129 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
3130
3131         * DataGridViewCellStyle.cs: Don't clone the font.
3132
3133 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
3134
3135         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
3136
3137 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3138
3139         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
3140         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
3141         in 64 bit machines.
3142
3143 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
3144
3145         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
3146         Use Format/FormatProvider before trying converters.
3147         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
3148         are 'set'.  Change constructor to not use ApplyStyle since it wants
3149         everything applied.  Clone the Font.
3150         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
3151         ApplyStyle the rest.
3152
3153 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3154
3155         * ListView.cs: We need to calculate the scrollbars even if the handle
3156         hasn't been created - this is needed when methods using scrollbars
3157         info, such EnsureVisible, are called before control has been created.
3158         Fixes #397272.
3159
3160 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
3161
3162         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
3163         only if the elements are defined. 
3164
3165 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3166
3167         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
3168         section. Also, when setting bounds, snap height as well as save the
3169         requested height if Dock has any value affecting the height: Left,
3170         Right and Bottom - important if using IntegralHeight as true.
3171
3172 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3173
3174         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
3175         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
3176         instead of doing that only in our SetBoundsCore override, since the 
3177         bounds cached can be the same as saved one and we could not get the
3178         new height applied.
3179         Fixes #396297.
3180
3181 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3182
3183         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
3184         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
3185         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
3186         ToolWindowCaptionButtonSize.
3187         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
3188
3189 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3190
3191         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
3192         hard coded values.
3193         * Theme.cs: Made DoubleClickTime plaform dependent.
3194
3195 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3196
3197         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
3198         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3199         ToolWindowCaptionHeight.
3200
3201 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3202
3203         * InternalWindowManager.cs: The adjustment to ensure positive client area
3204         sizes is now platform dependent (disabled on Windows).
3205         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3206         RequiresPositiveClientAreaSize.
3207
3208 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3209
3210         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
3211
3212 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3213
3214         * InternalWindowManager.cs: Changed IconicSize to use
3215         SystemInformation.MinimizedWindowSize.
3216         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
3217         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
3218
3219 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3220
3221         * ComboBox.cs: If the combobox is anchored both on top and bottom,
3222         adjust height if IntegralHeight is true when calling SetBoundsCore (as
3223         likely the height was modified even if Height wasn't specified in
3224         BoundsSpecified parameter).
3225         Fixes part of #396297.
3226
3227 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
3228
3229         * InternalWindowsManager.cs: Changed minimum window size while resizing to
3230         SystemInformation.MinWindowTrackSize.
3231         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
3232         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
3233
3234 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
3235
3236         * MenuItem.cs: Fixed Dispose.
3237
3238 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
3239
3240         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
3241         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
3242         EnteredHeaderCell, PressedHeaderCell: Added.
3243         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
3244         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
3245         theme a chance to override default painting.
3246         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
3247         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
3248         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
3249         ListView and DataGridView header rendering.
3250         
3251 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
3252
3253         * RichTextBox.cs: GetPositionFromCharIndex should return the 
3254         visual position of the character relative to the viewport.
3255         [Fixes part of bug #396664]
3256
3257 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
3258
3259         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
3260         and not just for the existance of an UITypeEditor. In some cases 
3261         there is an editor associated just to do PaintValue, but which 
3262         doesn't actually support editing.
3263         [Fixes bug #396632]
3264
3265 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3266
3267         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
3268         if needed, instead of 0 - this should help us in the corner case where
3269         we have more than one item but we are only partially showing 1 item.
3270         Fixes part of #374713.
3271
3272 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3273
3274         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
3275         control, return immediately if the any parent control's handle hasn't
3276         been created or isn't visible, as well as avoiding creating the parent
3277         Form if the handle hasn't been previously created.
3278         Fixes tests.
3279
3280 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
3281
3282         * TableLayoutPanel.cs: Use border sizes when calculating the
3283         panel's preferred size.  [Fixes part of bug #396433]
3284
3285 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
3286
3287         * SplitContainer.cs:
3288          - Fix SplitterDistance to update only if needed. 
3289          - Make it force min and max validation.
3290          - Handle properly mouse moves outside the resizeable area.
3291          [Fixes bug #396232]
3292
3293 2008-06-02  Andreia Gaita <avidigal@novell.com> 
3294
3295         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
3296           (which also suppresses all popup dialogs). Throw NotSupported
3297           exceptions for activex getters/setters.
3298         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
3299           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
3300           StatusText, Version, GoSearch
3301         * HtmlDocument.cs: Add DocType support
3302
3303 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
3304
3305         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
3306         [Fixes bug 396124]
3307
3308 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
3309
3310         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
3311
3312 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
3313
3314         * TableLayoutPanel.cs: When calculating preferred size, use the
3315         actual number of columns and rows, not what the user set them to.
3316         [Fixes bug #396141]
3317
3318 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
3319
3320         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
3321         394311.
3322
3323 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3324
3325         * XplatUIX11.cs: When detecting areas obscured in a control by other
3326         toplevel windows while scrolling, return if the control hasn't a 
3327         container form.
3328         Fixes some tests.
3329
3330 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3331
3332         * XplatUIX11.cs: Properly detect the visible area of a control being
3333         scrolled (obscured by other winforms controls and any X toplevel
3334         windows), to mark as invalid the requested area to be scrolled that
3335         isn't visible and thus can't be copied.
3336         Fixes #324513.
3337
3338 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3339
3340         * ListBox.cs: Compute the precise amount to vertically scroll when
3341         using DrawMode.OwnerDrawVariable.
3342         Patch by jkeymer (j.keymer@gmx.net).
3343
3344 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3345
3346         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
3347         to avoid setting an invalid value for the verticall scrollbar 
3348         when navigating items. And, duh, also remove my silly debug messages
3349         from previous commits.
3350         Fixes #374713.
3351
3352 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
3353
3354         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
3355         make it MS compatible.
3356
3357 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
3358
3359         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
3360          - Allow the editing of entries even if their parent is read-only.
3361          - Do not render expandable properties read-only.
3362          - Refactor expansion checks form PropertyGrid into PropertyGrid.
3363
3364 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
3365
3366         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3367         support for the hover style.
3368
3369 2008-05-29  Andreia Gaita <avidigal@novell.com> 
3370
3371         * ContainerControl.cs: Check for null dead-end when traversing the tree
3372           of parent controls.
3373         
3374           [Fixes #394332, patch by Ernesto Carrea]
3375
3376 2008-05-29  Geoff Norton  <gnorton@novell.com>
3377
3378         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
3379         constant that it is.  Fixes #393981
3380
3381 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
3382
3383         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
3384         that the user probably doesn't want to set this.
3385
3386 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
3387
3388         * ThemeWin32Classic.cs: Don't let the text size be bigger than
3389         the control size for CheckBox/RadioBox.
3390         [Fixes part of bug #394645]
3391
3392 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
3393
3394         * PropertyGrid.cs: Update the state of the sorting buttons in 
3395         the toolbar if PropertySort is set programatically.
3396
3397 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
3398
3399         * GridItemCollection.cs: Add multiple items with conflicting names 
3400         support and also preserve name ordering.
3401         [Fixes #395345]
3402
3403 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
3404
3405         * GridItemCollection.cs: Revert my multiple items with same 
3406         name patch.
3407
3408 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3409
3410         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
3411         or middle ones.
3412         Fixes part of #393908.
3413
3414 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
3415
3416         * ToolStripDrowDown.cs: When using the Show () methods that have a
3417         Control parameter, set the menu owner to that Control.
3418         [Fixes bug #394345]
3419
3420 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
3421
3422         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
3423         [Fixes bug #362756]
3424
3425 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
3426
3427         * GridItemCollection.cs: Refactor to support multiple items with the 
3428         same name.
3429         [Fixes bug #394314]
3430
3431 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
3432
3433         * Control.cs: The 2.0 check for illegal cross thread calls in 
3434         Control.Handle were throwing an exception when we were getting
3435         the Handle in order to invoke correctly.  Created a private
3436         version that does not contain this check.
3437         [Fixes bug #394531]
3438
3439 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
3440
3441         * PropertyGrid.cs: Respect DefaultTabType.
3442
3443 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
3444
3445         * ListView.cs: SPACE selects an item.
3446         [Fixes bug #393023]
3447
3448 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
3449
3450         * ListView.cs: Reset the search string whenever the items are 
3451         modified.
3452         [Fixes bug #393020]
3453
3454 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3455
3456         * ListControl.cs: For the first added item PositionChanged is fired
3457         _before_ ItemChanged, which leave us in a temporary invalid state - so
3458         we need to set the selected index from ItemChanged handler *if* we
3459         know that the first item has just been added *and* the items have been
3460         actually added to the ListControl.
3461         Fixes #369048.
3462
3463 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3464
3465         * TabControl.cs: Only clicks with the left button should be
3466         handled.
3467         Fixes #393908.
3468
3469 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3470
3471         * ComboBox.cs: 
3472         * FIleDialog.cs:
3473         * TextBox.cs: Expose an internal method in TextBox to restore the
3474         original context menu, and call it from ComboBox to re-use it in the
3475         combobox containing the file name in FileDialog.cs.
3476         Fixes part of #393775.
3477
3478 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
3479
3480         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
3481         style.
3482
3483 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
3484
3485         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
3486         down button style.
3487
3488 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3489
3490         * ComboBox.cs: Minor correction to previous patch: PageDown should
3491         also *try* to move by one item if the computed offset is negative,
3492         just like the PageUp case.
3493
3494 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3495
3496         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
3497         should be done for at least 1 item, and not stay at the same item.
3498         Fixes part of #374713.
3499
3500 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
3501
3502         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
3503         directories.  [Fixes bug #393931]
3504
3505 2008-05-22  Andreia Gaita <avidigal@novell.com> 
3506
3507         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
3508           Don't fire events until the initial about:blank page has finished
3509           loading. Clean up events.
3510
3511 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
3512
3513         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
3514           FocusIn() too. This should fix the issue on switching
3515           scim keyboards.
3516
3517 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
3518
3519         * X11Keyboard.cs : set XIM font size to somewhat reasonable
3520           number (ideally the input textbox size, but that could be
3521           too messy).
3522
3523 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
3524
3525         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
3526         the ToolStripItem's TextChanged.  [Fixes bug #393597]
3527
3528 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3529
3530         * TabControl.cs: When invalidating in SelectedIndex and we need to
3531         inflate to take into account the border of the tabs, make sure that
3532         the invalidated rect doesn't overflow the control bounds, since that
3533         would avoid updating at all.
3534
3535 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3536
3537         * TabControl.cs: Don't substract scroller width from the row width,
3538         since we need to take into account the total width of the control when
3539         calculating the position of the tabs. This avoids showing scroller
3540         when it is actually not needed.
3541         Fixes part of #322325.
3542
3543 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3544
3545         * ThemeVisualStyles.cs: Added support for TextBoxBase.
3546
3547 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3548
3549         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3550         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
3551
3552 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
3553
3554         * DataGridView.cs: Only paint the top left header cell if there
3555         are columns.
3556
3557 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
3558
3559         * DataGridView.cs: When binding to a BindingSource, get the underlying
3560         list to bind to.  [Fixes bug #345483]
3561
3562 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
3563
3564         * DataGridView.cs: Do not bind to collection properties.
3565         [Fixes bug #337470]
3566
3567 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3568
3569         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
3570
3571 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3572
3573         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
3574         thumb style.
3575
3576 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3577
3578         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
3579
3580 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3581
3582         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
3583         background.
3584
3585 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3586
3587         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
3588
3589 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3590
3591         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
3592         checked styles.
3593
3594 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3595
3596         * TabControl.cs: Extended to handle the hot style.
3597
3598 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3599
3600         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
3601         Extended UpDownBase code to handle hot and disabled styles.
3602
3603 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
3604
3605         * DataGridView.cs: Handle databinding to generic list type things.
3606         [Fixes bug #325239]
3607
3608 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
3609
3610         * DataGridViewCellCollection.cs: Add a method to find the cell
3611         with the given DataPropertyName.
3612         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
3613         * DataGridViewColumnCollection.cs: Add a method to clear all
3614         autogenerated columns.
3615         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
3616         columns.
3617         [Fixes bug #348082]
3618
3619 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
3620
3621         * DataGridView.cs: Don't try to update the RowTemplate with
3622         a null CellTemplate.
3623
3624 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
3625
3626         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
3627         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
3628         * DataGridView.cs: Lots of fixes/enhancements to databinding to
3629         a DataSet.
3630
3631 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
3632
3633         * Control.cs: Remove invalidating implicit child controls when
3634         control is invalidated.  It was causing too many redraws on
3635         controls with implicit scrollbars.
3636         * ListView.cs: Listen to the Invalidated event and invalidate
3637         child controls.
3638
3639 2008-05-20  Andreia Gaita <avidigal@novell.com> 
3640
3641         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
3642         * HtmlDocument.cs: Check for nulls
3643
3644 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3645
3646         * Control.cs: In ControlCollection.RemoveInternal, remove the
3647         internal control before calling PerformLayout and OnControlRemoved,
3648         which was leaving us in an invalid state and causing a X error (bad
3649         match). Observe that Remove () call has the same order.
3650         Fixes an X error changing ComboBoxStyle.DropDownStyle.
3651
3652 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3653
3654         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
3655         being fired if ControlStyles.UserPaint style is activated.
3656         Fixes #371905.
3657
3658 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
3659
3660         * GridEntry.cs: Don't be so strict when setting the value - 
3661         do not check if what we set is what we get.
3662         [Fixes bug #389245]
3663
3664 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
3665
3666         * XplatUIX11.cs: If there are no timers timeout should be 0
3667         [Fixes bug #363522]
3668
3669 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
3670
3671         * Control.cs: As a followup to invalidating implicit children when
3672         a control is invalidated, only invalidate them if they are in the
3673         clip rectangle.
3674
3675 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3676
3677         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
3678
3679 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3680
3681         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
3682
3683 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3684
3685         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
3686         * XplatUIWin32.cs: Made Win32DeleteObject public.
3687
3688 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
3689
3690         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
3691         PropertyDescriptor.ShouldSerializeValue.
3692         [Fixes bug #391924]
3693
3694 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3695
3696         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
3697         in the classic theme.
3698
3699 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3700
3701         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
3702         ThumbPressed.
3703         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
3704         ScrollBarHasPressedThumbStyle.
3705
3706 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3707
3708         * TextRenderer.cs: Included some methods in the 1.1 profile.
3709
3710 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
3711
3712         * Control.cs: When we make a control visible, it may have been
3713         previously visible and while it wasn't visible, the z-order of
3714         things may have been shuffled, so the control needs to have its
3715         z-order updated just in case.  [Fixes bug #391518]
3716
3717 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3718
3719         * ThemeVisualStyles.cs: Added support for GroupBox.
3720
3721 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3722
3723         * GroupBoxRenderer.cs: Included in the 1.1 profile.
3724
3725 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
3726
3727         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
3728           bug #389996; XSelectInput() behaved as mouse handler robber,
3729           so remove extra call to it.
3730
3731 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
3732
3733         * Control.cs: Simplify ControlCollection.Contains method.
3734
3735 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
3736
3737         * DataGridViewRow.cs: Implement GetPreferredSize.
3738
3739 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
3740
3741         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
3742
3743 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
3744
3745         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
3746         painting and edit control fixes.
3747
3748 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
3749
3750         * DataGridView.cs, DataGridViewCell.cs: Work around some external
3751         checks to make sure we are in an actual row/col for top left header cell.
3752         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
3753
3754 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
3755
3756         * Control.cs: Use long instead of int when handling WParam from
3757         mousewheel scrolling.  Int was overflowing on Win64.
3758
3759 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
3760
3761         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
3762         flow panel without scrolling first, and then calculate the 
3763         scrolling based on the new layout.  [Fixes bug #390149]
3764
3765 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
3766
3767         * ListBox.cs: Invalidate after scrolling up when selected index
3768         changes.  [Fixes bug #390151]
3769
3770 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3771
3772         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
3773         set, default height to 150. I tried first with DefaultSize, but this
3774         is not generating a SetBoundsCore call before handle creation time, so
3775         we can take it into account. This is just what .net does.
3776
3777 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
3778
3779         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
3780         as it broke some stuff.  Calberto is filing a bug for eno to
3781         work with.
3782
3783 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3784
3785         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
3786         to 0 is the current value is -1, and if style is not Simple, just
3787         return, like .net does.
3788         Fixes part of #374713.
3789
3790 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
3791
3792         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
3793         progress bar stuffs, use doubles instead of ints to prevent
3794         overflow.  [Fixes bug #389798]
3795
3796 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
3797
3798         * XplatUIX11.cs, X11Keyboard.cs :
3799           Significant refactoring on XIM support. Now IM engine UI
3800           should show up, at mostly-correct preedit position.
3801           - Eliminated use of FocusWindow, as it is never mapped
3802             and hence blocks correct preedit position. XIC is now
3803             created per window, and it must be destroyed too when
3804             the window is destroyed.
3805           - WM_QUIT messages should not be filtered even when hwnd
3806             is zombie. Filtering it could cause endless loop.
3807           - Preedit position must move only when the window is alive.
3808           - Make it IDisposable and make sure to release XIM/XICs.
3809
3810 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
3811
3812         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
3813           XplatUIX11.cs, XplatUIWin32.cs :
3814           fix for bug #325033 and #387693;
3815           - WM_QUIT should not be sent when no running application
3816             exists.
3817           - SetTimer/KillTimer (especially on win32) should be
3818             invoked for the window that the timer is/will_be attached.
3819           - There could be unattached timers to a window when it's
3820             started. For those timers, hold pending timers and when
3821             a window is mapped, attach them to it.
3822           - WaitForHwndMessage() could run into loop when
3823             WM_SHOWWINDOW is handled before this method is called.
3824             So, strictly check wm_showwindow state.
3825           - Tick handler should not be invoked while one Tick handler
3826             call is still running (introduced Busy state).
3827
3828 2008-05-13  Andreia Gaita <avidigal@novell.com> 
3829
3830         * WebBrowserBase.cs: Override Internal alternative methods for
3831           SetBoundsCore and OnResize instead of the protected ones.
3832         * Control.cs: Move SetBoundsCore and OnResize implementations to
3833           SetBoundsCoreInternal and OnResizeInternal, so they can be
3834           overriden internally (WebBrowserBase needs to catch them but can't
3835           override the protected methods without api compat problems)
3836
3837 2008-05-13  Andreia Gaita <avidigal@novell.com> 
3838
3839         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
3840
3841 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3842
3843         * Binding.cs:
3844         * ListView.cs: Remove debug messages.
3845
3846 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3847
3848         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
3849         area is empty. Also calculate scrollbars in Simple mode based in area
3850         height and total number of items, not in MaxDropDownItems.
3851         Fixes part of #371991.
3852
3853 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3854
3855         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
3856
3857 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3858
3859         * BindingSource.cs: GetListSortDescription is not public.
3860
3861 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3862
3863         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
3864
3865 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3866
3867         * HtmlElement.cs: Fix parameter names to match MS.
3868         * HtmlWindowCollection.cs: Should not be sealed.
3869
3870 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3871
3872         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
3873         button, because the thumb button will not get drawn if the scrollbar
3874         is disabled.  [Fixes bug #389262]
3875
3876 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3877
3878         * ListBox.cs: Handle End key for multi-column listboxen.
3879         [Fixes bug #389266]
3880
3881 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3882
3883         * ListBox.cs: Fix algorithm to determine which column our item is in.
3884         [Fixes bug #389265]
3885
3886 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3887
3888         * ListBox.cs: Invalidate when the listbox is resized.
3889         [Fixes bug #389256]
3890
3891 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3892
3893         * ListBox.cs: There is always at least one row in the ListBox (if
3894         we are doing these calculations.)  [Fixes bug #389253]
3895
3896 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3897
3898         * ListBox.cs: There is always at least one column in the ListBox.
3899         [Fixes bug #389250]
3900
3901 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3902
3903         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
3904         ensure in Simple mode that the height is exactly the requested one.
3905         Also add the ComboBoxListControl to the controls collection in Simple
3906         mode even if handle hasn't been created.
3907         Fixes part of #371991.
3908
3909 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3910
3911         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
3912         our ComboBox owner instead of giving it back to the previous control (
3913         as done in other controls). Also remove the empty override of Select
3914         method, since we want to be selected *and* give focus to our owner.
3915         This should let the user do keys-navigation in Simple mode. 
3916
3917 2008-05-10  Geoff Norton  <gnorton@novell.com>
3918
3919         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
3920         problems with rapid scrolling of treeviews. Fixes #381084
3921
3922 2008-05-10  Geoff Norton  <gnorton@novell.com>
3923
3924         * XplatUICarbon.cs: Deactivate the active window before
3925         activating the desired window.  Completes fixing #386504
3926
3927 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3928
3929         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
3930         SmallChange to the item size width plus the padding, to match .net.
3931
3932 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3933
3934         * FileDialog.cs: Apply the custom filter typed by the user in the file
3935         name combobox as much as possible while navigating in the file dialog.
3936         Fixes #385261.
3937
3938 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3939
3940         * Binding.cs: Actually use NullValue if the retrieved value of
3941         data source is null or DBNull. Makes a test pass.
3942
3943 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
3944
3945         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
3946         * MimeIcon.cs: Provide a way to get icons from resources.
3947
3948 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3949
3950         * Binding.cs: When the value retrieved from the control to be assigned
3951         to the data source is null, actually use the 2.0 DataSourceNullValue
3952         value. Make pass a data binding test.
3953
3954 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
3955
3956         * Control.cs: We need to invalidate implicit children even when
3957         invalidate is called with invalidatechildren = false.  (Implicit
3958         children are really part of the parent.)
3959         * ListView.cs: Double-buffer internal child controls for less
3960         flicker.
3961         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
3962         owner ListView subitems for greatly increased performance.
3963         [Fixes bug #388477]
3964
3965 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
3966
3967         * FileDialog.cs: When the user types a wildcard character in the
3968         filename combobox, update the contents of the folder using the text as
3969         a filter.
3970         Fixes part of #385261.
3971
3972 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
3973
3974         * ListBox.cs: Various fixes for MultiColumn listboxen.
3975         [Fixes bug #388114]
3976
3977 2008-05-08  Andreia Gaita <avidigal@novell.com> 
3978
3979         * HtmlElement.cs: Implement Style property
3980
3981 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
3982
3983         * ListBox.cs: Respect checkboxes when measuring item size.
3984         * ThemeWin32Classis.cs: When drawing list items, don't draw
3985         text outside of the item's bounds to prevent overlapping.
3986         (.Net actually overlaps, but that's just silly.)
3987         [Fixes bug #388117]
3988
3989 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
3990
3991         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
3992         Gert Driesen. Fixes bug #324830. 
3993
3994 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
3995
3996         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
3997         method implemented.
3998
3999 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4000
4001         * BindingSource.cs: When calling IsSynchronized, return the value of
4002         the related IList list.
4003
4004 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4005
4006         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
4007         make a test pass.
4008
4009 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
4010
4011         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
4012         navigation to scroll the grid if the current cell is not visible.
4013
4014 2008-05-07  Andreia Gaita <avidigal@novell.com> 
4015
4016         * HtmlElement.cs: Implement TabIndex
4017
4018 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
4019
4020         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
4021         properties, even when there are no items.
4022         [Fixes bug #387611]
4023
4024 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
4025
4026         * NativeWindow.cs: Add support for multiple handles per window.
4027         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
4028         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
4029         directly - use FromHandle instead.
4030         [Fixes bug #374660]
4031
4032 2008-05-07  Andreia Gaita <avidigal@novell.com> 
4033
4034         * HtmlElement.cs: Implement InnerHTML setter
4035
4036 2008-05-07  Andreia Gaita <avidigal@novell.com> 
4037
4038         * HtmlDocument.cs: Implement Focused
4039
4040 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4041
4042         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
4043         methods, as well as add messages to the exceptions.
4044
4045 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4046
4047         * BindingSource.cs: Setting DataSource should only reset DataMember if
4048         the previous value was null (make pass a not working test).
4049
4050 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4051
4052         * BindingSource.cs: When EndInit call is postponed and is called until
4053         DataSource.EndInit is called, remove the handler for data source.
4054
4055 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4056
4057         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
4058
4059 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4060
4061         * ToolStripManager.cs: Store references to toolstrips as
4062         weak references so they do not prevent forms from getting collected.
4063         [Fixes bug #386483]
4064
4065 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4066
4067         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
4068         on .Net.  So do the same thing in WndProc.
4069
4070 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4071
4072         * TrackBar.cs: Commit patch from Andy Hume that corrects
4073         the clickable areas to better match .Net.
4074         [Fixes bug #387074]
4075
4076 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4077
4078         * TrackBar.cs: Commit patch from Andy Hume that adds the
4079         ResizeRedraw control flag so the track bar repaints itself
4080         when it is resized.  [Fixes bug #387072]
4081
4082 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
4083
4084         * TrackBar.cs: Commit patch from Andy Hume that adds better
4085         support for keyboard navigation when the TrackBar is vertical.
4086         [Fixes bug #387071]
4087
4088 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4089
4090         * BindingSource.cs: Implement ISupportInitializeNotification support.
4091
4092 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
4093
4094         * ThemeVisualStyles.cs: Added support for ToolBar.
4095
4096 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
4097
4098         * ToolBar.cs: Made the Vertical property internal.
4099
4100 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4101
4102         * ThemeVisualStyles.cs: Added support for TrackBar.
4103
4104 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4105
4106         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
4107         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
4108         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
4109         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
4110         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
4111         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
4112
4113 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4114
4115         * ThemeVisualStyles.cs: Added support for UpDownBase.
4116
4117 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
4118
4119         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
4120         Extracted Theme.UpDownBaseDrawButton.
4121
4122 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
4123
4124         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
4125         removed from the static toolstrips collection in ToolStripManager
4126         when they are disposed.  Provides a workaround for bug #386483.
4127
4128 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
4129
4130         * GridEntry.cs: Read-only properties with Editor with 
4131         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
4132         [Fixes bug #384184]
4133
4134 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
4135
4136         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
4137         the menu key and there are no items on the menu.
4138         [Fixes bug #386644]
4139
4140 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
4141
4142         * Control.cs: Avoid calling ToString on a string.
4143         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
4144         * GroupBox.cs: In FlatStyle property throw, not just create, the 
4145         exception. Avoid calling ToString on a string.
4146         * ProgressBar.cs: Avoid calling ToString on a string. 
4147         * ScrollBar.cs: Avoid calling ToString on a string. 
4148         [All issues were found using Gendarme]
4149
4150 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
4151
4152         * NotifyIcon.cs: Prevent click events to be trigger after double click 
4153         events. Fixes remaining issues of bug #324832.
4154
4155 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
4156
4157         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
4158         to mimic win32 behavior. Partially fixes bug #324832.
4159
4160 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4161
4162         * BindingSource.cs: Implement Find methods.
4163
4164 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4165
4166         * BindingSource.cs: Implement Sort, ApplySort overloads, and
4167         RemoveSort methods.
4168
4169 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4170
4171         * ListBindingHelper.cs: When calling GetListItemProperties and the
4172         passed object is ITypedList, return the result of
4173         ITypedList.GetItemProperties instead.
4174
4175 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
4176
4177         * LinkLabel.cs: Set default value of name on constructor of Link class
4178         only for 2.0 profile.
4179
4180 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
4181
4182         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
4183         Fixes remaining issues of bug #346154.
4184
4185 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
4186
4187         * LinkLabel.cs: Set a default value for name on internal contructor of
4188         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
4189
4190 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
4191
4192         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
4193         and refer all instances to owner.links. Partially fixes #346154.
4194
4195 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4196
4197         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
4198         length equal zero. Also called CreateLinkPieces in constructor. It fixes
4199         the LinkLabel test 'TestLinkArea'.
4200
4201 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4202
4203         * Form.cs: Remove menu before close form to prevent form to be not gaced.
4204         [Fixes #386460]
4205
4206 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4207
4208         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
4209         [Fixes #386463]
4210
4211 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4212
4213         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
4214         [Fixed bug #357004]
4215
4216 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4217
4218         * MenuAPI.cs: Remove unused ProcessCmdKey method.
4219
4220 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4221
4222         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
4223         [Fixes bug #375398]
4224
4225 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4226
4227         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
4228         of bug #367492.
4229
4230 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4231
4232         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
4233         sometimes we open a conext menu on mouse down of some controls and the mouse
4234         up is dispatched to menu and dont need to. It fix remaining issues of 
4235         #363711 and other problems related to menu mouse click events.
4236
4237 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
4238
4239         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
4240         some var names to better fit changes, now we have month_menu and today_menu
4241         vars. Fixes bug #363711.
4242
4243 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
4244
4245         * MonthCalendar.cs: Handle every right mouse click to open context menu,
4246         right now the default month menu but it will be change to have "Go to today"
4247         menu.
4248
4249 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4250
4251         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
4252
4253 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
4254
4255         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
4256
4257 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4258
4259         * ThemeVisualStyles.cs: Added support for TreeView.
4260
4261 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4262
4263         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
4264         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
4265
4266 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4267
4268         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
4269
4270 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4271
4272         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
4273         Implement 2.0 SP1 stuffs.
4274
4275 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4276
4277         * FileDialog.cs: Implement 2.0 SP1 stuffs.
4278
4279 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4280
4281         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
4282         Implement CanEnableIme property. (2.0 SP1)
4283
4284 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4285
4286         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
4287         from the 2.0 API.
4288
4289 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4290
4291         * Control.cs: Provide an internal way for a control to override
4292         the setting of Height.
4293         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
4294         set height using new method.
4295
4296 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4297
4298         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
4299
4300 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4301
4302         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4303         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
4304
4305 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4306
4307         * ThemeVisualStyles.cs: Added support for StatusBar.
4308
4309 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4310
4311         * DataObject.cs: Add the other IDataObject interface.
4312
4313 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4314
4315         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
4316         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
4317
4318 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4319
4320         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
4321         * ListView.cs: Hide non-public API.
4322         * MaskedTextBox.cs: Remove extra attribute.
4323
4324 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4325
4326         * DataGridViewImageCell.cs: Use formatted value instead of value
4327         to calculate preferred size.
4328
4329 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
4330
4331         * ListBox.cs: Move some initialization around so that selected_indices
4332         is not accessed before it is created.
4333
4334 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
4335
4336         * InputLanguageCollection.cs: Implement the collection better.
4337         [Fixes bug #385506]
4338
4339 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
4340
4341         * ToolStripDropDownItem.cs: Get the correct event object for
4342         DropDownItemClicked.
4343         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
4344         [Fixes bug #385475]
4345
4346 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
4347
4348         * DataGridViewRowCollection.cs: We don't currently support shared 
4349         rows.  Should fix test failures caused by previous commit.
4350
4351 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
4352
4353         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
4354         datagridview gets set.  Only paint cells in visible columns.
4355         * DataGridViewCell.cs: Draw border after cell content.
4356         * DataGridView.cs: Invalidate after setting some properties.  Only
4357         use visible columns.  Fit hit test bug with areas in the col/row header
4358         area but not in a row or col.  Implement UpdateCell/Row methods.
4359
4360 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
4361
4362         * DataGridViewElement.cs: Don't throw NIEX.
4363         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
4364         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
4365         * DataGridViewCheckBoxColumn.cs: Implement ToString.
4366         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
4367         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
4368         if the user filled in the formatting Value, use it.
4369
4370 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
4371
4372         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
4373         to a string.
4374
4375 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4376
4377         * BindingSource.cs: Some corrections to Filter property, as well as
4378         setting it for our list when resetting it.
4379
4380 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
4381
4382         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
4383         than the maximum.  Fixes reopened bug #384182.
4384
4385 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4386
4387         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
4388         Fixes remaining issues of #367490.
4389
4390 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4391
4392         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
4393         SystemInformation.WorkingArea to get max_screen value.
4394
4395 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4396
4397         * BindingSource.cs: Implement Filter and RemoveFilter.
4398
4399 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4400
4401         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
4402
4403 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4404
4405         * X11Dnd.cs: When trying to convert data and we know we started the
4406         dnd loop, don't try to use the cached data if the loop is not running,
4407         which means that the data has been resetted.
4408         Fixes #378191.
4409
4410 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4411
4412         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
4413         win32 behavior.
4414
4415 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4416
4417         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
4418         it to drawn off screen edge. Fixes bug #367490.
4419
4420 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4421
4422         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
4423         menu position to have only one assignment of Location var.
4424
4425 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4426
4427         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
4428         for this patch. Fixes bug #384115.
4429
4430 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
4431
4432         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
4433         the same.  If LargeChange is zero, set a minimum size for the scroll
4434         thumb grip.  [Fixes bug #384182]
4435
4436 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
4437
4438         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
4439         [Fixes bug #384181]
4440
4441 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
4442
4443         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
4444
4445 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
4446
4447         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
4448         patch from Ernesto).
4449
4450 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
4451
4452         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
4453
4454 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
4455
4456         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
4457
4458 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
4459
4460         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
4461
4462 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
4463
4464         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
4465
4466 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
4467
4468         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
4469
4470 2008-04-27  Andreia Gaita <avidigal@novell.com> 
4471
4472         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
4473           supposed to return a reference to an mshtml interface, which we
4474           don't support).
4475         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
4476           reference to an mshtml interface, which we don't support). Code
4477           formatting cleanup.
4478         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
4479           DomDocument getter (it's supposed to return a reference to an
4480           mshtml interface, which we don't support). Code formatting cleanup.
4481
4482 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4483
4484         * ListView.cs: Ouch, forgot to commit.
4485
4486 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4487
4488         * ListView.cs: 
4489         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
4490
4491 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4492
4493         * ListView.cs: When calculating box selection for virtual mode, don't
4494         look for intersection with item's text, but item bounds, since that
4495         would mean read ListViewItem's text for _every_ item, and that's
4496         something we just can't do in virtual mode (items are only requested
4497         when drawn).
4498
4499 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
4500
4501         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
4502         partial support for managed windows (based on the patch from Ernesto).
4503
4504 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4505
4506         * ListView.cs: When doing a key search use FindItemWithText method
4507         instead of doing the search by ourselves, this way we avoid
4508         duplicating the code and also we handle the special case for virtual
4509         mode. To achieve that make our private overload of FindItemWithText
4510         internal and also have a 'roundtrip' parameter.
4511
4512 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4513
4514         * ListView.cs: When doing the layout don't request the
4515         ListViewItem instance if we are in virtual mode (since we can't request it
4516         until the item is actully drawn).
4517
4518 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4519
4520         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
4521         from Ernesto).
4522
4523 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4524
4525         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
4526         the patch from Ernesto).
4527
4528 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4529
4530         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
4531         * ThemeVisualStyles.cs: Added.
4532
4533 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4534
4535         * IDeviceContext.cs: Added a missing using.
4536
4537 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4538
4539         * ButtonBase.cs: Made IsDefault protected internal.
4540         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
4541
4542 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4543
4544         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
4545         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
4546         RadioButtonRenderer.cs: Included in the 1.1 profile.
4547         * IDeviceContext.cs: Added.
4548         * TextRenderer.cs: Included a member in the 1.1 profile.
4549
4550 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4551
4552         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
4553
4554 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
4555
4556         * ErrorProvider.cs: Make the error icons come after the control
4557         they refer to.  It isn't the way the MS does it, but its better
4558         than what we were doing.  See bug #368587.
4559
4560 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
4561
4562         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
4563         from Eric Albright that lazy loads the input language as ensures
4564         everything gets properly initialized.  Fixes bug #373871.
4565
4566 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
4567
4568         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
4569         implicit mnemonics.  [Fixes bug #383000]
4570
4571 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4572
4573         * X11Dnd.cs: When canceling the operation, automatically restore the
4574         default cursor - normally the default cursor is restored when the
4575         mouse buttons are released, but we should be able to restore it even
4576         if the buttons are still pressed (for example, when pressing ESC to
4577         cancel).
4578         Fixes #381894.
4579
4580 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4581
4582         * X11Dnd.cs: When starting a new drad and drop operation, set control
4583         field to null, just as the other fields, to avoid calling any
4584         operation on a previous control. Also, when calling DndLeave on a
4585         control, set it to null, thus we don't fire that event multiple times
4586         for that control.
4587         Fixes #209264.
4588
4589 2008-04-23  Geoff Norton  <gnorton@novell.com>
4590
4591         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
4592         the whole_window object.  Fixes #377084.
4593
4594 2008-04-23  Andreia Gaita <avidigal@novell.com> 
4595
4596         * HtmlElement.cs: Implement RaiseEvent (event injection into the
4597           embedded browser)
4598
4599 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
4600
4601         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
4602
4603 2008-04-23  Andreia Gaita <avidigal@novell.com> 
4604
4605         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
4606           invocation
4607
4608 2008-04-23  Andreia Gaita <avidigal@novell.com> 
4609
4610         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
4611           attaching/detaching
4612
4613 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4614
4615         * X11Dnd.cs: When the drop was cancelled, or could just not be
4616         performed, return DragDropEffect.None always (match .net).
4617
4618 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
4619
4620         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
4621
4622 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
4623
4624         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
4625
4626 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
4627
4628         * DataGridView.cs: Add support for error icon tool tips.
4629         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
4630         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
4631
4632 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
4633
4634         * X11Structs.cs: Add mouse button masks enum.
4635         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
4636         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
4637         form resize/move operation instead of for each step of it.
4638         [Fixes bug #346529 for the x11 backend]
4639
4640 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
4641
4642         * DataGridView*: Implement support for drawing error icons.
4643
4644 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
4645
4646         * TreeView.cs: Make vbar and hbar internal.
4647         * TreeNode.cs: If collapsing the node removes one of the TreeView's
4648         scrollbars, invalidate the whole thing.
4649         [Fixes bug #382001]
4650
4651 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
4652
4653         * TreeView.cs: Calling Sort() sets Sorted = true.
4654         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
4655         if the nodes need to be sorted.
4656         [Fixes bug #382028]
4657
4658 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
4659
4660         * Form.cs: Fire SizeChanged for both when the form is minimized and 
4661         restored.
4662         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
4663         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
4664
4665 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
4666
4667         * ComboBox.cs: If the combobox is disabled, draw a disabled
4668         background before painting anything else.
4669         [Fixes bug #381729]
4670
4671 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4672
4673         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
4674         forget to send a Leave event to the target window - just as .net does
4675         when cancelling dnd operations.
4676
4677 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4678
4679         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
4680         soon as possible - this happens when we send the drop message to the
4681         target window. This way we avoid firing any DragOver _after_ drop finished.
4682         Fixes #378179.
4683
4684 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
4685
4686         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
4687         * Form.cs: Handle form minimization as a special state, where size doesn't 
4688         change, but we have to fire SizeChanged.
4689         [Fixes bug #325122 for the win32 and x11 backends]
4690
4691 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
4692
4693         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
4694         if the handle is disabled.
4695         [Fixes bug #371751]
4696
4697 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
4698
4699         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
4700         for forms with FormBorderStyle.None.
4701         [Fixes bug #349571]
4702
4703 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
4704
4705         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
4706         WM_EXITSIZEMOVE.
4707         [Fixes bug #346529 for the X11 backend]
4708
4709 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
4710
4711         * XplatUIX11.cs: 
4712           - Send a mouse Enter message after say dragging the mouse with a 
4713           button down and then release it in another client.
4714           - Reset the cursor to prevent X11 from remembering it and setting it 
4715           before the control gets WM_SETCURSOR.
4716           - Qeueue a mouse move after a mouse enter like win32.
4717           [Fixes bug #323234]
4718
4719 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
4720
4721         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
4722         It's sent when the form gets moved, resized, closed.
4723         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
4724         [Fixes bug #359193 for X11]
4725
4726 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
4727
4728         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
4729         the build.
4730
4731 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
4732
4733         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
4734         group. Fixes the 1.1 build.
4735
4736 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4737
4738         * ListView.cs: Use display indexes for selection in Details view, as
4739         well as do the proper layout based on display indexes for that view
4740         too.
4741
4742 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4743
4744         * ListView.cs: Focused item information is now stored as a display
4745         index, and display indexes are used all over the place for selection,
4746         instead of ListViewItem.Index values, which doesn't give us enough
4747         information to modify the selection in groups mode, and was broken.
4748
4749 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
4750
4751         * Control.cs: Do not fire MouseDown if validation of the control has 
4752         failed.
4753         * Form.cs: Validate the form before closing.
4754         [Fixes bugs #330501 and #353310]
4755
4756 2008-04-18  Andreia Gaita <avidigal@novell.com> 
4757
4758         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
4759           CreateWebBrowserSiteBase implementations
4760         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
4761           Style and TabIndex setters
4762
4763 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4764
4765         * ListViewGroup.cs: When returning the actual item count, return the
4766         proper count for default group.
4767         Fix the tests.
4768
4769 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4770
4771         * ListView.cs:
4772         * ListViewGroup.cs: When calculating groups layout, get the actual
4773         number of items per group, since groups added to the group BUT not
4774         added to the ListView are just ignored, and can cause some nasty
4775         exceptions because of the lack of synchronization. Also for
4776         ListViewGroup don't use lazy initialization for items, since we 
4777         the common scenario is to use it always - and it helps us to  refactor
4778         and clean the .ctor overloads.
4779
4780 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4781
4782         * ListView.cs: When adding an item to a ListViewItemCollection
4783         belonging to a group (ListViewGroup.Items), don't generate a redraw if
4784         the added item hasn't beeen previously added to the ListView instance
4785         refered by the group, since it will be ignored. This should avoid some 
4786         really nasty flickering.
4787
4788 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4789
4790         * ListView.cs: When accessing an item in a specific display
4791         position, use the helper method GetItemAtDisplayIndex, instead of
4792         direct access to the reordered_items_indices array. When doing layout
4793         for groups set the correct Items index for the display position (since
4794         in groups mode items don't have the same position as in Items
4795         collection).
4796         * ListViewGroup.cs: Add a field to store the starting item number,
4797         which is later used when calculating the layout.
4798
4799         Fixes #360805.
4800
4801 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
4802
4803         * Application.cs: Fixed ProductVersion to fallback to the assembly
4804         version. Fixes regression for bug #325413.
4805
4806 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4807
4808         * ListView.cs: New helper method to retrieve an item in a _specific
4809         display_ position (the items can be displayed in a different order
4810         than one of Items collection).
4811         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
4812         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
4813         specific display position (again remember that items can be sorted
4814         different than Items).
4815
4816 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
4817
4818         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
4819         list and update it when the collection changes.  We were recreating
4820         this several times per row paint and for every pixel the mouse moved
4821         across the grid.
4822         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
4823         changes.
4824
4825 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
4826
4827         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
4828         list to use generics.
4829         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
4830         and remove unneccessay casts.
4831
4832 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
4833
4834         * DataGridViewBand.cs: Add internal way to set displayed variable.
4835         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
4836         * DataGridView.cs: Make sure we always keep track of Displayed
4837         rows and columns, and only draw things that are displayed.
4838
4839 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
4840
4841         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
4842           whether the key events are filtered or not. Introduced
4843           PreFilter() process for this purpose. This fixes atokx3/iiimx
4844           shift state issue.
4845
4846 2008-04-16  Andreia Gaita <avidigal@novell.com> 
4847
4848         * HtmlHistory.cs: Implement Length property
4849
4850 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
4851
4852         * DataGridView.cs: Call EndEdit when a sort is performed so we take
4853         away the edit textbox.  Refactor to reuse column sort code.
4854
4855 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
4856
4857         * MenuAPI.cs: Remove the code that save and restore capture status of 
4858         grab_control, this fixes some Menu and Context menu bugs but maybe it can
4859         cause some others, I cant figure the possible problems of this patch but
4860         right now remove the code looks to be better than keep it. This patch fixes
4861         bugs #357638, #378721 and #379570.
4862
4863 2008-04-12  Andreia Gaita <avidigal@novell.com> 
4864
4865         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
4866         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
4867         add missing properties and event handlers.
4868         
4869 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
4870
4871         * ListBox.cs: Make sure the LargeChange we are setting is at least
4872         zero, to prevent an IOORE.  [Fixes bug #379531]
4873
4874 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
4875
4876         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
4877         in DropDownList mode, for each key-press select the next item 
4878         starting with that letter.
4879         For other modes, when no item selected, on arrow-up/-down and open 
4880         drop-down select the first item matching the text in the textbox.
4881
4882 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
4883
4884         * X11Keyboard.cs : Control.FromHandle() could return null
4885           in MoveCurrentCaretPos().
4886
4887 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4888
4889         * ListView.cs: When changing the size in VirtualMode, also Reset the
4890         selection.
4891         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
4892         changing selection info for VirtualMode.
4893         Fixes #372618.
4894
4895 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4896
4897         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
4898         view, don't use LineLimit for the first item - use NoWrap *always*
4899         instead, since ListView.LabelWrap is not used for this view.
4900         Fixes #378054.
4901
4902 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4903
4904         * Binding.cs: Call UpdateIsBinding when setting control - probably
4905         Binding is already usable and we don't need to wait to check the
4906         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
4907         Created, just like 2.0 does.
4908         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
4909
4910 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4911
4912         * Binding.cs: Just realized we don't need to have a handler for
4913         BindingContextChanged, since this info should be now consumed directly
4914         in the BindingManagerBase. And also, the manager.IsBindingSuspended
4915         state info is checked directly, instead of caching it.
4916
4917         * CurrencyManager.cs: IsSuspended should return always false if Count
4918         == 0.
4919
4920 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4921
4922         * Binding.cs: When calling PushData, return if manager.Count == 0,
4923         since we just don't have data to be read. Also, when setting the
4924         Control for binding, hook up some events to refresh the IsBinding
4925         state when BindingContext change or control gets created; use
4926         Control.IsHandleCreated instead of Control.Created check to set
4927         IsBinding state - we *actually* need to modify IsBinding when control
4928         is created, but we don't have any Created event, only HandleCreated.
4929         Fixes part of #349364.
4930
4931 2008-04-11  Geoff Norton  <gnorton@novell.com>
4932
4933         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
4934         warping a null Caret.
4935
4936 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
4937
4938         * DataGridView.cs: Implement row/column autosizing methods. Implement
4939         autosorting.
4940         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
4941         * DataGridViewRowCollection.cs: Add an internal sorting method.
4942
4943 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
4944
4945         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
4946         value in ListView drawing code.
4947
4948 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
4949
4950         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
4951         is clicked.  Respect the user setting Cancel in FileOk.
4952
4953 2008-04-11  Geoff Norton  <gnorton@novell.com>
4954
4955         * ListView.cs: Avoid setting and resetting control Width/Heights and
4956         calculate the final value and set it once.  Prevents a feedback loop
4957         on the mac.
4958
4959 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
4960
4961         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
4962         [Fixes bug #378869]
4963
4964 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
4965
4966         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
4967           Add some on-the-spot code, but it seems we don't need it.
4968
4969 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
4970
4971         * Form.cs: Add method for DataGridView to trigger focus cues
4972         even when it handles the tab keypress.
4973
4974 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
4975
4976         * DataGridView.cs: More keyboard handling, tab, esc.
4977         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
4978         when at the beginning or end of the text in the text box.
4979
4980 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
4981
4982         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
4983
4984 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
4985
4986         * DataGridView.cs: Some fixups for showing and adding the edit control.
4987         * DataGridViewButtonColumn.cs: Implement ToString.
4988         * DataGridViewCell.cs: Size and position the control simultaneously.
4989         * DataGridViewTextBoxCell.cs: Use base to position control.
4990
4991 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
4992
4993         * DataGridViewCell.cs: Fix up some formatting and painting code.
4994         * DataGridViewImageCell.cs: Implement some NIEX methods.
4995
4996 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
4997
4998         * ToolStripItemCollection.cs: What moving an item from one owner
4999         to another, remove from source owner before adding to destination.
5000         [Fixes bug #378109]
5001
5002 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
5003
5004         * PictureBox.cs: Call Load when ImageLocation is set.
5005         [Fixes bug #378308]
5006
5007 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
5008
5009         * X11Keyboard.cs, XplatUIX11.cs :
5010           Implement over-the-spot mode (with some odd offsets).
5011           - set preedit position when caret is set.
5012           - Wrap XMoveResizeWindow() to move preedit position.
5013
5014 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
5015
5016         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
5017         array lenght.
5018
5019 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
5020
5021         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
5022         and ScanTableIndex public, it fix compilations errors when compiling
5023         WinForms to generate keyboard layout resources.
5024
5025 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
5026
5027         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
5028         different element count than scan table. It prevents some errors in non
5029         standard keyboards.
5030
5031 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
5032
5033         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
5034
5035 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
5036
5037         * DataGridView.cs: Call OnContentClick.
5038         * DataGridViewCell.cs: Do a null check on ValueType instead
5039         of valueType.
5040         * DataGridViewCheckBoxCell.cs: Implement.
5041
5042 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
5043
5044         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
5045
5046 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
5047
5048         * X11Keyboard.cs : Check XGetIMValues() return value in
5049           case it does not return input styles in some environment.
5050
5051 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
5052
5053         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
5054
5055 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5056
5057         * BindingContext.cs: Stub UpdateBinding method.
5058
5059 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
5060
5061         * X11Structs.cs : added couple of structs for XIM support.
5062         * X11Keyboard.cs :
5063           Release XIM in case it failed to create XIC. 
5064           Use consts for XNblah string.
5065           Add support for IM style customization and XIC creation
5066           for preedit-position and preedit-callback.
5067           Right now use MONO_WINFORMS_XIM_STYLE environment variable
5068           (list of: over-the-spot | on-the-spot | root). Only root
5069           mode works so far.
5070
5071           (redoing r99172 with fix.)
5072
5073 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
5074
5075         * TreeView.cs: Center the checkbox a little better.
5076
5077 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
5078
5079         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
5080         Apply very nice patch from Ernesto Carrea that simplifies our
5081         scrollbar drawing.  [From bug #376146]
5082
5083 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
5084
5085         * TreeView.cs: Correct the location of the root node checkbox when
5086         ShowRootLines = false.  Don't draw the root lines for the root node
5087         when ShowRootLines = false.  [Fixes bug #377535]
5088
5089 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
5090
5091         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
5092         Fixed line endings.
5093         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
5094         line endings.
5095         * MaskedTextBox.cs: Added missing attribute. Code formatting.
5096         * PageSetupDialog.cs: Added missing attribute. Code formatting.
5097         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
5098         * ImeMode.cs: Added missing field.
5099         * HtmlWindow.cs: Code formatting. Fixed line endings.
5100         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
5101         warnings.
5102         * HtmlHistory.cs: Code formatting. Fixed line endings.
5103         * HtmlDocument.cs: Code formatting. Fixed line endings.
5104         * ToolStripPanel.cs: Added missing IList implementation.
5105         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
5106
5107 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
5108
5109         * BindingContext.cs: Changed argument names to fix corcompare errors.
5110         * DataGridView.cs: Removed extra explicit interface implementation
5111         of IDropTarget. Code formatting.
5112         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
5113         * ComboBox.cs: Changed argument names to fix corcompare errors.
5114         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
5115         errors.
5116         * GridColumnStylesCollection.cs: Changed argument names to fix
5117         corcompare errors. Removed extra tabs.
5118         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
5119         errors.
5120         * Control.cs: Changed argument names to fix corcompare errors. Code
5121         formatting. Removed extra explicit IList implementation.
5122         * TextBox.cs: Changed argument names to fix corcompare errors. Code
5123         formatting. Use string.Empty instead of "".
5124         * GridItemCollection.cs: Changed argument names to fix corcompare
5125         errors. Code formatting.
5126         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
5127         corcompare errors. Code formatting.
5128         * ImageList.cs: Changed argument names to fix corcompare errors.
5129         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
5130         * DataGridViewRowCollection.cs: Changed argument names to fix
5131         corcompare errors. Code formatting.
5132         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
5133         * DataGridViewSelectedCellCollection.cs: Changed argument names to
5134         fix corcompare errors. Code formatting.
5135         * DataGridViewComboBoxCell.cs: Changed argument names to fix
5136         corcompare errors. Code formatting.
5137         * LinkLabel.cs: Changed argument names to fix corcompare errors.
5138         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
5139         formatting.
5140         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
5141         Code formatting.
5142         * BindingSource.cs: Changed argument names to fix corcompare errors.
5143         Removed extra explicit interface implementations.
5144         * DataGridViewSelectedRowCollection.cs: Changed argument names to
5145         fix corcompare errors. Code formatting.
5146         * ToolStripItemCollection.cs: Removed extra explicit interface
5147         implementation of IList.ReadOnly.
5148         * DataGridViewColumnCollection.cs: Changed argument names to fix
5149         corcompare errors. Code formatting.
5150         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
5151         * ListView.cs:  Changed argument names to fix corcompare errors.
5152         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
5153         errors.
5154         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
5155         errors.
5156         * ListBindingHelper.cs: Changed argument names to fix corcompare
5157         errors.
5158         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
5159         fix corcompare errors. Code formatting.
5160         * ToolStripPanel.cs: Removed extra explicit implementation of
5161         IDropTarget interface.
5162         * ListBox.cs: Changed argument names to fix corcompare errors. Code
5163         formatting. Removed extra tabs and spaces.
5164         * DataGridViewCellCollection.cs: Changed argument names to fix
5165         corcompare errors.
5166         * Help.cs: Changed argument names to fix corcompare errors. Code
5167         formatting.
5168         * TabControl.cs: Changed argument names to fix corcompare errors.
5169         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
5170         errors.
5171         * TableLayoutSettings.cs: Changed argument names to fix corcompare
5172         errors.
5173
5174 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5175
5176         * ListBindingHelper.cs: When returning properties, only return those
5177         that are browsable. Also, don't do a linear search of the properties,
5178         but use the indexer of the PropertyDescriptorCollection class.
5179
5180 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5181
5182         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
5183         Dictionary containing the related (child) currency managers. Also,
5184         when setting DataSource, add datasource to our List if it is not a list.
5185
5186 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
5187
5188         * PropertyGridTextBox.cs: Fix background color of the buttons.
5189         * PropertyGridView.cs: Make the entry less jumpy.
5190
5191 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
5192
5193         * PropertyGrid.cs: Fix unused variable warnings.
5194
5195 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
5196
5197         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
5198         double-click. It expanded it once in the mouse down and then 
5199         again in the double-click handler.
5200
5201 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
5202         
5203         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
5204         TypeConverter and UITypeEditors.
5205
5206 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
5207
5208         * Control.cs: Visibility should be set synchronously, 
5209         so we must also redraw once it is and not rely on layouting or 
5210         other code to repaint.
5211         [Fixes bug #339898]
5212
5213 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
5214
5215         * DataGridViewCell.cs: Respect DataGridView.GridColor.
5216
5217 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
5218
5219         * Control.cs: Invalidate when the alpha channel is less than 255,
5220         not only when control is transparent.
5221
5222 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
5223
5224         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
5225         Implement some painting convenience methods that threw NIEX.
5226
5227 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
5228
5229         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
5230         * DataGridViewLinkCell.cs: Implement.
5231
5232 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
5233
5234         * GridEntry.cs: Report the conversion exception error description.
5235         [Fixes bug #375792]
5236
5237 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
5238
5239         * PropertyGridView.cs: Do not scroll to item on resize.
5240         [Fixes bug #375789]
5241
5242 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5243
5244         * BindingContext.cs: When retrieving a BindingManagerBase, if the
5245         dataSource parameter is ICurrencyManagerProvider, then return
5246         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
5247         instead of creating a new one.
5248
5249 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5250
5251         * BindingSource.cs: Implement support for Type instances as
5252         DataSource.
5253
5254 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
5255
5256         * DataGridView.cs: Minor cleanups and call CellMouseUp.
5257         * DataGridViewCell.cs: Make some painting routines internally virtual.
5258         * DataGridViewButtonCell.cs: Implement.
5259
5260 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
5261
5262         * Control.cs: We always need to invalidate our children with
5263         transparent backgrounds when we are invalidated.
5264         [Fixes bug #376081]
5265
5266 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5267
5268         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
5269         and CancelCurrentEdit on CurrencyManager respectively. Implement
5270         support for ICancelAddNew too.
5271
5272 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5273
5274         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
5275         call EndNew/CancelNew if list is ICancelAddNew.
5276
5277 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
5278
5279         * DataGridView.cs: Guard against an exception while painting
5280         if there are no rows.
5281
5282 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
5283
5284         * DataGridView.cs: Implement a bunch of keyboard commands.
5285
5286 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
5287
5288         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
5289         isn't set, don't call OnPaint.  [Fixes bug #375300]
5290
5291 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5292
5293         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
5294         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
5295         hookup the remaining events related to CurrencyManager, and fire
5296         OnListChanged also for the Clear () method.
5297
5298 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5299
5300         * BindingSource.cs: Use Current and Position implementations in
5301         CurrencyManager instead of using our own routines, since we need 
5302         to be in synch with it. Count should NEVER return a -1 value, and 
5303         also report ListChanged events for both simple IList data 
5304         sources (manually) as well for IBindingList ones (by hooking up an
5305         event handler for it).
5306
5307 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5308
5309         * BindingSource.cs: Make one .ctor call the another, to avoid
5310         duplicate code. Add the CurrencyManager property, and also for AddNew
5311         throw the proper exceptions and show better error messages.
5312
5313 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
5314
5315         * ComboBox.cs: Only adjust selectedindex if Handle has been
5316         created.  Fixes failing test.
5317
5318 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
5319
5320         * ComboBox.cs: Adjust selectedindex if we insert a new item
5321         above the current selectedindex in a sorted ComboBox.
5322         [Fixes bug #374654]
5323
5324 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
5325
5326         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
5327         [Fixes bug #374712]
5328
5329 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
5330
5331         * DataGridViewTextBoxCell.cs: Implement stuffs.
5332
5333 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5334
5335         * TreeView.cs: Create the scrollbars even earlier to be
5336         double dog certain they are created before they are accessed.
5337
5338 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5339
5340         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
5341
5342 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5343
5344         * ScrollBar.cs: Create an internal safe Value setter so we
5345         won't crash if we try to set a value outside the min and max.
5346         * TextBoxBase.cs: Use safe value setter to guard against a
5347         potential NRE that is being reported by Reflector.
5348
5349 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5350
5351         * TreeView.cs: Create the scrollbars earlier in the constructor
5352         to attempt to guard against an NRE in SetTop in Reflector.
5353
5354 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5355
5356         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
5357         DataGridViewRowCollection.cs: Do not scroll column and row headers,
5358         show messagebox on data format error, use column display index
5359         correctly, make sure HitTest supports new layout stuff,
5360         make sure scrollbars support new layout stuff.
5361
5362 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
5363
5364         * XplatUIX11.cs : Patch by Doug Rintoul.
5365           For some IM engines, keypress events need to delay call
5366           to XPending() and XNextEvent() in the loop so that it
5367           does not mess the orders in XIM commit callback.
5368           Some KeyRelease events such as shift keys need to be
5369           processed both in the IM engine and winforms driver
5370           itself since winforms holds its own state check.
5371
5372           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
5373
5374 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
5375
5376         * X11Keyboard.cs, XplatUIX11.cs :
5377           add primitive support for XIM input support (preedit-
5378           nothing and status-nothing). It requires precise event
5379           capturing (XSelectInput/"filterEvents") and different
5380           call to XFilterEvent against root window.
5381           Get composed string and send dummy WM_IME_COMPOSITION.
5382           Free XIM and XIC instances in finalizer.
5383
5384           (This first patch does not include suggested changes
5385            by Doug Rintoul. It will follow.)
5386
5387 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
5388
5389         * DataGridView.cs: When binding to a property, if the property
5390         doesn't have a setter, set the column to readonly.
5391         [Fixes bug #343965]
5392
5393 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
5394
5395         * ComboBox.cs: Guard against NRE if an arrow key is hit while
5396         we aren't dropped down.  Support Home/End in DropDownList mode.
5397         [Fixes bug #371990]
5398
5399 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
5400
5401         * TreeNodeCollection.cs: Don't increment count until we've
5402         saved our index to return.
5403         [Fixes bug #373603]
5404
5405 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
5406
5407         * Label.cs: Add padding to the label's AutoSize calculation.
5408         [Fixes bug #373792]
5409
5410 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5411
5412         * ListBindingHelper.cs: Actually implement GetListName method.
5413
5414 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5415
5416         * BindingSource.cs: Throw the propert expceptions for some methods, as
5417         well as detect the list item type for Add method if DataSource is null.
5418
5419 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
5420
5421         * DataGridViewCell.cs: I don't know why I commented this out,
5422         putting it back for now.
5423
5424 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
5425
5426         * DataGridViewCell.cs: Remove storage for owning column, just
5427         use column index.
5428         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
5429         * DataGridViewColumnHeaderCell.cs: If the header text has been
5430         explicitly set, return it.
5431         [Fixes bug #325979]
5432
5433 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
5434
5435         * DataGridViewRowCollection.cs: Disable row sharing when
5436         using data binding.  Its a great feature, but lets work on
5437         getting DGV usable first before we worry about optimizations.
5438
5439 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5440
5441         * BindingSource.cs: When resetting our internal list, compute list
5442         item type information to be used for indirect list access. Also
5443         implement/tune some properties and methods related to the list access
5444         too.
5445         * ListBindingHelper.cs: Add a stub for GetListName method, used from
5446         BindingSource.
5447
5448 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5449
5450         * DataGridView.cs: If RowCount is increased while ColumnCount
5451         is zero, add a column.  [Fixes bug #331649]
5452
5453 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5454
5455         * DataGridViewRowCollection.cs: When adding new rows for
5456         databinding, make sure they are place before the add row.
5457         [Fixes bug #343961]
5458
5459 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5460
5461         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
5462         instead of Index order.
5463
5464 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5465
5466         * DataGridView.cs: If columns are added by increasing ColumnCount,
5467         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
5468         [Fixes bug #325588]
5469
5470 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5471
5472         * DataGridView.cs: Turn off and on the "new row" when 
5473         AllowUserToAddRows is toggled.  When the handle is created,
5474         set current cell and selected cell/row/col.
5475
5476 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5477
5478         * ComboBox.cs: When navigating the drop down by keyboard, we
5479         need to scroll the list box if our selection moves out of the
5480         currently shown items.  [Fixes bug #371990]
5481
5482 2008-03-24  Luke Page <luke.a.page@gmail.com>
5483
5484         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
5485         on the control. Also now handles unicode compatibility characters and
5486         stores the unicode compatibility length on the stack. Fixes Bugs
5487         #355198 and #366436.
5488
5489 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5490
5491         * BindingSource..cs: Take into account DataMember when re-creating the
5492         List property, and also create a specific kind of list as needed.
5493
5494 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5495
5496         * ListBindingHelper.cs: Add a new case for GetList () method - when we
5497         get an empty IEnumerable, try to detect whether the datamember is
5498         valid or not for that type, if true, return null, and throw exception
5499         otherwise.
5500
5501 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
5502
5503         * ComboBox.cs: Alt-Down should drop down the list, Esc should
5504         retract it.  [Fixes bug #371989]
5505
5506 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
5507
5508         * PropertyGrid.cs: Initialize the sorting button as pushed.
5509
5510 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
5511
5512         * PropertyGrid.cs: 
5513          - Visually select the PropertyTab.
5514          - Filter Properties by Attributes properly.
5515
5516 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
5517
5518         * MenuItem.cs: Remove menu item from parent when disposed.
5519         [Fixes bug #372845]
5520
5521 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
5522
5523         * ToolBar.cs: Don't reset layout_type if Dock = None.
5524
5525 2008-03-21  Andreia Gaita <avidigal@novell.com> 
5526
5527         * UserControl.cs: Select the first available control when we get focus.
5528           Fixes #372616
5529
5530 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
5531
5532         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
5533         the content if we are in edit mode.  [Fixes bug #343964]
5534
5535 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
5536
5537         * DataGridViewCell.cs: Fix border painting for column headers.
5538
5539 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5540
5541         * BindingSource.cs: When setting or resetting data source,
5542         use ListBindingHelper.GetList () method, since it will get the list in
5543         case datasource is IListSource.
5544
5545 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
5546
5547         * DataGridViewCell.cs: Implement lots more stuffs.
5548
5549 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
5550
5551         * PropertyGridView.cs, GridEntry.cs: Implement support for 
5552         UITypeEditor.IsDropDownResizable.
5553
5554 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
5555
5556         * DataGridViewCell.cs: Remove unused variables, improve how
5557         several of the property getters work.
5558         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
5559         get its size from the parent row/col.
5560
5561 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
5562
5563         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
5564         user alters manually the PropertyTabs collection via the 
5565         PropertyTabs property.
5566
5567 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5568
5569         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
5570         new tests for them to be sure to be compatible with .net.
5571
5572 2008-03-20  Andreia Gaita <avidigal@novell.com> 
5573
5574         * WebBrowserBase.cs: Fix attributes, add events
5575         * WebBrowser.cs: Fix Padding signature
5576
5577 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
5578
5579         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
5580
5581 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
5582
5583         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
5584         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
5585         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
5586         passes the new suite of tests for it.
5587
5588 2008-03-18  Andreia Gaita <avidigal@novell.com> 
5589
5590         * WebBrowser.cs: Add missing attributes, missing Padding and
5591           DefaultSize properties, remove extraneous getters
5592
5593 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5594
5595         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
5596         method overloads.
5597
5598 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
5599
5600         * ComboBox.cs: Move resetting the selected index to keypress
5601         instead of textchanged.  Changing the text programmatically
5602         should not trigger resetting the selected index.  Fixes test.
5603
5604 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
5605
5606         * ComboBox.cs: When the user types into the textbox, reset
5607         the selected index to -1.  [Fixes bug #371672]
5608
5609 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
5610
5611         * FileDialog.cs: Support Control-A for selecting everything
5612         in an OpenFileDialog.  [Fixes bug #371564]
5613
5614 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
5615
5616         * DataGridView.cs: When row/column visible/height properties
5617         change, invalidate.  Take the NIEX out of InvalidateRow/Column
5618         etc.  We don't support them yet, but we can just invalidate
5619         everything until we do support them.  (Added MonoTODO).  Set
5620         proper control styles.
5621         * DataGridViewRow.cs: Don't call PaintHeader if row headers
5622         are turned off. 
5623
5624 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5625
5626         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
5627
5628 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
5629
5630         * DataGridViewRow.cs: Only paint the white background in
5631         cell bounds, the row bounds extends past the cells if the 
5632         grid width isn't as wide as the DGV.
5633
5634 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
5635
5636         * DataGridView*: Completely revamp the drawing to match the
5637         public API.  Our grids now look better, and call all the
5638         appropriate methods and event to allow users to override
5639         the painting and do their own.
5640
5641 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5642
5643         * ListBindingHelper.cs: Implement 2.0 GetList methods.
5644
5645 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
5646
5647         * DataGridView.cs: Implement BorderStyle.
5648
5649 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
5650
5651         * FileDialog.cs: Apply patch from Andy Hume: Any time we
5652         are comparing attributes, make sure we only look at the
5653         one we are interested.  These calls were failing if there
5654         were more than one attribute.
5655         [Fixes bug #370385]
5656
5657 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
5658
5659         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
5660
5661 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
5662
5663         * PageSetupDialog.cs: Stub EnableMetric.
5664         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
5665         * PrintPreviewDialog.cs: Add ProcessDialogKey,
5666         ProcessTabKey.
5667
5668 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
5669
5670         * MonthCalendar.cs: Remove unused variable.
5671
5672 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
5673
5674         * DataGridView*.cs: corcompare stuffs.
5675
5676 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
5677
5678         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
5679         The savings aren't worth the extra code to fix the optimization.
5680         [Fixes bug #368585]
5681
5682 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
5683
5684         * ToolBar.cs: Always call base.Dock in the Dock override so that
5685         Control's layout_type gets reset correctly.
5686         [Fixes bug #368882]
5687
5688 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
5689
5690         * X11Dnd.cs: End DnD operation also for the middle mouse button.
5691
5692 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
5693
5694         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
5695         at the same time we do explicit ones, because we have to give all
5696         other controls on the container a chance to handle explicit ones
5697         first.  If no one has an explicit mnemonic, then we can let the
5698         MenuStrip have a shot at implicit mnemonics.
5699         * MenuStrip.cs: Create an implicit mnemonic function.
5700         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
5701         mnemonics for MenuStrips.
5702         [Fixes bug #368493]
5703
5704 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
5705
5706         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
5707         DataGridColumnStyle.cs: corcompare stuffs.
5708
5709 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5710
5711         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
5712         Details - This is needed after we added the bits to use any available
5713         column also for List and SmallIcon view. 
5714
5715 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5716
5717         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
5718         at the proper place, not only when changing SelectedIndex and changing
5719         the selection using keys/mouse, as .net does.
5720
5721 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5722
5723         * ControlBindingsCollection.cs: Implement last 2.0
5724         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
5725         in the new 2.0 Add methods.
5726
5727 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5728
5729         * ListBox.cs: When calling SelectedIndexCollection.Clear,
5730         return if no items are previously selected - this is done to avoid 
5731         firing OnSelectedIndexChanged without need to do so. Also,
5732         when creating handle ensure that the focused item is visible (as
5733         .net does).
5734
5735 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5736
5737         * ListBox.cs: Rewrote/refactored most of selection code. We require
5738         the following things in selection: a) keep selection sorted (both
5739         indices and items), b) SelectedIndices automatically detect the
5740         selection mode, c) SelectedIndex should be the first selected item
5741         index, d) Need to Focus/adjust scroll bar when selecting a new item,
5742         not only for SelectedIndex, which is specially important in Multi*
5743         selection modes. To achieve this we are moving the selection core to
5744         SelectedIndexCollection and make depend all selection modifications on
5745         it.
5746         Fixes #366438.
5747
5748 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
5749
5750         * ToolStrip.cs: Enable implicit mnemonics for drop down
5751         menu strips.  [Fixes part of bug #367692]
5752
5753 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
5754
5755         corcompare - fix parameter names [stragglers].
5756         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
5757         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
5758         TabControl.cs.
5759
5760 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
5761
5762         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
5763         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
5764         mnemonic, let the ToolStripManager have it even if it doesn't
5765         have a matching mnemonic.
5766         [Fixes bug #367499]
5767
5768 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
5769
5770         corcompare - fix warning about implicit implementation
5771         * ToolStrip.cs: Add IToolStripData interface.
5772         * IToolStripData.cs: Add.
5773
5774 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
5775
5776         corcompare - fix warning about implicit implementation
5777         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
5778         * IBounds.cs: Add.
5779
5780 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
5781
5782         corcompare - fix parameter names [N-Z].
5783         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
5784         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
5785         PropertyManager.cs, RichTextBox.cs,
5786         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
5787         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
5788         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
5789         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
5790         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
5791         ToolStripContentPanel.cs, ToolStripDropDown.cs,
5792         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
5793         ToolStripPanel.cs, ToolStripSeparator.cs,
5794         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
5795         UICuesEventHandler.cs, UpDownBase.cs.
5796
5797 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
5798
5799         corcompare - fix parameter names [G-M].
5800         GridColumnStylesCollection.cs, GridItemCollection.cs,
5801         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
5802         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
5803         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
5804         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
5805         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
5806
5807 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
5808
5809         corcompare - fix parameter names [A-F].
5810         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
5811         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
5812         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
5813         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
5814         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
5815         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
5816         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
5817
5818 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
5819
5820         * GridEntry.cs: Do not convert not only if the types match, 
5821         but also if the property type is assigneable from the value's
5822         type.
5823         [Fixes bug #366566]
5824
5825 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
5826
5827         * PropertyGridView.cs: 
5828          - Subscribe to the listbox only once and not everytime.
5829          - Update the textbox even if SetValue fails.
5830          - Close the listbox before calling TrySetValue just in case.
5831          [Fixes bug #366569]
5832
5833 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
5834
5835         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
5836
5837 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5838
5839         * ListView.cs: Implement support for custom column width based on
5840         Columns collection (we were previously using this collection only
5841         with Details view).
5842         Fixes #364484.
5843
5844 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5845
5846         * ListViewItem.cs: For Tile view, always set bounds for the first
5847         subitem (which is the main one), and also don't let Width be larger
5848         than ListView.TileSize.Width. Improve code readibility also.
5849         * ThemeWin32Classic.cs: When painting the ListViewItem instances
5850         in Tile view, _always_ use the NoWrap flag.
5851         Fixes #360798.
5852
5853 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
5854
5855         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
5856         in case.
5857         * GridEntry.cs: For MS compitability make all child properties 
5858         readonly if the parent is readonly. Ugh.
5859         [Fixes bug #365945 and #365944]
5860
5861 2008-02-29  Andreia Gaita <avidigal@novell.com> 
5862
5863         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
5864           relative to the history
5865
5866 2008-02-29  Andreia Gaita <avidigal@novell.com>
5867
5868         * HtmlElement.cs: More handlers for mouse and key events
5869
5870 2008-02-28  Andreia Gaita <avidigal@novell.com>
5871
5872         * WebBrowserBase.cs: MouseClick sig changed.
5873         * HtmlHistory.cs: Implement history navigation
5874         * HtmlElement.cs: Add event handlers, and connect them.
5875
5876 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
5877
5878         * GridEntry.cs: 
5879          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
5880            so that DisplayNameAttribute doesn't get ignored.
5881          - Check for ParenthesizeNameAttribute and parenthesize the Label.
5882          - Add support for PasswordPropertyTextAttribute
5883         * PropertyGridView.cs: Check if an entry is a password.
5884         [Fixes bugs #365589, #365586, #365588]
5885
5886 2008-02-28  Andreia Gaita <avidigal@novell.com>
5887
5888         * PropertyGridView.cs: Revert the message filtering change, as we
5889         need it to block after all. Remove block parameter, unnecessary.
5890
5891 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
5892
5893         * UserControl.cs: Better implementation of GetPreferredSize.
5894         First step to fixing bug #361441.
5895
5896 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5897
5898         * Binding.cs: Actually implement data binding support for 
5899         classes implementing IBindableComponent.
5900         * ControlBindingsCollection.cs: Likewise.
5901
5902 2008-02-26  Andreia Gaita  <avidigal@novell.com>
5903
5904         * PropertyGridView.cs: Use a message filter to check when to 
5905         close the dropdown
5906
5907 2008-02-26  Andreia Gaita  <avidigal@novell.com>
5908
5909         * Application.cs: Change the message_filters loop so a filter 
5910         can be removed while looping.
5911
5912 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
5913
5914         * GridEntry.cs: Optimization in ToggleValue so that it caches
5915         the current value.
5916         * PropertyGridView.cs: An optimization so that the property isn't 
5917         re-read twice for each StandardValue added to the drop-down menu.
5918         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
5919         license.
5920         [Fixes bug #362755]
5921
5922 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
5923
5924         * Application.cs: Apply patch from Justin Cherniak to match
5925         MS better for ProductName, ProductVersion, and CompanyName.
5926         [Fixes bug #361709]
5927
5928 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5929
5930         * Binding.cs: Actually implement 2.0 NullValue property. Also
5931         when changing the formatting related properties, only update the state
5932         if formatting_enabled is true (we don't mind otherwise).
5933
5934 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
5935
5936         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
5937         [Fixes bug #364486]
5938
5939 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
5940
5941         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
5942         of GetType on the current value as it uses reflection to 
5943         determine the type. This fixes the case where the new value is 
5944         null. 
5945
5946 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
5947
5948         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
5949         past the view.
5950
5951 2008-02-24  Luke Page  <luke.a.page@gmail.com>
5952
5953         * Line.cs, TextControl.cs: Implement offset x and y so that a
5954         document doesn't have to begin  at (0,0) on the viewpoint.
5955         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
5956         bars and switches the text alignment (and therefore is now
5957         implemented for textbox). Fixes #321383.
5958
5959 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5960
5961         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
5962         properties. Also when changing FormattingEnabled update the control
5963         property -as .Net does-.
5964
5965 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
5966
5967         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
5968         * Binding.cs: Add stubs for the overloads of the Add method in
5969         CBCollection.
5970
5971 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5972
5973         * Binding.cs: PullData () returns a false value if we got an exception.
5974         Also when validating the control and we get an error, instead of
5975         setting the value of the previous one, cancel the event (tested in 1.1
5976         and 2.0).
5977
5978 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
5979
5980         * TreeView.cs: Make selected_node and highlighted_node internal.
5981         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
5982         to null when Nodes.Clear is called.
5983         [Fixes bug #363884]
5984
5985 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
5986
5987         * FontDialog.cs: Ensure that when the Font is set in code,
5988         all the gui pieces are updated accordingly.
5989         [Fixes bug #361020]
5990
5991 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
5992
5993         * TextRenderer.cs: Respect proposed size for MeasureString.
5994         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
5995         autosize, use a proposed width to force wrapping for long text.
5996         [Fixes bug #360981]
5997
5998 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
5999
6000         * TreeView.cs: Factor in checkboxes = false and state images in
6001         to HitTest.  [Fixes bug #363360]
6002
6003 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6004
6005         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
6006         when drawing the selected range.
6007         [Fixes bug #363648]
6008
6009 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
6010
6011         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
6012         ResizeRedraw control styles.
6013         [Fixes bug #363555]
6014
6015 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6016
6017         * TreeView.cs: StateImages are basically custom checkboxes, so
6018         factor their size the same as real checkboxes when determining
6019         what got clicked.
6020         [Fixes bug #363367]
6021
6022 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6023
6024         * MessageBox.cs: Make the message box wider if the form caption
6025         is longer than the text in the form.
6026         [Fixes bug #361137]
6027
6028 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
6029
6030         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
6031
6032 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6033
6034         * TreeNode.cs: Guard against an NRE when the parent's
6035         StateImageList hasn't been set.
6036         [Fixes bug #363353]
6037
6038 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6039
6040         * SplitContainer.cs: Add SupportsTransparentBackColor and
6041         OptimizedDoubleBuffering control styles.
6042         [Fixes bug #363303]
6043
6044 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6045
6046         * Application.cs: For the app data paths and the registry key paths,
6047         ensure they are created before returning them to the user.
6048         [Fixes bug #361709]
6049
6050 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6051
6052         * Application.cs: Guard against an NRE in CompanyName and
6053         ProductName.
6054
6055 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
6056
6057         * Application.cs: For CompanyName, ProductName, and ProductVersion,
6058         make sure we handle all three cases correctly: attribute is present,
6059         attribute is present but is an empty string, and attribute is not
6060         present.
6061
6062 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
6063
6064         * PropertyGridView.cs: 
6065          - Fix a NRE that caused a test failure
6066          - Another performance improvement - cache the standard values
6067          listbox.
6068
6069 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
6070
6071         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
6072         code paths.
6073
6074 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
6075
6076         * PropertyGridView.cs: Fix a big performance bug.
6077
6078 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
6079
6080         * SelectionRange.cs: Apply patch from Andy Hume to make
6081         constructor behavior more accurate.  [Fixes bug #362117]
6082
6083 2008-02-19  Andreia Gaita <avidigal@novell.com> 
6084
6085         * Control.cs: Added a new flag is_disposing to track if the
6086         window is currently in the process of being disposed of.
6087         This is used so that, when firing visibility changes triggered
6088         by unparenting controls during Dispose, the control doesn't
6089         get created again.      
6090
6091 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
6092
6093         * ComboBox.cs: Set height to preferred height when the handle
6094         is created.  [Fixes bug #360862]
6095
6096 2008-02-18  Andreia Gaita <avidigal@novell.com>
6097
6098         * XplatUIX11.cs: Create FosterParent with border width at 0.
6099         With the previous value of 4, everytime a control got reparented
6100         from parent = null, it's location would be shifted right and 
6101         down by 4, since these coordinates would be offset by the 
6102         FosterParent's border width.
6103
6104 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
6105
6106         * Control.cs: During diposing firstly remove ourselfes from
6107         the parent and *then* destroy our handle, because removing
6108         ourselfes from the parent controls collection causes 
6109         VisibilityChange, etc events, which require a handle and end
6110         up recreating the control.
6111
6112 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
6113
6114         * GridEntry.cs: Set expanded state before notifying that the
6115         expansion has taken place.
6116         * PropertyGridView.cs:
6117          - Set the propertygridtextbox text to the selected 
6118          StandardValue before proceeding to setting it.
6119          - Scrolling bugfixes.
6120
6121 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
6122
6123         * GridEntry.cs:
6124          - Fix ValueText to not return null.
6125          - Fix conversion error reporting to actually happen.
6126         * PropertyGridView.cs: Set entry only if the text has changed.
6127         [Fixes bug #362116]
6128
6129 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
6130
6131         * GridEntry.cs: 
6132          - Fix handling of a null current value.
6133          - Swallow editor exceptions.
6134         [Fixes bug #362114]
6135
6136 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
6137
6138         * PropertyGrid.cs: Clear current items first thing before 
6139         repopulating subitems.
6140         * GridEntry.cs: 
6141          - Handle null StandardValuesCollection.
6142          - Mark as not editable if there is no PropertyDescriptor and
6143          if the Converter cannot convert from string.
6144         [Part of fix for bugs #360666 and #358332]
6145
6146 2008-02-15  Luke Page  <luke.a.page@gmail.com>
6147         * MaskedTextBox.cs: Now skips non editable characters after a
6148         character has been entered and we are progressing to the next
6149         position in the MaskedTextBox.
6150
6151 2008-02-15  Luke Page  <luke.a.page@gmail.com>
6152         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
6153         that it changes the selection rather than just repositioning the
6154         cursor. Fixes Bug #360873.
6155
6156 2008-02-15  Luke Page  <luke.a.page@gmail.com>
6157         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
6158         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
6159         correctly. See #359330
6160
6161 2008-02-15  Andreia Gaita <avidigal@novell.com>
6162
6163         * XplatUIX11.cs: If the handle is null when posting a message, use the
6164         current thread queue to post instead. Fixes #332409
6165
6166         * SendKeys.cs: Slight optimization
6167
6168 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
6169
6170         * PropertyGrid.cs, PropertyGridView.cs:
6171         Fix multiple scrolling and sizing issues.
6172         [Fixes bug #359199]
6173
6174 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
6175
6176         * PropertyGridView.cs: Ensure that drop down editors are shown
6177         in the WorkingArea of the screen.
6178         [Fixes bug #359807]
6179
6180 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
6181
6182         * GridEntry.cs: Fail silently when UITypeEditor is missing.
6183         [Fixes bug #360666]
6184
6185 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6186
6187         * Binding.cs: Implement 2.0 DataSourceNullValue property.
6188
6189 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
6190
6191         * PropertyGridView.cs:
6192          - Clear the controls in the drop down form after it is hidden.
6193          - Fix Width sizing of the dropdown editors to match MSFT.
6194
6195 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
6196
6197         * PropertyGridView.cs: 
6198          - Fix height for drawing the grid entry
6199          text value, so that it clips multiline text properly.
6200          - Fix unfocusing to match MSFT.
6201
6202 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
6203
6204         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
6205         Fixes a bug where on repopulation after value changed items become
6206         expandable.
6207
6208 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6209
6210         * Binding.cs: For the 2.0 profile, look for a 
6211         'PropertyChanged' event in the target control, and add checks for
6212         DataSourceUpdateMode property to change -or not- the data source
6213         from validation/control property change.
6214
6215 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
6216
6217         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
6218           not compare struct with null in 2.0).
6219
6220 2008-02-10  Luke Page <luke.a.page@gmail.com>
6221
6222         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
6223         updates the provider and if not using a provider, uses the internal document
6224         class implementation of password char. Also when showing text, uses display string
6225         from the provider, instead of the actual text.
6226
6227 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6228
6229         * Binding.cs: Ooooops, forgot to take into account the data_source
6230         and binding_member_info null case (it was breaking the Binding tests).
6231
6232 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6233
6234         * Binding.cs: Implement support for data source changes exposed by
6235         'PropertyNameChanged' events, and update the control property as
6236         needed.
6237
6238 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6239
6240         * Binding.cs: Implement 2.0 WriteValue method.
6241
6242 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
6243
6244         Commit patch from James Purcell for better AutoScale implementation:
6245
6246         * ScaleControl should call GetScaledBounds with the control's total size rather
6247         than client size.  GetScaledBounds should handle ignoring the borders in its
6248         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
6249         (for the most part they just call the base code now since that is fixed).
6250         * Added ScaleChildrenInternal to allow controls to disable scaling of children
6251         without having to override ScaleChildren (since none of .NET's controls do). 
6252         This is required for most controls in Mono that have scrollbars to prevent the
6253         scrollbars from being moved/resized.
6254         * Nested ContainerControls can have a different scale mode than their parent. 
6255         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
6256         designer produce different results both of which look incorrect).
6257         * Default AutoScaleMode for ContainerControl should be Inherit.
6258         * Simplified workaround for ComboBox scaling issue.
6259         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
6260         1.0 style auto scaling should scale the whole control's size instead of
6261         ignoring the borders (except for Form) and the rounding is done differently to
6262         preserve control alignment.
6263         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
6264         GetAutoScaleSize.
6265         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
6266         * CurrentAutoScaleDimensions should round the estimated character width instead
6267         of truncating.
6268         * ListBox's GetScaledBounds should always use the height it was set to instead
6269         of the height that was passed in.  This prevents rounding errors from
6270         accumulating quickly with IntegralHeight.
6271         [Bug #359098]
6272
6273 2008-02-08  Andreia Gaita <avidigal@novell.com>
6274
6275         * Form.cs: Add a null check (darn it). 
6276
6277 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
6278
6279         * MdiClient.cs: Make sure the requesting form actually owns the
6280         control menu items before removing them.  Also, use
6281         Suspend/ResumeLayout when adding or removing items so we only
6282         layout once.
6283         [Fixes bug #359887]
6284
6285 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
6286
6287         * Control.cs: Guard against an NRE in ShowFocusCues.
6288         [Fixes bug #359830]
6289
6290 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6291
6292         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
6293         property, as well as stubbing DataSourceUpdateMode.
6294
6295 2008-02-08  Andreia Gaita <avidigal@novell.com>
6296
6297         * Form.cs: When closing forms, get focus back to the active control of the
6298         active form. [Fixes #341314, corner case]
6299         
6300 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6301
6302         * MdiClient.cs: After we move the scrollbars, invalidate the NC
6303         area, so any old scrollbar artifacts are cleaned up.
6304         [Fixes bug #336305]
6305
6306 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6307
6308         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
6309         for our menus, display that control box menu instead of the 1.1
6310         menu one.
6311
6312 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6313
6314         * MdiControlStrip.cs: Add property to access the mdi form tied to
6315         each toolstripitem.
6316         * MdiClient.cs: Be smarter about removing and adding toolstripitems
6317         to the implicitly merged menu.  Every time we clicked the form, items
6318         were getting removed and the re-added, causing the form to jump around
6319         as the menu resized.
6320
6321 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6322
6323         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
6324         was being reset by the implicit menu merge for menustrips.
6325         [Fixes bug #336296]
6326
6327 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6328
6329         * Form.cs: Don't do the previous change when WindowState = Normal,
6330         or it messes up where the window is placed.  Fixes test failure.
6331
6332 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6333
6334         * Form.cs: When becoming visible, if we are an MDI child, call
6335         SetWindowState with a dummy old_state so that changes will actually
6336         be made.
6337         [Fixes the 2nd part of bug #325473]
6338
6339 2008-02-07  Andreia Gaita <avidigal@novell.com>
6340
6341         * Control.cs: Reset properties to their pre parent-change values in case
6342         the new parent == null (in which case we're basically removing the control, 
6343         and don't want any events fired due to fake property changes)
6344         [Fixes #355850]
6345
6346 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
6347
6348         * PropertyGridView.cs: 
6349          - Refactor SetValue to allow setting the value
6350         when a custom editor is used, but the entry is not editable.
6351          - Remove the custom editor control on CloseDropDown.
6352         [Fixes #359196]
6353
6354 2008-02-06  Andreia Gaita <avidigal@novell.com>
6355
6356         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
6357         reflection only on 1.1, this property is public on system.drawing on 2.0.
6358         Fixed #359247
6359
6360 2008-02-06  Andreia Gaita  <avidigal@novell.com>
6361         
6362         * WebBrowser.cs: Do a normal page refresh by default.
6363
6364 2008-02-05  Andreia Gaita  <avidigal@novell.com>
6365
6366         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
6367         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
6368         platforms. Fixes #359036
6369         
6370         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
6371         platform-specific flags.
6372
6373 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6374
6375         * Binding.cs: Add 2.0 BindableComponent property - just return control
6376         by now.
6377
6378 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
6379
6380         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
6381         Jonathan for this patch. Fixes #358442.
6382
6383 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
6384
6385         * Form.cs: If we change the active MDI child form, let the others
6386         know they need to repaint their title bar so it will appear inactive.
6387         [Fixes part 1 of bug #325473]
6388
6389 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
6390
6391          * PropertyGridView.cs: Do not trucate custom editors' width
6392          and align them to the left.
6393          [Fixes #358353 and #358349]
6394
6395 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6396
6397         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
6398         Also fix the arguments passed to CollectionChangeEventArgs in the
6399         related methods.
6400
6401 2008-02-04  Geoff Norton  <gnorton@novell.com>
6402
6403         * Hwnd.cs: The conversion to Quartz coordinates happens in
6404         System.Drawing.  Removing this translation from here.
6405
6406 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
6407
6408          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
6409          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
6410          GridItemCollection.cs:
6411          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
6412
6413 2008-02-04  Geoff Norton  <gnorton@novell.com>
6414
6415         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
6416         SYSKEYUP if any other key has been pressed in the mean time.
6417         Fixes #324404
6418
6419 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6420
6421         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
6422         when the item in current position is different than 0. Also, save the
6423         item index in the beginning of the operation, instead of getting the
6424         index of the item when the event is actually performed. Lastly clean
6425         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
6426         triggered.
6427         [Fixes #357873]
6428
6429 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
6430
6431         * Form.cs: Alt-Minus for MDI children system menu should work
6432         with both the minus keys on the keyboard.
6433         [Fixes bug #336295]
6434
6435 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
6436
6437         * Control.cs: Don't invalidate on region change.  The WM should
6438         take care of this automagically.  Keeps us out of an infinite
6439         paint loop if someone changes the Region in the OnPaint.
6440         [Fixes bug #358327]
6441
6442 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
6443
6444          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
6445
6446 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
6447
6448         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
6449         down the MonthCalendar only on F4, not Alt+F4.
6450         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
6451         [Fixes bug #358340]
6452
6453 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
6454
6455         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
6456         if its part of a DateTimePicker, else, use the back color.
6457         [Fixes bug #358339]
6458
6459 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
6460
6461         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
6462         [Fixes bug #358342]
6463
6464 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6465
6466         * CurrencyManager.cs: When we get a ListChanged event from our source,
6467         always fire our own ListChanged event, as .Net does.
6468
6469 2008-02-03  Luke Page  <luke.a.page@gmail.com>
6470
6471         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
6472         #358379.
6473
6474 2008-02-03  Luke Page  <luke.a.page@gmail.com>
6475
6476         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
6477         property. Removed if for richtext property that was always true.
6478         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
6479
6480 2008-02-03  Luke Page  <luke.a.page@gmail.com>
6481
6482         * TextBoxBase.cs - commited patch from James Purcell that
6483         correctly sets the FixedHeight control style when the MultiLine
6484         property is changed on a TextBox control. Fixes bug 358229.
6485
6486 2008-02-02  Luke Page  <luke.a.page@gmail.com>
6487
6488         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
6489         Fixes bug 351938 - caret is positioned correctly when drawn
6490         and when calculating textual position of caret, no longer
6491         has a NRE in certain situations.
6492         
6493 2008-02-01  Geoff Norton  <gnorton@novell.com>
6494
6495         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
6496         get that region removed from the paint event.
6497         * XplatUICarbon.cs: Remove the window mapping after disposing of 
6498         window.  Prevents a crash with handle reuse.  Optimize exposes
6499         only onto visible windows (rare; but possible).
6500
6501 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6502
6503         * UpDownBase.cs: Make sure the internal textbox calls the base's
6504         OnMouseDown and OnMouseUp so the textbox will function correctly.
6505         There were notes saying it doesn't chain up, but its an internal
6506         class, so our implementation may differ.
6507         [Fixes bug #357482]
6508
6509 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6510
6511         * ListBox.cs: Fix a logic error and don't process MouseDown
6512         for mouse buttons other than Left.
6513
6514 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6515
6516         * Control.cs: Remove HeightInternal.
6517         * ListBox.cs: Commit patch from James Purcell that correctly
6518         calculates heights for ListBoxen.
6519         [Fixes bug #357152]
6520
6521 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6522
6523         * Label.cs: Apply patch from James Purcell that corrects the 
6524         signature of the AutoSize property.
6525         [Fixes bug #357605]
6526
6527 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6528
6529         * ListBox.cs: Don't throw [Mouse]Click events for buttons
6530         other than the left mouse button.
6531
6532 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
6533
6534         * Control.cs: Remove my awesome optimization as it caused some
6535         regressions with control ordering.  :(
6536         [Fixes bug #357467]
6537
6538 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
6539
6540          * PropertyGridView.cs: Fix a NRE on double click when there is no
6541          selected object.
6542
6543 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6544
6545         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
6546
6547 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
6548
6549         * ListBox.cs: Call MouseClick and MouseDoubleClick.
6550         [Fixes bug #357146]
6551
6552 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6553
6554         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
6555         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
6556         instead of Hwnd.bmp_g.
6557
6558 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6559
6560         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
6561         Use the Hwnd one instead.
6562
6563 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6564
6565         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
6566
6567 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6568
6569         * Form.cs: corcompare for RestoreBounds.
6570
6571 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6572
6573         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
6574
6575 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6576
6577         * Form.cs: Handle Alt-Minus for MDI children forms.
6578         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
6579         Add mnemonics to the control menu.
6580         [Fixes bug #336295]
6581
6582 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6583
6584         * Binding.cs: Initial implementation bits of FormattingEnabled
6585         property and BindingComplete event (2.0). 
6586         * BindingCompleteEventArgs.cs: Internal methods for setting error text
6587         and exception.
6588
6589 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
6590
6591         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
6592         table.Location.  [Fixes bug #354672]
6593
6594 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
6595
6596         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
6597         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
6598
6599 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6600
6601         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
6602         of doing all the re-bound work, just invalidate and call SetControlText 
6603         to set the updated text of selected item to our textbox.
6604         Fixes #333750.
6605
6606 2008-01-28  Andreia Gaita <avidigal@novell.com>
6607
6608         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
6609         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
6610         missing properties and methods. Add Load, Unload, Error, GotFocus, 
6611         LostFocus, Resize, Scroll events (only load and unload are connected)
6612
6613 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
6614
6615         * AccessibleObject.cs: Modified argument names to match MS.
6616         * Button.cs: Modified argument names to match MS.
6617         * BindingContext.cs: Modified argument names to match MS.
6618         * BindingMemberInfo.cs: Modified argument names to match MS.
6619         * ButtonBase.cs: Modified argument names to match MS.
6620         * ComboBox.cs: Modified argument names to match MS.
6621         * Control.cs: Modified argument names to match MS.
6622         * CheckedListBox.cs: Modified argument names to match MS.
6623         * CommonDialog.cs: Modified argument names to match MS.
6624         * DataGrid.cs: Modified argument names to match MS.
6625         * CursorConverter.cs: Modified argument names to match MS.
6626         * ControlPaint.cs: Modified argument names to match MS.
6627         * CheckBox.cs: Modified argument names to match MS.
6628         * ControlBindingsCollection.cs: Modified argument names to match MS.
6629         * BindingSource.cs: Modified argument names to match MS.
6630         * DataFormats.cs: Modified argument names to match MS.
6631         * ContainerControl.cs: Modified argument names to match MS.
6632         * CurrencyManager.cs: Modified argument names to match MS.
6633         * Application.cs: Modified argument names to match MS.
6634         * ContextMenuStrip.cs: Modified argument names to match MS.
6635         * ContextMenu.cs: Modified argument names to match MS.
6636         * BindingManagerBase.cs: Modified argument names to match MS.
6637         * WindowsFormsSection.cs: Fixed line ending.    
6638
6639 2008-01-27  Andreia Gaita <avidigal@novell.com>
6640
6641         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
6642         detecting that the dropdown toolwindow is hidden. EndLoop outside the
6643         while.
6644
6645 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
6646
6647         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
6648         MS. Code formatting.
6649
6650 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6651
6652         * Binding.cs: Don't avoid the Format event if the control 
6653         property type is object. Also, if the value retrieved by 
6654         the data source is null _and_ the control proeprty type 
6655         is object, return Convert.DBNull (match .Net).
6656         Fixes part of #324286.
6657
6658 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6659
6660         * ListControl.cs: Since we are getting two BinginContextChanged events
6661         for the same binding context instance (when the control is added to
6662         form, and when the form is actually shown), take it into account only the
6663         first time for a given binding context instance.
6664         Fixes part of #324286.
6665
6666 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
6667
6668          * PropertryGridView.cs: Ops.
6669
6670 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
6671
6672          * PropertyGridView.cs: Close dropdown form if the owner form is
6673          moved or minimized.
6674          [Fixes bug #322446]
6675
6676 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
6677
6678          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
6679          RootGridEntry.cs, CategoryGridEntry.cs:
6680          PropertyGrid rewrite.
6681          - Rewrite all of the control logic in PropertyGrid.
6682          - Rewrite all of the ComponentModel logic in GridEntry.
6683          - Rewrite all UI work in PropertyGridView.
6684          - Many bugfixes, etc.
6685
6686 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
6687
6688         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
6689         when all contained controls are autosize or dock-fill.  Also take into
6690         account when the total percentage of column/row sizes is not 100%.
6691         [Fixes bug #354672]
6692
6693 2008-01-24  Andreia Gaita <avidigal@novell.com>
6694
6695         * HtmlDocument.cs:
6696         - Save a reference to the IDocument in the instance and
6697           use that one instead of going to WebHost.Document; the document that the 
6698           WebHost returns might not be the right one (in case of frames).
6699         - Use the hashcode returned from the IDocument interface.
6700         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
6701           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
6702           LinkColor, Url, VisitedColor, Window
6703
6704         * HtmlElement.cs: 
6705         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
6706           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
6707           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
6708           SetAttribute, Equals, equality operators.
6709         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
6710           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
6711         
6712         * HtmlElementCollection.cs: Change implementation to use a generic
6713         collection. Implemented Enumerator and CopyTo
6714
6715         * HtmlHistory.cs: Add constructor, no implementation yet.
6716
6717         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
6718         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
6719         Equals, equality operators.
6720
6721         * HtmlWindowCollection.cs: Implemented. 
6722
6723         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
6724         has been deprecated).
6725
6726         * WebBrowserBase.cs: Use Completed event to track document loading
6727         (Navigated has been deprecated)
6728
6729 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
6730
6731         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
6732         level MenuItems do not respect tabs.
6733         [Fixes bug #355196]
6734
6735 2008-01-23  Geoff Norton  <gnorton@novell.com>
6736
6737         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
6738         FormWindowState.  Finished fixing Fullscreen windows on Carbon
6739
6740 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6741
6742         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
6743         be used as grab_control. Also save status of capture before show ContextMenu
6744         and restore it after close.
6745
6746 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6747
6748         * Control.cs: Internal FindRootParent method added to return high control
6749         in parent tree.
6750
6751 2008-01-23  Geoff Norton  <gnorton@novell.com>
6752
6753         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
6754         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
6755         it work again.  Handle HITTEST events.
6756
6757 2008-01-23  Geoff Norton  <gnorton@novell.com>
6758
6759         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
6760         a crash in certain cases.  Support for fullscreen windows in certain cases.
6761
6762 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
6763
6764         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
6765         [Fixes bug #355703]
6766
6767 2008-01-23  Geoff Norton  <gnorton@novell.com>
6768         
6769         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
6770
6771 2008-01-23  Geoff Norton  <gnorton@novell.com>
6772
6773         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
6774
6775 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6776
6777         * SplitContainer.cs: Remove unused declarations.
6778         * Binding.cs: Remove unused declarations.
6779
6780 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6781
6782         * Form.cs: Remove unused declaration of 'active' in Activate method.
6783         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
6784         prevent compilation warnings.
6785         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
6786         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
6787         * Bindings.cs: Remove unused formatting_enabled declaration.
6788         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
6789         warnings.
6790         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
6791         warnings.
6792         * PropertyGridView.cs: Remove usused 'ex' declaration.
6793         * DataGridView.cs: Remove unused declarations.
6794
6795 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6796
6797         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
6798         
6799         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
6800         to Control class, it makes possible to grab menu to controls that can't 
6801         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
6802         WmMouseMove removed since it was used only to track menu events.
6803
6804         * Control.cs:
6805         - Moved all active_tracker stuff from Form.
6806         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
6807         can call this method instead of reimplement all necessary code handle for
6808         menu tracker.
6809         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
6810         and WmMouseMove).
6811         
6812         * MenuAPI.cs: 
6813         - Remove special handle to ToolStripOverflow, now we can grab menu to 
6814         controls that can't reach Form using parent tree.
6815         - Change type of grab_control from Form to Control.
6816
6817 2008-01-22  Geoff Norton  <gnorton@novell.com>
6818
6819         * TextBoxBase.cs: Split up the sizing of controls and placing of 
6820         controls.  Fixes a bug where scrollbars in Reflector could be sized
6821         wrong and have non-working thumbers.
6822
6823 2008-01-23  Geoff Norton  <gnorton@novell.com>
6824
6825         * XplatUI.cs: Refactor environment variables to default support to the
6826         Carbon driver on the Mac.
6827
6828 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6829
6830         * Label.cs: Uses new LabelPainter for drawing operations.
6831         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
6832         * Theme.cs: DrawLabel and LabelDefaultSize removed.
6833
6834 2008-01-22  Geoff Norton  <gnorton@novell.com>
6835
6836         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
6837
6838 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
6839
6840         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
6841         through the normal flat button code and don't draw the checkbox glyph.
6842         * Theme.cs: Button->ButtonBase signature change.
6843         [Fixes bug #324755]
6844
6845 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
6846
6847         * LinkLabel.cs: Uses new class LinkLabelPainter.
6848
6849 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
6850
6851         * MessageBox.cs: Adjust right border space, we don't need to add 
6852         "space_border*2" two times.
6853
6854 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
6855
6856         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
6857         becomes a wrapper around Padding.
6858         [Fixes a part of bug #354676]
6859
6860 2008-01-22 Geoff Norton  <gnorton@novell.com>
6861
6862         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
6863         acquired.  Also ensure the buffer is large enough to grab the header
6864         we need on linux boxes.
6865
6866 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
6867
6868         * Control.cs: Implement a custom enumerator so people can delete
6869         from the Controls collection while in a foreach.
6870         [Fixes bug #355074]
6871
6872 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
6873
6874          * PropertyGridView.cs: Fix focusing behavior:
6875          - Tab should focus the grid text box.
6876          - Clicking on the labels shouldn't focus the grid text box.
6877
6878 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
6879
6880          * PropertyGridView.cs: IsValueTypeGridItem should return true 
6881          for Arrays as well.
6882
6883 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
6884
6885          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
6886           - Renamed GridEntry.SelectedObjects to TargetObjects to better
6887           reflect the property name role.
6888           - PropertyGrid.GetTarget is not required as the target is known
6889           (TargetObjects).
6890           - Setting values will handle value types as a special case now and
6891           populate them up in the chain.
6892           [Fixes #354990]
6893
6894 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
6895
6896         * Hwnd.cs: Create a public property for the Graphics we keep around.
6897
6898 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
6899
6900          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
6901          when the current object selection changes. 
6902          Fixes failing test SelectedObject_Null2.B5.
6903
6904 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
6905
6906          * PropertyGrid.cs: Process Browsable properties with 
6907          DesignerSerializationVisibilityAttribute.Content as being expandable.
6908          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
6909          will not be expandable. We should be nested components-friendly now.
6910
6911 2008-01-21  Andreia Gaita <avidigal@novell.com>
6912
6913         * WebBrowserBase.cs: Check if control was loaded properly, 
6914         don't bind if it wasn't.
6915
6916         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
6917         GetElementFromPoint, equality operators, OpenNew, Write.
6918         Remove extra set_Body
6919
6920 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
6921
6922         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
6923         that makes our AutoScale* stuff more tolerant to different orders
6924         of being set.  [Fixes bug #354669]
6925
6926 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
6927
6928          * PropertyGridView.cs, PropertyGridTextBox.cs: 
6929          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
6930          [Fixes #339005 and #348209]
6931
6932 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
6933
6934          * PropertyGridView.cs: Hide the grid text box before adjusting it
6935          for the newly selected GridItem.
6936          [Fixes #338999]
6937
6938 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
6939
6940         * Form.cs: Give MDI children the opportunity to cancel the parent form
6941         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
6942         properly for both the parent and child.
6943         * Application.cs: Signature of internal method changed, pass the previous
6944         default of false.
6945         [Fixes bug #354286]
6946
6947 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
6948
6949         * PropertyGridView.cs: Set the property value only if it has changed.
6950         [Fixes bug #338997]
6951
6952 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
6953
6954         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
6955         If the mouse hasn't actually moved, ignore these messages so the currently
6956         highlighted menuitem isn't reset to the one under the mouse.
6957         [Fixes bug #333668]
6958
6959 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
6960
6961         * PropertyGridView.cs: When the property changes Invalidate the GridItem
6962         in order for the properties with UITypeEditor.GetPaintValueSupported == true
6963         to reflect the change visually.
6964         [Fixes bug #338998]
6965
6966 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
6967
6968         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
6969         to 2.0 button drawing.
6970         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
6971         the button text is tall enough for one line.  LineLimit says it will
6972         always draw at least one line, but it is a lie.
6973         [Fixes bug #324941]
6974
6975 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
6976
6977         * XplatUIStructs.cs, X11Keyboard.cs :
6978           added some more VK_* keys to be handled.
6979
6980 2008-01-16  Andreia Gaita <avidigal@novell.com>
6981
6982         * Control.cs: Check if there is a container before setting or getting
6983         the validation flag.
6984
6985 2008-01-16  Andreia Gaita <avidigal@novell.com>
6986
6987         * ContainerControl.cs: Add flag to track if a control cancels validation, 
6988         so we don't fire click events.
6989
6990         * Control.cs: 
6991         - (HandleClick) Check if validation was cancelled before  firing the click
6992         events (doubleclicks are fired, but not clicks)
6993         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
6994         ContainerControl.set_ActiveControl, but in the case of non-selectable
6995         controls, like a Label, activecontrol is not set. 
6996
6997         * ButtonBase.cs: Only fire clicks if validation passes.
6998         
6999         Fixes #353310
7000
7001 2008-01-16  Geoff Norton  <gnorton@novell.com>
7002
7003         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
7004         trunk
7005
7006 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
7007
7008         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
7009         SelectedPath, just display the default dialog instead of crashing.
7010         [Fixes bug #348989]
7011
7012 2008-01-16  Geoff Norton  <gnorton@novell.com>
7013
7014         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
7015         AddExpose instead of trusting apples compositing manager which doesn't
7016         work for our use case.  Remove some dead code causing warnings and 
7017         redecorate some other code to prevent warnings.
7018
7019 2008-01-16  Geoff Norton  <gnorton@novell.com>
7020
7021         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
7022         carbon signals us to redraw.  Fixes another portion of the flickering bug
7023
7024 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7025
7026         * Form.cs: Prevent the MdiParent property to be set when value is the same
7027         as value already set. Fixes bug #328019.
7028
7029 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7030
7031         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
7032         it prevents NRE when closing mdi child windows. Fixes bug #325211.
7033
7034 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7035
7036         * InternalWindowManager.cs: Invalidade close button after mouse up when 
7037         mdi form is prevented to close.
7038
7039 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
7040
7041         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
7042         thanks to Andy Hume. Fixes bug #325433.
7043
7044 2008-01-16  Andreia Gaita <avidigal@novell.com>
7045
7046         * LinkLabel.cs: Reset focused_index when resellecting the control.
7047         Fixes #323190
7048
7049 2008-01-15  Geoff Norton  <gnorton@novell.com>
7050
7051         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
7052         messages.
7053
7054 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
7055
7056         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
7057         of truncate.
7058
7059 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
7060
7061         * ContainerControl.cs: Setting AutoScaleMode to anything should set
7062         Form.AutoScale to false.
7063         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
7064         AutoScaleBaseSize should be changed on Font change unless it has been
7065         explicitly set.
7066         [Fixes bug #353827]
7067
7068 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
7069
7070         * MenuAPI.cs: On instance of MenuTracker check if source control is
7071         ToolStripOverflow and use properly method to find form.
7072         [Fixes bug #338511]
7073
7074 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
7075
7076         [Fixes bug #323241 Transparent toolbar support]
7077
7078         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
7079         is flat.
7080
7081         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
7082         defined in control style to mimic win32 behavior.
7083
7084         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
7085         it will be transparent.
7086
7087 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
7088
7089         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
7090         CreateParams for ToolBar controls.
7091
7092 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7093
7094         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
7095         FixedToolWindow, SizeableToolWindow, or None for border styles have
7096         different minimum sizes than regular forms.  Implemented to fix
7097         regression in PDN with toolbox being too wide.
7098
7099 2008-01-14  Andreia Gaita <avidigal@novell.com>
7100
7101         * HtmlElementCollection.cs: Implemented
7102
7103         * HtmlElement.cs: Implemented:
7104           - All
7105           - InnerHtml
7106           - InnerText
7107           - Id
7108           - Name
7109           - FirstChild
7110
7111         * HtmlDocument.cs: Implemented GetElementsByTagName.
7112
7113 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7114
7115         * Screen.cs: Stub BitsPerPixel to always return 32.
7116
7117 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7118
7119         * Form.cs: Implement RestoreBounds.
7120
7121 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
7122
7123         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
7124         Sebastien and his fabulous magical problem-finding machine:
7125         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
7126         respect the value set.
7127
7128 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
7129
7130         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
7131         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
7132
7133 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7134
7135         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
7136         messages (to match .Net), we need to remove the capture ourselves.
7137
7138 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
7139
7140         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
7141         will process the message and close our window.
7142         [Fixes bug #324328]
7143
7144 2008-01-10  Geoff Norton  <gnorton@novell.com>
7145
7146         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
7147         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
7148         window manager.
7149
7150 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
7151
7152         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
7153         failing test.
7154
7155 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
7156
7157         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
7158         Linux doesn't care, having a minimum matches MS and keeps the window
7159         from becoming too small to use window decorations.
7160         [Fixes bug #338996]
7161
7162 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
7163
7164         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
7165         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
7166         control.  [Fixes bug #325419]
7167
7168 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
7169
7170         * ComboBox.cs: Guard against an NRE if the user open a new form from a
7171         SelectedIndexChanged event.  This closes the combobox dropdown, and we
7172         were trying to dispose it.  [Fixes bug #352830]
7173
7174 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
7175
7176         * Control.cs, Form.cs: Implement the necessary semantics for
7177         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
7178         to determine if a focus rectangle should be drawn.
7179         * PropertyGrid.cs: Fix property visibility to match override.
7180         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
7181
7182 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
7183
7184         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
7185         [Fixes bug #323552]
7186
7187 2008-01-09  Geoff Norton  <gnorton@novell.com>
7188         
7189         * XplatUICarbon.cs: Scroll windows in the correct direction.
7190
7191 2008-01-09  Geoff Norton  <gnorton@novell.com>
7192
7193         * XplatUICarbon.cs: Track all created utility windows so we can hide them
7194         when the app is deactivated or spaces is enabled.
7195
7196 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7197
7198         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
7199         extra separation pixel for the label rect origin if SmallImageList is
7200         null, and thus we don't need that separation between icon and label
7201         rects.
7202         Patch by Ernesto Carrea.
7203         Fixes # 340195.
7204
7205 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
7206
7207         * StatusStrip.cs: Invalidate after completing a layout.  The base
7208         OnLayout does this, but we don't call the base.
7209         * ToolStripItem.cs: Revert the previous change to invalidate after
7210         the item moves.
7211         [Fixes bug #351341 better.]
7212
7213 2008-01-07  Geoff Norton  <gnorton@novell.com>
7214
7215         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
7216         not a notification to exit the application.  Listen for WM_QUIT
7217         instead.
7218
7219 2008-01-07  Andreia Gaita <avidigal@novell.com>
7220
7221         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
7222
7223 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
7224
7225         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
7226         so it can repaint at the correct location.
7227         [Fixes bug #351341]
7228
7229 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7230
7231         * ListControl.cs: SelectedValue should return a null value if
7232         SelectedIndex is -1. Also, when setting it, it should throw an
7233         ArgumentNullException if the value is null, as well as taking
7234         into account the String.Empty value, instead of ignoring it (we have
7235         tests for that now).
7236         Fixes part of #324286.
7237
7238 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
7239
7240         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
7241         SelectionStart is updated after pressing enter.  Fixes bug #351918.
7242
7243 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7244
7245         * TextControl.cs: Revert a piece r92316 that prevented the fix
7246         from working when there were multiple tags in the text box.
7247         Fixes bug #351881.
7248
7249 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7250
7251         * TextControl.cs: Apply patch from Luke Page that prevents an
7252         NRE when determining the beginning of a paragraph.
7253         Fixes bug #351886.
7254
7255 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7256
7257         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
7258         caret gets moved with clicking away from a selected block of
7259         text.  Fixes bug #351885.
7260
7261 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7262
7263         * TextControl.cs: Apply patch from Luke Page that takes line
7264         alignment into account for mouse selection, so that center and
7265         right aligned text can be selected.
7266         Fixes bug #351881.
7267
7268 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7269
7270         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
7271         issues after loading an RTF file by using the correct line feeds.
7272         Fixes bug #351841.
7273
7274 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7275
7276         * TextControl.cs: When deleting multiple line selections, we need
7277         to invalidate every line beginning at the first line of the selection.
7278         Patch from Luke Page fixes bug #351791.
7279
7280 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7281
7282         * ListControl.cs: When getting a CurrencyManager.PositionChanged
7283         event, don't set SelectedIndex if the number of items is 1. This is
7284         because, for the first item, PositionChanged is fired _before_
7285         ItemChanged (the place where we actually populate the items), and
7286         leave us in a temporary invalid state (since items collection is
7287         empty).
7288         Fixes #349655.
7289
7290 2008-01-04  Geoff Norton  <gnorton@novell.com>
7291
7292         * XplatUICarbon.cs:  Create native toolwindows instead of
7293         the managed drawing ones.
7294
7295 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
7296
7297         * LineTag.cs: If the line doesn't have any characters, return
7298         0 for GetCharIndex.  Fixes an AOORE exception after certain
7299         caret movements.  Fixes bug #351683.  Patch by Luke Page.
7300
7301 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
7302
7303         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
7304         is hit when there is selected text, only the selected text gets
7305         deleted, not the character in front of the selection as well.
7306         Fixes bug #351578.
7307
7308 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7309
7310         * ComboBox.cs: When the values are displayed, calculate the
7311         ComboListBox scrollbar's LargeChange based on the visible area's
7312         height and  the actuall ItemHeight, instead of calculating it
7313         based on MaxDropItems value, since it's not used by our _current_ 
7314         2.0 profile.
7315         Fixes #332366.
7316
7317 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
7318
7319         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
7320         Patch from Luke Page that fixes issues with font colors and styles
7321         not showing up in a readonly RichTextBox.  Fixes bug #324354.
7322
7323 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
7324
7325         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
7326         from Luke Page.  This one fixes bug #349926.
7327
7328 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7329
7330         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
7331         an item in the IBindingList source changes with
7332         ListChangedType.ItemAdded. Ignore for now firing the event for other
7333         changes, since we want to have tests for those cases as well.
7334
7335 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
7336
7337         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
7338         created.
7339
7340 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
7341
7342         * TextBoxTextRenderer.cs: Implement a cache for measuring each
7343         character.  This is effective because the typical usage of a
7344         TextBox is with a limited amount of fonts and characters, and
7345         the current implementation of TextBox measures everything one
7346         character at a time.  Another second or two speedup for bug #347238.
7347
7348 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
7349
7350         * Control.cs: Rewrite the Font getter to only query the parent's
7351         Font property once instead of twice.  Since this operation is
7352         recursive, the queries were growing exponentially as the control
7353         tree got deeper.  Another second or two speedup for bug #347238.
7354
7355 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
7356
7357         * Control.cs: Avoid setting a parent (and more importantly, updating
7358         the zorder of all its children) if the parent is already correct in
7359         WmShowWindow.  Decreases the startup time of the test case on bug
7360         #347238 from 35 seconds to 11 seconds.
7361
7362 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7363
7364         * X11Dnd.cs: When the dnd operation has started and we are 
7365         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
7366         This is done to match .Net, which doesn't send those messages after
7367         dnd operation was completed/cancelled.
7368         Fixes #349922.
7369
7370 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
7371
7372         * ToolStrip.cs: Previous change should be != null, not == null.
7373         Thanks Gert!
7374
7375 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
7376
7377         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
7378         user may have moved the mouse off the current item during the event.
7379
7380 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7381
7382         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
7383         calling GetItemAt for every MouseMove event by also taking into
7384         account whether any mouse button is pressed (probably dragging); 
7385         if so, we can call GetItemAt, and if not, try to not call it 
7386         (GetItemAt can be quite expensive when used with a large number of items).
7387
7388 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7389
7390         * ListView.cs: Implement -finally- support for dnd, by calling
7391         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
7392         authors list ;-).
7393         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
7394         simple calculation of distances for all the items in the owner
7395         listview.
7396
7397 2007-12-21  Geoff Norton  <gnorton@novell.com>
7398
7399         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
7400         for windows that are originally created as invisible.  Fixes missing
7401         main window in paint-mono.
7402
7403 2007-12-21  Geoff Norton  <gnorton@novell.com>
7404
7405         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
7406         subclass handler for com.novell.mwfview subclassing HIView.  Implement
7407         Pasteboard and Dnd methods.
7408
7409 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7410
7411         * ListBox.cs: When we got focus, give focus to first item if there
7412         wasn't any pervious focused item. Also update navigation to depend on
7413         SelectedIndex rather than FocusedItem, just as .Net does.
7414         Fixes #349174.
7415
7416 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7417
7418         * ListBox.cs: Both FindString and FindStringExact methods must do an
7419         case insensitive search, should allow the last valid index to be
7420         passed in the overload taking an initial index, and should also
7421         continue searching from the top back to the specified index when it
7422         reaches the bottom.
7423
7424 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
7425
7426         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
7427         redraw issue, and allows RichTextBox to draw colored text even while
7428         disabled or readonly.
7429
7430 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
7431
7432         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
7433         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
7434         and doesn't grey text in a disabled RichTextBox.
7435
7436 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
7437
7438         * RichTextBox.cs: Apply patch from Luke Page that adds better support
7439         for many RTF commands: quad alignment, separate formatting for blocks
7440         inside groups, and ParDef support.  Makes the test case from bug #324589
7441         look much better.
7442
7443 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
7444
7445         * LineTag.cs: Fix an error in the new Draw method that caused
7446         a crash when rendering the document on bug #324589.
7447
7448 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
7449
7450         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
7451         TextControl.cs: Apply patch from Luke Page that adds support
7452         for URL links in RichTextBox.
7453         [Fixes enhancement #342516]
7454
7455 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
7456
7457         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
7458         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
7459
7460 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7461
7462         * ListBox.cs: When a key gets pressed, try to find a string
7463         if the key is a character or a digit.
7464         Fixes #343971.
7465
7466 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
7467
7468         * TableLayoutPanel.cs: Remove some unused variables.
7469
7470 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
7471
7472         * DateTimePicker.cs: Commit patch from Luke Page that ensures
7473         we don't end up at an invalid date when we click the up/down
7474         spinner to change the month or year.  Fixes bug #348682.
7475
7476 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
7477
7478         * Application.cs: Calling Exit in 2.0 should chain to the
7479         Exit (CancelEventArgs) version so it can be cancelled.
7480         * Form.cs: Create a flag to allow raising the Closing
7481         events to be skipped.  We raise them once in Application.Exit
7482         and don't want to raise them again when the Form is actually
7483         closed.  [Fixes bug #349073]
7484
7485 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
7486
7487         * ToolStripDropDown.cs: Guard against an NRE when there
7488         hasn't been a mainform set in the application context.
7489         [Fixes bug #349108]
7490
7491 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7492
7493         * ListBox.cs: When SetBoundsCore gets called, besides
7494         calling UpdateScrollBars, update the value of
7495         last_visible_index, since we could need to show more items
7496         than before, and we need to let the paint routines know that.
7497         Fixes #344445.
7498
7499 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7500
7501         * ListView.cs: Add DesignerSerializationVisibility attribute to
7502         InsertionMark property.
7503         * ListViewItem.cs: Add same attribute to Position property.
7504
7505 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7506
7507         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
7508         is 2.0 only.
7509
7510 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
7511
7512         * ThemeWin32Classic.cs: Don't draw the background on a
7513         flat button if there is a background image.
7514         [Fixes bug #348649]
7515
7516 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7517
7518         * ListBox.cs: If we remove the item currently selected,
7519         remove it not only from SelectedItems, but also
7520         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
7521         the items count decreased and focused_item has bigger value than that.
7522
7523 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
7524
7525         * Control.cs: Perform our layout after we resize ourselves
7526         if we had to adjust our AutoSize.  Missed commit for bug
7527         #346246.
7528
7529 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
7530
7531         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
7532         we can provide an implementation of AutoSize.
7533         [Fixes bug #346246]
7534
7535 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7536
7537         * ListBox.cs: Add the internal overload Sort (bool paint),
7538         to indicate whether we actually need a paint or we will
7539         call Refresh ourselves. This way we don't request a paint
7540         _before_ having an updated and valid layout.
7541         Fixes #347233.
7542
7543 2007-12-12  Andreia Gaita <avidigal@novell.com>
7544
7545         * XPlatUIX11.cs: Send paint messages when updating a systray icon
7546         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
7547         properly invalidated. 
7548         Fixes #324237
7549
7550 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7551
7552         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
7553         don't simply assign it to our internal group field, but instead 
7554         use our Group property, which should do all the neccessary work
7555         required to support groups. Fixes an issue reported to me (mail) by a 
7556         guy using this new feature.
7557
7558 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
7559
7560         * Control.cs: Use Scale instead of ScaleControl to ensure the
7561         whole hierarchy gets scaled.
7562         [Fixes bug #347282]
7563
7564 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
7565
7566         * DateTimePicker.cs: Don't set the internal MonthCalendar's
7567         Parent property.  Doing this causes the control to be hosted by
7568         the Form instead of being a popup window.
7569         [Fixes bug #347665]
7570
7571 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
7572
7573         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
7574         at an index higher than Count, just use Add instead of Insert.
7575         [Fixes bug #347669]
7576
7577 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
7578
7579         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
7580         DrawPictureBox, this is handled by Control.PaintBackground.
7581         [Fixes bug #347276]
7582
7583 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
7584
7585         * MenuAPI.cs: When process menu keys return true by default only if menu is
7586         active. Fixes bug #342892.
7587
7588 2007-12-09  Andreia Gaita <avidigal@novell.com>
7589
7590         * Control.cs: check if windows are actually mapped before
7591         trying to zorder. Fixes #342509, #346955
7592
7593 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7594
7595         * ListView.cs:
7596         * ListViewInsertionMark.cs:
7597         * ThemeWin32Classic.cs: Implement the drawing side of the
7598         new 2.0 ListView.InsertionMark property.
7599
7600 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
7601
7602         * CurrencyManager.cs: Silence some debug spew.
7603
7604 2007-12-07  Geoff Norton  <gnorton@novell.com>
7605         
7606         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
7607         masks for our children as well as siblings to avoid having to query
7608         Quartz for this information.
7609         * XplatUICarbon.cs: Implement a delegate based system to pass
7610         information to System.Drawing.  Implement Async methods.  Remove
7611         the hack for the resize thumb and imlpement a transparent Grow Box.
7612         Rework the messaging system to proplery create window's and messages,
7613         fixes TabControl.
7614
7615 2007-12-06  Andreia Gaita <avidigal@novell.com>
7616
7617         * X11Keyboard.cs: Use Xutf8LookupString to support international 
7618         characters under alternate codepages. Patch from #340878
7619
7620 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7621
7622         * ListView.cs: When doing layout computations, set position in the
7623         ListView instances (we cache the position just as .Net does).
7624         * ListViewItem.cs: New internal setter method for Position. Also set
7625         position field as also available in 1.1, since we are going to use it
7626         now in the common case.
7627
7628 2007-12-06  Andreia Gaita <avidigal@novell.com>
7629
7630         * Control.cs: When removing controls, get the actual container
7631         to notify about active control changes. Fixes 341314.
7632
7633 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7634
7635         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
7636
7637 2007-12-05  Andreia Gaita <avidigal@novell.com>
7638
7639         * Control.cs: When updating the zorder, ignore windows that are not
7640         mapped. Fixes #342509
7641
7642 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7643
7644         * ListViewItem.cs: Actually implement serialization on this class.
7645
7646 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
7647
7648         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
7649         LinkCollection. Spaces to tabs, and removed extra tabs.
7650
7651 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7652
7653         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
7654           tests to fail (hopefully).
7655
7656 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
7657
7658         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
7659         the image margin so custom renderers can correctly place it.
7660
7661 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
7662
7663         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
7664         so custom renderers can correctly place it.
7665
7666 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
7667
7668         * Application.cs: Let WM_CHAR messages flow through to controls
7669         hosted in Strips.  [Fixes bug #343972]
7670
7671 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
7672
7673         * ToolStripManager.cs: Guard against an NRE I ran into.
7674
7675 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
7676
7677         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
7678         a Link is manually added to the Links collection, we need to set
7679         its owner, so it can invalidate properly.
7680         [Fixes bug #344012]
7681
7682 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7683
7684         * ListView.cs: When changing ListViewItem.Position (which calls
7685         ListView.ChangeItemLocation), invalidate not only the area
7686         corresponding to the main item, but also to the area occupied
7687         by the items being moved.
7688
7689 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7690
7691         * ListView.cs: When changing the position of a given item,
7692         don't use item bounds, but item areas (which includes the item spacing
7693         between them). Also, use first/last position if the requested
7694         position is outside bounds (as .Net does). Invalidate the previous and
7695         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
7696         in a specific position, instead of directly accessing Items collection
7697         (this is done to get the right item - remember an Item can have a
7698         different position in the grid than in the Items collection).
7699
7700 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
7701
7702         * MessageBox.cs: Calculate text area instead of just top left, this rect 
7703         area will be used in DrawString. Fixes bug #343364.
7704
7705 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
7706
7707         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
7708         screen width. Partially fixes bug #343364.
7709
7710 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
7711
7712         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
7713         code inside recalculate, it makes code more simple.
7714
7715 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
7716
7717         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
7718         between update or add icon. Fixes bug #324344.
7719
7720 2007-11-21  Andreia Gaita <avidigal@novell.com>
7721
7722         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
7723         window manager, since that stretches the drawing area to include
7724         the window decorations, and they get hidden. Reverts r84444 and fixes
7725         #335849 and #342790 (mdi and pdn3 regression)
7726
7727 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7728
7729         * ListView.cs: When setting focused item, try to give focus to the
7730         previous one _only_ if the previous one remains valid. 
7731         Fixes #342504.
7732
7733 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
7734
7735         * Application.cs: Revert r89650, as it broke a common case to fix
7736         an obscure case.  Fixes bug #342606.
7737
7738 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
7739
7740         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
7741
7742 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
7743
7744         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
7745         alignment. [Fixes #324228]
7746
7747 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
7748
7749         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
7750         [Fixes bug #342123]
7751
7752 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
7753
7754         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
7755         it prevent problems when empty captions. [Fixes #342141]
7756
7757 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
7758
7759         * Label.cs: Use Size instead of None.  Fixes bug #342077.
7760
7761 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7762
7763         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
7764
7765 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
7766
7767         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
7768         but there isn't a MdiContainer.
7769         [Fixes bug #342358]
7770
7771 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
7772
7773         * TextControl.cs: Don't recalculate document if the recalc_start and
7774         recalc_end hasn't changed.
7775         [Fixes bug #342505]
7776
7777 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
7778
7779         * DataGridViewTextBoxCell.cs: Removed CWL.
7780
7781 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7782
7783         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
7784
7785 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
7786
7787         * TextControl.cs: Missed some code for bug 341534 to trigger a
7788         recalculation when the font changes.
7789
7790 2007-11-16  Andreia Gaita <avidigal@novell.com>
7791
7792         * Control.cs: When updating the zorder, check if the child to update is
7793         the same control that is set to always be on top (i.e., scrollbars), and 
7794         just put it on top directly. Fixes BadMatch error on pdn3
7795
7796 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7797
7798         * ListView.cs: Throw the needed exceptions for FindNearestItem.
7799
7800 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
7801
7802         * Control.cs: Don't perform a new layout when a label changes its text,
7803         cause label handles its own autosizing.
7804         [Fixes bug #342077]
7805
7806 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7807
7808         * ListView.cs: Implement 2.0 FindNearestItem methods.
7809
7810 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
7811
7812         * ToolStripPanel.cs: Make Join at least add the control to the panel,
7813         even if the rest of what Join does isn't supported.  Add some more
7814         support for vertical toolbars.
7815         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
7816         [Fixes the application breaking parts of bug #341998]
7817
7818 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
7819
7820         * ToolStripItem.cs: When determining if we have a check/image margin,
7821         we need to look at ShowCheckMargin as well as ShowImageMargin.
7822
7823 2007-11-15  Geoff Norton  <gnorton@novell.com>
7824
7825         * XplatUIOSX.cs: Rename to...
7826         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
7827         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
7828
7829 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
7830
7831         * KeysConverter.cs: The default values should be an array of Keys, not
7832         strings.  Also, the array has more values for 2.0.
7833         [Fixes bug #341851]
7834
7835 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
7836
7837         * Application.cs: Change ExecutablePath to use 
7838         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
7839         [Fixes bug #323552]
7840
7841 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
7842
7843         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
7844         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
7845         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
7846         be ignored.  Create a new GetLineEnding that can specify which types of
7847         line endings to look for.  On Insert, only create new lines for \n and \r\n.
7848         [Fixes bug #324274]
7849
7850 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
7851
7852         * TextBoxBase.cs: As we loop through each line changing the font, tell
7853         the document that the line needs to be recalculated.  Fixes bug #341534.
7854
7855 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
7856         [Another round of refactoring]
7857         * Line.cs: Add DeleteCharacters.
7858         * LineTag.cs: Add Delete.
7859         * TextBoxBase.cs: Update to use new methods.
7860         * TextControl.cs: Refactor the Delete* methods.
7861
7862 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
7863
7864         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
7865         the patch. [Fixes #324856]
7866
7867 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7868
7869         * ListView.cs:
7870         * ListViewItem.cs: Add an initial implementation of
7871         2.0 ListViewItem.Position getter.
7872
7873 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7874
7875         * ListView.cs: Add a reordered_items_indices array, to allow us
7876         to have a different sorting than that of Items (the sorting in Items
7877         could not match the actual sorting in screen). This is needed to
7878         implement a pair of 2.0 features.
7879         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
7880         actual position in the ListView grid, since it could have a position
7881         different than its Index (position in ListViewItemCollection). 
7882
7883 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
7884
7885         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
7886         not draw partial lines.
7887         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
7888         LineLimit flag from the base is preserved.
7889         Fixes the windows part of bug #338965.
7890
7891 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
7892
7893         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
7894         so that it can be canceled in KeyPress.
7895         Fixes bug #340078.
7896
7897 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7898
7899         * ListView.cs: In ItemControl, reset mouse-handling related
7900         fields even if we dont' have items (we still should reset them when
7901         we had items but then called Items.Clear). Partially based in a patch
7902         by George Giolfan.
7903         Fixes #338399.
7904
7905 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
7906
7907         * Application.cs: In ProductVersion first try AssemblyFileVersion
7908         before falling back to assembly version. Fixes bug #339787.
7909
7910 2007-11-08  Andreia Gaita <avidigal@novell.com>
7911
7912         * HtmlElement.cs: Implement InnerText setter.
7913         * WebBrowserBase.cs: Implement Navigated event support.
7914         Add flag to track when the browser "document" is ready to be retrieved.
7915         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
7916         Make sure browser document is ready before retrieving it.
7917         Clean up cached objects (document) when moving to a new page through
7918         any of the navigation methods.
7919         Use the new Mono.WebBrowser.INavigation interface to control navigation.
7920         Implement OnNavigated event.
7921
7922 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
7923
7924         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
7925         DrawLinkLabel, this is handled by OnPaintBackground.
7926         Fixes bug #339565, part II.
7927
7928 2007-11-07  Andreia Gaita <avidigal@novell.com>
7929
7930         * Control.cs: Revert r88915. Selecting text on a textbox depends on
7931         getting a Select call on click, so this call needs to be here for now.
7932         Unfixes #325809
7933
7934 2007-11-07  Geoff Norton  <gnorton@novell.com>
7935
7936         * OSXStructs.cs: Add the kEventClassApplication constants.
7937         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
7938         application is deactivated otherwise Menu overlays linger on top of
7939         other application windows.
7940
7941 2007-11-07  Geoff Norton  <gnorton@novell.com>
7942
7943         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
7944         dont support cursors yet anyways.  This allows Reflector to run.
7945
7946 2007-11-07  Geoff Norton  <gnorton@novell.com>
7947
7948         * XplatUIOSX.cs: Implement DragSize.
7949
7950 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7951
7952         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
7953         ItemControl, request the focus, as .Net does. This is needed after 
7954         Control does not request focus anymore when it receives a
7955         WM_LBUTTONDOWN.
7956
7957 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
7958
7959         * Label.cs: Make DrawImage internal so it can be called from Theme code.
7960         Remove the DrawImage call from OnPaint.
7961         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
7962         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
7963         but before we draw the text for DrawLabel and DrawLinkLabel.
7964         Fixes bug #339565.
7965
7966 2007-11-05  Andreia Gaita <avidigal@novell.com>
7967
7968         * Control.cs: Remove select call on click. Fixes #325809
7969
7970 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7971
7972         * ListViewItem.cs: Add 2.0 Position property getter.
7973
7974 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7975
7976         * ListView.cs: Add 2.0 BackgroundImageTiled property.
7977         Also, to make it work properly, change item's BackColor and
7978         BackgroundImageLayout as needed.
7979         * ThemeWin32Classic.cs: Don't fill any background rectangle 
7980         in ListView.ItemControl when drawing items; just let the Control
7981         base implementation fill it.
7982
7983 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7984
7985         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
7986         as well as adding a custom 'dummy' Converter, as .net does.
7987
7988 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7989
7990         * PropertyGridView.cs: When clicking drop-down button,
7991         select an index in the listbox only if our standard values collection 
7992         has one or more items.
7993
7994 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7995
7996         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
7997         property.
7998
7999 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
8000
8001         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
8002         the value is not changed. This ensure a pushed button remains in that
8003         state when clicked again. When switching the value of PropertySort
8004         between Categorized and CategorizedAlphabetical, do not update the
8005         grid items and do not fire a PropertyChangedEvent. When clicking the
8006         sorting buttons, do not modify the PropertySort value when switching
8007         between Categorized and CategorizedAlphabetical but only update the
8008         button state.
8009
8010 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
8011
8012         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
8013         formatting.
8014         * PropertyGrid.cs: Also put Categorized button in pushed state when
8015         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
8016         for help description label.
8017
8018 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8019
8020         * ListView.cs: When calculating the biggest item for a given column,
8021         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
8022         the item's width.
8023
8024 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
8025
8026         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
8027         value for PropertySort on 1.0 profile. PropertySortChanged event
8028         should only be fired on 2.0 profile. Fixed NullReferenceException
8029         in UpdateSortLayout when PropertyGrid contains no items.
8030
8031 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
8032
8033         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
8034         [Fixes bug #338554]
8035
8036 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8037
8038         * ListViewItem.cs: Implement 2.0 IndentCount property.
8039
8040 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8041
8042         * X11Dnd.cs: When sending status in a dnd operation, compare current
8043         effect with the 'allowed' field instead of 'drag_data.Allowed', since
8044         the later is only created when a Winforms application is both the
8045         source and the target, but not when we are the target only.
8046         Fixes part of #324251.
8047
8048 2007-11-01  Geoff Norton  <gnorton@novell.com>
8049
8050         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
8051         order of Z-Order.
8052         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
8053         children out of the drawing view on mac.
8054         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
8055         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
8056         
8057 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
8058
8059         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
8060         on the non-hosted-control part of it shouldn't do anything.
8061         Fixes part of bug #327498.
8062
8063 2007-11-01  Andreia Gaita <avidigal@novell.com>
8064
8065         * WebBrowserBase.cs: revert previous change, resize can be called anytime
8066
8067 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
8068
8069         * Application.cs: When a toolstrip has the keyboard input loop, let messages
8070         it does not use flow through to controls that are hosted in menus.
8071         Same with mouse clicks.
8072         * Form.cs: Don't close all menus on click if the click is on a
8073         control hosted in a menu.
8074         Fixes part of bug #327498, and part of bug #325969.
8075
8076 2007-10-31  Andreia Gaita <avidigal@novell.com>
8077
8078         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
8079
8080 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
8081
8082         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
8083         Addresses an issue raised in bug #336218.
8084
8085 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
8086
8087         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
8088         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
8089
8090 2007-10-30  Andreia Gaita <avidigal@novell.com>
8091
8092         * ContainerControl.cs: Check if the active control is a
8093         child of a removed control and update active_control accordingly.
8094         Fixes #329718
8095
8096 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8097
8098         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
8099         or the MaxDate.  Fixed bug #337693.
8100
8101 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8102
8103         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
8104         after calling SetWindowLong for a form, to force an immediate NC refresh.
8105         Fixes first part of bug #325150.
8106
8107 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8108
8109         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
8110         simple.  Fixes the last part of bug #322668.
8111
8112 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
8113
8114         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
8115         needs to be TopMost as well, or else the MessageBox is under the form.
8116         Patch by George fixes bug #325300.
8117
8118 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8119
8120         * X11Dnd.cs: When starting a new drag operation, reset the static
8121         'dropped' field to false (previously the implementation didn't reset
8122         it and got confused after the first drag).
8123         Fixes #325071.
8124
8125 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8126
8127         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
8128         items instead of re-creating them all. For this purpose we now cache
8129         both CategoryGridEntry items and the GridEntries for the main object's
8130         properties.
8131         * GridItem.cs: Make SetParent method abstract.
8132         * GridEntry.cs: Override the SetParent method (already there, but now
8133         we override it).
8134         Fixes #324866.
8135
8136 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8137
8138         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
8139         depending on its depth (as .Net does). Update the needed values in
8140         MouseDown handler. Also draw the plus/minus rect after the label,
8141         so we don't draw on top of it.
8142
8143 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
8144
8145         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
8146         processed by forms or controls when menu is active. [Fixes #333548]
8147
8148 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
8149
8150         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
8151         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
8152         focus on mouse over.
8153
8154 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
8155
8156         * TextControl.cs: Code cleaning, simplifying.
8157
8158 2007-10-24  Geoff Norton  <gnorton@novell.com>
8159
8160         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
8161         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
8162
8163 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
8164
8165         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
8166         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
8167
8168 2007-10-24  Andreia Gaita <avidigal@novell.com>
8169
8170         * SendKeys.cs: apply jpobst's patch to bug #332409
8171
8172 2007-10-23  Andreia Gaita <avidigal@novell.com>
8173
8174         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
8175         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
8176         for some reason
8177
8178 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8179
8180         * PropertyGridView.cs: If a property has an UIEditor available,
8181         make the drop-down/editor button available only if the property
8182         is _not_ read only.
8183
8184 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8185
8186         * PropertyGridView.cs: Don't make the grid item textbox 
8187         editable when a drop-down control is available, but 
8188         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
8189         true. The same bur the color of the grid item value's label.
8190
8191 2007-10-22  Geoff Norton  <gnorton@novell.com>
8192
8193         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
8194         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
8195         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
8196         driver.  Padd the bottom of all real windows so the resize thumb doesn't
8197         obscure scroll/status bars.
8198
8199 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
8200
8201         * WindowsFormsSection.cs: Implement.
8202
8203 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
8204
8205         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
8206         closed see #325434 patch.
8207
8208 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
8209
8210         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
8211         see #325434 patch.
8212
8213 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8214
8215         * PropertyGridView.cs: When showing the textbox for a grid item,
8216         have two local variables to store the read-only and non-editable
8217         status of a grid item (we were previously using just one variable
8218         to do this, when actually they are slightly different).
8219         Fixes part of #325023.
8220
8221 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8222
8223         * PropertyGridView.cs: When showing a drop-down list, try to get the
8224         values using TypeConverter.ConvertTo (to convert to a string). Fixes
8225         part of #325023.
8226
8227 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8228
8229         * PropertyGrid.cs: When updating a property and populating sub grid
8230         items, remove the previous ones, and invalidate the specific area.
8231         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
8232         area behind a grid item.
8233         * GridItemCollection.cs: Add an internal Clear method, to allow us to
8234         clean the items if needed (specially for controls implementing 
8235         ICustomTypeDescriptor and returning a variable number of properties).
8236         Fixes #324865.
8237
8238 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
8239
8240         * TextControl.cs: Clean up and document the Insert function.
8241
8242 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
8243
8244         * TextControl.cs: Make sure we know our start point for updating the view
8245         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
8246         update the view.
8247
8248 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
8249
8250         * ListView: Couple of corcompare fixes.
8251
8252 2007-10-17  Geoff Norton  <gnorton@novell.com>
8253
8254         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
8255         the title caption of real window.
8256
8257 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
8258
8259         * ErrorProvider.cs: Add the error provider's internal window to a 
8260         containercontrol when the parent changes.  [Fixes bug #329714]
8261
8262 2007-10-17  Geoff Norton  <gnorton@novell.com>
8263
8264         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
8265         When we make a new window; restore the old active window - fixes dialogs.
8266
8267 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8268
8269         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
8270         when modifying a property, and if found then invalidate as
8271         requested.
8272         Fixes part of #324865.
8273
8274 2007-10-17  Geoff Norton  <gnorton@novell.com>
8275
8276         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
8277         highly experimental.  Fixed coordinate translation.  Fixed window locations.
8278         Initial support for clipping. Implemented NC areas and menus.  Support for
8279         launching from command line from Will Johansson (wjohansson@atacomm.com).
8280         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
8281         wjohansson@atacomm.com)
8282         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
8283         Hwnds now track the existence of all of their children for Mac clipping.
8284     * XplatUI.cs: Re-enabled the native driver on the Mac.
8285
8286 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
8287
8288         * Line.cs: Move the InsertString function to here.
8289         * TextControl.cs: Cleanup some duplicate code, move some InsertString
8290         functionality to Line.
8291
8292 2007-10-17  Geoff Norton  <gnorton@novell.com>
8293
8294         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
8295
8296 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
8297
8298         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
8299         always setting value to true.
8300         * Form.cs: When changing AcceptButton, notify new and original button.
8301
8302 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
8303
8304         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
8305         a custom control that implements IButtonControl instead of an actual
8306         button.  [Fixes bug #334244]
8307
8308 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
8309
8310         * Form.cs: Change SelectActiveControl to internal, we need to call it in
8311         MdiWindowManager.
8312         
8313         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
8314         active control when activate a new mdi window.
8315         
8316         [Fixes bug #330495]
8317
8318 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
8319
8320         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
8321         is already added.
8322         [Fixes bug #333617]
8323
8324 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
8325
8326         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
8327         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
8328         so we always recalculate the whole document instead of just the new part.
8329         [Fixes bug #325082]
8330
8331 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
8332
8333         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
8334         when the mouse was to the left of the first character in the line.
8335
8336 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
8337
8338         * TextBox.cs, TextBoxBase.cs: When setting the document's password
8339         character, use the property instead of the variable so that the
8340         UseSystemPasswordChar property is taken into account.
8341         [Fixes bug #333748]
8342
8343 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8344
8345         * FolderBrowserDialog.cs: When a node is right clicked and the "New
8346         folder" contex menu appears, actually add the new folder to it, even
8347         if the node is not currently selected. Still use SelectedNode in case 
8348         there wasn't found a node under the pointer.
8349         Fixes #325452.
8350
8351 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8352
8353         * ListViewItem.cs: When retrieving the focused state, the index check
8354         should be done only when ListView is in virtualmode, as it is an
8355         expensive check for normal mode.
8356
8357 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8358
8359         * ListViewItem.cs: Make the focus state information be stored
8360         in the ListView, not in the items. This is done to match the MS
8361         behaviour for items that are not yet part of a ListView control;
8362         besides that, since just one item can be focused at the same time,
8363         we save a little space in our items.
8364         Fixes part of #331643.
8365
8366 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
8367
8368         * ComboBox.cs: When focus is lost, deselect the text. When setting
8369         text of control, select all text. Do not hide selection when control
8370         does not have focus. Fixes bug #333663.
8371
8372 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
8373
8374         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
8375         instead of ArgumentException when SelectionLength is set to negative
8376         value. Added same check to SelectionStart. Code formatting.
8377
8378 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
8379
8380         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
8381         or SelectionStart. Code formatting.
8382
8383 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8384
8385         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
8386         indicating that there was not a previous drag-and-drop operation going
8387         on.
8388         Fixes part of #325071.
8389
8390 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8391
8392         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
8393         AllowedEffect, don't let the drop operation happen. 
8394         Fixes #32580.
8395
8396 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
8397
8398         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
8399
8400 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
8401
8402         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
8403         is called.
8404
8405 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
8406
8407         * Line.cs: Add a method that finds the tag that contains an x-coord.
8408         * LineTag.cs: Add a method that finds the character at an x-coord using
8409         a binary search, the old way was a linear search.
8410         * TextControl.cs: Change FindCursor to use the above new methods.
8411
8412 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8413
8414         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
8415         value different than AllowedEffect). This should be possible to
8416         indicate that dragging is not possible in some control/area.
8417
8418 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
8419
8420         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
8421         descent internally when font changes instead of outside code being responsible
8422         for setting it.
8423         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
8424         instead of accessing internal variables.
8425
8426 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
8427
8428         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
8429         remove special treatment for ArrangeIcons since it is already arranged.
8430
8431 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
8432
8433         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
8434         the Win32 backend uses Color.
8435         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8436         Refactor to store a Color instead of a Brush for Color.
8437
8438 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
8439
8440         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
8441         away.  I didn't realize I needed this when I refactored these earlier.
8442
8443 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
8444
8445         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
8446         store a Color structure and use the ResPool for back color instead of
8447         holding onto brushes.
8448
8449 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
8450
8451         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
8452         [Fixes bug #325592]
8453
8454 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8455
8456         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
8457         to recalculate its size.  Fixes a part of bug #331052.
8458
8459 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8460
8461         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
8462         button.  Fixes a part of bug #331052.
8463
8464 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8465
8466         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
8467         the CreateParams.
8468         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
8469         decorations.
8470         [Fixes bug #330986]
8471
8472 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8473
8474         * TextBoxTextRenderer.cs: Don't make this a static class, as static
8475         doesn't exist in 1.1.  (Thanks jb!)
8476
8477 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8478
8479         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
8480         class to allow us to use different backends on different platforms.
8481         Linux uses the current [Draw|Measure]String backend.  Windows uses
8482         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
8483         of GDI+.  This leads to better looking text and more accurate measurements
8484         on Windows, fixing many of the reported issues.
8485         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
8486
8487 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8488
8489         * FolderBrowserDialog.cs: When running on Windows,
8490         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
8491         since we must match both "C:" and "C:\" forms. A little hackish, but
8492         works.
8493         Fixes #325247.
8494
8495 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8496
8497         * ListView.cs: When calling EndEdit (after editing an item),
8498         create a new instance of LabelEditEventArgs to keep clean the fields
8499         in case we get a new call to BeginEdit; also do Application.DoEvents
8500         to have focus in synch. This is a fix similar to TreeView's #325244.
8501
8502 2007-10-07  Andreia Gaita <avidigal@novell.com>
8503
8504         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
8505         * WebBrowserBase.cs: Added dialog support, calling the
8506           WebBrowserDialogs classes for each specific dialog type.
8507
8508 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8509
8510         * ListView.cs: When the last item is focused and is removed,
8511         move the focus to the previous item (in Items order). This is what MS
8512         does.
8513         Fixes #330415.
8514
8515 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8516
8517         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
8518         instead of the opposite (RemoveAt call Remove). This is a better
8519         approach since we don't need to to a pair of traversals when using
8520         RemoveAt.
8521
8522 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8523
8524         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
8525         check that the node actually has nodes, and if not, move to the
8526         parent node instead. 
8527         Fixes #325265.
8528
8529 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8530
8531         * TreeView.cs: Move the previous change to the general case (to
8532         call Application.DoEvents in cases where the method was called by
8533         different places).
8534
8535 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8536
8537         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
8538         call Application.DoEvents. This is neccessary when we get a call to
8539         BeginEdit from an AfterLabelEdit handler, because the focus always
8540         goes to the TreeView, even if we try to give it to our
8541         LabelEditTextBox. The call do Application.DoEvents seems to
8542         synchronize the focus, basically.
8543         Fixes #325244.
8544
8545 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8546
8547         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
8548         should be false. This also removes some nasty recursive paths. Fixes
8549         part of #325244.
8550
8551 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
8552
8553         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
8554         state to normal. Also resize window when cascading. Fixes #325433. 
8555
8556 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
8557
8558         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
8559         DefaultForeColor, as drawing empty colored lines isn't very useful.
8560         [Fixes the not drawn lines part of bug #324358]
8561
8562 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
8563
8564         * TextControl.cs: Move Line and LineTag classes into separate files to
8565         make things easier to find.
8566         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
8567         * RichTextBox.cs: Capitalize LineTag.Length property access.
8568         - This is purely an organizational/formatting change, no logic changed. -
8569
8570 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
8571
8572         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
8573         text is empty.
8574
8575 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
8576
8577         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
8578         text is empty.
8579
8580 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
8581
8582         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
8583         prevent calling of OnBackColorChanged. Fixes #325321.
8584
8585 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
8586
8587         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
8588         because control can be disabled because owner is disabled.
8589
8590 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
8591
8592         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
8593         string.Empty, test failed from previous change.
8594
8595 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
8596
8597         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
8598         is null, not String.Empty.  See bug #323038.
8599
8600 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
8601
8602         * TextControl.cs: Change the margins to match MS a little better.
8603         Still not perfect for X11 due to some DrawString differences, but
8604         is still an improvement over the old stuff.
8605         Partially fixes #324467.
8606
8607 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8608
8609         * FolderBrowserDialog.cs: When using MyComputer as 
8610         RootFolder, let absolute paths be considered as valid ones. Also, use
8611         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
8612         for Windows compatibility.
8613         Partially fixes #325247.
8614
8615 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8616
8617         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
8618         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
8619         method, since it causes the dialog to not select folders directly
8620         under the root path (when setting SelectedPath property).
8621
8622 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8623
8624         * TreeNode.cs: When calling Expand/Collapse and need to call 
8625         ExpandBelow/CollapseBelow respectively, take into account
8626         partially visible nodes (previously Expanding/Collapsing
8627         a partially visible node in the bottom was not updating its +- sign).
8628
8629 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8630
8631         * TreeView.cs: When calling Expand on a TreeNode, and we need to
8632         expand nodes below (ExpandBelow), scroll the entire Viewport
8633         area if the node is above it and not visible (instead of scrolling
8634         the area from node's Bottom, which applies only when the node is
8635         visible).
8636         Fixes #325266.
8637
8638 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8639
8640         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
8641         node in the bottom area (as .Net does). This is done to preserve the
8642         scroll position when ExpandAll is called before handle is created for
8643         the 1.1 profile (bottom area, as opposed to top area in 2.0).
8644         Fixes #324103.
8645
8646 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8647
8648         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
8649         bottom area if we are in fact not using the vertical scroll bar.
8650         Fixes #324824.
8651
8652 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
8653
8654         * Control.cs: Comment out a double buffering optimization that doesn't
8655         take into account invalidates created in OnPaint, causing the control
8656         to never be redrawn.  It would take quite a bit of work to work around
8657         this, but I left it commented with an explanation for later possible
8658         optimization.
8659         [Fixes bug #328681]
8660
8661 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
8662
8663         * Control.cs: Ask parent to perform a layout if control is AutoSize and
8664         the text changes.
8665         * RadioButton.cs: Implement GetPreferredSizeCore.
8666         [Fixes bug #328672]
8667
8668 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
8669
8670         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
8671         corcompare stuffs.
8672
8673 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
8674
8675         * Application.cs: Move the sync context stuff to Run instead of RunLoop
8676         so that it doesn't get uninstalled on modal forms.
8677         * Control.cs: Install a sync context when a control is created.
8678         * WindowsFormsSyncronizationContext.cs: Create a private static control
8679         to invoke on.  This is easier than trying to find a created control we
8680         can use.
8681         [Fixes bug #327608]
8682
8683 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
8684
8685         * Application.cs: Install a WindowsFormsSynchronizationContext in the
8686         run loop, and uninstall it when done.
8687         * WindowsFormsSynchronizationContext.cs: Implement.
8688         [Fixes the common case in bug #327608]
8689
8690 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
8691
8692         * DataGridViewCellCollection.cs: Added argument checks for indexers.
8693         Use case-insensitive lookup of column name in indexer. Code
8694         formatting.
8695
8696 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8697
8698         * TreeNode.cs: When collapsing or expanding a node, check whether its
8699         change will affect the visible area (we were previously doing a
8700         IsVisible check, but that check is not enough since children nodes
8701         could be still visible). Fixes part of #325266.
8702
8703 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
8704
8705         * TreeView.cs: Always select the first node when the TreeView gets
8706         focus if there is no currently selected node.
8707         [Fixes bug #324279]
8708
8709 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
8710
8711         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
8712         node being selected is null.
8713         [Patch from Yves Bastide fixes bug #326858]
8714
8715 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8716
8717         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
8718         whether all the parent nodes are expanded.
8719         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
8720         call RecalculateVisibleOrder if all previous nodes are expanded.
8721         Before that we were doing a IsVisible check, but sometimes the node
8722         is not in the visible area, but _should_already be ready, because of
8723         all previous nodes are expanded. Fixes #325259.
8724
8725 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
8726
8727         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
8728         portion of the item is clicked.
8729
8730 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
8731
8732         * TextControl.cs: Do not tell the system to move the cursor if the
8733         textbox isn't focused.  Fixes part of bug #322668.
8734
8735 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
8736
8737         * ComboBox.cs: When there are no items, do not show the dropdown if
8738         the down arrow is clicked.  Fixes part of bug #322668.
8739
8740 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
8741
8742         * ToolStripComboBox.cs: Manually set the size of this control in the
8743         constructor, as it doesn't seem to be the same as DefaultSize.
8744         Fixes a failing monobuild test.
8745
8746 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
8747
8748         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
8749         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
8750
8751 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
8752
8753         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
8754         Desktop.  This lets it work for people who have moved their desktops
8755         from the default location on windows.  For people who have not, both
8756         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
8757
8758 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
8759
8760         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
8761         but when the base constructor sets this, the control is null.  Set it
8762         again in the constructor.  Fixes a failing monobuild test.
8763
8764 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
8765
8766         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
8767         get called.
8768         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
8769         called.
8770
8771 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
8772
8773         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
8774         will handle it themselves.
8775         * ToolStripItem.cs: When deciding what the text of a tooltip should
8776         be, use the Text property instead of the text field.
8777         * ToolStripTextBox.cs: Handle tooltips.
8778         [Fixes bugs #325417 and #325973]
8779
8780 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
8781
8782         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
8783         left click.  Fixes the easy part of bug #325969.
8784
8785 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
8786
8787         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
8788         bug #325406, but set a minimum for StatusStrip to 22 to keep
8789         bug #325390 fixed.  I think this minimum would have been figured
8790         up automatically if the grip was actually a ToolStripItem, but it
8791         currently is not.
8792
8793 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8794
8795         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
8796         as this is apparently the actual value used by .Net. Also apply
8797         ItemPadding in Details view only, and decrease the general width padding,
8798         to have only the needed. This should fix #324340 in Windows too.
8799
8800 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8801
8802         * ListViewItem.cs: Don't Invalidate item if parent is inside
8803         a BeginUpdate/EndUpdate block. This prevents to have differences
8804         between the ListView and items state, as well as avoid some exceptions
8805         there.
8806         * ListView.cs: Make 'updating' field internal.
8807
8808 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
8809
8810         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
8811         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
8812         size if appropriate.
8813         Fixes reopened bug #325414.
8814
8815 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
8816
8817         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
8818         * ToolStripItem.cs: Invalidate before and after our new autosize when
8819         text changes.
8820         Fixes reopened bug #325390.
8821
8822 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
8823
8824         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
8825         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
8826         #325044.
8827
8828 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
8829
8830         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
8831
8832 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8833
8834         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
8835         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
8836         #82734.
8837
8838 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
8839
8840         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
8841         item to select when the ToolStrip is selected.
8842         * ToolStripControlHost: Realign the control when the bounds or visibility
8843         change.
8844         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
8845         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
8846         preferred height.
8847         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
8848         base.OnPaint.  Was causing text not to be drawn.
8849
8850 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
8851
8852         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
8853
8854 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8855
8856         * TreeView.cs: When creating the label edit text box,
8857         set is initially to Visible = false. This is done to
8858         prevent a confusion in the layout which makes it to lose
8859         focus when shown the first time. Fixes part of #82592.
8860
8861 2007-09-13 Andreia Gaita <avidigal@novell.com>
8862
8863         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
8864
8865 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
8866
8867         * ToolStrip.cs: Take Margin into account when calculating preferred
8868         size.  Also, allow preferred size to get smaller than the explicit
8869         size.
8870         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
8871         First step towards fixing bug #82747.
8872
8873 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
8874
8875         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
8876         full row select background over the plus/minus glyph.  Also, turn
8877         off the focus rectangle for full row select since MS doesn't seem
8878         to ever paint it.  [Fixes bug #81839]
8879
8880 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
8881
8882         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
8883         This was causing keyboard opened dropdowns to lose focus.
8884         [Fixes bug #82803]
8885
8886 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
8887
8888         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
8889         ClientRectangle instead.  [Fixes bug #82838]
8890
8891 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
8892
8893         * SplitContainer.cs: We can't reset Visible on every layout because
8894         someone may have set Visible = false explicitly on a SplitterPanel.
8895         Make sure when we switch orientation the SplitterDistance does not
8896         change.  Fixes two failing tests.
8897
8898 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8899
8900         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
8901         TextRenderer, since the latter is only available in 2.0.
8902
8903 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
8904
8905         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
8906         * SplitContainer.cs: Implement FixedPanel layouting.
8907
8908 2007-09-12  Andreia Gaita  <avidigal@novell.com>
8909
8910         * WebBrowserBase.cs: setup shutdown routine
8911
8912 2007-09-12  Andreia Gaita  <avidigal@novell.com>
8913
8914         * Application.cs: Let keyboard events that are targetted 
8915                 to non-mwf windows hosted inside mwf (as in, webbrowser),
8916                 propagate properly. Fixes keyboard handling on the webbrowser.
8917
8918 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8919
8920         * ListView.cs: When handling MouseUp event and we are 
8921         highligting a node with the mouse right button, don't trigger
8922         Before/AfterSelecting event, since we are not actually selecting
8923         the node.
8924
8925 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8926
8927         * TreeView.cs: When editing a node, modify the edit text box
8928         depending on the text length (as you are typing), like MS does.
8929
8930 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
8931
8932         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
8933         Override GetPreferredSizeCore to perform calculations.  Remove custom
8934         autosize logic.  [Fixes bug #82739]
8935
8936 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
8937
8938         * TextBoxBase.cs: Modified should default to false.
8939
8940 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
8941
8942         * Control.cs: Update the anchoring distances even when layout is supspended.
8943         Patch provided by George fixes bug #82805.
8944
8945 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
8946
8947         * Control.cs: Provide a setter for ExplicitHeight.
8948         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
8949         remove the hacks in here for requested_height.
8950         [Fixes bug #82749]
8951
8952 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
8953
8954         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
8955         Maximum to lower that its current Value caused an ArgumentException by setting
8956         the Value to the new Maximum.
8957
8958 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
8959
8960         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
8961         handle moves to the closest tick when it is being dragged.
8962         [Fixes bug #82751]
8963
8964 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
8965
8966         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
8967         can't let them count as real items when calculating where to merge in the
8968         user's items.  [Fixed bug #82786]
8969
8970 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
8971
8972         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
8973         who want to add a menu item directly onto a toolstrip.
8974         [Fixes bug #82775, part II]
8975
8976 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
8977
8978         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
8979         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
8980         don't set it to available.
8981         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
8982         [Fixes bug #82727, part II]
8983
8984 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
8985
8986         * StatusStrip.cs: Change item placement to None if not visible.
8987         * ToolStripItem.cs: Invalidate when InternalVisible changes.
8988         These should have been committed to fix 82723, but I missed them.
8989
8990 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
8991
8992         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
8993         Click, and that it is only called once.
8994         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
8995         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
8996         dropped down.
8997         [Fixes bug #82775]
8998
8999 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9000
9001         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
9002         to match .Net.
9003         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
9004         instead of 8, just like above. Partially fixes #82734.
9005
9006 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9007
9008         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
9009         fixes #82734.
9010
9011         * ListView.cs: Remove extra space between rows in Details view (match
9012         .Net). 
9013         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
9014         the DefaultFont.
9015
9016 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
9017
9018         * Application.cs: Modified ProductVersion to return value of
9019         AssemblyInformationVersion if available, and fallback to assembly
9020         version. Fixes bug #82746. Code formatting.
9021         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
9022         instead.
9023
9024 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9025
9026         * Control.cs: When updating ZOrder for a child control,
9027         take into account the implicit ones (we need it in our controls
9028         using them). Fixes #82642.
9029
9030 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
9031
9032         * ToolStripItem.cs: Add support for animated images.
9033         [Fixes bug #82726]
9034
9035 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
9036
9037         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
9038         visible.  [Fixes bug #82727]
9039
9040 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9041
9042         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
9043         so we repaint using the new size.  [Fixes bug #82723]
9044
9045 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9046
9047         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
9048         option.  [Fixes bug #81779]
9049
9050 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9051
9052         * TreeView.cs: Override HandleClick because the StandardClick style is
9053         set to false.  According to MSDN (and testing), the click events should
9054         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
9055
9056 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9057
9058         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
9059         the border will disappear.  Fixes reopened #82653.
9060
9061 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9062
9063         * Control.cs: If the control is autosize, and its preferred size changes
9064         when it lays out its children, tell its parent so it can be re-layed out.
9065         Fixing some of the fallout from r85433.
9066
9067 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9068
9069         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
9070         and CheckBox share some code.
9071
9072 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9073
9074         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
9075         the TrackBar, not every mouse move.  [Fixed bug #82718]
9076
9077 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9078
9079         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
9080         under 2.0 rendering.  [Fixes bug #82657]
9081
9082 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9083
9084         * TreeView.cs: If we found a TreeNode to display a context menu, but
9085         it doesn't have one to show, let the TreeView display its menu
9086         instead.  [Fixes bug #82680]
9087
9088 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
9089
9090         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
9091         OnPaintInternal instead.  Give the internal TextBox a Border property
9092         so it can draw itself more correctly.  [Fixes bug #82653]
9093
9094 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
9095
9096         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
9097
9098 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
9099
9100         * ComboBox.cs: Adjust combobox button state to reflect current state when
9101         back to enabled = true. Fixes first issue of #82654.
9102
9103 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
9104
9105         * Control.cs: Fix last patch regression, prevent forms to update zorder when
9106         setting visible property.
9107
9108 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
9109
9110         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
9111         fix zorder for controls initially created as non visible. Fixes #82667.
9112
9113 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
9114
9115         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
9116         mimic win32 look. Fixes #82656.
9117
9118 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
9119
9120         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
9121         Stubs for new net 3.5 classes.
9122
9123 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9124
9125         * ListViewItem.cs: In ListViewItemCollection operations calculate
9126         Layout for owner as well as invalidate it. Fixes part of #82642.
9127
9128 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
9129
9130         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
9131         when returning Enabled.  [Fixes bug #82651]
9132
9133 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
9134
9135         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
9136
9137 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9138
9139         * ListView.cs: Put item padding info in a single place
9140         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
9141         columns again.
9142         * ThemeWin32Classic.cs:
9143         * Theme.cs: Likewise.
9144
9145 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9146
9147         * ListView.cs: When a ListViewSubItem instance is invalidated,
9148         invoke Invalidate on parent ListViewItem, not parent ListView.
9149         Fixes #81570.
9150
9151 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
9152
9153         * ListView.cs, ListViewItem.cs: corcompare stuffs.
9154
9155 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
9156
9157         * BindingMemberInfo.cs: Implement == and != operators.
9158
9159 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
9160
9161         * HtmlElementEventArgs.cs: Implement properties.
9162
9163 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
9164
9165         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
9166
9167 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
9168
9169         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
9170         Add (string,string,string) to implement the imagekey.  It turns out, we
9171         use the requested imagekey whereas .Net does not.  So I broke ours to match
9172         theirs.  :(
9173
9174 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
9175
9176         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
9177
9178 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
9179
9180         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
9181
9182 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
9183
9184         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
9185         up-to-date. Fixes bug #82618.
9186
9187 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
9188
9189         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
9190         reflect document changes. Fixes #82367.
9191
9192 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9193
9194         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
9195         as well as add new ones. This should make work the BackgroundImage
9196         property for ListView again.
9197
9198 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
9199
9200         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
9201         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
9202         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
9203
9204 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
9205
9206         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
9207         IsKeyLocked.
9208
9209 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
9210
9211         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
9212         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
9213
9214 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
9215
9216         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
9217         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
9218
9219 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
9220
9221         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
9222
9223 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
9224
9225         * GridEntry.cs: Implement GetService.
9226
9227 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
9228
9229         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
9230         for label editting, make sure we focus back on the TreeView.
9231         [Fixes bug #82590]
9232
9233 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9234
9235         * ListView.cs: Add some 2.0 overrides.
9236
9237 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
9238
9239         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
9240         because getter dont returns right value before handle creation. Thanks 
9241         to George. Fixes #82569.  
9242
9243 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
9244
9245         * Theme.cs: Revert last patch, it causes error under win32. 
9246
9247 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
9248
9249         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
9250         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
9251         logical Desktop rather than the physical file system location. Fixes #82603. 
9252
9253 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
9254
9255         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
9256         for the patch. Fixes #82568.
9257
9258 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9259
9260         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
9261         methods.
9262
9263 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9264
9265         * ListViewInsertionMark.cs: New stubbed class.
9266
9267 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
9268
9269         * FolderBrowserDialog.cs: When adding folder, immediately create the
9270         directory with temporary name and rename the directory when editing
9271         finishes. This matches MS. Ensure the node for the new folder is 
9272         selected and LabelEdit is disabled, when editing is either finished
9273         or cancelled.
9274
9275 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
9276
9277         * TreeView.cs: When editing label of node, ensure node is visible.
9278
9279 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
9280
9281         * PropertyGridView.cs: Set the value only if it has changed.
9282
9283 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9284
9285         * ListView.cs: Some more code refactoring to add support sorting
9286         with groups (now for Details view). Remove unused code also.
9287
9288 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
9289
9290         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
9291         Not a big fan of reacting immediately to a field in an EventArg, but that's
9292         the way it's done.  (This is part of the previous commit that got left out.)
9293
9294 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
9295
9296         * FolderBrowserDialog.cs: Removed need for separate description field.
9297         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
9298         has focus when dialog box is displayed again, regardless of what
9299         button was pressed the previous time. Set RootFolder and SelectedPath
9300         each time dialog box is displayed. This ensures the treeview is
9301         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
9302         when it does not have focus. Added support for more special folders.
9303
9304 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
9305
9306         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
9307         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
9308         it resets the edit_args.
9309         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
9310         [Fixes bug #82577]
9311
9312 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
9313
9314         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
9315         button to match MS. Provide more meaningful exception message for
9316         invalid RootFolder value. Use zero-length string when SelectedPath
9317         is set to null. Allow non-rooted paths in SelectedPath, but ignore
9318         them in FolderBrowserTreeView. Allow folders to be created in
9319         RootFolder. Fixes bug #82576.
9320
9321 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9322
9323         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
9324         since we need to take into account the group headers and the margin
9325         between them.
9326         * ListViewGroup.cs: Add a rows field to store the number of rows per
9327         group.
9328
9329 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9330
9331         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
9332           Anyways, let's just follow the lead.
9333
9334 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
9335
9336         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
9337         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
9338         controls in GetPreferredSizeCore.
9339         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
9340         [Fixes bug #82488]
9341
9342 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
9343
9344         * PrintDialog.cs: Need to instantiate the form variable here too.
9345
9346 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9347
9348         * ListView.cs: Do some reorganization to support sorting in groups,
9349         by doing the layout sequentially in ListView.Items. Also add support
9350         for the Default Group, which should be available for items with no
9351         group assigned.
9352         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
9353         for storing layout info also.
9354         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
9355         collection, as well as providing internal members to do a traversal
9356         including the default group (needed when doing layout/drawing).
9357         * ThemeWin32Classic.cs: When drawing group headers use internal
9358         ListViewGroupCollection members to take into account the default
9359         group.
9360
9361 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
9362
9363         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
9364
9365 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
9366
9367         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
9368         been created.  If handle is created, we want arror keys.  If we are editing
9369         a node, we want things like enter, esc, home, end, page up, page down.
9370         Allows Esc to work for FolderBrowserDialog.
9371
9372 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
9373
9374         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
9375         they close when ESC is pressed.  Thanks Andy!
9376
9377 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
9378
9379         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
9380         This way we can tell if this is a CommonDialog provided with mono, or one
9381         that is being implemented outside by a developer.  If it is an external one,
9382         the developer is responsible for showing their own form.  We were showing
9383         our blank form after the developer showed his.
9384         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
9385         PageSetupDialog.cs: Instantiate form variable in our constructor.
9386         [Fixes bug #82531]
9387
9388 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
9389
9390         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
9391         and always return true.  [Fixes bug #81616]
9392
9393 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
9394
9395         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
9396         TextBox.  [Fixes bug #82549]
9397
9398 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
9399
9400         * FileDialog.cs: When Save/Open is clicked and no filename is selected
9401         or entered then do not close the dialog. Fixes bug #82539. Removed
9402         CWLs.
9403
9404 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
9405
9406         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
9407         code to this method. It is calling every time filter changes. This method
9408         will help to fix the bug #80887.
9409
9410 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
9411
9412         * CheckBox.cs: Implement AutoSize calculation.
9413
9414 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
9415
9416         * CheckBox.cs: Use new 2.0 rendering for 2.0.
9417         * Theme.cs: Method declarations for 2.0 rendering path.
9418         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
9419
9420 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9421
9422         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
9423
9424 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9425
9426         * ListViewGroupCollection.cs: Implement AddRange the right way, to
9427         only call Redraw on the parent one time.
9428
9429 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9430
9431         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
9432           GetClipboardContent.
9433         * DataGridViewCell.cs: Implemented GetClipboardContent,
9434           GetEditedFormattedValue, GetFormattedValue.
9435         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
9436
9437 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
9438
9439         * TableLayoutStyleCollection.cs: corcompare fix.
9440
9441 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9442
9443         * DataObject.cs: Implemented retrieval of convertible / not convertible
9444           objects.
9445
9446 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
9447
9448         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
9449         ourselves.  This ensures the entire old bounds are repainted, in case our new
9450         size is smaller.  [Fixes bug #82518]
9451
9452 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
9453
9454         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
9455         flag to make fast handle of mouse events, without this the mouse move is
9456         handled in some manner, whether it is a mouse move or not. Fixes #81588.
9457
9458 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9459
9460         * ListView.cs: When doing layout calculations don't use a ref
9461         param to keep the current item; instead use its Index value (this 
9462         is specially important when doing the layout with Groups
9463         and Items being sparse). Also don't take into account items added to
9464         the Group but not yet added to the main ListView.Items collection.
9465
9466 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9467
9468         * ListViewGroupCollection.cs: Forgot to mimic an issue
9469         in the indexer (don't assign the ListView owner for new values).
9470
9471 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9472
9473         * ListViewGroupCollection.cs: Make the string indexer use
9474         the int based indexer to re-use code, instead of duplicate the code.
9475         Also Redraw as needed and take into account null values.
9476
9477 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
9478
9479         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
9480         [Fixes bug #82481]
9481
9482 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
9483
9484         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
9485         when other buttons are clicked or navigated to.
9486
9487 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9488
9489         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
9490           it's XplatUIX11 that attaches them.
9491
9492 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9493
9494         * DataGridView.cs: If a column has been added, recreate the editing row.
9495           Fixes #82226.
9496
9497 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9498
9499         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
9500           of the tag to draw. Makes disappearing text show up again.
9501
9502 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9503
9504         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
9505           Contents. Fixes #82487.
9506
9507 2007-08-19  Andreia Gaita  <avidigal@novell.com>
9508
9509         * Added HtmlElement.cs, HtmlElementCollection.cs, 
9510           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
9511           
9512 2007-08-19  Andreia Gaita  <avidigal@novell.com>
9513
9514         * BindingSource.cs: Implement this, dispose and getenumerator.
9515         * DataGridViewRowCollection.cs: Move the InvalidOperationException
9516         out of AddInternal, throw it only on public Add calls. The 
9517         UsingWebBrowser sample was blowing up with this when setting the
9518         DataSource after adding DataBindings, so it's likely that .net
9519         only throws this exception when Add is called directly. 
9520         
9521         * ToolStripControlHost.cs: Return the hosted control's text
9522         property, and not the ToolStripItem one (it would always return
9523         the initial value).
9524         
9525         * HtmlDocument.cs: Implement GetElementById and All
9526         * WebBrowser.cs: Remove exception on set_DocumentStream.        
9527
9528 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9529
9530         * Form.cs: Fix the max and min value for opacity (0~1).
9531
9532 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9533
9534         [Fixes #80118]
9535         * DataGridTableStyle.cs: Default header font is now null, on getter it 
9536         returns datagrid font when is null. On setter permits null.
9537
9538         * DataGrid.cs:
9539         - When ResetHeaderFont set header font to null.
9540         - On EndInit set grid_style.DataGrid.
9541
9542 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9543
9544         * TabControl.cs: Fix regression in default padding x.
9545
9546 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9547
9548         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
9549
9550 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9551
9552         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
9553         not 2. Fixes #82229.
9554
9555 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9556
9557         * TabControl.cs: Fix tab size when image height is less than text height.
9558         Partially fixes #81837.
9559
9560 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9561
9562         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
9563         "alt + tab". It works only for Win32, for X11 theres no way to remove window
9564         from taskbar and keep it on "alt_tab". Fixes #81722.
9565
9566 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9567
9568         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
9569         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
9570         Fixes #80877 and #79418.
9571
9572 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9573
9574         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
9575         between position and one of the screen borders. Fixes #82349.
9576
9577 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9578
9579         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
9580         the MessageBox in the taskbar. Fixes #82457.
9581
9582 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9583
9584         * MessageBox.cs: Fix form size when icon is set and text height is bigger
9585         than icon. Fixes #82468.
9586
9587 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9588
9589         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
9590         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
9591           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
9592           Refactored HandleNCCalcSize somewhat to avoid code duplication.
9593         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
9594           FormBorderStyle to decide if we're calculating a new size from the
9595           client size or not. CreateParams: Don't fake tool windows, only the X11
9596           backend manages toolwindows manually.
9597
9598 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9599
9600         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
9601         ObjectDisposedException.
9602
9603 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9604
9605         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
9606         in OnLoad should not have any effect.  [Fixes bug #82470]
9607
9608 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9609
9610         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
9611         paint for controls that create their own ToolTipWindow instead of
9612         going through ToolTip.
9613
9614 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9615
9616         * ToolTip.cs: Make Hide internal instead of public to match MS API.
9617
9618 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9619
9620         * ListViewGroupCollection.cs: Use generic List instead of an
9621         ArrayList, since this collection is 2.0 only.
9622
9623 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
9624
9625         * ToolTip.cs (Hide): Made public to make the build work (should
9626         this not be public?).
9627
9628 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9629
9630         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
9631         ToolTipWindow.
9632         * ToolTip.cs: Add an internal Visible property to facilitate transition.
9633
9634 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9635
9636         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
9637         PopupEventHandler.cs: Make these internal for 1.1.
9638         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
9639         use ToolTipWindow internals.
9640         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
9641         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
9642
9643 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9644
9645         * X11Dnd.cs: Add a null check.
9646
9647 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9648
9649         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
9650           nothing else succeeds. Fixes #82453.
9651
9652 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9653
9654         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
9655           rectangle if we're painting to another window than the one the paint
9656           message was generated on. Simplify the code somewhat, which makes
9657           PaintEventEnd also simpler.
9658
9659 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9660
9661         * Control.cs: When changing parent of a form, let the form decide whether
9662           XplatUI.SetParent should be called or not.
9663         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
9664           recreating the handle. If the new parent's handle isn't created, don't
9665           recreate our handle, just destroy it. CreateParams: Check if the
9666           parent's handle is created before fetching it.
9667
9668 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9669
9670         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
9671           Update calls to PaintEventStart/End to take a Message argument.
9672         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
9673           take a Message argument.
9674         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
9675           Message argument, and handle the case where we don't paint to the window
9676           for which the paint message was generated.
9677
9678 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9679
9680         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
9681           Marshal.GetLastWin32Error. Plug nasty memory leak in
9682           PaintEventStart/End, we were creating a DC we weren't releasing.
9683
9684 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9685
9686         * ListView.cs: Add Groups support in Details view. Also have a small
9687         method to do the layout of the group header. Don't use a separate
9688         method to do the groups calculation in Icons view, since our methods
9689         are now a little simpler.
9690         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
9691         `Bounds'.
9692         * ThemeWin32Classic.cs: Likewise.
9693
9694 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
9695
9696         * Application.cs: Add FilterMessage method and rework our message loop
9697         logic to use it.
9698
9699 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
9700
9701         * Application.cs: Add some methods and stub a few methods that are
9702         pretty much never used.
9703
9704 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
9705
9706         * TreeNode.cs: Add some serialization methods.
9707
9708 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9709
9710         * ListView.cs: In ListViewItemCollection have a 
9711         'is_main_collection' field to not modify ListViewItem.ListView
9712         when using it as ListViewGroup.Items (and not ListView.Items)
9713         and also don't modify selection state (.Net behaviour). 
9714         Instead, set group for items contained in a ListViewGroup.Items collection.
9715         * ListViewItem.cs: Simplify some code in Group setter.
9716         * ListViewGroup.cs: use the new .ctor to pass the current instance
9717         to the ItemsCollection.
9718         * ListViewGroup.cs: Set the ListView property for ListViewGroup
9719         instances when adding/removing. Also make Remove use RemoveAt, which
9720         should perform better.
9721
9722 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
9723
9724         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
9725         that crept into the 1.1 profile.
9726
9727 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
9728
9729         * ToolBarButton.cs: Implement ImageKey.
9730
9731 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
9732
9733         * ToolBar.cs: Implement ScaleControl/ScaleCore.
9734
9735 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9736
9737         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
9738           created, it might have gotten destroyed since we last checked. Fixes
9739           #82405.
9740
9741 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
9742
9743         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
9744         tooltip will hide when mouse is moved off the control.
9745         [Fixes bug #82407]
9746
9747 2007-08-11 Andreia Gaita <avidigal@novell.com>
9748
9749         * WebBrowserBase.cs, WebBrowser.cs: add implementation
9750         using Mono.Mozilla for loading and navigating webcontrol
9751         with xulrunner.
9752         The initial implementation was done on 
9753         /trunk/mozembed/tests/browser , and copied here.
9754
9755 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
9756
9757         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
9758         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
9759
9760 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9761
9762         * DataGridView.cs: Add support for an editing row. Fixes #82226.
9763           RowTemplateFull: throw an exception if a column doesn't have a template.
9764         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
9765           add the row just before it.
9766         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
9767           selected.
9768         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
9769           DataGridView field to be able to reach the grid's editing row.
9770
9771 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
9772
9773         * ToolTip.cs: If the control's handle hasn't been created when it has a
9774         tooltip set on it, don't check to see if we need to show the tooltip.  This
9775         check was causing the control's handle to be created.
9776         [Fixes bug #82399]
9777
9778 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
9779
9780         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
9781                                         1.1             2.0
9782         Handle Not Created      -1              0
9783         Handle Created          0               0
9784         [Fixes bug #82371]
9785
9786 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
9787
9788         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
9789         [Fixes bug #82348]
9790
9791 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
9792
9793         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
9794         * ToolTip.cs: Implement some properties and owner draw.
9795
9796 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9797
9798         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
9799           show them again, since setting visibility causes a paint, causing an
9800           endless loop (instead use a temporary and set it all when it's known if
9801           they should be shown or not). Fixes #79265.
9802
9803 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9804
9805         * DataGridView.cs: Only do a full column/row selection if a header was
9806           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
9807           isn't pressed, deselect everything before selecting something.
9808
9809 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9810
9811         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
9812           behaviour according to bug #81075 - they are returned in the order they
9813           are selected. Fix HitTest to check if the point is within any of the
9814           headers. Allow for row/column selection when in ColumnHeader or
9815           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
9816           the row and column to call when their selected state changes, and
9817           updated selected_[rows|columns] whenever SetSelected* is called.
9818         * DataGridViewBand.cs: Initialize isRow correctly. Call
9819           SetSelected[Row|Column]CoreInternal when the selected state changes, and
9820           add a SelectedInternal to avoid StackOverflows.
9821         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
9822           ReadOnly no matter what.
9823         * DataGridViewSelectedColumnCollection.cs,
9824           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
9825           the items in reverse order (just as MS does...)
9826
9827 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
9828
9829         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
9830         itself, not part of a mnemonic.  [Fixes bug #82378]
9831
9832 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9833
9834         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
9835         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
9836           the DGV, the column, the row, or the cell itself is readonly.
9837
9838 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
9839
9840         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
9841         OSVersion.Platform.
9842         * FileDialog.cs: Same.
9843         * TextRendered.cs: Same.
9844         * FolderBrowserDialog.cs: Same.
9845         * TextBoxBase.cs: Same.
9846         * Application.cs: Same.
9847         * Cursors.cs: Same.
9848         * ThemeClearLooks.cs: Same.
9849
9850 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
9851
9852         * XplatUI.cs: Added RunningOnUnix property to be used by controls
9853         instead of duplicating these checks everywhere.
9854         * FileDialog.cs: Use case-insensitive comparison for populating the
9855         DirComboBox when not running on unix. Fixes bug #82385.
9856         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
9857         "Look in".
9858
9859 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9860
9861         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
9862           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
9863           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
9864           cell and column selection with ctrl and shift pressed. Call the correct
9865           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
9866           the corresponding virtual method (PaintBackground to paint background,
9867           etc).
9868         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
9869           either the column, row or the cell itself is selected.
9870         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
9871           OnRowsAdded.
9872         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
9873           here. When the row is selected, don't select all cells. Each cell now
9874           queries the row to see if the row is selected.
9875
9876 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9877
9878         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
9879           SelectionMode.
9880
9881 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9882
9883         * ListView.cs: In ListViewItemsCollection check that owner is
9884         not null before trying to access it (this happens quite often
9885         using Groups). Also don't duplicate calls by calling CollectionChanged
9886         method.
9887
9888 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
9889
9890         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
9891         when we are dismissed to clear keyboard mnemonics.
9892         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
9893         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
9894         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
9895         was activated by keyboard or the OS tells us to always draw them.
9896         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
9897         [Fixes bugs #82376, #82377]
9898
9899 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
9900
9901         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
9902         shot at having it because Alt was pressed.
9903         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
9904         the first real menu item.
9905         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
9906         a mnemonic if Text is null.
9907         [Fixes bug #82374]
9908
9909 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9910
9911         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
9912         search do check whether the item is already contained in the
9913         collection or not; instead check if the owner of the item is the same
9914         as ours. Also, remove a redundant check in the same method. 
9915
9916 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
9917
9918         * Control.cs: Allow the clip region to be set back to null.
9919         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
9920         [Fixes button still showing up in bug #82370 when Show Through is turned off]
9921
9922 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9923
9924         * GridEntry.cs: Add a null check.
9925         * PropertyGrid.cs: When checking for existing grid entries, ignore category
9926           entries. Fixes #82297.
9927
9928 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
9929
9930         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
9931         for 2.0.
9932
9933 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
9934
9935         * ListBox.cs: Implement ScaleControl.
9936
9937 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9938
9939         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
9940           have a menu strip.
9941         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
9942           parent has a menu strip. Fixes #81689.
9943
9944 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9945
9946         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
9947           moments, so apply some fuzzy logic to determine if the mouse is still
9948           inside a control or not. Fixes #82288 (for the third time).
9949
9950 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9951
9952         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
9953           Don't create the child if it has been disposed already (may happen if
9954           the user closes the form the Load event).
9955
9956 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9957
9958         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
9959           #82288.
9960
9961 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9962
9963         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
9964           might call us after we've been destroyed, in which case our own private
9965           parent field is null. Fixes #82326.
9966
9967 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
9968
9969         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
9970         check for setting the dropdown's owner.
9971
9972 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
9973
9974         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
9975         before removing system menu items.
9976
9977 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
9978
9979         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
9980         folding.
9981         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
9982         folding.
9983         * ToolStrip.cs: Add a null check to mnemonics.
9984         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
9985         no ConnectedArea.
9986         [Fixes most of bug #81689]
9987
9988 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9989
9990         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
9991
9992 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9993
9994         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
9995
9996 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9997
9998         * DataGridViewCell.cs: EditType: returns
9999           DataGridViewTextBoxEditingControl always.
10000
10001 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
10002
10003         * TextRenderer.cs: Remove the LineLimit string format flag from the
10004         DrawString fallback method so that things like buttons that aren't
10005         tall enough to draw a full line will still draw part of the text.
10006         [Fixes part of bug #82272]
10007
10008 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10009
10010         * DataGridView.cs: Implemented AutoResizeColumn(s).
10011         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
10012           according to the Alignment.
10013         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
10014           Implement alignment and padding when painting.
10015         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
10016           exists.
10017         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
10018           way.
10019         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
10020           a column is added.
10021
10022 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
10023
10024         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
10025         which is internal.
10026
10027 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
10028
10029         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
10030         hide GetPreferredSize from public API.
10031         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
10032         * ToolStripItem.cs: Stub out drag and drop methods and events.
10033         * ToolStripManager.cs: Stub out Save/LoadSettings.
10034         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
10035         * ToolStripPanel.cs: Fix corcompare error.
10036         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
10037         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
10038         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
10039
10040 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
10041
10042         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
10043         bounds height instead of PreferredHeight.  Puts things back the way 
10044         they were for height while still fixing the width.  Fixes broken unit
10045         tests.
10046
10047 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10048
10049         * Binding.cs: Implement 2.0 constructors and add a null check.
10050
10051 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10052
10053         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
10054           and fix row index (off by one).
10055
10056 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10057
10058         * PropertyGridView.cs: Remove debug output.
10059
10060 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10061
10062         * Control.cs: We need to reset the is_created flags when the handle is
10063           destroyed. Fixes #82187.
10064         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
10065           client coordinates if the window doesn't have a parent.
10066           Win32GetParent returns the parent or the owner, and for top-level
10067           windows with no parent (but with an owner) we were calculating the
10068           location from the location of the owner.
10069         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
10070           form has been disposed.
10071         * MdiClient.cs: Add a null-check.
10072
10073 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
10074
10075         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
10076         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
10077         so we can provide an implementation that returns the current width
10078         and preferred height.  Allows anchor = right to work with TextBox 2.0.
10079         [Fixes bug #82233]
10080
10081 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10082
10083         * ListView.cs: Add support for navigating items in Groups mode, by
10084         creating a big matrix containing all rows and cols of all groups. When
10085         are in other mode than Details, pressing Up should have a similar
10086         behaviour as that one of Down (moving to the next available column if
10087         current one doesn't have an item in the requested row). Also, don't
10088         proceed to use groups if ShowGroups is false.
10089         * ListViewGroup.cs: Add an internal int field to store the starting
10090         row of the group (used by the big matrix used for navigating the
10091         ListView).
10092         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
10093         false.
10094
10095 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
10096
10097         * ToolStripDropDown.cs: When we do Show, start with the 
10098         DefaultDropDownDirection, but if our popup menu is going to off-screen,
10099         modify the direction to keep it on screen.  [Fixes bug #82210]
10100
10101 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
10102
10103         * FileDialog.cs: Accept any FilterIndex value, and store it
10104         unmodified. When FilterIndex is less than 1, or greater than number
10105         of filters, then default to first filter. Only add filter extension to
10106         file if user did not specifiy an extension. When type of dialog is
10107         OpenFileDialog and DefaultExt is set, then only use filter extension
10108         if: CheckFileExists is true and no file wih the default extension
10109         exists, or CheckFileExists is false, and user specified file does not
10110         exist. When CheckFileExists is true, then add first extension of 
10111         selected filter that matches existing file. Perform checks for
10112         existing file, overwrite and create after extension has been added to
10113         file name. When CheckFileExists is true and type is SaveFileDialog,
10114         then only consider first filter extension if DefaultExt is set.
10115         When CheckFileExists is true, then ignore DefaultExt if file with that
10116         extension does not exist. Also perform check for existing file when
10117         type is SaveFileDialog. Changed some field to constants.
10118
10119 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10120
10121         * ListView.cs: Take into account the region used by header
10122         control when doing the vertical scroll (this way we invalidate
10123         the precise area, and don't get any dirty one).
10124
10125 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
10126
10127         * FileDialog.cs: Check for valid filterIndex on button open/save. 
10128         Fixes #82184.
10129
10130 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10131
10132         * ListView.cs: Update some layout calculations in details view
10133         and clean the code in a pair of assignations.
10134
10135 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
10136
10137         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
10138         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
10139         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
10140         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
10141
10142 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
10143
10144         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
10145         performance of thread-safe Graphic methods.  (Thanks rolf!)
10146
10147 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10148
10149         * ListView.cs: When doing the layout calculations, don't calculate
10150         scroll bars before handle is created. This is unnecessary and also
10151         calculating them before handle creation item causes a number of random
10152         bugs (which begin to appear after Chris' big patch for handle creation
10153         fixes). 
10154
10155 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
10156
10157         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
10158         for things that don't have a Graphics object.  Currently, things just use
10159         the static Hwnd.bmp_g which is not thread safe.
10160
10161 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10162
10163         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
10164           dialog. Fixes #82187.
10165
10166 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10167
10168         * DataGridViewElement.cs: Initialize state.
10169         * DataGridView.cs: Forward a few Mouse events to cells. Add
10170           GetRowInternal and GetCellInternal that doesn't unshare rows.
10171           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
10172           don't use the index, but look it up. Add
10173           DataGridViewControlCollection.RemoveInternal to remove controls
10174           that Remove won't remove (scrollbars, edit control).
10175         * DataGridViewColumn.cs: Initialize State correctly.
10176         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
10177           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
10178           implementing this.
10179         * DataGridViewRowCollection.cs: Implemented shared rows.
10180         * DataGridViewRow.cs: Throw exceptions as MS do.
10181         * DataGridViewCell.cs: A few properties are implemented by a
10182           Get<Property> method, so move implementation there and remove the
10183           NIEX in the method. Add a bunch of OnXInternal that DataGridView
10184           calls when necessary.
10185         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
10186           complicates matters.
10187         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
10188           unshare any rows.
10189
10190 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
10191
10192         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
10193         the children controls.  Instead, we will just set up the proper docking for the
10194         children controls so we don't have to worry about it.  [Fixes bug #82188]
10195
10196 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
10197
10198         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
10199         canceling and correct Before/AfterLabelEdit properties as layed out in bug
10200         81847.  [Fixes bug #81847]
10201
10202 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
10203
10204         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
10205         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
10206         an explicit size based on the design-time size of the text.  Since our fonts
10207         may not match this explicit size, we tend to cut off the ends of people's labels.
10208
10209 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
10210
10211         * Menu.cs: Add some missing methods to MenuItemCollection.
10212
10213 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10214
10215         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
10216         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
10217         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
10218         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
10219         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
10220         * DataGridViewElement.cs: State defaults to Visible.
10221         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
10222         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
10223
10224 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10225
10226         * Control.cs: Minor 1.1 corcompare fix.
10227
10228 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
10229
10230         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
10231         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
10232
10233 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10234
10235         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
10236           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
10237           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
10238           DataGridViewSelectedColumnCollection.cs,
10239           DataGridViewSelectedRowCollection.cs: Corcompare work.
10240
10241 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
10242
10243         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
10244         it is autoset by VS2005 designer and the effect is barely noticeable.
10245
10246 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
10247
10248         * TreeView.cs: Implement HitTest.
10249
10250 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10251
10252         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
10253           manually adding and removing the control from the Controls
10254           collecftion.
10255         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
10256           EditingControlInternal property that tracks the editing control.
10257           Always keeping the scrollbars in the Controls collection, as MS
10258           testing confirms is the right behaviour.
10259
10260 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10261
10262         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
10263           according to MSDN and new test.
10264
10265 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
10266
10267         * TreeNode.cs: Implement ToolTipText.
10268         * TreeView.cs: Implement tooltips, NodeMouse* events.
10269
10270 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
10271
10272         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
10273
10274 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
10275
10276         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
10277         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
10278
10279 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
10280
10281         * Control.cs, Form.cs, ContainerControl.cs,
10282         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
10283         for misc properties.
10284
10285 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
10286
10287         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
10288         * TreeView.cs: Implement StateImageList.
10289
10290 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10291
10292         * Form.cs: Don't check if the current form is the active form before
10293           activating it. Fixes #81904.
10294
10295 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10296
10297         * Form.cs: Don't check if the current form is the active form before
10298           activating it. Fixes #81904.
10299
10300 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10301
10302         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
10303
10304 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10305
10306         * Form.cs: Don't try to position the form after loading if the form was
10307           disposed. Fixes #81969.
10308
10309 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10310
10311         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
10312           properties. Had to change ToolBar into ToolStrip, which required a
10313           few #ifs.
10314
10315 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10316
10317         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
10318           resized, fixes part of #79829 (vertical lines in toolbar).
10319           PropertyGrid: Refactored Populate* to something that's easier to
10320           follow at least for me, as well as splitting it up into several new
10321           methods, required to update only subitems when something has
10322           changed by a popup editor or listbox. Don't use events to check
10323           when any values are changed, since the events are unreliable (we're
10324           changing the objects the events are registered with, and if the
10325           event handling requires the objects to be immutable (objects stored
10326           in hashtables for instance), the events will never be raised).
10327         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
10328           everytime we change a value, since events are unreliable.
10329           DropDownButtonClicked: For the same reason don't compare objects to
10330           check if it has changed or not, it would require all objects to
10331           derive Equals. Fix dialog location on windows, MS is doing weird
10332           things when creating parented forms.
10333         * GridEntry.cs: Add a SelectedObject setter.
10334
10335 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
10336
10337         * TreeNode.cs: Add some corcompare attributes.
10338         * TreeNodeCollection.cs: Implement 2.0 stuffs.
10339         * TreeView.cs: Implement some 2.0 stuffs.
10340
10341 2007-07-18  Andreia Gaita  <avidigal@novell.com>
10342
10343         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
10344         for moma.
10345
10346 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
10347
10348         * ListBox.cs: Implement custom tab offsets.
10349
10350 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10351
10352         * ToolStripContentPanel.cs: Support System renderer.
10353         * ToolStripControlHost.cs: Set RightToLeft to default to No.
10354
10355 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10356
10357         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
10358
10359 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10360
10361         * CheckBox.cs: Chain TextAlign to base implementation instead of
10362         maintaining another one.
10363
10364 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10365
10366         * ButtonBase.cs: Fix an incorrect string constant.
10367
10368 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10369
10370         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
10371         of creating one for measuring strings.
10372
10373 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10374
10375         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
10376         Implement MaxItemSize.
10377
10378 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
10379
10380         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
10381         for DeviceContext.  Instead, use the static one available in Hwnd.
10382         Informal tests show this saves about 500k on formtest.exe.
10383
10384 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
10385
10386         * ContainerControl.cs: Implement 2.0 AutoScaling.
10387
10388 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10389
10390         * ComboBox.cs: Work around bug #82120 (bug in mcs).
10391
10392 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
10393
10394         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
10395         Darken the focus color.
10396
10397 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
10398
10399         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
10400         for the checkbox.
10401         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
10402         X, Y instead of a rect for drawing text.
10403         - For ControlPaint.DrawCheckBox, center the check a little better when the
10404         checkbox is odd width.  When drawing a flat checkbox, use a white background
10405         when state != inactive.
10406         [Fixes bugs #82097, 82100]
10407
10408 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
10409
10410         * ListControl.cs: When changing CurrencyManager, disconnect event
10411         handlers from previous one. Fixes bug #81771. Code formatting.
10412
10413 2007-07-15  Andreia Gaita <avidigal@novell.com>
10414
10415         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
10416         full preview invalidation from layout invalidation, and only invalidate
10417         the layout when setting zoom or other properties. Invalidation should
10418         always be done even when resetting properties with the same values as
10419         what is there. Fixes #81744 and #79830.
10420
10421 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10422
10423         * ListView.cs: Implement initial support for Groups. Split some of the
10424         LayoutIcons code to render a partial list of the items (needed by
10425         items contained in ListViewGroup instances). Let the
10426         ListViewItemsCollection.ListView property be modifiable (needed when
10427         using Groups, too).
10428         * ListViewGroup.cs: Use a Bounds property rather than a Location
10429         one. Also invalidate the bounds when they get changed.
10430         * ThemeWin32Classic.cs: When drawing items, also draw the group header
10431         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
10432         method as well.
10433
10434 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10435
10436         * ListView.cs: When space gets pressed and CheckBoxes is true, 
10437         don't invoke the Begin and EndUpdate methods. We are generating 
10438         a redraw of the entire control without need to do so.
10439
10440 2007-07-13  William Holmes <billholmes54@gmail.com> 
10441
10442         * Control.cs: Changing logic in FindFlatForward and 
10443           FindFlatBackward to handle multiple Controls with 
10444           the same TabIndex.  
10445           This fixes bug 81687.
10446
10447 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
10448
10449         * OSFeature.cs: Enable IsPresent.
10450
10451 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10452
10453         * Control.cs: Don't do anything in WmShowWindow if the control has been
10454           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
10455           control is created, put on a form, the control is disposed (the
10456           form is never shown), and then we get a MapNotify, triggering a
10457           WM_SHOWWINDOW.
10458         * Form.cs: Exclude the current form when sending Deactivate to all
10459           MdiChildren.
10460         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
10461           there was a race condition because assigning the handle raises
10462           events, we can get more messages, therefore trying to assign the
10463           handle again, which would fail if any of those event handlers
10464           closed/disposed the control.
10465
10466 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10467
10468         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
10469
10470 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
10471
10472         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
10473         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
10474
10475 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10476
10477         * DateTimePicker.cs: If there's no part format specifier, return an
10478           empty string.
10479
10480 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
10481
10482         * FlatButtonAppearance.cs: Throw NotSupportedException for a
10483         Transparent BorderColor.
10484
10485 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10486
10487         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
10488           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
10489           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
10490           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
10491           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
10492           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
10493           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
10494           Remove warnings.
10495         * X11Structs.cs: Remove warnings, add ToString implementations.
10496
10497 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10498
10499         * XplatUIX11.cs: Translate min/max size according to the actual min/max
10500           size, and not the current size. Fixes #81798.
10501
10502 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10503
10504         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
10505           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
10506           to the control yet).
10507
10508 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10509
10510         * PropertyGridTextBox.cs: Add a method that sends any forwarded
10511           mousedowns to the contained textbox.
10512         * X11Structs.cs: More ToString implementation.
10513         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
10514           #81791.
10515
10516 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10517
10518         * PropertyGridView.cs: Add a null-check, fixes a few tests.
10519
10520 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
10521
10522         * TableLayoutPanelCellPosition.cs: TypeConverter.
10523
10524 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10525
10526         [ Fixes #79761]
10527         
10528         * PropertyGridTextBox.cs: Propagate any color changes to all contained
10529           controls.
10530         * PropertyGridView.cs: A few color fixes.
10531
10532 2007-07-10  Jackson Harper  <jackson@ximian.com>
10533
10534         * TextControl.cs: Remove some old unused text formatting stuff.
10535
10536 2007-07-10  Jackson Harper  <jackson@ximian.com>
10537
10538         * TreeView.cs: Update full row select invalidation to match the
10539         newer DrawSelection... method.
10540         - Make sure to invalidate the entire width when selecting a new
10541         node, if we have full row selection enabled.
10542
10543 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10544
10545         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
10546           display of properties again.
10547
10548 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
10549
10550         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
10551         to existing collections.
10552
10553 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10554
10555         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
10556         that changed between 1.1 and 2.0.
10557
10558 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10559
10560         * PowerStatus.cs: Added.  This is just a data class, it is filled
10561         in by SystemInformation.
10562
10563 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10564
10565         * Message.cs: Add op_Equality and op_Inequality.
10566
10567 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10568
10569         * MenuStrip.cs: Finish corcompare work.
10570
10571 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10572
10573         * LinkArea.cs: Add op_Equality and op_Inequality.
10574
10575 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10576
10577         * Application.cs: Add MessageLoopCallback delegate.
10578
10579 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10580
10581         * ListBox.cs: First set of 2.0 stuffs.
10582
10583 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10584
10585         * Control.cs: Make an internal Height property we can override
10586         without messing up the public API.
10587         * ListBox.cs: Override HeightInternal to always return the size
10588         the user set.  [Fixes bug #80466]
10589
10590 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
10591
10592         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
10593         paint cell borders if we haven't calculated where they go yet.
10594         [Fixes bugs #82040 and #82041]
10595
10596 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10597
10598         * ListView.cs: In Details view, set the location of item_control
10599         in the (0,0) position (and the header_control is thus on the
10600         item_control). This way the Bounds of the Items are relative to the
10601         ListView control (before this, they had a Bounds value without the
10602         header_control offset, which wasn't matching .Net). Fixes #82004.
10603
10604 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10605
10606         * ListControl.cs: When DataSource is set to null, pass an empty
10607         array of object to SetItemsCore. This is done to clean the items
10608         in the ListContol children. Fixes #81788.
10609
10610 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10611
10612         * ListControl.cs: Add 2.0 stuffs.
10613
10614 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10615
10616         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
10617         Refresh is overkill for just about every repaint request.
10618
10619 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10620
10621         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
10622         so remove my custom Get method and fix the property getter.
10623
10624 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10625
10626         * Label.cs: DefaultMargin for 2.0.
10627
10628 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10629
10630         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
10631         reported issue where other controls with mnemonics would steal strokes
10632         from a selected ComboBox.
10633
10634 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10635
10636         * ScrollOrientation.cs: Make internal for 1.1.
10637         * ScrollEventArgs.cs: Add 2.0 stuffs.
10638
10639 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
10640
10641         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
10642         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
10643         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
10644
10645 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10646
10647         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
10648
10649 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10650
10651         * ListView.cs: Implement the so-incredibly broken 2.0 
10652         VirtualItemsSelectionRangeChanged event.
10653
10654 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10655
10656         * ListView.cs: When enter is pressed and selection is non empty,
10657         an OnItemActivate event must be fired.
10658
10659 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10660
10661         * ListView.cs: Store the FocusedItem information as an
10662         int instead of a ListViewItem (needed by VirtualMode).
10663         Update the calls to SetFocusedItem to pass an index instead of
10664         an item.
10665         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
10666         the Focused state from the owner ListView. 
10667
10668 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10669
10670         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
10671         property. Also, invalidate previous focused item in the mentioned
10672         property (match .Net).
10673
10674 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10675
10676         * ListView.cs: Implement 2.0 FocusedItem property setter.
10677
10678 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10679
10680         * ListView.cs: Implement 2.0 TopItem property setter.
10681
10682 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
10683
10684         * StatusStrip.cs: The default renderer is System.
10685         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
10686         if the user specifies it.
10687         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
10688         if we are ManagerRenderMode.
10689         * ToolStripMenuItem.cs: Calculate our text color better.
10690         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
10691         from Professional to the base class based off working with the System renderer.
10692         * ToolStripSystemRenderer.cs: Added.
10693
10694 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10695
10696         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
10697
10698 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
10699
10700         * ToolTip.cs: Implement 2.0 Tag property.
10701
10702 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10703
10704         * ListView.cs: Implement 2.0 HitTest methods.
10705
10706 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10707
10708         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
10709         item is under the pointer or not (sugar). Also remove the TODO
10710         regarding to the cursor changes in OneClick activation.
10711         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
10712         the subitems use the parent's HotFont if UseItemStyleForSubItems is
10713         true; otherwise don't show the underline style.
10714
10715 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10716
10717         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
10718         the code to retrieve the item at position only one time. Also
10719         change cursor when Activation is ItemActivation.OneClick as well
10720         as invalidate the item if HotTracking is true (to show/hide the
10721         underline style). Add an internal HotItemIndex property to retrieve
10722         the current hot item's index.
10723         * ListViewItem.cs: Add an internal HotFont property to cache the
10724         font used when HotTracking is true and the pointer moves within the
10725         item's borders.
10726         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
10727         HotFont depending on the hot state of the item.
10728
10729 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10730
10731         * ListView.cs: Implement 2.0 HotTracking property.
10732
10733 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
10734
10735         * ToolStripControlHost.cs: If our hosted control never got created,
10736         don't try to dispose it.  [Fixes bug #81909]
10737
10738 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
10739
10740         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
10741
10742 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
10743
10744         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
10745
10746 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10747
10748         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
10749         Details view.
10750         * DrawListViewColumnHeaderEventArgs.cs:
10751         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
10752         using the DrawText () methods.
10753
10754 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
10755
10756         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
10757         background which got erased in my changes yesterday.
10758
10759 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10760
10761         * ListViewItem.cs: Actually set bounds for subitems in Details view
10762         (2.0 feature).
10763         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
10764         can invoke from the owner draw routines if we need it. Also, add
10765         support for Owner draw in Details view.
10766
10767 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
10768
10769         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
10770         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
10771         ShowImageMargin setting, properly align text in a ToolStripLabel
10772         hosted on a ToolStripDropDown.
10773
10774 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
10775
10776         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
10777         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
10778
10779 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10780
10781         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
10782
10783 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
10784
10785         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
10786         location to match ToolStripMenuItems.
10787
10788 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10789
10790         * DrawListViewColumnHeaderEventArgs.cs:
10791         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
10792         column headers in ListView. 
10793
10794 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
10795
10796         * UserControl.cs: Implement AutoSize.
10797
10798 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10799
10800         * DrawListViewItemEventArgs.cs:
10801         * ListView.cs:
10802         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
10803         ListView.
10804
10805 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
10806
10807         * ToolStripDropDownItemAccessibleObject.cs: Added.
10808         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
10809         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
10810         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
10811         ToolStripTextBox.cs: corcompare work.
10812
10813 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
10814
10815         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
10816         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
10817         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
10818                 corcompare.
10819
10820 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
10821
10822         * OSFeature.cs: Add IsPresent.
10823         * PrintPreviewControl.cs: Add RightToLeft.
10824         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
10825         * SplitterPanel.cs: Add AutoSizeMode.
10826
10827 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
10828
10829         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
10830         * MdiClient.cs: Add 2.0 ScaleControl.
10831         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
10832         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
10833
10834 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
10835
10836         * Form.cs: Implement some scaling methods, stub some RTL methods,
10837         corcompare work.
10838
10839 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
10840
10841         * Control.cs: corcompare work.
10842         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
10843
10844 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
10845
10846         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
10847         ControlPaint 2.0 stuffs.
10848
10849 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10850
10851         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
10852
10853 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10854
10855         * UpDownBase.cs: Add 2.0 stuffs.
10856
10857 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10858
10859         * NumericUpDown.cs: Add 2.0 stuffs.
10860
10861 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10862
10863         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
10864
10865 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10866
10867         * ErrorProvider.cs: Implement 2.0 stuffs.
10868
10869 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10870
10871         * DomainUpDown.cs: Implement 2.0 stuffs.
10872
10873 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10874
10875         * CheckedListBox.cs: Fix RefreshItems signature.
10876
10877 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10878
10879         * PictureBox.cs: Implement 2.0 stuffs.
10880
10881 2007-06-12  Andreia Gaita  <avidigal@novell.com>
10882         
10883         * TabControl.cs: Check if there are tabpages before checking
10884         the selected index - fix #81802 (font changes raise a ResizeTabs
10885         call on controls.add, which blew up nicely with no tabpages)
10886
10887 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10888
10889         * ListView.cs:
10890         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
10891
10892 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10893
10894         * ListView.cs:
10895         * ListViewItem.cs: In VirtualMode the selection information
10896         resides in the ListView, rather than in the Items. Also, throw
10897         InvalidOperationExceptions when VirtualMode is being used and
10898         CheckedItemCollection is accessed.
10899
10900 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
10901
10902         * ComboBox.cs: Add ScaleControl.
10903
10904 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
10905
10906         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
10907
10908 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
10909
10910         * GroupBox.cs: Add 2.0 stuffs.
10911
10912 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
10913
10914         * Panel.cs: Add autosize properties/event.
10915
10916 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
10917
10918         * Control.cs:
10919         - When we remove a control, remove it from the collection before performing the layout.
10920         - Setup an internal property for explicit_bounds.
10921         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
10922         - Perform a layout when we set a new AutoSizeMode.
10923
10924 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
10925
10926         * ScrollableControl.cs: Add 2.0 stuffs.
10927
10928 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
10929
10930         * ScrollBar.cs: Add 2.0 stuffs.
10931
10932 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
10933
10934         * Splitter.cs: Add 2.0 stuffs.
10935
10936 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
10937
10938         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
10939         to have BindingContext simply use base implementation.
10940
10941 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
10942
10943         * ColumnHeader.cs: corcompare fix.
10944
10945 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
10946
10947         * Button.cs: corcompare fixes.
10948         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
10949
10950 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
10951
10952         * Button.cs: Override GetPreferredSizeCore.
10953         * ButtonBase.cs: PerformLayout after changing properties that can affect
10954         AutoSize.  Simplify some mouse/keyboard code.
10955         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
10956         * MouseEventArgs.cs: Make Location internal for 1.1.
10957         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
10958         * Theme.cs: Add CalculateButtonAutoSize.
10959         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
10960
10961 2007-06-05  Miguel de Icaza  <miguel@novell.com>
10962
10963         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
10964
10965 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10966
10967         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
10968         since we can get different item instances every time we retrieve it.
10969
10970 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10971
10972         * ListView.cs: Work around for #81602, since an unkown an pretty
10973         infrequent condition appears only in some systems (old linux boxes, it
10974         seems).
10975
10976 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
10977
10978         * Button.cs: Completely reformat and a little refactor to bring
10979         this closer to Mono circa 2007.
10980
10981 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
10982
10983         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
10984         to be ButtonBase.Invalidate.
10985
10986 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
10987
10988         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
10989
10990 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
10991
10992         * ButtonBase.cs: Completely reformat and a little refactor to bring
10993         this closer to Mono circa 2007.
10994
10995 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
10996
10997         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
10998         values for autosize. Fixes #80137.
10999
11000 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
11001
11002         * Control.cs: Don't perform layout when AutoSize changes.
11003         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
11004         directly when autosizing, use SetBounds with BoundsSpecified.None.
11005         Fixes unit tests my last commit broke.
11006
11007 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
11008
11009         * Control.cs: Perform layout when AutoSize changes.
11010         * Form.cs: Implement AutoSizing.
11011
11012 2007-06-01  Chris Toshok  <toshok@ximian.com>
11013
11014         * DataGrid.cs: remove the XXX'ed check at the top of
11015         ProcessGridKey.  fixes #80464.
11016
11017 2007-06-01  Chris Toshok  <toshok@ximian.com>
11018
11019         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
11020         adding idempotent (add/remove in Edit()), and also make sure we
11021         don't add it until after we set the text, so it's not tripped in
11022         Edit().  Fixes unit test regression.
11023
11024 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
11025
11026         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
11027         change is user explicit, not when the layout engine moves stuff.  Fixes
11028         anchoring to bottom and right.  [Fixes bug #81790]
11029
11030 2007-06-01  Andreia Gaita  <avidigal@novell.com>
11031
11032         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
11033
11034 2007-06-01  Andreia Gaita  <avidigal@novell.com>
11035
11036         * ContainerControl.cs: 
11037         Fire enter event for common ancestor if it is not a ContainerControl.
11038         Send focus to the active_control and not the 'value', the active 
11039         control might have been changed in one of the events fired.     
11040         Definitely fixes #80159.
11041
11042 2007-06-01  Andreia Gaita  <avidigal@novell.com>
11043
11044         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
11045
11046 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11047
11048         * PropertyGrid.cs: Anchor the help description to the bottom of the
11049           help panel and refactor SelectGridItem into a
11050           SelectGridItemInternal that can be set to null (and update it to
11051           clear the help texts when it is set to null). Set root item to null
11052           when there's no SelectedObject. Fixes #80438.
11053         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
11054           when we're recalculating after a resize (only).
11055
11056 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11057
11058         * ListView.cs: Implement 2.0 RedrawItems method.
11059
11060 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11061
11062         * ListControl.cs: Disconnect PositionChanged and ItemChanged
11063         handlers from previous data manager when DataSource is set to
11064         null. Fixes #81771.
11065
11066 2007-05-31  Jackson Harper  <jackson@ximian.com>
11067
11068         * TextBoxBase.cs: These seem to be the correct values.
11069
11070 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
11071
11072         * FileDialog.cs: When close dialog with ok set filterindex using combobox
11073         value. Fixes #81784.
11074
11075 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
11076
11077         * Control.cs: Implement 2.0 scaling methods.
11078
11079 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11080
11081         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
11082           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
11083           corcompare issues.
11084
11085 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11086
11087         * ProgressBar.cs: Implemented missing 2.0 members.
11088
11089 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11090
11091         * Control.cs: Corcompare issues.
11092         * MessageBox.cs: Implemented missing 2.0 functions.
11093
11094 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11095
11096         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
11097           Implemented more 2.0 members.
11098
11099 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11100
11101         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
11102           null (strange, but it seems to happen when running unit tests).
11103
11104 2007-05-30  Andreia Gaita  <avidigal@novell.com>
11105
11106         * ContainerControl.cs: Set active_control even earlier, before 
11107         firing any events, and undo it if validation returns false.
11108
11109 2007-05-30  Andreia Gaita  <avidigal@novell.com>
11110
11111         * ContainerControl.cs: Raise Validation and Enter/Leave events
11112         even if there is no Form and set active_control earlier, just
11113         before firing Enter events (toshok's patches). Fixes #80647.
11114
11115 2007-05-30  Jackson Harper  <jackson@ximian.com>
11116
11117         * TextControl.cs: Redid the pageup/pagedown a little to simplify
11118         things and fix bug #81311.
11119
11120 2007-05-30  Jackson Harper  <jackson@ximian.com>
11121
11122         * X11Dnd.cs: Now that we have our own event loop, we need to
11123         cancel when we get a mouseup but it won't be accepted.
11124
11125 2007-05-30  Chris Toshok  <toshok@ximian.com>
11126
11127         * DataGrid.cs (set_CurrentCell): guard against negative
11128         column/row.
11129
11130         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
11131         array index syntax instead of looping over the property names.
11132
11133         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
11134         and set IsInEditOrNavigateMode to false there.
11135
11136 2007-05-30  Jackson Harper  <jackson@ximian.com>
11137
11138         * TreeView.cs: Make sure we don't get a bad visible order when
11139         setting to the top node.  Fixes some misc crashing in
11140         ControlInspector.
11141
11142 2007-05-30  Andreia Gaita  <avidigal@novell.com>
11143
11144         * UserControl.cs: Add 2.0 AutoSizeMode
11145
11146 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
11147
11148         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
11149
11150 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
11151
11152         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
11153         lines. Fixes #80285. 
11154
11155 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
11156
11157         * DataGridColumnStyle.cs: Add char trimming column header text format. 
11158
11159 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
11160
11161         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
11162         Fixes #80147.
11163
11164 2007-05-29  Jackson Harper  <jackson@ximian.com>
11165
11166         * TreeNode.cs: Fix off by one on calculating whether or not a node
11167         is visible.
11168
11169 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
11170
11171         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
11172         * ScrollableControl.cs: Force an UpdateDistances when we move the
11173         scrollbars.
11174         [Fixes bug #80605]
11175
11176 2007-05-29  Andreia Gaita  <avidigal@novell.com>
11177
11178         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
11179         update the page setup screen.
11180
11181 2007-05-29  Andreia Gaita  <avidigal@novell.com>
11182
11183         * PageSetupDialog.cs: Fix landscape mode.
11184
11185 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11186
11187         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
11188         IconSizeHorizontalSpacing.
11189
11190 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11191
11192         * ListView.cs: The declaration of prev_tooltip_item should be inside
11193         a NET_2_0 conditional (avoid a warning).
11194
11195 2007-05-28  Andreia Gaita  <avidigal@novell.com>
11196
11197         * PageSetupDialog.cs: Implement PrintPreview control to display
11198         the preview thumbnail. Change unit conversion to use 
11199         PrinterUnitConvert methods.
11200         
11201         Note: there is a huge bug in ms.net where the default margins are 
11202         interpreted as centimeters (?), when in fact they are set in inches. When 
11203         loading the page setup dialog initially (ms.net), the default margins 
11204         are set to 1 inch, and the dialog shows them with value 10, when in fact 
11205         it should be 25 (properly converted). Our dialog doesn't have this bug.
11206         
11207         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
11208         RectangleF.
11209         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
11210
11211 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11212
11213         * ListView.cs:
11214         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
11215         items.
11216
11217 2007-05-28  Andreia Gaita  <avidigal@novell.com>
11218
11219         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
11220         an IntPtr on csc (it builds fine on mcs, could it be a compiler
11221         bug?), convert the ptr to Int32 first.
11222
11223 2007-05-28  Jackson Harper  <jackson@ximian.com>
11224
11225         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
11226         recieved, we will exit the dnd tracking loop.
11227
11228 2007-05-28  Jackson Harper  <jackson@ximian.com>
11229
11230         * X11Dnd.cs: Keep tracking until the xdnd finished event is
11231         recieved. TODO: I should probably stick a timer on the dropped
11232         event, and finish the drag if the XDND Finished event never shows
11233         (because some apps don't seem to send it).
11234
11235 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
11236
11237         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
11238         #81733.
11239
11240 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11241
11242         * MonthCalendar.cs: Only mark the keypresses we actually handle as
11243           handled.
11244
11245 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11246
11247         * MonthCalendar.cs: Set the size after initializing all the relevant
11248           variables. Fixes #81742.
11249
11250 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11251
11252         * KeyEventArgs.cs: Fix typo.
11253
11254 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
11255
11256         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
11257         to match MS. Fixed MinDate to only accept value less than or equal
11258         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
11259         Removed TODO's that are now verified by unit tests.
11260
11261 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
11262
11263         * TreeNodeCollection.cs: Minor corrections to exceptions to match
11264         MS.
11265
11266 2007-05-25  Jackson Harper  <jackson@ximian.com>
11267
11268         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
11269         it's own message loop.
11270         * XplatUIX11.cs: Remove some of the dnd hooks
11271
11272 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
11273
11274         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
11275         instead of MinimizedWindowSize.
11276
11277 2007-05-25  Jackson Harper  <jackson@ximian.com>
11278
11279         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
11280
11281 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11282
11283         * KeyEventArgs.cs: Added SuppressKeyPress.
11284         * Control.cs: Added support for SuppressKeyPress.
11285
11286 2007-05-24  Andreia Gaita  <avidigal@novell.com>
11287
11288         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
11289         problems with PieChart. suppress_validation should not be a counter,
11290         if there are several BeginInit calls, the first EndInit will 
11291         activate validation. Fix exceptions thrown by set_Value.
11292         * UpDownBase.cs: ValidateText only if it's the user editing it.
11293
11294 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11295
11296         * ListControl.cs: FilterItemOnProperty should return the filtered
11297         item proeprty even if DataSource is null. The same applies for
11298         GetItemText. Fixes #80427.
11299
11300 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
11301
11302         * Control.cs: If a control doesn't have a parent when it's Dock is
11303         set, but it has children, it needs to do a layout.  Fixes some nested
11304         controls issues.  [Fixes bug #81199]
11305
11306 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11307
11308         * ComboBox.cs: If there are few items in the drop down list, make it
11309           the exact size the items need, no bigger. Fixes #81612.
11310
11311 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
11312
11313         * Application.cs: When we have captured the keyboard for a menu,
11314         check for mouse down events in case we need to close the menu.
11315         * Control.cs, Form.cs: Remove mouse down checks for menus.
11316
11317 2007-05-24  Jackson Harper  <jackson@ximian.com>
11318
11319         * TextControl.cs: Handle tabs in non multiline mode a little
11320         differently.
11321
11322 2007-05-24  Jackson Harper  <jackson@ximian.com>
11323
11324         * TextControl.cs: We need to manually break apart tabbed text and
11325         move the tabs, since the system.drawing tabbing mechanism relies
11326         on tab stops.
11327         * TextBoxBase.cs: Move the caret properly when the user enters a
11328         tab.
11329
11330 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
11331
11332         * ContainerControl.cs: Don't check CanSelect before calling
11333         ProcessMnemonic.
11334         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
11335         release a KeyboardActive on click if it's not ours.
11336
11337 2007-05-23  Andreia Gaita  <avidigal@novell.com>
11338
11339         * ColumnHeader.cs: Add TypeConverter
11340
11341 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11342
11343         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
11344
11345 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11346
11347         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
11348
11349 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11350
11351         * LinkLabel.cs: Implement public Padding property.
11352
11353 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11354
11355         * LinkLabel.cs: Implement public FlatStyle.
11356
11357 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
11358
11359         * Control.cs: Apply patch from George to call parent.PerformLayout
11360         when Visible is changed.  [Fixes bugs #81118, 81718]
11361
11362 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11363
11364         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
11365
11366 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11367
11368         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
11369
11370 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11371
11372         * ContextMenu.cs: Implement Collapse.
11373
11374 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
11375
11376         * ToolBarButton.cs: Implement Name.
11377
11378 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
11379
11380         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
11381         use current_item, it prevents some NRE. Fixes #81675.  
11382
11383 2007-05-22  Andreia Gaita  <avidigal@novell.com>
11384
11385         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
11386         without updating the text.
11387
11388 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
11389
11390         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
11391         without calling DeleteObject.  [Should fix bug #81709]
11392
11393 2007-05-22  Jackson Harper  <jackson@ximian.com>
11394
11395         * RichTextBox.cs: Set the line endings correctly, when flushing
11396         RTF text.
11397
11398 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
11399
11400         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
11401          {Width=0,Height=0}.
11402
11403 2007-05-22  Jackson Harper  <jackson@ximian.com>
11404
11405         * TreeView.cs: Setting top with a null node should set to the very
11406         top.
11407
11408 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11409
11410         * Form.cs: ShowDialog: destroy the handle when message loop is
11411           finished, matches MS behaviour. Refactor parts of WmClose into
11412           RaiseCloseEvents, that only raises events if they haven't already
11413           been raised. Fixes #81688 and #81521.
11414         * Application.cs: Don't call close on the form when exiting a modal
11415           loop, it will raise all the (Form)Closed/Closing events again if
11416           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
11417           which doesn'r raise any events it they have been raised before.
11418
11419 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
11420
11421         * Control.cs: Add OnPrint.
11422         * ToolStrip.cs: Add GetChildAtPoint.
11423         * ToolStripContainer.cs: Add OnRightToLeftChanged.
11424         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
11425
11426 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
11427
11428         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
11429
11430 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11431
11432         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
11433           isn't visible anymore. Fixes #81651.
11434
11435 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11436
11437         * Control.cs: WmShowWindow: Update children's z-order after setting
11438           their parent. SetParent may show the window, thereby corrupting
11439           z-order, since the window will be shown on top.
11440         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
11441           multiple (and redundant) WM_SHOWWINDOW messages.
11442         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
11443           event has already been raised.
11444         * Form.cs: Change is_changing_visible_state to a counter, since
11445           SetVisibleCore can be called recursively. CreateHandle: when
11446           creating mdi children, send (De)Activated events.
11447         * MdiClient.cs: Update use of is_changing_visible_state.
11448         * Application.cs: OnThreadException: Surround exception handling with
11449           try/finally to ensure we always reset the error-handling state
11450           before leaving.
11451
11452 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11453
11454         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
11455           (#81704).
11456
11457 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11458
11459         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
11460         SmallIcon views, now that we have a standarized horizontal spacing.
11461
11462         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
11463         4, just like the other views (Match .Net).
11464
11465 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
11466
11467         * Control.cs: Delay calculating anchor distances until we actually layout.
11468         Always query the WM for the actual size and location it put us at instead of
11469         only when we send negative values.
11470         [Fixes bugs #81694, 81695]
11471
11472 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11473
11474         * Application.cs: Avoid a possible stack overflow when trying to exit
11475           the application.
11476
11477 2007-05-19  Marek Safar  <marek.safar@gmail.com>
11478
11479         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
11480         enum value.
11481
11482 2007-05-19  Andreia Gaita  <avidigal@novell.com>
11483
11484         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
11485         * NumericUpDownAcceleration.cs, 
11486           NumericUpDownAccelerationCollection.cs: Added 2.0
11487           implementation.
11488
11489 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
11490
11491         * RichTextBox.cs: Recalculate the document after the ScrollBars
11492         property is changed. Fixes bug #81681.
11493
11494 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
11495
11496         * DataObject.cs: Implement 2.0 methods.
11497
11498 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11499
11500         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
11501         in the center of the checkbox, not in the left-top corner. 
11502         Fixes #80037.
11503
11504 2007-05-18  Jackson Harper  <jackson@ximian.com>
11505
11506         * RichTextBox.cs: Recalculate the document after the scrollbars
11507         property is changed.
11508         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
11509         81486.
11510
11511 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11512
11513         * CreateParams.cs: Make HasWindowManager marginally faster.
11514         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
11515           into Hwnd so that other drivers can use it as well.
11516         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
11517           the default location from Hwnd. Fixes MDI client windows always
11518           showing up at (0,0) in Windows (Win32 won't set the default
11519           location since the window styles aren't correct).
11520
11521 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
11522
11523         * TreeView.cs: Modified DoubleBuffered to just use the base
11524         implementation.
11525
11526 2007-05-18  Jackson Harper  <jackson@ximian.com>
11527
11528         * TreeView.cs: Set the top node to the last child node when
11529         expanding all
11530         - When we get focus, if there is no selected node, use the top
11531         node.
11532
11533 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
11534
11535         * KeysConverter.cs: Add CanConvertTo.
11536         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
11537         * LinkConverter.cs: Added.
11538
11539 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11540
11541         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
11542         it prevents error when file dont have write access. Fixes #81669 and #81667.  
11543
11544 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11545
11546         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
11547         button text. Fixes #79640.  
11548
11549 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11550
11551         * Control.cs: According to MSDN controls created in the designer theres 
11552         keyboard accelerators visible by default. So included check for design
11553         in ShowKeyboardCuesInternal.  
11554
11555 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11556
11557         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
11558         text. Fixes #81621.  
11559
11560 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11561
11562         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
11563         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
11564
11565 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
11566
11567         * Control.cs: Finish implementation of UI State using WmChangeUIState
11568         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
11569         in some controls to check for show_keyboard_cues to draw accell keys "_".  
11570
11571 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11572
11573         * ListBox.cs: When calculating the horizontal scrollbar
11574         in single column mode, don't use values less than 0 for
11575         Maximum. Fixes #81474.
11576
11577 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11578
11579         * ListBox.cs: Throw the some missing exceptions in
11580         ListBox.ObjectCollection methods.
11581
11582 2007-05-17  Jackson Harper  <jackson@ximian.com>
11583
11584         * TextBoxBase.cs: Recalculate the document when the word wrap
11585         value has changed. This fixes 81488.
11586
11587 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
11588
11589         * Clipboard.cs: Implement missing GetText overload.
11590
11591 2007-05-17  Chris Toshok  <toshok@ximian.com>
11592
11593         * Control.cs (CheckDataBindings): remove the binding_context arg
11594         to binding.Check.
11595
11596         * CurrencyManager.cs (OnItemChanged): fix this now that
11597         BindingManagerBase is fixed. also remove the comment telling where
11598         the fix should go.  We set transfering_data to true/false around
11599         the call to PushData to keep UpdateIsBinding from being called.
11600         (ListChangedHandler): remove the extra OnMetaDataChanged call for
11601         PropertyDescriptorAdded in the 1.1 case.  The extra call is
11602         actually generated by System.Data generating 2 metadata changed
11603         events of its own per column add.  The fix should go there.  Add a
11604         comment to that affect in our test's Assert.Ignore.
11605
11606         * BindingManagerBase.cs: Rework PullData and PushData slightly.
11607         we keep a boolean flag (transfering_data) that keeps us from
11608         calling UpdateIsBinding multiple times if we re-enter either of
11609         them.
11610
11611         * ControlBindingsCollection.cs (AddCore): remove the
11612         binding_context arg to binding.Check.
11613
11614         * Binding.cs (IsBinding): don't check if we're binding here, just
11615         return our cached value.  we update it in UpdateIsBinding.
11616         (Check): don't take the binding_context arg, we'll just use our
11617         control's.  Also, for some reason MS doesn't use the data member
11618         field when getting the bindingmanager for this binding.  it just
11619         uses the datasource.  Make this method callable multiple times,
11620         and only do the is_null_desc stuff if manager.Position != -1 (so
11621         we don't get an exception accessing manager.Current).
11622         (UpdateIsBinding): move the code from IsBinding here.
11623         (PositionChangedHandler): call Check here to we can initialize
11624         things that require a non- -1 position.
11625
11626 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
11627
11628         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
11629         control.
11630
11631 2007-05-17  Andreia Gaita  <avidigal@novell.com>
11632
11633         * TabControl.cs: Add 2.0 methods and events, including
11634         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
11635         * TabPage.cs: Add 2.0 methods
11636
11637 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
11638
11639         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
11640         keyboard_cues is properly handled by message method.  
11641
11642 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
11643
11644         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
11645
11646 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
11647
11648         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
11649
11650 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
11651
11652         * Control.cs: 
11653         - WmUpdateUIState added to handle state changes, it make call to
11654         OnChangeUICues event.
11655         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
11656         SystemInformation.
11657
11658 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
11659
11660         * ImageKeyConverter.cs: Added.
11661         * TreeViewImageKeyConverter.cs: Added.
11662
11663 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11664         
11665         * ToolTips.cs: Update Text if SetToolTip is called for a control
11666         already showing the tooltip, as well as restarting its timer; show
11667         tooltip if we are inside the control bounds by the time of calling
11668         SetToolTip. Inside ShowTooltip remove the check to not show the 
11669         tooltip again for the active control (it is allowed by .Net to 
11670         show the tooltip on the same control multiple times).
11671
11672 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11673
11674         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11675
11676 2007-05-16  Andreia Gaita <avidigal@novell.com> 
11677
11678         * ContainerControl.cs: only process tab key if there are no 
11679         modifier keys present, otherwise the control does the 
11680         tab processing, if it needs to. Fixes #81622
11681         * TabControl.cs: Fixes calculation for which tab to select on
11682         shift+ctrl+tab.
11683
11684 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11685
11686         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11687
11688 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
11689
11690         * Control.cs: Make IsInputCharInternal to allow controls to
11691         override it and still match MS API.
11692         * TextBoxBase.cs: Override IsInputCharInternal and always
11693         return true.
11694         [Fixes bug #81616]
11695
11696 2007-05-15  Jackson Harper  <jackson@ximian.com>
11697
11698         * TextBox.cs: Disable some of the menu options when using a
11699         readonly textbox.
11700
11701 2007-05-15  Jackson Harper  <jackson@ximian.com>
11702
11703         * TextBox.cs:
11704         * TextBoxBase.cs:
11705         * RichTextBox.cs: Some new 2.0 methods
11706
11707 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
11708
11709         * FileDialog.cs: On 1.0 profile, do not support multidotted 
11710         extensions.
11711
11712 2007-05-14  Jackson Harper  <jackson@ximian.com>
11713
11714         * TextBoxBase.cs: Implement some of the new 2.0 methods.
11715         * RichTextBox.cs: We need to override these methods on 2.0.
11716         * MaskedTextBox.cs: These are implemented now
11717         * TextControl.cs: This was off by one.
11718
11719 2007-05-14  Jackson Harper  <jackson@ximian.com>
11720
11721         * TextControl.cs: Because the line endings are including in the
11722         text, we don't need to add them in anymore.
11723
11724 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11725
11726         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
11727         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
11728
11729 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11730
11731         * ToolBar.cs: Adjust size to default size when button theres no text and
11732         image, it fixes remaining issues from #81524.
11733
11734 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11735
11736         * ToolBar.cs: 
11737         - When not flat call redraw to recalculate sizes on creare handle to match
11738         win32 behavior.
11739         - Revert 77220 because it causes some regressions in toobar
11740         button.
11741
11742 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11743
11744         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
11745           now actually enters a usable state.
11746
11747 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11748
11749         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
11750         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
11751         3 buttons.
11752
11753 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11754
11755         * ToolBar.cs: Save default_size on create handle to use later for buttons
11756         without text, needed to mimic win32 behavior.
11757
11758 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11759
11760         * ToolBar.cs: Fix button layour to best fit width or height according to
11761         vertical or not. Fixes #81524.
11762
11763 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
11764
11765         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
11766         toolbar size info because different styles theres different sizes.
11767         Fixes #81522.
11768
11769 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11770
11771         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
11772         if we are using checkboxes, checked is true, and we have less
11773         than two images in StateImageList; for the 1.1 in the same scenario
11774         draw the first image if we have at least one image in StateImageList.
11775         Fixes part of #81191.
11776
11777 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
11778
11779         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
11780         the owner's Items collection on merge.
11781
11782 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
11783
11784         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
11785         * ToolStripItemCollection.cs: Lots of fixes to when events get called
11786         and parent/owner gets changed based on gert's unit tests.
11787
11788 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11789
11790         * MaskedTextBox.cs: Started implementing parts of it.
11791
11792 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11793
11794         * ListView.cs: When clicking the checkbox on the items
11795         take into account the double clicks even if we have only
11796         one image in StateImageList (only for 1.0/1.1). Also 
11797         generate an extra change of checked state when we receive
11798         the second click on checkbox (match .Net behaviour). 
11799         Fixes part of #81191.
11800
11801 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
11802
11803         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
11804
11805 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
11806
11807         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
11808         even if OnLoad is overriden and base.OnLoad is not called.
11809         [Fixes bug #81582]
11810
11811 2007-05-10  Andreia Gaita  <avidigal@novell.com>
11812
11813         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
11814         shame. (I blame my ever-persisting and annoying cold)
11815
11816 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
11817
11818         * ListView.cs: Don't eat navigation keys.  Let them flow through to
11819         KeyDown/KeyPress routines.  [Fixes bug #81569]
11820
11821 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
11822
11823         * ListView.cs: When handling keys for selecting the item based off
11824         keyboard input, do not consider keys pressed with Alt or Control.  Also,
11825         correctly handle keys when the Shift key is down. [Fixes bug #81578]
11826
11827 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
11828
11829         * Control.cs: When using UseWaitCursor, we have to store the requested
11830         Cursor to use when UseWaitCursor is turned off.
11831
11832 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
11833
11834         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
11835         to false.
11836         * Application.cs: Use PreProcessControlMessage instead of
11837         PreProcessMessage.
11838         * PreProcessControlMessage.cs: Make internal for 1.1.
11839
11840 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11841
11842         * Control.cs: Add InternalContains focus property, which hast the same
11843         functionality of ContainsFocus, but also including implicit controls.
11844         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
11845         since we need to know if the focus is contained in our implicit
11846         ItemControl when calculating Layout. Fixes part of #80888.
11847
11848 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
11849
11850         * ToolTip.cs: Remove center form string alignment as it must be align to
11851         left.
11852
11853 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
11854
11855         * ToolStripItemCollection.cs: Set the new item's parent and owner
11856         in Insert like we do in Add.  [Fixes bug #81568]
11857
11858 2007-05-08  Jackson Harper  <jackson@ximian.com>
11859
11860         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
11861         - Off by one error in SetTop
11862         - Disable DoubeBuffering
11863         
11864 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11865
11866         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
11867           control as much as necessary in order to make it entirely visible,
11868           instead of centering the control in the container (matches MS
11869           behaviour). CalculateCanvasSize: we need to take the current scroll
11870           position into account when calculating the maximum canvas,
11871           otherwise the following scenario will fail: resize so that the
11872           scrollbars appear, use the scrollbars to scroll, resize again
11873           smaller, and now the canvas size is too small. Recalculate: when
11874           showing scrollbars make sure they start off at 0, and try to scroll
11875           the active control into view. Fixes #79540. HandleScrollBar: don't
11876           scroll anywhere if the scrollbar isn't visible.
11877
11878 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11879
11880         * ListView.cs: When focus changed, call Layout/Invalidate
11881         in the focused item to update the selected state (should show
11882         entire label when ListView is focused, and a part of it if is not).
11883         * ListViewItem.cs: When doing layout for LargeIcon, take into account
11884         for displaying the entire label not only the Focused state of the
11885         item, but also the Focused state of the ListView (match .Net
11886         behaviour).
11887
11888 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
11889
11890         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
11891         Implement UseWaitCursor. 
11892
11893 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
11894         Applying contributed patch from Sergey Volk.
11895
11896         * Clipboard.cs: Implement SetDataObject retry logic and new overload
11897         of SetDataObject.
11898         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
11899
11900 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
11901
11902         * Control.cs: Implement DrawToBitmap.
11903
11904 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
11905         Applying contributed patch from Stefan Noack.
11906         
11907         * Control.cs: Add [Get|Set]AutoSizeMode.
11908
11909 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
11910
11911         * MdiClient.cs: Unmerge menus when the last child is closed.
11912
11913 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
11914
11915         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
11916         * ToolStripManager.cs: Call Merge on DropDowns.
11917         [Fixes bug #81477]
11918
11919 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11920
11921         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
11922           uints.
11923         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
11924           visibility. We can't create forms visible, since we have to set the
11925           owner before making the form visible (otherwise Win32 will do
11926           strange things with task bar icons). The problem is that we set the
11927           internal is_visible to true before creating the control, so
11928           is_changing_visible_state is the only way of determining if we're
11929           in the process of creating the form due to setting Visible=true -
11930           this works because SetVisibleCore explicitly makes the form
11931           visibile afterwards anyways. Fixes #80775.
11932
11933 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11934
11935         * ThemeWin32Classic.cs: When drawing ListViewItems,
11936         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
11937         or LargeIcon _and_ item is not focused (match .Net behaviour).
11938
11939 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
11940
11941         * Control.cs, Form.cs: Fix some obsolete method warnings.
11942
11943 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
11944
11945         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
11946         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
11947
11948 2007-05-04  Andreia Gaita  <avidigal@novell.com>
11949
11950         * ContainerControl.cs: Fix active_control attribution when going
11951         up the parent chain so that the first parent container gets the control
11952         and the rest of the parent containers get the child containers (skips
11953         non-containers). Fixes #80729
11954
11955 2007-05-04  Randolph Chung  <tausq@debian.org>
11956
11957         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
11958         [Fixes bug #81499]
11959
11960 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11961
11962         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
11963           takes a size parameter, since the CreateParam's size isn't true for
11964           minimized forms. Fixes #81518,
11965
11966 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11967
11968         * Form.cs: Add OnDeactivateInternal.
11969         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
11970
11971 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11972
11973         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
11974           accessing the parent. Fixes #81508.
11975
11976 2007-05-03  Chris Toshok  <toshok@ximian.com>
11977
11978         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
11979         2.0 block, pass listposition + 1 to ChangeRecordState when a row
11980         was added before the current listposition.  Fixes the
11981         TestInsertRowBeforeCurrent unit test.
11982
11983 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
11984
11985         * Application.cs: Add RaiseIdle.
11986         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
11987         XplatUIX11.cs: Implement RaiseIdle.
11988
11989 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
11990         corcompare work: N - Z
11991         * NotifyIcon.cs
11992         * ProgressBar.cs
11993         * RadionButton.cs
11994         * ScrollableControl.cs
11995         * SplitContainer.cs
11996         * SplitterPanel.cs
11997         * StatusBar.cs
11998         * SystemInformation.cs
11999         * TabControl.cs
12000         * TableLayoutControlCollection.cs
12001         * TableLayoutPanel.cs
12002         * TabPage.cs
12003         * ToolBar.cs
12004         * ToolBarButton.cs
12005         * ToolStrip.cs
12006         * ToolStripComboBox.cs
12007         * ToolStripContainer.cs
12008         * ToolStripContentPanel.cs
12009         * ToolStripDropDown.cs
12010         * ToolStripDropDownItem.cs
12011         * ToolStripDropDownMenu.cs
12012         * ToolStripItem.cs
12013         * ToolStripItemCollection.cs
12014         * ToolStripMenuItem.cs
12015         * ToolStripPanel.cs
12016         * ToolStripSplitButton.cs
12017         * ToolTip.cs
12018         * TreeNode.cs
12019         * TreeNodeCollection.cs
12020         * TreeNodeMouseHoverEventArgs.cs
12021         * TreeView.cs
12022
12023 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
12024
12025         * ContextMenu.cs: Add public method Show with alignment property to 2.0
12026         stuff. Thanks aatdark for the patch. 
12027
12028 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12029
12030         * GridItem.cs: Implement 2.0 Tag property.
12031
12032 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
12033
12034         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
12035         count instead of Nodes.Length.  [Fixes bug #81448]
12036
12037 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12038
12039         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
12040         [Fixes bug #81506]
12041
12042 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12043         corcompare work: A - M
12044         * BindingNavigator.cs
12045         * Button.cs
12046         * ButtonBase.cs
12047         * CheckBox.cs
12048         * Control.cs
12049         * FlowLayoutPanel.cs
12050         * Form.cs
12051         * Label.cs
12052         * LinkLabel.cs
12053         * ListView.cs
12054
12055 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
12056
12057         * Application.cs: Give toolstrips a chance to process mnemonics.
12058         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
12059         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
12060         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
12061
12062 2007-05-01  Jackson Harper  <jackson@ximian.com>
12063
12064         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
12065         wider area too.
12066         - Don't set the BoundsSpecified
12067
12068 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
12069
12070         * Application.cs: When using the toolstrip shortcut mechanism, allow the
12071         message to pass through to a regular control if it hosted by a toolstrip.
12072         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12073         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
12074
12075 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
12076
12077         * TextRenderer.cs: Use the flags argument when using the MeasureString
12078         fallback algorithm.
12079
12080 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
12081
12082         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
12083         the MDI menu item.  [Fixes bug #81483]
12084
12085 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
12086
12087         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
12088         string. When setting Name to null, use zero-length string instead.
12089
12090 2007-04-29  Andreia Gaita  <avidigal@novell.com>
12091
12092         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
12093         DeselectTab). Implement missing 2.0 TabPageCollection methods
12094         (Add, ContainsKey, RemoveByKey, IndexOfKey)
12095
12096 2007-04-29  Pedro MartĂ­nez JuliĂ¡  <pedromj@gmail.com>
12097
12098         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
12099
12100 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
12101
12102         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
12103         Fixes bug #81479. Include details of exception when LoadFile fails.
12104
12105 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
12106
12107         * DrawListViewSubItemEventArgs.cs: Added missing setter
12108
12109 2007-04-27  Andreia Gaita  <avidigal@novell.com>
12110
12111         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
12112         Hide methods (not complete). Implement missing 2.0 OnPopup event.
12113
12114 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12115
12116         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
12117         removed in ly last commit (it was breaking the Label edit feature).
12118
12119         * ThemeWin32Classic.cs: When drawing a ListViewItem use
12120         StringAlignment.Near for LineAlignment (match .Net).
12121
12122 2007-04-27  Andreia Gaita  <avidigal@novell.com>
12123
12124         * TabControl.cs: Change SetTab so it adds the tabpage to the list
12125         of controls if it isn't already there - was blowing up when doing
12126         tabcontrol.TabPages[i]=new TabPage(). 
12127         SetTab now does a replace by removing the page at the index. 
12128         Add a new InsertTab method that inserts a page in a given index 
12129         instead of replacing. 
12130         Implements TabPageCollection.Insert(int, TabPage).
12131
12132 2007-04-27  Chris Toshok  <toshok@ximian.com>
12133
12134         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
12135         internal handler that can be invoked from our subclasses.)  Also,
12136         add a comment to PushData about how we need to fix it.
12137
12138         * CurrencyManager.cs: tons of changes here.  trying to get things
12139         matching the behavior of .net wrt event orders (ItemChanged,
12140         CurrentChanged, PositionChanged.)  I've implemented a private .net
12141         symbol (ChangeRecordState) that appears in stack traces because
12142         it's actually easier to do this than to effective inline all its
12143         various behaviors at every call site.
12144
12145         * RelatedPropertyManager.cs: guard against an exception here by
12146         not using parent.Current if the position is set to -1 (if the
12147         parent datasource is cleared, for instance).
12148
12149         * Binding.cs: don't parse data in PushData (this might be wrong,
12150         but it jives with MS's behavior.)  Also, don't call PushData when
12151         we get a CurrentChanged event.
12152
12153 2007-04-27  Andreia Gaita  <avidigal@novell.com>
12154
12155         * WebBrowser.cs,
12156           WebBrowserBase.cs,
12157           WebBrowserSiteBase.cs,
12158           HtmlDocument.cs: Added stubbed out classes, no real implementations 
12159           yet.
12160
12161 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
12162
12163         * MainMenu.cs: In draw method without parameters call draw method with 
12164         PaintEvent, another one (just rect) adjust rectangle and we dont need it
12165         as Rect property is already adjusted. Fixes #80694.
12166
12167 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
12168
12169         * Application.cs: Need to handle keyboard menu deselection here.
12170         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
12171         navigation, allowing keyboard to work on X11.
12172         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
12173
12174 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
12175
12176         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
12177         menu bar. It fixes some drawing issues in menu bar.
12178
12179 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
12180
12181         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
12182         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
12183         when <alt> key is pressed.
12184
12185 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
12186
12187         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
12188         example just set visible to false and make this prevent from other problems.
12189         In SystrayAdd always remove pending expose. Fixes #81072.
12190
12191 2007-04-26  Marek Safar  <marek.safar@gmail.com>
12192
12193         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
12194         value is set.
12195
12196 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
12197
12198         * ListView.cs: Added three missing 2.0 events and corresponding
12199         EventHandlers. Added the OwnerDraw property.
12200         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
12201
12202 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
12203
12204         * DrawListViewItemEventArgs.cs
12205         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
12206
12207 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
12208
12209         * TextControl.cs: Fixed typo in constructor
12210
12211 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
12212
12213         * Application.cs: Create a shortcut path so that currently selected
12214         MenuStrips can intercept keyboard events without having focus.
12215         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
12216         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
12217         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
12218         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
12219         generate WM_SYSCOMMAND message in X11 for other platforms.
12220         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
12221         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
12222         * ToolStripSplitButton.cs: Add DefaultItem property.
12223         
12224 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
12225
12226         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
12227         fixes some menu draw problem on Windows with border diferent from default
12228         it also fixes #81403.
12229
12230 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12231
12232         * Form.cs: Refactor WndProc into separate methods, just like Control is
12233           doing it.
12234
12235 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12236
12237         * Control.cs: set_Text: move the call to the driver into a seperate
12238           virtual method so that Form can override it.
12239         * MaskedTextBox.cs: Corcompare fixes.
12240         * Form.cs: Override UpdateWindowText and only update the styles if the
12241           form has been shown (fixes #81405).
12242
12243 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
12244
12245         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
12246         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
12247         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
12248         the form lost focus or another control was clicked.
12249
12250 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
12251
12252         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
12253         fixed.
12254
12255 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12256
12257         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
12258           DrawListViewItemEventHandler.cs,
12259           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
12260           Added.
12261         * X11Structs.cs: More ToString implementation.
12262
12263 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
12264
12265         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
12266         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
12267
12268 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12269
12270         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
12271           handle.
12272         * FormCollection.cs: Don't add a form if it's already in the
12273           collection.
12274         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
12275           according to behaviour and MSDN. The ownerWin32 is the active
12276           window at the moment when we call ShowDialog, not the context's
12277           main form (the context's main form may open another form that opens
12278           a form with ShowDialog, the win32 owner is the second form). Add
12279           and remove forms to the Application.OpenForms in other places to
12280           better match MS behaviour. Add an IsActive property that raises
12281           On(de)Activated only if the active state has changed (we were
12282           raising OnDeactivated before OnActivated while creating forms).
12283         * Application.cs: Refactor Enabling/Disabling of windows for modal
12284           dialog loops out to separate methods, and restore the thread
12285           context when we quit the method. Fixes #81407.
12286
12287 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12288
12289         * ListView.cs: In ItemControl.HandleClicks, also fire 
12290         2.0 MouseClick or MouseDoubleClick events on the parent,
12291         not only the Click/DoubleClick events.
12292
12293 2007-04-24  Andreia Gaita  <avidigal@novell.com>
12294
12295         * TableLayoutSettings.cs: 
12296         - Added a GetControls method and a support structure to help the 
12297         TypeConverter to enumerate the controls for     serialization. 
12298         - Added a new serialization constructor. 
12299         - Added a isSerialized flag initialized to true on the 
12300         serialization constructor so that the TableLayoutPanel.LayoutSettings 
12301         setter does not throw the designed NotSupportedOperation exception
12302         when the object is built through deserialization.
12303         - Implemented GetObjectData
12304         
12305         * TableLayoutPanel.cs: Added check on LayoutSettings.
12306
12307 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12308
12309         * ListView.cs: Report Click and DoubleClick events to the parent
12310         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
12311         from breaking the click count state when using dialog forms (Control
12312         reports the clicks in a similar fashion). In the previous behaviour
12313         the last WM_LBUTTONUP message in a  double click was sent to the
12314         ListView's form, instead of the ListView, which was breaking the click
12315         count for it. Fixes #80387.
12316
12317 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
12318
12319         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
12320
12321 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
12322
12323         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
12324         us from created dropdowns for menu items that do not have subitems.
12325         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
12326         Check HasDropDownItems before calling DropDown so a dropdown will not be
12327         created if it isn't needed.
12328
12329 2007-04-24  Jackson Harper  <jackson@ximian.com>
12330
12331         * TreeView.cs: Set the first node to the selected node when we get
12332         focus if there is no selected node.
12333
12334 2007-04-24  Andreia Gaita  <avidigal@novell.com>
12335
12336         * MimeIcon.cs: remove using blocks so that image streams are
12337         not disposed of. Fixes #80151
12338
12339 2007-04-24  Jackson Harper  <jackson@ximian.com>
12340
12341         * TextBoxBase.cs: Fixup the height of textboxes when the control
12342         is created.
12343
12344 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
12345
12346         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
12347         for each ToolStripItem when the parent's RightToLeftChanged is called.
12348
12349 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12350
12351         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
12352           Fixes #80163.
12353         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
12354           property, so that the setter can be overriden too.
12355         * TextBox.cs: Change GetContextMenuInternal() to use
12356           ContextMenuInternal.
12357
12358 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12359
12360         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12361           #81406.
12362
12363 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12364
12365         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12366           #81406.
12367
12368 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12369
12370         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
12371           avoid duplicate work. Mostily skeleton code, it's not working at
12372           all yet.
12373
12374 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
12375
12376         * NotifyIcon.cs : stub for MouseClick event
12377         * Application.cs: stub for SetUnhandledExceptionMode
12378
12379 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
12380
12381         * BindingNavigator.cs : Initial (partial) implementation
12382
12383 2007-04-23  Jackson Harper  <jackson@ximian.com>
12384
12385         * TreeView.cs: Do not create the treeview's handle when setting
12386         the scroll position.
12387         - ExpandAll needs to compute the scrollbars so it knows which
12388         position to set the bar too.
12389         * TreeNode.cs: 
12390         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
12391
12392 2007-04-23  Jackson Harper  <jackson@ximian.com>
12393
12394         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
12395         key. Fixes #81408.
12396
12397 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
12398
12399         * ToolStripItem.cs: Make GetImageSize internal.
12400         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
12401         need to draw an item.  Fixes a reported issue where images on menus
12402         that were not 16x16 were drawing incorrectly.
12403
12404 2007-04-21  Miguel de Icaza  <miguel@novell.com>
12405
12406         * Padding.cs: Use the converter, fixes the resgen2 issue with
12407         XMLNotePad. 
12408
12409 2007-04-21  Jackson Harper  <jackson@ximian.com>
12410
12411         * TreeView.cs: Dont try to unhighlight the selected node if there
12412         isn't a selected node.
12413
12414 2007-04-21  Jackson Harper  <jackson@ximian.com>
12415
12416         * UpDownBase.cs:
12417         * TextBoxBase.cs:
12418         * ListView.cs:
12419         * ListBox.cs:
12420         * TreeView.cs: Use the InternalBorderStyle property to set the
12421         initial border style, this forces the client rectangle to be sized
12422         correctly.
12423
12424 2007-04-20  Jackson Harper  <jackson@ximian.com>
12425
12426         * TreeView.cs: Simplify scrolling to the last node after expanding
12427         all.
12428         - Fix some off by ones with setting the bottom.
12429
12430 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
12431
12432         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
12433         that.  We were incorrectly doing it the other way around.  Also,
12434         update ClientSize if we change the BorderStyle before the control
12435         is created.
12436
12437 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
12438
12439         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12440         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12441         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
12442         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12443         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12444         Caption to CaptionHeight.
12445         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
12446         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
12447         and FixedFrameBorderSize to return value from current XplatUI driver.
12448         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
12449         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
12450         and FixedFrameBorderSize using win32 API. Renamed Caption to
12451         CaptionHeight.
12452         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
12453         * SystemInformation.cs: Fixed typo in BorderSize.
12454
12455 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
12456
12457         * XplatUI.cs: Added MenuAccessKeysUnderlined.
12458         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
12459         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
12460         returning false.
12461         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
12462         value from XplatUI driver.
12463         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
12464         SystemParametersInfo.
12465         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
12466         override.
12467         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
12468         returning false.
12469
12470 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12471
12472         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
12473
12474 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12475
12476         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
12477
12478 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
12479
12480         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
12481         MenuStrips that contain ToolStripSeparators.
12482
12483 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12484
12485         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
12486           DefineStdCursorBitmap.
12487         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
12488           has been created off a standard cursor. This is used to get a
12489           bitmap of the standard cursor when Draw or DrawStretched is called
12490           in order to draw the cursor.
12491         * X11Structs.cs: Added XcursorImage and XcursorImages.
12492         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
12493           DefineStdCursorBitmap.
12494         * Cursors.cs: Update all relevant creations of Cursor to use the new
12495           internal constructor.
12496
12497 2007-04-19  Jackson Harper  <jackson@ximian.com>
12498
12499         * TextBox.cs: Move the has_been_focused into the base control, so
12500         some of the text adding methods can manipulate it (probably time
12501         for a better name for this flag too).
12502         - Call a new version of selectall that doesn't scroll
12503         * TextBoxBase.cs: When we append text, if the document is empty,
12504         don't scroll.  If the document has text already, we scroll to the
12505         end of the appended text.
12506         - When the text is changed, we reset the has_been_focused, so the
12507         next time the control gets focused, all the text is selected.
12508
12509 2007-04-19  Jackson Harper  <jackson@ximian.com>
12510
12511         * TextControl.cs: Move the margins to the document, add a method
12512         so the margin sizes can be updated.
12513         * TextBoxBase.cs: When the border style is changed, update the
12514         border sizes.
12515
12516 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
12517
12518         * Control.cs: Respect DefaultPadding.
12519         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
12520         padding into account.
12521         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
12522
12523 2007-04-19  Jackson Harper  <jackson@ximian.com>
12524
12525         * TextControl.cs: Oops, we need to use the ClientRect not the
12526         bounds here.
12527
12528 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12529
12530         * ListView.cs: In ItemControl.ItemsMouseDown, take into
12531         account the double clicks when CheckBoxes are used and
12532         the pointer is inside the checkbox. Fixes part of #81191.
12533
12534 2007-04-18  Jackson Harper  <jackson@ximian.com>
12535
12536         * TextControl.cs: Pressing the end key shouldn't move the caret
12537         past the line ending.
12538         * TextBoxBase.cs: We can still delete if we are in the line
12539         ending and the combine will just kill the existing line ending.
12540
12541 2007-04-18  Jackson Harper  <jackson@ximian.com>
12542
12543         * TextControl.cs: We can't move lines, then invalidate their
12544         bounds, we need to get the old bounds and combine that with the
12545         new bounds.
12546         * TextBoxBase.cs: Before combining two lines for a delete, we need
12547         to invalidate the area of the old line, since that will be moved
12548         in the combine operation.
12549
12550 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
12551
12552         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
12553         with transparent background. Fixes #80482.
12554
12555 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
12556
12557         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
12558         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
12559         [Fixes bug #81391]
12560
12561 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12562
12563         * CreateParams.cs: Add a couple of helper methods and do a less string
12564           concatenation in ToString.
12565         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
12566           overload that takes a Control parameter, since this method may be
12567           called before a control is assigned to the hwnd (from
12568           CreateWindow), and update CreateWindow to use the new overload. In
12569           GetMenuOrigin subtract the title bar from the y position if the
12570           form has a window manager (since we're painting it and not X).
12571         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
12572           CreateParams to calculate the origin (since border sizes may vary).
12573           In ScreenToMenu only subtract the title height if we actually have
12574           a title.
12575         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
12576           mdi children never have menus of themselves.
12577         * InternalWindowManager.cs: Implement menu handling like form does.
12578           Added GetMenuOrigin to calculate the menu origin, can't use the
12579           CreateParams from the form like normally since it's lying.
12580         * Hwnd.cs: Implement GetBorderSize better (in the sense more
12581           windows-like) and add Inflate and comparison operators to the
12582           Borders type. When calculating MenuOrigin and it's a form with a
12583           window manager, use the window manager to calculate it.
12584
12585 2007-04-17  Chris Toshok  <toshok@ximian.com>
12586
12587         * Control.cs (CreateControl): turns out in 2.0 we don't need this
12588         OnBindingContextChanged thing here.  It's only generated from
12589         ContainerControl.OnCreateControl.  Fixes a newly written unit test
12590         - BindingTest.BindingContextChangedTest4.
12591         
12592 2007-04-17  Jackson Harper  <jackson@ximian.com>
12593
12594         * ScrollBar.cs: When setting values, make sure the current
12595         position stays within the new values range.
12596
12597 2007-04-17  Chris Toshok  <toshok@ximian.com>
12598
12599         * Control.cs (CreateControl): talk about a bizarre corner case.
12600         Don't emit OnBindingContextChanged here if we're a parentless
12601         control (i.e. if we're a form.).  Fixes
12602         BindingTest.BindingContextChangedTest2.
12603
12604 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
12605
12606         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
12607         from win32. Fixes #81255.
12608
12609 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
12610
12611         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
12612         already present in CalculateButtonTextAndImageLayout.
12613
12614 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12615
12616         * XplatUIX11.cs: When setting min/max size for a window we need to
12617           translate the coordinates to x coordinates. Create an overload of
12618           SetWindowMinMax that takes a CreateParams handling this, and change
12619           SetWMStyles to call this function (can't use Control.FromHandle in
12620           the SetWindowMinMax to get the control/CreateParams from the handle
12621           because the handle might not have been assigned to the control
12622           yet). Fixes #81371.
12623
12624 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12625
12626         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
12627         if StateImageList is non-null and it has less than two items (match MS
12628         behaviour). Also, in HandleNavKeys handle the Space key, calling
12629         the new ToggleItemsCheckState method, which tries to change the
12630         checked state of the selected items. Fixes part of #81191.
12631
12632 2007-04-16  Jackson Harper  <jackson@ximian.com>
12633
12634         * RichTextBox.cs: namespace cleanup.
12635
12636 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
12637
12638         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
12639
12640 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
12641
12642         [Fixes #79447]
12643         * Control.cs: Call invalidate in set_Region.
12644
12645         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
12646         it dont works here.
12647
12648 2007-04-16  Jackson Harper  <jackson@ximian.com>
12649
12650         * TextBoxBase.cs: When enter is pressed, we need to update all
12651         lines below the current.
12652
12653 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
12654
12655         * MdiClient.cs: Implement implicit menu merging for MDI
12656         children.  When a child form is active, if it has a menustrip
12657         and the parent form has a MainMenuStrip, automatically merge
12658         the menus.
12659
12660 2007-04-15  Andreia Gaita  <avidigal@novell.com>
12661
12662         * TabControl.cs: Refactored sizing methods to not repeat
12663         code all over the place. Tab bounds are now calculated
12664         as if alignment is top and single line, and only when 
12665         setting the bounds are the positions adjusted according
12666         to alignment. Replaced hardcoded positions, spacings and
12667         paddings by getting the values the ThemeEngine. 
12668         Fixes #79619.
12669         
12670         * Theme.cs: Change TabControl properties and methods so
12671         that all start with TabControl*. Added more properties
12672         to help remove hardcoded values on tabcontrol.
12673         Add CPDrawBorder3D declaration so the Theming classes
12674         can access it.
12675         
12676         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
12677
12678         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
12679         on the Theming namespace, and call the appropriate methods here.
12680         Change CPDrawBorder3D to public.
12681
12682 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12683
12684         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
12685         the control after firing the OnMouseUp event, instead of sending
12686         the message before the mentioned event. This is so we can match the
12687         MS behaviour. Fixes part of #80385.
12688
12689 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
12690
12691         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
12692         RightToLeft property.
12693
12694 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
12695
12696         * ToolStrip.cs: Add properties and internal methods to support merging.
12697         * ToolStripItem.cs: Add MergeAction and MergeIndex.
12698         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
12699         not trigger reparenting or layouts.
12700         * ToolStripManager.cs: Add Merge and RevertMerge methods.
12701         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
12702         is hosting the overflow menu.
12703
12704 2007-04-13  Jackson Harper  <jackson@ximian.com>
12705
12706         * TextControl.cs: Set the line ending correctly for the first
12707         inserted line.
12708
12709 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
12710
12711         * Theme.cs: Update GetMethod to get the new definition for 
12712         KnownColors.Update (and fix theme color updates).
12713
12714 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
12715
12716         * MessageBox.cs: Fix some test and button position.
12717
12718 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12719
12720         * Form.cs: Consider the implicit controls in
12721         GetRealChildAtPoint. We need it since this method
12722         is called on Form when handling the some messages in
12723         WndProc, and need to consider those implicit ones too.
12724         Fixes #80385.
12725
12726 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
12727
12728         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
12729         if there are no ShortcutKeys set.
12730         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
12731         set, use it when painting.
12732
12733 2007-04-12  Jackson Harper  <jackson@ximian.com>
12734
12735         * TextControl.cs: Fix some off-by-one issues in line duplication
12736         and insertion in the undo manager. Also, overwrite the first tag
12737         of a line on insert, if it is just a zero lengthed tag. This
12738         prevents us from getting an extra stranded tag at the beginning of
12739         the first line.
12740
12741 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
12742
12743         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
12744         to calculated proper size including when handle was not created yet.
12745
12746 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12747
12748         * MdiWindowManager.cs: When moving a form, allow the form to be moved
12749           when the mouse is outside of it's parent's client rectangle. Fixes
12750           #79982 (take 3, part 2).
12751
12752 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12753
12754         * X11Structs.cs: Add a few ToString() overrides.
12755         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
12756           the window location in a window-manager independent way. Reworked
12757           FrameExtents, it now actually works. Reworked AddConfigureNotify
12758           and ReparentNotify handling to use GetTopLevelWindowLocation
12759           instead of the earlier, more hacky solution. Reworked SetWMStyles,
12760           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
12761           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
12762           for all other windows (fixes #81281 part 1), a toolwindow is hidden
12763           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
12764           and generally refactored to do as few calculations as possible
12765           inside the lock.
12766
12767 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
12768
12769         * Theme.cs: Change "reflective-contract" between MWF and SD to 
12770         minimize # of calls, avoid Color serialization and avoid updating 
12771         every "known colors" each time a single one is updated.
12772
12773 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
12774
12775         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
12776         when not readonly and the text is explicitly set. Code style updates.
12777         * DataGridTableStyle.cs: Removed extra line.
12778         * DataGrid.cs: Code style updates. Removed extra whitespace.
12779         * DataGridColumnStyle.cs: Code style updates. Removed extra 
12780         whitespace.
12781
12782 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12783
12784         * XplatUIX11.cs: Added comment that "fixes" #80021.
12785
12786 2007-04-09  Jackson Harper  <jackson@ximian.com>
12787
12788         * TextControl.cs: We don't need this -1 on the line count anymore.
12789
12790 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
12791
12792         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
12793         entered value to underlying type, and convert it back to a string to
12794         apply formatting. Modified GetFormattedValue to use TypeConverter
12795         if available.
12796
12797 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
12798
12799         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
12800         Use SubItems property when we want to ensure there's at least one
12801         subitem. Modified SubItems property to ensure there's always at least
12802         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
12803         the NRE's reported by MS.
12804
12805 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
12806
12807         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
12808         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
12809         Spaces to tabs. Removed extra tabs.
12810
12811 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
12812
12813         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
12814         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
12815
12816 2007-04-06  Jackson Harper  <jackson@ximian.com>
12817
12818         * TextBoxBase.cs: When a delete removes a line, recalculate all
12819         lines below that line (they need to get offsets setup correctly)
12820         and invalidate.
12821
12822 2007-04-05  Jackson Harper  <jackson@ximian.com>
12823
12824         * TextControl.cs: We need to invalidate across the width of the
12825         document when we are invalidating multiple lines.
12826         * TextBoxBase.cs: Don't delete into the line ending.
12827
12828 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12829
12830         * ListView.cs: Restore the check for the MouseHover event
12831         in ListView. It looks like the ListView fires more than one MouseHover
12832         event when HoverSelection is true  _only_ in weird-corner scenarios, but
12833         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
12834         event.
12835
12836 2007-04-05  Mike Kestner  <mkestner@novell.com>
12837
12838         * ListView.cs : raise MouseDown before updating selection.
12839         [Fixes #80373 tab 1&3]
12840
12841 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
12842
12843         * ToolStripRenderer.cs: Add static method to mirror image.
12844         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
12845         and RightToLeftAutoMirrorImage.
12846         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
12847
12848 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
12849
12850         * ToolStripSplitStackLayout.cs: Support Alignment property.
12851         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
12852
12853 2007-04-05  Jackson Harper  <jackson@ximian.com>
12854
12855         * TextControl.cs: Move around the line endings when crossing line
12856         boundaries.
12857         - When combining lines, strip the ending text off the first line.
12858
12859 2007-04-05  Jackson Harper  <jackson@ximian.com>
12860
12861         * TextControl.cs:
12862         * TextBoxBase.cs: Try to never move the cursor into the line
12863         ending.
12864         
12865 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
12866
12867         * ToolStripItem.cs: Make sure we aren't firing mouse events when
12868         the item is disabled.  Also add a few missing methods.
12869
12870 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12871
12872         * ListView.cs: We don't need the MouseEnter/MouseLeave check
12873         to fire just one MouseHover event when HoverSelection is true, since
12874         .Net does fire more than one MouseHover event in that scenario. Also,
12875         fix the selection in HoverSelection, by invoking UpdateMultiSelect
12876         if MultiSelect is true, instead of only setting ListViewItem.Selected.
12877         Finally, we need to reset the Hover logic in MouseMove, even when we
12878         don't have a selected item.
12879
12880 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
12881
12882         * ToolStrip.cs: Add several missing methods, properties, and events.
12883
12884 2007-04-04  Chris Toshok  <toshok@ximian.com>
12885
12886         * DataGridTextBoxColumn.cs: set the bounds of the text box to
12887         (0,0,0,0) in Commit, as MS does.
12888
12889         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
12890         make sure we set CurrentRow on a row header click *before* calling
12891         Select.  This moves the current cell (and the textbox) to the new
12892         row.  The call to Select then hides the textbox, giving us the
12893         correct behavior.  Fixes #80362.
12894
12895         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
12896         (ListChangedHandler): reorder the position/current changed events,
12897         and call UpdateIsBinding in the ItemAdded case.
12898
12899         * GridColumnStylesCollection.cs: add some columns events, one of
12900         which raises the CollectionChanged event.
12901
12902 2007-04-04  Jackson Harper  <jackson@ximian.com>
12903
12904         * TextControl.cs: When we delete multiple selection lines
12905         invalidate the selection area, don't need to do that for single
12906         lines because the final update view will handle it.
12907
12908 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
12909
12910         * Control.cs: When we CreateControl, we need to also create all of the
12911         control's children.  The child's OnLoad must also fire before the parent's
12912         OnLoad.  Fixes the toolbox size in PDN.
12913
12914 2007-04-04  Jackson Harper  <jackson@ximian.com>
12915
12916         * TextBoxBase.cs: When the user presses enter, insert a line
12917         ending into the text. (Maybe this would be a good spot for
12918         Environment.NewLine).
12919         * TextControl.cs: Remove undo manager hack, line endings get
12920         inserted properly now.
12921         
12922 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
12923
12924         * MenuAPI.cs: 
12925         - Remove unneeded parameters in UpdateCursor.
12926         - Fix UpdateCursor to check if menu is active.
12927         - Call UpdateCursor when menu deactivate my click.
12928         [Fixes remaining issues from #80410]
12929
12930 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
12931
12932         * Control.cs: GetRealChildAtPoint method added, it make an
12933         recursive child control search for the point. 
12934
12935         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
12936         menu.
12937
12938         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
12939
12940 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
12941
12942         * Form.cs: Fix mouse position when send back mouse event after closes
12943         menu.
12944
12945 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
12946
12947         * Form.cs: Simplify the BUTTONDOWN for active tracker.
12948
12949 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
12950
12951         * Control.cs: Fix an issue where if a user resized a control inside
12952         a sizing method like OnResize, we would overwrite their explicit
12953         value.  Also, only call DefaultSize once in the constructor instead
12954         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
12955         nothing actually changed.
12956
12957 2007-04-03  Jackson Harper  <jackson@ximian.com>
12958
12959         * TextControl.cs: Don't attempt to copy text for lines with no
12960         text in them (technically this shouldn't happen, but we aren't
12961         always inserting line endings when we should be).
12962
12963 2007-04-03  Jackson Harper  <jackson@ximian.com>
12964
12965         * TextBoxBase.cs: Calculate the scrollbars before calculating the
12966         document, because this sets some of the document size properties
12967         that are needed.
12968
12969 2007-04-03  Jackson Harper  <jackson@ximian.com>
12970
12971         * TextBoxBase.cs: We need to calculate maximums even if this is
12972         not a multiline control, because the maxs are used for scrolling.
12973         - Display the caret after doing a page up/down, we need to
12974         manually display it because a proper CaretMoved event isn't
12975         triggered (this is because of the way the math is done to
12976         determine how far to scroll).
12977
12978 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
12979
12980         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
12981         (ToolBar was relying on SetBoundsCore to default the values sent 
12982         base off of BoundsSpecified.)
12983
12984 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12985
12986         * DateTimePicker.cs: Change Text so that when a null value or empty
12987           string is assigned to the test we always raise ValueChanged and
12988           TextChanged (earlier implementation would only raise ValueChanged
12989           if the current date value was different from DateTime.Now).
12990
12991 2007-04-03  Andreia Gaita <avidigal@novell.com> 
12992
12993         * ButtonBase: Call update after invalidation, fixes #80194
12994
12995 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12996
12997         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
12998           #79335.
12999
13000 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13001
13002         * XplatUIX11.cs: SetWMStyles: If the control is a form with
13003           FormBorderStyle = None, don't give the window any decorations.
13004           Fixes #81276.
13005
13006 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13007
13008         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13009         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
13010           to check for is a mix of several styles (such as WS_CAPTION for
13011           instance).
13012         * Control.cs: Don't paint an area bigger than the client area when
13013           painting the background colour. Add an internal GetCreateParams.
13014           Update calls to XplatUI.CalculateWindowRect due to API change.
13015         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
13016           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
13017           the size if it hasn't been handled by any windows. When creating
13018           and moving windows, X wants the location of the entire window, but
13019           the size of the client window, so add
13020           TranslateClientRectangleToXClientRectangle,
13021           TranslateWindowSizeToXWindowSIze and
13022           TranslatedXWindowSizeToWindowSize to cope with this, and call them
13023           before every window creation and move. Update CalculateWIndowRect
13024           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
13025           In AddConfigureNotify don't do anything if the hwnd is a zombie
13026           (fixes the BadWindow we were getting while running the tests),
13027           always calculate the offsets when it's a parentless window, not
13028           only when reparented, and translate the window size, since we're
13029           getting the client size of the whole window, excluding entire
13030           window.
13031         * Theme.cs: Added BorderSizableSize.
13032         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13033           anymore. Update calls to XplatUI.CalculateWindowRect due to API
13034           chang
13035         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
13036           change. Fake the window styles here instead of in XplatUIWin32 so
13037           that all back-ends get the same window styles (and it's Form that's
13038           deciding when to use wm, not the Win32 backend anyways)
13039         * Hwnd.cs: Completely reworked GetWindowRectangle and
13040           GetClientRectangle - they are now passed a CreateParams and they
13041           only use Style and ExStyle to determine the rectangles (they should
13042           now work just like Win32AdjustWindowRectEx - though quite a few
13043           special cases are probably missing). They should also be 100%
13044           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
13045           == rect), and all numbers (borders, menu sizes) are taken from the
13046           current theme. Added a GetBorders helper function that will return
13047           the borders for any given CreateParams (including captions and
13048           menus), and GetBorderSize that returns the given border size only.
13049         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13050           Hwnd.GetClientRectangle.
13051
13052 2007-04-02  Chris Toshok  <toshok@ximian.com>
13053
13054         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
13055         logic between the values we present to the user and the values
13056         which are stored in the column's property.  Also, don't call
13057         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
13058
13059 2007-04-02  Jackson Harper  <jackson@ximian.com>
13060
13061         * TextBoxBase.cs: Scroll faster!
13062
13063 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
13064
13065         * StatusStrip.cs: Layout fixes for PDN.
13066         * ToolStrip.cs: Set item's available to true, and placement to main when
13067         added.
13068         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
13069         changing in setter before doing any work, add InternalVisible.
13070         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
13071         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13072         infinite loop.
13073
13074 2007-04-02  Jackson Harper  <jackson@ximian.com>
13075
13076         * TextBox.cs: LBUTTON does not make the textbox select all of it's
13077         text on focus.
13078
13079 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13080
13081         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
13082           Makes ToolStripComboBoxes show up again.
13083
13084 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13085
13086         * ListView.cs: Add a hover_pending field in ListView
13087         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
13088         cycle (we are resetting the MouseHover logic in XplatUI
13089         to handle HoverSelection). Fixes #80429.
13090
13091 2007-04-02  Jackson Harper  <jackson@ximian.com>
13092
13093         * TextControl.cs: Make sure the attributes get set on the last
13094         tag.
13095         - Still have to do the end tag if we have stepped all the ways to
13096         the end.
13097
13098 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
13099
13100         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
13101         on an internal libgdiplus call when the information is already 
13102         available via the public API.
13103
13104 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13105
13106         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
13107           control is removed from a control collecftion.
13108         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
13109           Fixes FormPropertyTest (failed on rare occasions).
13110         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
13111           of Win32SetParent (when changing from no parent to a parent it
13112           might add the new parent's location in screen coordinates to this
13113           window's location).
13114         * Form.cs: Rework ChangingParent once again, now the handle is
13115           recreated whenever a FormWindowManager is added or removed (that is
13116           whenever a normal form is parented or abandoned). Also change
13117           CreateParams so that all non-toplevel windows always get the
13118           specified sice (StartupPosition is never considered for
13119           non-TopLevel forms).
13120         * ContainerControl.cs: Add ChildControlRemoved, the container control
13121           needs to be notified when a control is removed from it's
13122           collection, in the case the removed control is the active control.
13123
13124 2007-04-02  Jackson Harper  <jackson@ximian.com>
13125
13126         * RichTextBox.cs: Use the new methods for setting the font and
13127         color, these methods set the specified attribute without
13128         overriding the other attributes.
13129
13130 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
13131
13132         * ToolStripPanel.cs: Fixes for better layouts in PDN.
13133
13134 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
13135
13136         * TextBox.cs: Added internal ChangeBackColor method to special-case
13137         Color.Empty. Added check for invalid ScrollBars value.
13138         * TextBoxBase.cs: Added internal ChangeBackColor method.
13139         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
13140         internal ChangeBackColor method to special-case Color.Empty. Added
13141         check for invalid ScrollBars value.
13142
13143 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
13144
13145         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
13146
13147 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
13148
13149         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
13150         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
13151         [Based on submitted patch from Olivier Duff.]
13152
13153 2007-03-30  Jackson Harper  <jackson@ximian.com>
13154
13155         * TextBox.cs: Only select all on initial focus if the user has not
13156         specified a selection area.
13157
13158 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
13159
13160         * UserControl.cs: Override CreateParams.
13161
13162 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13163
13164         [ Fixes #80995 ]
13165
13166         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13167         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
13168           check for is a mix of several styles (such as WS_CAPTION for instance).
13169         * Control.cs: Don't paint an area bigger than the client area when painting
13170           the background colour. Add an internal GetCreateParams. Update calls to
13171           XplatUI.CalculateWindowRect due to API change.
13172         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
13173           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
13174           hasn't been handled by any windows. When creating and moving windows, X
13175           wants the location of the entire window, but the size of the client
13176           window, so add TranslateClientRectangleToXClientRectangle,
13177           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
13178           to cope with this, and call them before every window creation and move.
13179           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
13180           removing DeriveStyles). In AddConfigureNotify don't do anything if the
13181           hwnd is a zombie (fixes the BadWindow we were getting while running the
13182           tests), always calculate the offsets when it's a parentless window, not
13183           only when reparented, and translate the window size, since we're getting
13184           the client size of the whole window, excluding entire window.
13185         * Theme.cs: Added BorderSizableSize.
13186         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13187           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
13188         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
13189           Fake the window styles here instead of in XplatUIWin32 so that all
13190           back-ends get the same window styles (and it's Form that's deciding when
13191           to use wm, not the Win32 backend anyways)
13192         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
13193           they are now passed a CreateParams and they only use Style and ExStyle
13194           to determine the rectangles (they should now work just like
13195           Win32AdjustWindowRectEx - though quite a few special cases are probably
13196           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
13197           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
13198           sizes) are taken from the current theme. Added a GetBorders helper
13199           function that will return the borders for any given CreateParams
13200           (including captions and menus), and GetBorderSize that returns the given
13201           border size only.
13202         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13203           Hwnd.GetClientRectangle.
13204
13205 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13206
13207         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
13208           layout of the mdi children is handled by CreateParams. Fixes
13209           #79964,
13210
13211 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
13212
13213         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
13214         processed.
13215
13216         * Form.cs: When active tracker mouse down is not processed, send event 
13217         back to control inside mouse position. [Fixes #81227]
13218
13219 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
13220
13221         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
13222         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
13223         stealing focus from the active form on Windows.  (Control will be made
13224         visible in ShowWindow.)
13225
13226 2007-03-29  Mike Kestner  <mkestner@novell.com>
13227
13228         * ImageList.cs : add internal Changed event.
13229         * ListView.cs : hook up to StateImageList.Changed to perform
13230         invalidations when the the state icon list changes. [Fixes #81191]
13231
13232 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
13233
13234         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
13235         to prevent tooltips from stealing focus from the active form on Windows.
13236
13237 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
13238
13239         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
13240
13241         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
13242
13243 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
13244
13245         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
13246         balloons.
13247
13248 2007-03-29  Jackson Harper  <jackson@ximian.com>
13249
13250         * TextControl.cs: When deleting text from non multiline textboxes,
13251         we need to update the entire document, because line offsets will
13252         be shifting.
13253
13254 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
13255
13256         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
13257         added to theme, now we can create themes that uses diferent notify engines
13258         like notification-daemon from galago project or growl for Mac OS.
13259
13260 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
13261
13262         * NotifyIcon.cs: Prevent Balloon to show in task bar.
13263
13264 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
13265
13266         * XplatUIX11.cs: Prevent system to open more than one balloon.
13267
13268         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
13269         some compiler warning messages.
13270
13271 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
13272
13273         [Fixes #79149]
13274
13275         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
13276
13277         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
13278         implemented, this methods is used by NotifyIcon.BalloonWindow class.
13279
13280         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
13281         systems.
13282
13283 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13284
13285         * ListViewItem.cs: Forgot to make Invalidate internal.
13286
13287 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13288
13289         * ListView.cs: Add a InvalidateSelection method to
13290         invalidate methods which are currently selected, and call
13291         it when setting FullRowSelect and HideSelection, instead of
13292         calling Redraw.
13293
13294 2007-03-28  Chris Toshok  <toshok@ximian.com>
13295
13296         * XplatUIX11.cs (UnmapWindow): reindent this block.
13297
13298         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
13299         the selection_start if we're moving the selection (that is, not
13300         extending it). Fixes bug #80461.
13301
13302 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
13303
13304         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
13305         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
13306         create private ControlCollection.
13307
13308 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
13309
13310         * Control.cs: We need to call OnVisibleChanged for our implicit
13311         children as well as our normal children.  Fixes scrollbars in
13312         comboboxes not showing up.
13313
13314 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
13315
13316         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
13317         the check for IsHandleCreated first.  The check in CreateHandle is not
13318         good enough because CreateHandle can be overriden, and the override 
13319         should not be called if the handle is already created.
13320
13321 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
13322
13323         * ToolStrip.cs: Remove MonoTODO for tooltips.
13324         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
13325         * ToolStripContainer.cs: Add custom ControlCollection class.
13326         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
13327         * ToolStripDropDown.cs: Add some missing properties/methods.
13328         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
13329         * ToolStripItem.cs: Remove MonoTODO for tooltips.
13330         * ToolStripManager.cs: Add IsShortcutDefined.
13331         * ToolStripOverflow.cs: Override LayoutEngine.
13332         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
13333         * ToolStripSeparator.cs: Add ImageKey.
13334
13335 2007-03-28  Jackson Harper  <jackson@ximian.com>
13336
13337         * TextControl.cs: If a char delete removes a line ending, we need
13338         to update the ending style.
13339         - Make sure the line ending calcs get called.
13340
13341 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13342
13343         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
13344           it was making the new code not work. Fixed a typo in the new code
13345           as well. Fixes #79826.
13346
13347 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
13348
13349         * XplatUIWin32.cs:
13350         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
13351         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
13352         - SystrayBalloon method implemented.
13353         [Add support for notifyicon balloon on win32, #79149]
13354
13355 2007-03-27  Mike Kestner  <mkestner@novell.com>
13356
13357         * ThemeWin32Classic.cs : update StateImageList selection to mirror
13358         the ms behavior when only one image is added to the list.
13359         [Fixes #81191]
13360
13361 2007-03-27  Jackson Harper  <jackson@ximian.com>
13362
13363         * TextControl.cs: Improvements to non multiline line ending
13364         drawing/measuing.
13365
13366 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
13367
13368         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
13369
13370 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
13371
13372         * NotifyIcon.cs: 
13373         - Balloon message handling added.
13374         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
13375
13376         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
13377         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
13378         to SystrayBalloon to me like other Systray method, also a
13379         handle parameter added.
13380
13381 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13382
13383         * ListView.cs: Show scrollbars even when items.Count == 0
13384         but the columns Width is bigger than the ListView.Width.
13385         Also, when columns.Count == 0 set layout_wd and layout_ht
13386         to the ClientRectangle values, so we don't show any scrollbar
13387         in that case.
13388
13389 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
13390
13391         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
13392
13393 2007-03-27  Jackson Harper  <jackson@ximian.com>
13394
13395         * RichTextBox.cs: The RTF library decodes the text properly for us
13396         now.
13397
13398 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13399
13400         * ListView.cs: Display HeaderControl even when columns.Count == 0.
13401         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
13402         ListView header (HeaderControl), instead of Control.BackColor.
13403
13404 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
13405
13406         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
13407         Fixes tab control issues where controls would not show up because they
13408         never received their OnVisibleChanged call.
13409
13410 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
13411
13412         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
13413         BalloonTipShown).
13414
13415 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
13416
13417         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
13418         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
13419         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
13420         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
13421         the handle.  Fix WindowState by using the internal variable until we are 
13422         sure that we've been shown.
13423         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
13424         max or min.
13425         [Fixes bug #81198]
13426
13427 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13428
13429         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
13430           (at least borders). Fixes #79386 on Linux (with a small difference
13431           in behaviour: when trying to resize a caption-less window metacity
13432           shows the sysmenu. Resizing is still possible though).
13433         * XplatUIWin32.cs: When setting window styles send request an extra
13434           WM_NCCALCSIZE when it's a form without title (due to no text and no
13435           caption), since Win32 seems to calculate it wrong the first time we
13436           get the message, though the second time things work as they should.
13437         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
13438           newly reparented window might show up unparented. Update
13439           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
13440           there's no title text. Fixes #79386.
13441
13442 2007-03-27  Mike Kestner  <mkestner@novell.com>
13443
13444         * ListBox.cs : don't perform invalidations if the handle hasn't been
13445         created.  [Fixes #80753]
13446
13447 2007-03-27  Mike Kestner  <mkestner@novell.com>
13448
13449         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
13450         [Fixes #80428]
13451
13452 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
13453
13454         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
13455         needed to implement Balloon.
13456
13457 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13458
13459         * ListViewItem.cs: In the constructors that take
13460         an array of strings, don't use ListViewSubItemCollection.AddRange
13461         method to add items, since we need to have a different behaviour (in
13462         the constructors we add an item for each null string, opposed to
13463         the behaviour of AddRange, which adds nothing).
13464
13465 2007-03-26  Andreia Gaita  <avidigal@novell.com>
13466
13467         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
13468
13469 2007-03-26  Jackson Harper  <jackson@ximian.com>
13470
13471         * TextControl.cs: Draw and measure line endings when in non
13472         multiline mode.
13473         - When searching the text, count the end of the last line as a
13474         word boundary.
13475
13476 2007-03-26  Jackson Harper  <jackson@ximian.com>
13477
13478         * RichTextBox.cs: The selection_start and selection_end don't
13479         really track the correct tags for the selection. So we'll manually
13480         compute the correct tag here.
13481
13482 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13483
13484         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
13485           and Continuous styles. Fixes #79469.
13486
13487 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
13488
13489         * ToolStrip.cs: Implement Tooltips.
13490         * ToolStripItem.cs: Create internal method for determining tooltip.
13491
13492 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
13493
13494         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
13495
13496 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
13497
13498         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
13499         it prevents a problem thak keeps icon visible after application 
13500         closes on win32.
13501
13502 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
13503
13504         * NotifyIcon.cs: Balloon properties and methods created.
13505
13506         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
13507         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
13508
13509 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
13510
13511         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
13512
13513 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
13514
13515         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
13516         parameter indicates which aspects were explicit/user-set.
13517         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
13518
13519 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
13520
13521         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
13522         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
13523         SmallChange, and Value (2.0).
13524         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
13525
13526 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13527
13528         * ListView.cs: Always set item_control.Width in LayoutDetails
13529         if View is Details. Setting it later in CalculateScrollBars
13530         in a not-so-corner scenario (the sum of columns width is
13531         not bigger than the ListView width when handle is created, and then
13532         that sum gets bigger by increasing the width of the columns)
13533         causes a very weird recursion path (which shouldn't be happening,
13534         since header_control sets it in CalculateScrollBars too). This bug
13535         appeared after Chris' fixes for handle created issues, so probably
13536         it's related to some handle-creation time.
13537
13538 2007-03-23  Chris Toshok  <toshok@ximian.com>
13539
13540         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
13541         case where there's an add row, just so we don't end up in a case
13542         where it's not displayed (this happens when the row is partially
13543         obscured).  Fixes bug #79574.
13544
13545 2007-03-23  Jackson Harper  <jackson@ximian.com>
13546
13547         * TextControl.cs:
13548         * TextBoxBase.cs:
13549         * RichTextBox.cs: Preserve line endings in the lines text buffer,
13550         also added an enum that represents the line ending type. 
13551
13552 2007-03-23  Andreia Gaita  <avidigal@novell.com>
13553
13554         * NumericUpDown.cs: Fix logic so Text and Value properties are not
13555         messed with in every method call, but only from DownButton, 
13556         UpButton, UpdateEditText() and ValidateText. Fixes #80346
13557
13558 2007-03-23  Chris Toshok  <toshok@ximian.com>
13559
13560         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
13561         format objects if the format spec is "".  Fixes bug #80889.
13562
13563 2007-03-22  Miguel de Icaza  <miguel@novell.com>
13564
13565         * ToolStripPanel.cs (Join): added stubs to build PDN3
13566
13567         * Control.cs (AutoScrollOffset): Add.
13568
13569         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
13570         property, its only implemented for Win32, on X11 it defaults to
13571         some hardcoded value.
13572
13573         * ToolStripItem.cs (AllowDrop): Add property
13574
13575 2007-03-22  Mike Kestner  <mkestner@novell.com>
13576
13577         * ListView.cs : in FullRowSelect Details mode, only enable box
13578         selection if the user clicks over the "item" column outside of the
13579         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
13580
13581 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13582
13583         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
13584           handle is not created yet.
13585         * Form.cs: Select: Don't call CreateHandle if the handle is already
13586           created, avoids a stack overflow on Windows when we are recreating
13587           controls.
13588         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
13589           they are made visible, and override AfterTopMostControl to keep
13590           them on top when other controls are brought to front.
13591           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
13592           or force_*scroll_visible is true (old implementation always shows
13593           scrollbars when needed, no matter what auto_scroll was set to).
13594         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
13595           IsHandleCreated check.
13596
13597 2007-03-22  Andreia Gaita  <avidigal@novell.com>
13598
13599         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
13600         row or col separator.
13601         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
13602
13603 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
13604
13605         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
13606
13607 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
13608
13609         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
13610         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
13611         every time. Fixes #80410.
13612
13613 2007-03-22  Chris Toshok  <toshok@ximian.com>
13614
13615         * BindingSource.cs (AddNew): partially implement.
13616
13617         remove a couple of NotImplementedException's
13618         to get bug #81148 closed.
13619
13620 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
13621
13622         [Fixes #80380]
13623         
13624         * Control.cs:
13625         - UpdateCursor method added to update the screen cursor.
13626         - GetAvailableCursor method added to return cursor for enabled tree,
13627         it searches for cursor on control and it's parent's for enabled control.
13628         - Call UpdateCursor method on setter of Cursor property.
13629         - On setter of Enabled call UpdateCursor when it is false, we need to
13630         change cursor to normal (or to this parent cursor) because cursor 
13631         setting theres no effect to disabled controls.
13632         - Some minor source changes to follow the coding style guidelines.
13633
13634         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
13635         controls.
13636
13637 2007-03-22  Chris Toshok  <toshok@ximian.com>
13638
13639         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
13640         generates.
13641
13642 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13643
13644         * XplatUIX11.cs: Implement default locations for forms.
13645         * Form.cs: Completely rework startup location for forms. Fixes #79964.
13646         * Hwnd.cs: Add previous_child_startup_location (to track the current
13647           startup location for any child forms of the current form) and
13648           previous_main_startup_location (to track the startup location for
13649           the current toplevel form).
13650
13651 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
13652
13653         * Control.cs: Don't trigger a layout if an implicit control is added
13654         that isn't visible.  Also, don't notify the owner when an implicit control
13655         is added.  (Owners shouldn't even know about their implicit controls.)
13656
13657 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
13658
13659         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
13660         to save some re-layouts.
13661
13662 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
13663
13664         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
13665         [Fixes #81203]
13666
13667 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
13668
13669         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
13670         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
13671
13672 2007-03-21  Mike Kestner  <mkestner@novell.com>
13673
13674         * ListView.cs : disable selection update for non-left button clicks
13675         with mods and over selected items.  [Fixes #80524]
13676
13677 2007-03-20  Jackson Harper  <jackson@ximian.com>
13678
13679         * TextControl.cs:
13680         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
13681         \r\r\n, \n.
13682
13683 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13684
13685         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
13686           very probably a more complicated calculation there. Update the
13687           textbox' ForeColor and BackColor when the ComboBox' colors are
13688           changed. Change the border change in LayoutComboBox to only affect
13689           the textbox, not all the calculations there. Seems to fix most of
13690           #79436.
13691
13692 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13693
13694         * ComboBox.cs: Handle Home and End keys as well as all combinations of
13695           modifiers + navigation keys as input keys, enables advanced text
13696           selection in the combobox (like Shift+Left Arrow for instance).
13697           ComboTextBox now overrides Focused and returns whatever
13698           ComboBox.Focused returns, since it really should be focused
13699           whenever the ComboBox is. Fixes #80795. Also make the border around
13700           the text box one pixel bigger, as mentioned in #79436.
13701
13702 2007-03-20  Jackson Harper  <jackson@ximian.com>
13703
13704         * TreeView.cs: Don't offset the images, this was causing some
13705         artifacts when expanding/collapsing with images that were the
13706         exact height of the treenode.
13707
13708 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13709
13710         * TrackBar.cs: Query the theme for the correct value when the mouse
13711           moves and the thumb is pressed. 
13712         * Theme.cs: Added TrackBarValueFromMousePosition
13713         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
13714           implementation was updating the trackbar value when drawing, now
13715           the drawing methods only draw. Fixes #80900. Refactored the
13716           calculations out to TrackBarValueFromMousePosition and
13717           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
13718           according to the mouse position whenever it wants to. Changed the
13719           light coloured pen when drawing the thumb from ControlLight to
13720           ControlLightLight, because the ControlLight is the same colour as
13721           the background so the 3D effect is lost. 
13722
13723 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
13724
13725         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
13726         defined. Fixes #80784.
13727
13728 2007-03-20  Marek Habersack  <mhabersack@novell.com>
13729
13730         * ContextMenuStrip.cs: align with the change introduced in
13731         revision 74664.
13732
13733 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
13734
13735         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
13736         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
13737         in SetTopmost.
13738
13739 2007-03-19  Chris Toshok  <toshok@ximian.com>
13740
13741         * Control.cs (WmPaint): don't make use of the Handle property
13742         after an event is emitted, as the user could have closed the
13743         form/destroyed the control.  Store the Handle in a local variable
13744         and make use of that.  Fixes bug #80768.
13745
13746 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
13747
13748         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
13749         behavior in X11 environments.
13750
13751 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
13752
13753         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
13754         because on setter of topmost we dont call SetTopmost when handle is not
13755         created.
13756
13757 2007-03-20  Jackson Harper  <jackson@ximian.com>
13758
13759         * TextControl.cs: Need to use SelectionLength () not
13760         selection_length, since that var is reset to -1.
13761         - Draw the caret when we don't have focus.
13762         * TextBox.cs: The selectall actually doesn't occur until the first
13763         focus.
13764         * TextBoxBase.cs: Need to update the caret position after a
13765         selectall.
13766         
13767 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13768
13769         * ListView.cs: Enable scrolling when using Tile view.
13770
13771 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
13772
13773         [Fixes #80902]
13774
13775         * XplatUIDriver.cs: Abstract SetOwner method created.
13776
13777         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
13778         must be implemented and was masked as todo.
13779
13780         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
13781         GWL_HWNDPARENT.
13782
13783         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
13784         cheking for null owner to remove transient. The SetTopmost will be change
13785         on a decond step.
13786
13787         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
13788         SetTopmost. Now owned forms will work properly in win32 and X11.
13789
13790 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13791
13792         * MdiWindowManager.cs: Update function name.
13793         * Form.cs: After closing a form MdiParent is always null.
13794         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
13795           better what it should do: necessary book-keeping when the form is
13796           closed, it should not close the form itself.
13797
13798 2007-03-19  Andreia Gaita  <avidigal@novell.com>
13799
13800         * ListViewItem.cs: Fix back and fore color. The subitems only
13801         use their own colors if they are set, otherwise use the listview's
13802         colors. Don't set default colors on constructor for subitem.
13803         Fixes #79315.
13804
13805 2007-03-19  Mike Kestner  <mkestner@novell.com>
13806
13807         * ListView.cs : make box selection for Details views with 
13808         FullRowSelect conform to MS behavior when clicking in the "item" 
13809         column and clicking outside the defined columns.
13810         [Fixes case 5-6 of #80374]
13811
13812 2007-03-19  Chris Toshok  <toshok@ximian.com>
13813
13814         * ScrollableControl.cs: create the controls from within the ctor,
13815         but don't actually add them until our handle is created.  this
13816         fixes a NRE possibility jpobst found (if you override OnLayout in
13817         a subclass, it's called before your ctor).  Also, add a
13818         IsHandleCreated guard to UpdateSizeGripVisibility as well.
13819
13820 2007-03-19  Jackson Harper  <jackson@ximian.com>
13821
13822         * TextBox.cs: Reduce the amount of invalidation we do.
13823         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
13824         some of them are true by default on MS.
13825         - Add some functions to reduce the amount of invalidates we do.
13826         * TextControl.cs: Less invalidation.
13827
13828 2007-03-19  Chris Toshok  <toshok@ximian.com>
13829
13830         [ Fixes #81773, and *seems* to fix #81553 as well ]
13831
13832         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
13833         AccumulateDestroyedHandles.  We need to do it *after* we send
13834         WM_DESTROY, as the user's code can access Control.Handle in
13835         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
13836         move the WM_DESTROY/zombie handling to before the call to
13837         XDestroyWindow.  For some reason without this ordering
13838         FormTest.RecreateHandle hangs.  This ordering is semantically
13839         equivalent, however, as XDestroyWindow is async anyway.
13840
13841 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
13842
13843         * RichTextBox.cs: Reset backcolor_set after setting default.
13844
13845 2007-03-19  Chris Toshok  <toshok@ximian.com>
13846
13847         * ScrollableControl.cs: the scroll position should not effect the
13848         canvas size.  commit patch from georgegiolfan@yahoo.com, which
13849         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
13850         
13851 2007-03-19  Chris Toshok  <toshok@ximian.com>
13852
13853         * ScrollableControl.cs: clean this up a bit.  create the
13854         scrollbars in the ctor and just show/hide them as needed.  Also,
13855         make hscroll_visible/vscroll_visible internal to Recalculate, and
13856         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
13857         everywhere else.  This seems to fix the scrollbars appearing
13858         beneath the content for me (i have *no* idea why that is,
13859         however.)
13860
13861 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
13862
13863         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
13864         some redundacy for stuff in Anchor and Dock that base will take care of.
13865         [Fixes #80762]
13866
13867 2007-03-19  Mike Kestner  <mkestner@novell.com>
13868
13869         * ListView.cs : make box selection for Details views without 
13870         FullRowSelect dependent on the text bounds, not item bounds.
13871         * ListViewItem.cs : add an internal property to obtain the TextBounds
13872         in Details view.  [Fixes case 1-4 of #80374]
13873
13874 2007-03-19  Andreia Gaita  <avidigal@novell.com>
13875
13876         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
13877         we're < 2.0. #78448 && #80316
13878
13879 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
13880
13881         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
13882         have the same style available as the previously selected one.  Also,
13883         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
13884
13885 2007-03-19  Jackson Harper  <jackson@ximian.com>
13886
13887         * TextControl.cs: Add an alignment property that all new lines
13888         will be given.
13889         - Make sure to use the align shift when calculating the line's X
13890         position.
13891         * TextBox.cs: Set the alignment on the document as well as on all
13892         the document lines.
13893
13894 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13895
13896         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
13897           throw if setting the parent of an mdichild that already has an
13898           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
13899           AssemblyProductAttribute in the assembly, use the type's namespace (as
13900           MS seems to do). CreateControl: don't create the handle if the control
13901           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
13902           create handle if the control is not a form. Change FocusInternal to
13903           virtual so that it can be overriden by Form.
13904         * TextBox.cs: Update call to FocusInternal.
13905         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
13906           form is not a toplevel form when it's a mdi child, so update is_toplevel
13907           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
13908           hasn't been created. Show (IWin32Window): Don't allow this overload for
13909           toplevel windows. CenterToParent/CenterToScreen/Select: create the
13910           handle as MS does. SetVisibleCore: if called on a MdiChild and the
13911           parent isn't visible yet, save the visibility and restore it when the
13912           parent is made visible.
13913         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
13914           methods, since the visibility of the scrollbars can be changed from
13915           several places, not only from AutoScroll.
13916           [Fixes #81179]
13917
13918 2007-03-19  Jackson Harper  <jackson@ximian.com>
13919
13920         * RichTextBox.cs: Enable shortcuts by default.
13921         * TextBoxBase.cs: Add conditional shortcuts.  
13922
13923 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
13924
13925         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
13926
13927 2007-03-19  Chris Toshok  <toshok@ximian.com>
13928
13929         [ Fixes bug #80604]
13930         
13931         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
13932         swallow the message we're waiting on, instead of delivering it, as
13933         this is only used for the WM_SHOWWINDOW raised from
13934         MapWindow/UnmapWindow, and the message needs to be generated
13935         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
13936         before doing the Map/Unmap.  Also make sure that the Hwnd is still
13937         alive after the message has been handled.
13938
13939         *before* the window is shown.
13940
13941         * Control.cs (CreateControl): guard a few more things inside the
13942         if (!is_created) block, as we might end up being called again -
13943         yay .net.
13944         (WmShowWindow): call CreateControl if we're showing the control.
13945
13946 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13947
13948         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
13949           controls without a handle if they have any parent with a handle. In
13950           Dispose add a check whether the handle is created or not before
13951           calling BeginInvoke, this removes the need of the extra disposing
13952           parameter (which was bogus anyway since it didn't prevent the
13953           invoke from happening, it only skipped the check for an existing
13954           handle, meaning that the invoke would call on an inexistent
13955           handle).
13956
13957 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
13958
13959         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
13960         appears in taskbar.
13961
13962 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
13963
13964         * MessageBox.cs:
13965         - Fixed a problem that dont show help button for messages with 3 buttons.
13966         - Refactory button size and position calculations, now dont use fixed 
13967         values, also fixed button sizes (#80043) and form's border space.
13968         - AddButton method created, now all other AddButton methods call this one.
13969         - Some other source code cosmetic changes.
13970
13971 2007-03-18  Jackson Harper  <jackson@ximian.com>
13972
13973         * RichTextBox.cs: Don't do this all fonts must match check if
13974         there is only one char selected.
13975
13976 2007-03-18  Jackson Harper  <jackson@ximian.com>
13977
13978         * TreeView.cs: ScrollWindow works properly now, so we don't need
13979         to screw around with the scroll area.  This fixes some artifacts
13980         when expanding and collapsing.
13981
13982 2007-03-18  Jackson Harper  <jackson@ximian.com>
13983
13984         * TextBoxBase.cs: Allow updating the selection position when the
13985         cursor is outside the textarea, but we have a capture.
13986         * TextControl.cs: A special case for when the cursor is outside
13987         the bounds of the TB.
13988         
13989 2007-03-18  Jackson Harper  <jackson@ximian.com>
13990
13991         * TextBoxBase.cs: Remove image pasting code for now.  There is no
13992         way to get an image on the clipboard right now anyways.
13993         * TextControl.cs:
13994         * RichTextBox.cs: Use the new RTF Picture class for pictures.
13995
13996 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
13997
13998         * MessageBox.cs:
13999         - Set window properties in constructor intead of on CreateParams.
14000         - Remove topmost from Window ExStyle.
14001         - Set ShowInTaskbar to false.
14002         - Set form border to FixedDialog.
14003         - Some cosmetic changes and remove unneeded comments.
14004         - It fixes itens 2,3 and 4 of bug #80043.
14005
14006 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
14007
14008         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
14009         none was explicitly set. Fixes part of bug #79949.
14010
14011 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
14012
14013         * ToolStripComboBox.cs: Add AutoComplete*.
14014
14015 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
14016
14017         * ToolStripComboBox.cs: Add FlatStyle.
14018
14019 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
14020
14021         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
14022         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
14023
14024 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14025
14026         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
14027           CheckBox.cs, RadioButton.cs, BindingSource.cs,
14028           DataGridColumnStyle.cs: Remove warnings.
14029
14030 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14031
14032         * Menu.cs: MergeMenu: Check menu argument for null before looping over
14033           it.
14034         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
14035           visibility of mdi child forms. FormSizeChangedHandler: update the
14036           maximized size if size has changed while maximized.
14037         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
14038           creating the handle.
14039         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
14040           avoid creating the handle if not created.
14041         * XplatUI.cs: Update debug output.
14042         * XplatUIStructs.cs: Added ToString's for a couple of structs.
14043
14044 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
14045
14046         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
14047         ProcessCmdKey().
14048         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
14049         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
14050         Implement keyboard shortcuts.
14051
14052 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
14053
14054         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
14055         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
14056         ColorDialog and all derived classes.
14057
14058 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
14059
14060         [ Fixes bug #79828 ]
14061
14062         * ToolBar.cs:
14063         - Rename ToolBarButtonInfor to ToolBarItem.
14064         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
14065         - Maintain an array of ToolBarItem, used instead of ToolBarButton
14066         collection to be able add same button more than one time on a toolbar.
14067         - Refactory all properties and methods to use ToolBarItem. 
14068
14069         * ToolBarButton.cs: 
14070         - Remove all propeties and methods that is now in ToolBarItem.
14071         - Rectangle propery now gets the rectangle from first ToolBarItem to
14072         mimic win32 behavior.
14073         - Size calculation and layout methods also removed.
14074
14075         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
14076         ToolBarItem instead of ToolBarButton to right drawing buttons when
14077         same button/separator was added more than one time to ToolBar.
14078
14079         * ThemeNice.cs: Same as above. 
14080
14081 2007-03-15  Andreia Gaita  <avidigal@novell.com>
14082
14083         * XplatUIX11.cs: Fire extra MouseMove events right after
14084         MouseDown and MouseUp, emulating win32's <censored> behaviour
14085         for apps that rely on it.
14086
14087 2007-03-15  Jackson Harper  <jackson@ximian.com>
14088
14089         * TextControl.cs:
14090         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
14091         it is drawn on the controls client window and there is no NC
14092         area.
14093         - Set the background color to gray on 2.0 when we are readonly.
14094
14095 2007-03-15  Chris Toshok  <toshok@ximian.com>
14096
14097         [ Fixes bug #81144 ]
14098         
14099         * XplatUIX11.cs: implement VirtualScreen independently of
14100         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
14101         property.
14102
14103 2007-03-15  Chris Toshok  <toshok@ximian.com>
14104
14105         * Hwnd.cs: add an internal field for the cached_window_state.
14106
14107         * XplatUIX11.cs: cache the window state, invalidating the cache
14108         (and thus re-querying the X server) only when we see an update to
14109         the _NET_WM_STATE property.
14110
14111 2007-03-15  Chris Toshok  <toshok@ximian.com>
14112
14113         * BindingSource.cs: get a lot of the unit tests working.
14114
14115 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
14116
14117         * Control.cs: Modify UpdateStyles to store distances when bounds >=
14118         0 instead of just bounds > 0.  [Fixes bug #80912]
14119
14120 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
14121
14122         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
14123         and methods.
14124
14125 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
14126         
14127         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
14128         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
14129         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
14130         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
14131
14132 2007-03-15  Chris Toshok  <toshok@ximian.com>
14133
14134         [ Fixes #81101 ]
14135         
14136         * Control.cs: add Ivan's fix for 81101, with a slight modification
14137         - you can set control.Target to null.
14138
14139 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
14140
14141         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
14142         HideDropDown, use Hide instead to prevent an NRE.
14143         [Fixes bug #81147]
14144
14145 2007-03-14  Jackson Harper  <jackson@ximian.com>
14146
14147         * TextBoxBase.cs: Mess with the creation stuff a little. We need
14148         to calculate the document before the handle is created, in some
14149         cases. (Actually just one case).
14150
14151 2007-03-14  Jackson Harper  <jackson@ximian.com>
14152
14153         * TextBoxBase.cs: Need to display the caret after letting the base
14154         wndproc handle the focus methods, because the caret display
14155         methods check the focus state.
14156         - Try to display the caret after updating it's position with SelectWord.
14157         - Don't need to do an immediate update on this recalc, since there
14158         will be an invalidate anyways.
14159
14160 2007-03-14  Jackson Harper  <jackson@ximian.com>
14161
14162         * TreeView.cs: Some workarounds so that we can match event order a
14163         little better.
14164
14165 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
14166
14167         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
14168         #80803. Avoid NullReferenceException when Control does not have
14169         parent. Fixed different blinkstyle issues. Only subscribe to Tick
14170         event a single time. Only draw error icon when control is created and
14171         visible. Fixes failing unit tests.
14172
14173 2007-03-14  Andreia Gaita  <avidigal@novell.com>
14174
14175         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
14176         Selecting events. Fire Leave and Enter events when changing tabs.
14177
14178 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
14179
14180         * TreeView.cs: Add TreeViewNodeSorter.
14181         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
14182
14183 2007-03-14  Chris Toshok  <toshok@ximian.com>
14184
14185         * Form.cs: go ahead and remove the RecreateHandles that jpobst
14186         removed earlier and I had him add back it.  It turns out metacity
14187         *does* in fact handle the MOTIF_WM_HINTS property changing, it
14188         just doesn't redraw the window titlebar until you resize the
14189         window.  This also means we aren't recreating the entire window
14190         hierarchy on X when you change this property.  And it looks better
14191         on windows, too.
14192
14193 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14194
14195         * ListViewItem.cs:
14196         * ListView.cs: Collecting selection information
14197         is now done in SelectedIndexCollection rather than in
14198         SelectedListViewItemCollection. This is done so we can
14199         have the selection information code in one single place
14200         (virtual mode selection information entirely depends on
14201         SelectedIndexCollection).
14202
14203 2007-03-13  Miguel de Icaza  <miguel@novell.com>
14204
14205         * ErrorProvider.cs: Add stubs for ISupportInitialize
14206
14207 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14208
14209         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
14210         in the right order with the right values, from the Checked property, 
14211         just as MS does (instead of triggering them from ListView).
14212
14213         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
14214
14215 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14216
14217         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
14218         the correct handler in OnItemCheck method (ItemCheckEventHandler 
14219         instead of EventHandler). This used to throw an InvalidCastException.
14220
14221 2007-03-13  Jackson Harper  <jackson@ximian.com>
14222
14223         * TextBoxBase.cs: Calculate the document before the handle is
14224         created, so there isn't an extra invalidate called.
14225
14226 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
14227
14228         * Form.cs: Don't set owner in ShowDialog until we are sure
14229         that we aren't going to throw an exception.  [Fixes bug #80773]
14230
14231 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
14232
14233         * TreeView.cs: Make it compile.
14234
14235 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14236
14237         * Control.cs: Another place we don't call SizeFromClientSize.
14238         * Form.cs: Another place we don't call SizeFromClientSize.
14239         [Fixes bug #81125]
14240
14241 2007-03-12  Jackson Harper  <jackson@ximian.com>
14242
14243         * TreeView.cs: Basically emulating some strangness here with
14244         exanding nodes and setting node positions when windows aren't
14245         created.
14246         - Also attempting to walk the node tree less than previously, and
14247         just use visible order calculations for determining offsets.
14248         - oops made scrolling backwards.
14249         * TreeNode.cs: We need to start nodes with a zero visible order,
14250         because the order calcs are based on the first nodes order.
14251
14252 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14253
14254         * Form.cs: Don't exit the program if RecreateHandle is called on
14255         the main form.
14256
14257 2007-03-12  Chris Toshok  <toshok@ximian.com>
14258
14259         * XEventQueue.cs: remove the use of PostQuitState.
14260
14261         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
14262         WM_QUIT message in GetMessage, return false (and if we're in the
14263         nested WaitForHwndMessage, repost the WM_QUIT message).
14264
14265 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14266
14267         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
14268         or the MaximizeBox properties.  [Part of bug #80640]
14269
14270 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
14271
14272         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
14273         no links.
14274
14275 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14276
14277         * ToolStripItem.cs: Fix some tests I broke by checking Visible
14278         instead of visible.
14279
14280 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
14281
14282         * FileDialog.cs: Use text of File name combobox to determine what
14283         files the user selected. Added tokenizer to parse the file names.
14284         Fixes bug #81123.
14285
14286 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14287
14288         * Control.cs: We can't call SizeFromClientSize in the constructor,
14289         but we still need to do the same work, so make an internal version.
14290         [Fixes bug #80621]
14291
14292 2007-03-12  Jackson Harper  <jackson@ximian.com>
14293
14294         * TreeView.cs:
14295         * TreeNode.cs:
14296         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
14297         IsExpanded.
14298
14299 2007-03-12  Jackson Harper  <jackson@ximian.com>
14300
14301         * TextBoxBase.cs: Now that the handles are being created a little
14302         later, we need to make sure that the document is recalculated when
14303         the handle is created.
14304
14305 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
14306
14307         * Theme.cs: GetLinkFont abstract method added.
14308         
14309         * LinkLabel.cs: 
14310         - Remove CalcTrimRectangle, no longer needed.
14311         - Factor also remove, position issues must be fixed in libgdiplus.
14312         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
14313         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
14314         care about font used to draw links.
14315         - Set TabStop to true when control is "Selectable", control is selectable
14316         when have one or more links. Fixes #80501 (test case is also added).
14317         - Set the LinkArea values after links change, LinkArea values must be
14318         based in first link position and size, a test case was created.
14319         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
14320         the attribute must be true LinkArea.Length > 0. The same was applied to
14321         TabStop.
14322         
14323         * ThemeWin32Classic.cs: 
14324         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
14325         in draw method.
14326         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
14327         color change.
14328         - Draw focus rectangle for every parts focused, including parts that 
14329         is on another line, its because regions returns various rectangles
14330         and not only one. Needed to mimic W32 look.
14331         - Uses Graphics.Clip to delimite region painted, it mean that now 
14332         complete text is passed to DrawString, with this we solve layout
14333         issues without create another text renderer.
14334         - Uses Region.Intersect to fix some flickers problems, now only needed
14335         parts will redrawed.
14336         - This changes fixes #79614 and some other unreported issues, on Linux 
14337         some layout problems still remain, the problem is under 
14338         MeasureCharacterRanges but it is an libgdiplus bug.
14339
14340 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
14341
14342         * TextBox.cs: Set for foreground color.
14343         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
14344         this is already done in Control.
14345
14346 2007-03-10  Jackson Harper  <jackson@ximian.com>
14347
14348         * TextBox.cs: Set the background color, but reset the
14349         backcolor_set flag which is just for the user setting the
14350         background color.
14351
14352 2007-03-09  Chris Toshok  <toshok@ximian.com>
14353
14354         * Control.cs: really remove the call to XplatUI.SetVisible from
14355         CreateHandle(), like I said I did when I merged the branch.
14356
14357         * BindingSource.cs: implement some more of this stuff.
14358
14359 2007-03-09  Jackson Harper  <jackson@ximian.com>
14360
14361         * TextBox.cs: Don't explicitly set our background colors.
14362         * TextControl.cs:
14363         * TextBoxBase.cs: Draw readonly text.
14364         - Need to invalidate when backcolor or readonly are changed.
14365         
14366 2007-03-09  Jackson Harper  <jackson@ximian.com>
14367
14368         * TextBoxBase.cs: Don't set the forecolor until the handle is
14369         created.
14370         - Do not raise OnPaint, and removed some old debug code.
14371
14372 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
14373
14374         * ScrollableControl.cs: Fix mouse wheel scrolling.
14375
14376 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
14377
14378         * Control.cs: Wire up MouseDoubleClick event.
14379
14380 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
14381
14382         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
14383         top or bottom.
14384         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
14385         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
14386         item is added.  This logic was moved to ToolStrip.OnItemAdded.
14387         [Fixes bug #81090]
14388
14389 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14390
14391         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
14392
14393 2007-03-08  Jackson Harper  <jackson@ximian.com>
14394
14395         * TreeView.cs: Show the correct image for selected node (this used
14396         to work, not sure how the code got deleted). Also implemented 2.0 feature
14397         SelectedImageKey.
14398
14399 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14400
14401         * ListView.cs:
14402         * ListViewItem.cs: Cache index in items when retrieving them
14403         in VirtualMode.
14404
14405 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
14406
14407         * ToolStripItem.cs: Don't return the explicit_size if we are using 
14408         AutoSize.  Fixes invalidation issue when user has explicitly set a
14409         size and has AutoSize = true.
14410
14411 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
14412
14413         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
14414
14415 2007-03-07  Pedro MartĂ­nez JuliĂ¡  <pedromj@gmail.com>
14416
14417         * DataGridView.cs: Remove event handler from DataView when a
14418         DataTable is used as DataSource.
14419
14420 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
14421
14422         * Control.cs: Create internal setter for client_size to allow it to be
14423         set without triggering resizing code.
14424         * Form.cs: Calculate client_size in constructor, only change client_size
14425         in FormBorderStyle property if Handle has been created.
14426         [Fixes #80574, #80791]
14427
14428 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
14429
14430         * SystemInformation.cs: Add TerminalServerSession.
14431
14432 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
14433
14434         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
14435         TreeView code.
14436
14437 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
14438
14439         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
14440         Handle before we were supposed to.  Now checks ActivateOnShow property
14441         in Control.
14442         * Control.cs: Add internal ActivateOnShow property.
14443         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
14444         for ActivateOnShow.
14445         * Hwnd.cs Remove no longer needed no_activate field.
14446
14447 2007-03-07  Jackson Harper  <jackson@ximian.com>
14448
14449         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
14450         2.0 properties
14451         * DrawTreeNodeEventHandler.cs: Add
14452         * DrawTreeNodeEventArgs.cs: Correct default value.
14453         
14454 2007-03-07  Chris Toshok  <toshok@ximian.com>
14455
14456         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
14457         to be called before NativeWindow.WndProc.  Put the HwndCreating
14458         magic there to hook up our Hwnd's to handles.
14459
14460 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
14461
14462         * DataGridView.cs: Comment out debug code.
14463
14464 2007-03-07  Chris Toshok  <toshok@ximian.com>
14465
14466         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
14467         to make the rest of the world happy]
14468
14469         * Control.cs (CreateHandle): there's no need to call
14470         XplatUI.SetVisible here, it's effectively done by
14471         XplatUI.CreateWindow on X now, and always was on windows.
14472
14473         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
14474         shortcircuit out of the loop if we have a message loop running on
14475         this thread.
14476
14477         [Changelog from merge]
14478
14479         2007-03-05  Chris Toshok  <toshok@ximian.com>
14480
14481                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
14482                 causes handle creation.
14483
14484         2007-02-28  Chris Toshok  <toshok@ximian.com>
14485
14486                 * ApplicationContext.cs: Add a flag to make sure we only raise the
14487                 ThreadExit event once (ExitThreadCore can be indirectly called
14488                 from a few places.)  I don't like the additional flag, but it
14489                 makes the event ordering/count correct.
14490
14491                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
14492                 without locking the collection.  An enumerator doesn't give us any
14493                 protection from modification anyway.  Lock the thread hash and
14494                 replace the complicated enumerator loop with a foreach.
14495                 (Application.CloseForms): make internal so it can be called from
14496                 ApplicationContext.  This should probably be moved to MWFThread.
14497                 (Application.ExitThread): don't call MWFThread.Current.Exit()
14498                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
14499                 when the runloop exits (in response to WM_QUIT.)
14500                 (Application.RunLoop): add a comment (and check) for
14501                 context.MainForm being null after setting context.MainForm.Visible
14502                 = true.  This is because you're perfectly free to dispose of a
14503                 form in VisibilityChanged.  Chalk this up to another case where we
14504                 need to synchronously generate WM_ACTIVATE from Control.Show.
14505                 Also, add handling for WM_QUIT here so we'll exit the loop.
14506                 
14507                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
14508                 fact that we don't wait if we're only unmapping the whole_window
14509                 makes me a bit nervous, but it doesn't seem to cause any problems
14510                 yet.
14511
14512                 also, add a comment about the stupid, broken and wrong resetting
14513                 of PostQuitState to false in GetMessage().
14514
14515                 In PostQuitMessage, we need to add a WM_QUIT message to the
14516                 thread's queue.  We use the FosterParent to get the right
14517                 handle/hwnd/queue.
14518
14519                 Lastly, in SetVisible, we need to unmap both windows, since the
14520                 waiting only happens when we're unmapping the client window.  So
14521                 now, the *only* time we unmap just the whole_window is in the hack
14522                 for resizing a control to 0,0.
14523                 
14524         2007-02-21  Chris Toshok  <toshok@ximian.com>
14525
14526                 * Application.cs (CloseForms): rewrite this so that we don't
14527                 modify the list while we're traversing it.
14528
14529         2007-02-20  Chris Toshok  <toshok@ximian.com>
14530
14531                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
14532                 of OnHandleCreated.
14533                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
14534                 handle is created.  otherwise we'll create it here.
14535                 (VerticalScrollEvent): same here.
14536
14537                 * Application.cs (CloseForms): call Form.Dispose, don't post
14538                 WM_CLOSE_INTERNAL.
14539
14540                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
14541                 here. Application should Dispose() of the Form's.
14542
14543                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
14544                 WM_DESTROY as well.
14545                 (MapWindow,UnmapWindow): only actually do the waiting for
14546                 SHOWWINDOW if the control we're dealing with is a Form.
14547                 (CreateWindow): if the control isn't a form, SendMessage
14548                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
14549
14550                 * Control.cs (SetVisibleCore): always use is_visible here, not
14551                 value.  If we use value, we can end up re-setting something
14552                 visible if, for instance, you do Control.Hide() in a delegate
14553                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
14554
14555         2007-02-20  Chris Toshok  <toshok@ximian.com>
14556
14557                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
14558                 the message we need.  PeekMessage returning false should not be a
14559                 condition under which we exit the loop.
14560
14561         2007-02-15  Chris Toshok  <toshok@ximian.com>
14562
14563                 * Control.cs (Refresh): only refresh if we've got a handle and are
14564                 visible.
14565                 (CreateAccessibilityInstance): CreateControl() here.
14566                 (UpdateChildrenZOrder): complicate the code loop even more by
14567                 taking into account controls that haven't had their handle
14568                 created, and those that aren't visible.  But on the flip side,
14569                 simplify the code by splitting it into two loops.  one which
14570                 builds up the list of child controls we're interested in, and the
14571                 other that sets the z order of those children.
14572
14573         2007-02-14  Chris Toshok  <toshok@ximian.com>
14574
14575                 * Control.cs: Control.AccessibilityObject causes the control to be
14576                 created, not just the handle.
14577
14578         2007-02-14  Chris Toshok  <toshok@ximian.com>
14579
14580                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
14581                 problem on X where a window might have its handle created (and be
14582                 visible) while the window is unmapped.  calling XConfigureWindow
14583                 on an unmapped window is bad, and generates X errors.
14584
14585         2007-02-13  Chris Toshok  <toshok@ximian.com>
14586
14587                 * Control.cs (CreateHandle): don't loop over our children setting
14588                 their parent here.  do it when in WndProc when we're shown.
14589                 (UpdateChildrenZOrder): make this internal so we can call it from
14590                 ScrollableControl.
14591                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
14592                 creating its handle.  Also, remove the calls to PerformLayout from
14593                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
14594                 OnVisibleChanged only seems to be called directly here for the
14595                 toplevel control.  It's propagated down the window hierarchy by
14596                 calls to child.OnParentVisibleChanged.
14597                 (OnVisibleChanged): don't do layout here - it's done (oddly
14598                 enough, according to a glance at stack traces on ms.net..) in
14599                 ScrollableControl.
14600                 
14601                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
14602                 z order of our children before calling PerformLayout.
14603
14604         2007-02-12  Chris Toshok  <toshok@ximian.com>
14605
14606                 [big change, fixes #80020]
14607                 
14608                 * AccessibleObject.cs: we need to make owner internal again to fix
14609                 some of ControlAccessibleObject.
14610
14611                 * Control.cs: lots of changes here.  add support for WM_CREATE,
14612                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
14613                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
14614                 we create child controls.  leave the MonoTODO's for the
14615                 accessibility calls, but fix the exceptions so the tests pass.
14616
14617                 Add the InvalidOperationExceptions to Invoke methods, and remove a
14618                 couple of InvokeInternal methods we aren't using.
14619                 
14620                 Also, add a couple of CreateHandle calls in places where we know
14621                 the handles are being created but our code doesn't reference
14622                 .Handle.
14623
14624                 Make SetVisibleCore call OnVisibleChange if the handle isn't
14625                 created.  If the handle is created, we rely on XplatUI.SetVisible
14626                 generating the event synchronously.
14627                 
14628                 Lastly, make sure we don't use this.Handle inside CreateHandle,
14629                 because we can call back into client (and that code can dispose of
14630                 the control).
14631
14632                 * XplatUIStructs.cs: misc/cleanup.
14633
14634                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
14635                 although we don't populate the wParam properly.
14636                 (CreateWindow): generate WM_CREATE.
14637                 (MapWindow,UnmapWindow): make these calls synchronous, at great
14638                 performance expense (particularly in the unmap case), to match
14639                 win32 behavior.
14640
14641                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
14642                 to call it.
14643                 (set_MdiParent): don't recreate the handle unless it's been
14644                 created already.
14645                 
14646                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
14647                 it's created.
14648
14649                 * NativeWindow.cs: this is probably the weirdest part of the
14650                 patch.  We need a way to link up the window being created to the
14651                 WM_CREATE message.  Since we can only be creating one window at a
14652                 time on a given thread, we keep track of a per-thread reference so
14653                 we can dispatch it properly.  We also need to keep track of the
14654                 Hwnd currently being created so that the win32 backend doesn't
14655                 have problems.
14656                 
14657                 * XplatUIWin32.cs: a similar change to the one we made in
14658                 NativeWindow.cs.
14659
14660 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
14661
14662         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
14663         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
14664         to draw the menu shortcut string.
14665
14666 2007-03-07  Jackson Harper  <jackson@ximian.com>
14667
14668         * TreeNode.cs: Add the 2.0 collapse method.
14669
14670 2007-03-07  Pedro MartĂ­nez JuliĂ¡  <pedromj@gmail.com>
14671
14672         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
14673
14674 2007-03-07  Pedro MartĂ­nez JuliĂ¡  <pedromj@gmail.com>
14675
14676         * DataGridView.cs: Change DataSource will clear column and row
14677         lists. Call Invalidate() to reflect DataSource change.
14678
14679 2007-03-07  Pedro MartĂ­nez JuliĂ¡  <pedromj@gmail.com>
14680
14681         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
14682         and a new row is added to it.
14683
14684 2007-03-07  Pedro MartĂ­nez JuliĂ¡  <pedromj@gmail.com>
14685
14686         * DataGridView.cs: Add columns when DataSource is en empty list but
14687         is a System.Data.DataView (from a System.Data.DataTable).
14688
14689 2007-03-06  Andreia Gaita  <avidigal@novell.com>
14690
14691         * Label.cs: Implement AutoEllipsis (2.0)
14692
14693 2007-03-06  Jackson Harper  <jackson@ximian.com>
14694
14695         * TreeView.cs: Implement 2.0 TopNode setter property.
14696         - Use a local var instead of the skipped_nodes field for computing
14697         how many nodes to skip.  Otherwise we won't scroll because the
14698         valuechanged handler checks if skipped_nodes is equal to the new
14699         value.
14700         - Implement 2.0 Sort method.
14701         - Add useless 2.0 DoubleBuffer property
14702         - Implement 2.0 LineColors property.  Lets you change the color of
14703         the lines in the tree. Terribly useful for creating non cohesive
14704         desktops.
14705         - Implement 2.0 image key feature.
14706
14707 2007-03-06  Jackson Harper  <jackson@ximian.com>
14708
14709         * TreeView.cs: We can't get the bounds of the nodes before raising
14710         the AfterSelect event, because that event could change the node's
14711         bounds (scrolling, font change, etc).
14712
14713 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14714
14715         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
14716         * Form.cs: Don't recreate handle when creating FormWindowManager, just
14717           update window styles. In CreateParams us VisibleInternal instead of
14718           VIsible to get the actual visible flag set for this form.
14719         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
14720           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
14721           handle the case when the form is already maximized, in which case
14722           it should be restored. Fixes #81043.
14723
14724 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14725
14726         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
14727
14728 2007-03-05  Jackson Harper  <jackson@ximian.com>
14729
14730         * TreeViewHitTestInfo.cs: implement.
14731
14732 2007-03-05  Jackson Harper  <jackson@ximian.com>
14733
14734         * InternalWindowManager.cs: class status fix.
14735
14736 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14737
14738         * InternalWindowManager.cs: All windows that have a parent
14739         are confined to their parent when they're being moved.
14740         Fixes #80822.
14741
14742 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
14743
14744         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
14745         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
14746
14747 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14748
14749         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
14750           buttons invisible before deciding which ones should be visible
14751           (fixes minimize/maximize buttons showing up in toolwindows). Remove
14752           an unused variable.
14753         * InternalWindowManager.cs: Remove warning.
14754
14755 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14756
14757         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
14758         to throw an InvalidOperationException is virtual mode is being used.
14759
14760 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
14761
14762         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
14763         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
14764         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
14765         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
14766         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
14767         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
14768
14769 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14770
14771         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
14772           driver.KeyboardDelay from XplatUI.KeyboardDelay 
14773         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
14774           (patch by Sergey Volk)
14775
14776 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14777
14778         * ToolWindowManager.cs: Added, contains logic for
14779           tool windows.
14780         * CreateParams.cs: Add a few helper methods and an
14781           internal variable to know which control the CreateParams belongs
14782           to.
14783         * Control.cs: Call Form.ChangingParent when the
14784           parent is about to be changed.
14785         * XplatUIX11.cs: DeriveStyles (): Set
14786           caption_height for all windows that have captions and are children.
14787           Update to use ToolWindowManager instead of InternalWindowManager
14788           for ToolWindows.
14789         * XplatUIWin32.cs: Set fake window styles for all
14790           windows that have window managers.
14791         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
14792           now duplicated for mdi windows when they are
14793           maximized, first for the buttons the window itself has, then for
14794           the buttons that appear in the menu bar. Makes things a little
14795           easier). Updated UpdateWindowDecorations, SetWindowState and the
14796           mouse eventhandlers accordingly.
14797         * Form.cs: Add ChangingParent (), contains the
14798           logic of what should happen when the parent changes. In MdiParent
14799           don't set things that ChangingParent () is doing. When handling
14800           WM_CLOSE, we can close the form if there are any other modal forms
14801           and the current form is a descendent of the modal form.
14802         * InternalWindowManager.cs: A lot of refactoring,
14803           the title buttons are now extracted to a separate container class
14804           that takes care of all button code (clicks, tooltips, etc). Moved
14805           Iconic|Maximized|Normal Bounds properties to this class from
14806           MdiWindowManager, so that the window state logic can succeed for
14807           other than mdi wm's. Implemented general window state change logic.
14808           Moved CreateButtons to ThemeWin32Classic, since the theme might
14809           override which buttons are available when as well as the exact
14810           location.
14811         * FormWindowManager.cs: Added, contains logic for
14812           normal forms.
14813         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
14814           which buttons go where (and if they are at all visible). 
14815           Removed special handling of maximized windows, since they aren't special. 
14816           In DrawManagedWindowDecorations don't try to draw the text if it is
14817           empty.
14818         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
14819           use whatever the wm gives us.
14820
14821 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
14822
14823         * ButtonBase.cs: Add 2.0 properties.
14824         * Button.cs: Override Draw for 2.0.
14825         * Control.cs: Add Entered and Selected properties.
14826         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
14827         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
14828         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
14829         buttons.
14830         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
14831
14832 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
14833
14834         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
14835
14836 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
14837
14838         * XplatUIWin32.cs: Register a new class with Windows each time we get
14839         a new ClassStyle.  [Fixes bugs #79432, #80817]
14840         * Controls.cs: Set the correct ClassStyle in CreateParams.
14841         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
14842
14843 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
14844
14845         * ListView.cs: Add fireEvent argument to ReorderColumn since the
14846         ColumnReordered event must not be signaled when modifying DisplayIndex
14847         of a ColumnHeader. Added internal ReorderColumns method which takes
14848         care of drawing, and updating the internal DisplayIndex of the
14849         ColumnHeader. Added AddColumn method which is invoked from
14850         ColumnHeaderCollection when adding or inserting columns, and which
14851         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
14852         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
14853         Recalculated dispay indices after removing a ColumnHeader.
14854         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
14855         match MS. Allows last display index to be returned after ListView
14856         is disposed. Update actual location of ColumnHeader when DisplayIndex
14857         is modified.
14858
14859 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
14860
14861         * LinkLabel.cs: Improve CalcTrimRectangle.
14862         
14863         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
14864
14865 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
14866
14867         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
14868         get rectangle as a result value.
14869
14870 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
14871
14872         * LinkLabel.cs: Theres some diferences between rectangle return from 
14873         MeasureCharacterRanges and the area used for DrawString to fix this 
14874         CalcMeasurementFactor method was created, it calcules the diferences
14875         to be use later to adjust rectangle in draw operations. Fixes #80473.
14876         
14877         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
14878         to adjust draw rectangle.
14879
14880 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
14881
14882         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
14883         text and some other changes to reduce and optimize source code.
14884
14885 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
14886
14887         * RadioButton.cs: Implement 2.0 event.
14888         * RelatedImageListAttribute.cs: Implement new class.
14889
14890 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
14891
14892         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
14893
14894 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
14895
14896         * CheckBox.cs: Implement 2.0 functionality.
14897
14898 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14899
14900         * ListView.cs: Refactor Add and AddRange methods of
14901         ListViewItemCollection, to not update the ListView
14902         everytime an item is added in AddRange. Also move the update
14903         code to a new CollectionChanged method, and call it
14904         from other methods that need it as well (this should also fix some
14905         bugs when Sorting is used).
14906
14907 2007-02-27  Jackson Harper  <jackson@ximian.com>
14908
14909         * TextControl.cs: Try to never let the caret stay in a non-text
14910         tag.
14911         * TextBoxBase.cs: Update the caret.
14912
14913 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
14914
14915         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
14916         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
14917         delete POINT structure, duplicate of one in XplatUIStructs.
14918         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
14919
14920 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
14921
14922         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
14923         edit box since otherwise the Label would immediately be set (even if
14924         the user did not modify the label). In OnKeyDown set Handled to true
14925         if Return or Escape was pressed. In ColumnHeaderCollection unlink
14926         columns that are to be removed. In ListViewItemCollection unlink items
14927         that are to be removed.
14928
14929 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
14930
14931         * TextRenderer.cs: If we set a GDI clip region, we need to clear
14932         it when we are done.  [Fixes bug #80949]
14933
14934 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
14935
14936         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
14937
14938 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14939
14940         * ListView.cs: I forgot to commit the changes for ListView 
14941         in my previous patch.
14942
14943 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
14944
14945         * Clipboard.cs: Partially implement an overload of SetDataObject.
14946         * Form.cs: Implement ShowWithoutActivation.
14947         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
14948
14949 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14950
14951         This is a first set of changes to make the Virtual mode works,
14952         by avoiding the retrieval of ListViewItem instances until
14953         draw time.
14954
14955         * ListView.cs: Store item position in the ListView instead of the
14956         ListViewItem, this way we don't request the Bounds property of
14957         ListViewItem inside the ListView calculations, as well as cache the item
14958         size in item_size field. Store indexes instead of ListViewItem
14959         instances in the matrix used by icon view. Add a ItemMatrixLocation
14960         struct to hold the row and col info of the matrix info.
14961
14962         * ListViewItem.cs: Don't store the location anymore, and only cache
14963         the rectangles for GetBounds. Use the ListView.GetItemLocation
14964         method to retrieve the actual location.
14965
14966 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
14967
14968         * TextRenderer.cs: Add clipping support, thanks to George.
14969         [Fixes bug #80949]
14970
14971 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
14972
14973         * ListViewItem.cs: Cancel label edit when item is removed from 
14974         ListView.
14975         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
14976         event before the edit textbox is displayed.  Added CancelEdit method
14977         which is used end to editing while ignoring the value set by the
14978         user. In EndEdit, set focus to ListView to avoid losing focus to
14979         other controls. In ListViewItemCollection.Clear, cancel editing of
14980         any of the items.  In Remove, cancel editing of item being removed.
14981         Avoid udplicate code by modifing RemoveAt to invoke Remove.
14982
14983 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
14984
14985         * FileDialog.cs: Update FSEntry when move is successful. Fixes
14986         bug #80948.  
14987
14988 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
14989
14990         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
14991         compatible with non X11 systems. Fixes #80901.
14992
14993 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
14994
14995         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
14996         whether the item should be unselected and reselect. We do no want this
14997         when we're starting to edit the label. Do not fire the 
14998         SelectedIndexChanged event from ListView when its already been fired
14999         by modifying ListViewItem.Selected. Fixes bug #80943.
15000
15001 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15002
15003         * TextRenderer.cs: Previos commit logic was backwards.
15004
15005 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
15006
15007         * TextRenderer.cs: Don't add padding on MeasureText if we were
15008         sent the NoPadding flag.
15009
15010 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
15011
15012         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
15013         after DrawButton. To prevent image overlaps button borders SetClip and 
15014         ResetClip added before and after draw image. Fixes #79129.
15015
15016 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
15017
15018         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
15019         window size, it fix problem when you run under win32 that theres
15020         Size diferent than ClientSize. Also fix controls size and positions
15021         to mimic Win32. Fixes #80837.
15022
15023 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
15024
15025         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
15026         menu area to fix some problems for non X11 systems. Fixes #80613.
15027
15028 2007-02-22  Jackson Harper  <jackson@ximian.com>
15029
15030         * TreeNode.cs: When a node is expanded, set its is_expanded flag
15031         even if it doesn't have any children.
15032
15033 2007-02-22  Jackson Harper  <jackson@ximian.com>
15034
15035         * TreeView.cs: Calculate the top node 'on the fly', this
15036         eliminates issues where you need to click on the tree before
15037         scrolling it to get the top node computed correctly.
15038         * TreeNodeCollection.cs: We don't need to mess with the top node
15039         anymore.
15040
15041 2007-02-22  Jackson Harper  <jackson@ximian.com>
15042
15043         * DataGridViewRow.cs: Fix typo so height can actually be set.
15044         Patch by Peter Grimm.
15045
15046 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
15047
15048         * FileDialog.cs: Fixed support for renaming files and directories.
15049         * ListView.cs: Do not lose focus when edit is canceled. Process
15050         Escape as regular key (to prevent closing of dialogs).
15051
15052 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
15053
15054         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
15055         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
15056
15057 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
15058
15059         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
15060         did not modify label.
15061         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
15062         modified the text. Reset Label when user presses Escape in edit mode.
15063         Move focus to ListView after having cancelled or finished editing the
15064         label.
15065
15066 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
15067
15068         * ComboBox.cs: Removed unnecessary initializations. Marked items field
15069         private. Clear textbox when Text is set to null and SelectedIndex is
15070         already -1.
15071         * FileDialog.cs: Removed unnecessary initializations. Removed 
15072         workarounds for ComboBox bugs that are now fixed. Modified
15073         DefaultExt, InitialDirectory and Title property to change null to
15074         zero-length string in getters. Avoid directly accessing fields.
15075
15076 2007-02-20  Jackson Harper  <jackson@ximian.com>
15077
15078         * TextControl.cs: Remove RecalAlignments call, that was some
15079         debugging leftovers.
15080         - Don't use the line indent when we shouldn't.
15081         * RichTextBox.cs: Add support for paragraph left indents.
15082
15083 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15084
15085         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
15086         Seems like the class status pages doesn't catch params differences.
15087
15088 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
15089
15090         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
15091
15092 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
15093
15094         * ComboBox.cs: Setting Text should have no effect if item text of
15095         selected item exactly matches value. First lookup text using
15096         case-sensitive comparison, and fallback to case-insensitive comparison.
15097         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
15098         allow startIndex to be last index. Changed ArgumentOutOfRangeException
15099         paramname to match MS. Restart from first item if string is not found
15100         after startIndex. Fixed paramname of ArgumentNullException that is
15101         thrown for null value in ObjectCollection.Contains.
15102
15103 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
15104
15105         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
15106
15107 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15108
15109         * ListControl.cs: In SelectedValue use value.Equals to compare for
15110         equality instead of ==, otherwise it will fail for strings.
15111         Fixes #80794.
15112
15113 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15114         
15115         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
15116         since the caret won't show up unless ShowSelection is true. 
15117         Fixes #80795.
15118
15119 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15120
15121         * Application.cs: When disabling all forms but the main form, do not
15122           disable any descendants of the main form (such as mdi children or
15123           other parented forms). Fixes #80822 on Windows.
15124         * Form.cs: If we have a parent, set the WS_CHILD style.
15125         * Control.cs: Update the window styles if the control whose parent has
15126           changed is a form (the WS_CHILD style has to be switched).
15127
15128 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
15129
15130         * XplatUIStructs.cs: MsgUIState structure added.
15131
15132 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
15133
15134         * FileDialog.cs: Removed need for separate fileName field. On 2.0
15135         profile, do not check filename(s) for illegal character if filename(s)
15136         were set non-interactively but always check on 1.0 profile. Fixed NRE
15137          in DefaultExt and only strip off first leading dot. Improve exception
15138         message when invalid Filter is set. Do not ignore InitialDirectory if
15139         it does no exist. Store specified Title, and if empty use default
15140         title (depending on type of dialog). Added an internal DialogTitle 
15141         property for retrieving dialog title. Fixed logic of displayed dir to
15142         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
15143         string as its buggy.
15144         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
15145         FileName is a zero-length string (it can never be null). Override 
15146         DialogTitle property to set default title of dialog box.
15147         * SaveFileDialog.cs: Override DialogTitle property to set default
15148         title of dialog box.
15149
15150 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
15151
15152         * FileDialog.cs: Modify default text of filename and filetype labels
15153         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
15154         after we've updated the SelectedIndex. Fixes part of bug #80887.
15155         * SaveFileDialog.cs: Set text of filetype label.
15156
15157 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15158
15159         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
15160         label field. Needed by latest Jackson's fixes for ListView.
15161
15162 2007-02-16  Andreia Gaita  <avidigal@novell.com>
15163
15164         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
15165         print preview images.
15166
15167 2007-02-16  Jackson Harper  <jackson@ximian.com>
15168
15169         * ListView.cs: Make AfterLabelEdit work correctly.
15170         * FileDialog.cs: After changing the name of the folder, we have to
15171         make sure that it is created, or that we pop up an error because
15172         it already exists.
15173
15174 2007-02-16  Jackson Harper  <jackson@ximian.com>
15175
15176         * X11Dnd.cs: Implement aliases on mime handlers, so things like
15177         System.String are mapped to text.
15178         - Handle dataobjects, getting all the possible formats out of them
15179         - We dont need the drag event args before we give feedback. This
15180         allows feedback cursors to be immediate before selections have
15181         been converted.
15182
15183 2007-02-16  Jackson Harper  <jackson@ximian.com>
15184
15185         * TextBoxBase.cs: Modified the method for inserting images to
15186         taking a line and position instead of tag and position.
15187         * RichTextBox.cs: Handle PngBlip data by inserting the png image
15188         into the RTF file.
15189         * TextControl.cs: Allow images to be inserted as the first tag of
15190         a line.
15191         - Fix some off by one issues when we assume the first tag is a
15192         text tag, not an image tag.
15193
15194 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15195
15196         * ListView.cs: Set focus to ListView when ItemControl gets a
15197         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
15198         Fixes part of #80467.
15199
15200 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15201
15202         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
15203           validate Text input (if null or empty string reset Value to default
15204           value). Fixes #80830.
15205
15206 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15207
15208         * ListView.cs: Set owner as null for columns and items when
15209         Dispose is invoked. Fixes #80607.
15210
15211 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
15212
15213         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
15214         showing DropDowns, don't show a Grip when doing Flow layout.
15215         [This fixes the toolbox in PDN 2.72.]
15216         * ToolStripItem.cs: Add Anchor property and some internal properties to
15217         reduces needed changes to FlowLayout.
15218         * ToolStripOverflow.cs: Remove unused variable.
15219         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
15220         use it in the layout calculations.
15221
15222 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
15223
15224         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
15225         reported in #79640.
15226         
15227         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
15228         size calculation.
15229
15230 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
15231
15232         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
15233         MeasureString format, it can make button very large in some cases, it is
15234         strange but is what win32 do.
15235
15236 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
15237
15238         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
15239         size calculation.
15240
15241         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
15242         rendering, the value is based on MenuAccessKeysUnderlined.
15243
15244 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
15245
15246         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
15247         for most themes.
15248         
15249         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
15250         
15251         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
15252         and use MenuAccessKeysUnderlined instead.
15253
15254 2007-02-13  Andreia Gaita  <avidigal@novell.com>
15255
15256         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
15257         A selected control would not get a Focus call if:
15258                 - the default active control of the container is the same as
15259                   the one that was selected
15260                 - we are switching from one container to another
15261         Under these conditions, the container being selected already has
15262         an active_control, which is the same as the one being activated, 
15263         so set_ActiveControl would always return and not send the Focus
15264         call. Fix to check if the currently active control of the container
15265         is actually focused.
15266
15267 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
15268
15269         * StatusStrip.cs: Implement the spring layout.
15270         * ToolStripControlHost.cs: Make sure the hosted control's visibility
15271         always matches the host.
15272         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
15273         and TextAfterImage.
15274
15275 2007-02-13  Andreia Gaita  <avidigal@novell.com>
15276
15277         * Control.cs: Code reorganization only.
15278           - Reorganize the WndProc cases so that each case has it's own handling method, 
15279           to help with the no-line-numbering stack traces.
15280           - Formatting changes (it's vstudio's fault, really :p)
15281
15282 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15283
15284         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
15285           Thread.CurrentUICulture to match DateTimePicker's (and MS)
15286           behaviour.
15287
15288 2007-02-12  Jackson Harper  <jackson@ximian.com>
15289
15290         * RichTextBox.cs:
15291         * TextBox.cs: By default we have a non multiline document
15292         - use the multiline property instead of the internal variable
15293         * TextBoxBase.cs: Treat multiline and non multiline the same in
15294         most places.
15295         - Use the documents multiline flag instead of tracking it ourself
15296         * TextControl.cs: Attempt at getting multiline to match MS
15297         behavior.  Lines now track an offset, which is either their X or Y
15298         offset depending on whether or not we are in multiline mode.
15299         - Update all the methods to understand that lines have an X value.
15300         - Fix crash in Undo::Duplicate when empty lines are deleted.
15301
15302 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
15303
15304         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
15305         code moved to properties PreferredHeight and PreferredWidth. It solve the
15306         all problems when preferred sizes must be recalculated. Fixes #80801.
15307
15308 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
15309
15310         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
15311         font height when compatible_text_rendering is false. Partially fix #80801.
15312
15313 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
15314
15315         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
15316
15317 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
15318
15319         * Form.cs: Improved exception messages in ShowDialog.
15320
15321 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
15322
15323         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
15324         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
15325         if not set. Fixes bug #80764. Avoid accessing current_settings field
15326         directly.
15327
15328 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
15329
15330         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
15331         false.
15332
15333         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
15334         public in 2.0 and for easy maintenance and dont break compatibility it is 
15335         internal in 1.1.
15336         
15337 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
15338
15339         * ToolStripItem.cs: Implement using images from ImageList.
15340
15341 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15342
15343         * DateTimePicker.cs: Change default date-formatting culture from
15344           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
15345           seems to be the way MS does it.
15346
15347 2007-02-08  Andreia Gaita  <avidigal@novell.com>
15348
15349         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
15350         (the 6 was cut off on the right side)
15351
15352 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
15353
15354         * Form.cs: Tell MenuStrips to close when the form is clicked.
15355         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
15356         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
15357         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
15358         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
15359         support for Overflow, where items that do not fit are automatically
15360         reparented to a drop down menu.
15361         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
15362         Also: fixes bug #80747.
15363
15364 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15365
15366         * ComboBox.cs: Remove warning (unused code).
15367         * ScrollableControl.cs: Remove warning for 1.1 profile.
15368
15369 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15370
15371         * Form.cs: Remove a warning.
15372
15373 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15374
15375         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
15376           'g' specifier, not documented anywhere, but seems to always show up
15377           as a single space (might have something to do with the DateTime 'g'
15378           specifier, which is the era format, but since DateTimePicker can't
15379           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
15380           won't crash if the format has an unmatched quote. Now shows
15381           single-character formats correctly. Fixes #80744.
15382
15383 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
15384
15385         * StatusStrip.cs: Stretch property needs to call base.Stretch,
15386         not this.Stretch to fix stack overflow. [Fixes bug #80760]
15387
15388 2007-02-07  Chris Toshok  <toshok@ximian.com>
15389
15390         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
15391         background color.  it overwrites the background image we've
15392         already painted.  Fixes #80599.
15393
15394 2007-02-07  Chris Toshok  <toshok@ximian.com>
15395
15396         * DataGrid.cs: return immediately from Edit() when there are no
15397         columns.  Fixes #80662.
15398
15399 2007-02-07  Chris Toshok  <toshok@ximian.com>
15400
15401         * MessageBox.cs: fix #80625.  don't always show the Help button in
15402         2.0.  use the displayHelpButton parameter to determine if we
15403         should show it. Also, make the internal show_help field private.
15404
15405 2007-02-07  Chris Toshok  <toshok@ximian.com>
15406
15407         * Control.cs (SetVisibleCore): check in the proposed patch for
15408         80604, and set is_visible before calling CreateControl.
15409
15410 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
15411
15412         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
15413         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
15414         on it.
15415
15416 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
15417
15418         * MenuAPI.cs: hotkey_active internal field added, it is required because
15419         we need to know when hotkeys must be draw, before this change a keystate
15420         Navigating was used but we can have menu in navigating state without
15421         hotkeys. Fixes #80694.
15422         
15423         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
15424
15425 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15426
15427         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
15428           corresponding events and methods to be internal for 1.1 profile and
15429           public for 2.0 profile (required by SizeGrip).
15430         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
15431           implicit control list). Don't set the size nor the location of the
15432           SizeGrip anymore as it's not needed.
15433         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
15434           draw directly on the captured control (fixes #80656). Removed
15435           ShowGrip (it wasn't used anywhere), redraw (always true), added
15436           GetDefaultSize and GetDefaultRectangle to calculate defaults.
15437         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
15438           be called from SizeGrip.
15439
15440 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15441
15442         * Timer.cs: Throw ArgumentException if Interval <= 0.
15443
15444 2007-02-05  Jackson Harper  <jackson@ximian.com>
15445
15446         * TreeView.cs: We need to check scrollbar visibility when window
15447         visibility is updated, because non visible trees don't ever add
15448         scrollbars.
15449         * Cursor.cs: We want the override cursor to be reset to NULL when
15450         we set current cursor to the default cursor.
15451
15452 2007-02-05  Jackson Harper  <jackson@ximian.com>
15453
15454         * TextControl.cs: Don't have crlfs when we are non multiline.
15455         - Consolidate the line position.
15456
15457 2007-02-05  Jackson Harper  <jackson@ximian.com>
15458
15459         * X11Keyboard.cs: BACK+CTRL gets a special char code.
15460
15461 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15462
15463         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
15464           handling LeaveNotify->NotifyUngrab in order to send
15465           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
15466           after calling XUngrabPointer, so we call WindowUngrabbed directly
15467           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
15468         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
15469           MouseCaptureChanged correctly. Also create handles if changing
15470           Capture (matches MS behaviour).
15471
15472 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15473
15474         * SizeGrip.cs: Make the last change 2.0 only.
15475
15476 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15477
15478         * SizeGrip.cs: If resizing and the capture is lost, revert any size
15479           changes to initial size (fixes #80597).
15480
15481 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15482
15483         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
15484
15485 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15486
15487         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
15488           background) and only allow dragging if enabled. This way the
15489           sizegrip can be used to fill the open square that otherwise would
15490           have been shown in the bottom right corner of ScrollableControl
15491           when ScrollableControl is not suppose to support sizing.
15492         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
15493           sizegrip is shown and enabled, and hook up with necessary events.
15494
15495 2007-02-01  Chris Toshok  <toshok@ximian.com>
15496
15497         * DataGridTextBoxColumn.cs: clean up the
15498         GetFormattedString/GetColumnValueAtRow combination of functions.
15499         Also fix UpdateUI, and the initial state of
15500         IsInEditOrNavigateMode.
15501
15502         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
15503         aren't supposed to scroll the textbox here, we're supposed to
15504         scroll the datagrid.
15505
15506 2007-02-01  Chris Toshok  <toshok@ximian.com>
15507
15508         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
15509         setting the position.
15510
15511 2007-02-01  Chris Toshok  <toshok@ximian.com>
15512
15513         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
15514         here, since the most recent focus fixes keep us from generating
15515         the Leave event when our textbox gets focus.
15516         (Edit): we should be passing null for the column style's
15517         instantText parameter.
15518         
15519 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
15520
15521         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
15522         raised.  Fixes menu text/icons not showing up in PDN.
15523
15524 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15525
15526         * Control.cs: Remove code in constructor that makes every
15527         control with WS_CHILD set have initial location -1, -1.
15528
15529 2007-01-31  Jackson Harper  <jackson@ximian.com>
15530
15531         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
15532         XplatUIX11.
15533         * XplatUIX11.cs: Give teh keyboard to teh dnd.
15534
15535 2007-01-31  Jackson Harper  <jackson@ximian.com>
15536
15537         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
15538         - Remove some debug code.
15539
15540 2007-01-31  Jackson Harper  <jackson@ximian.com>
15541
15542         * XplatUIX11.cs: If you set the override cursor during a grab, it
15543         should actually override the grab cursor.  This comes into play
15544         when you are setting custom cursors in a DND feedback method.
15545
15546 2007-01-31  Jackson Harper  <jackson@ximian.com>
15547
15548         * X11Dnd.cs: Add support for handling the QueryContinue and
15549         GiveFeedback events.
15550         - Cancel drag and drop actions when the escape key is clicked.
15551         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
15552         can handle the ESCAPE key.
15553         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
15554         done when dnd events are continued after the button is released.
15555         - Add a new helper method so that dnd can translate key events.
15556
15557 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
15558
15559         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
15560         make it more obvious what is happening.
15561
15562 2007-01-30  Jackson Harper  <jackson@ximian.com>
15563
15564         * XplatUIX11.cs: Don't break when handling button release in drag
15565         and drop operations. We need that BUTTONUP message to get through
15566         so capture is released.
15567         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
15568         this is handled automatically when the mouse is down.
15569
15570 2007-01-30  Jackson Harper  <jackson@ximian.com>
15571
15572         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
15573         is closed, so we need to make sure that we aren't changing the
15574         dialog result when the OK (Open or Save) button has been clicked
15575         and we are closing the window ourselves.  Note we don't need to
15576         worry about the cache being written in this case, because it was
15577         already done in the previous FilOk call.
15578
15579 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15580         
15581         * DateTimePicker.cs: Remove a warning.
15582         * ComboBox.cs: Remove a couple of warnings.
15583
15584 2007-01-29  Chris Toshok  <toshok@ximian.com>
15585
15586         * XplatUIX11.cs: don't crash, and remove the icon if the user has
15587         set one, if SetIcon is passed a null icon.
15588
15589 2007-01-29  Andreia Gaita  <avidigal@novell.com>
15590
15591         * TextBox.cs: Redraw when the password characters changes
15592         * TextControl.cs: Check if textbox has a password char and draw 
15593         a line of password chars instead of the text in the line. LineTag gets 
15594         an extra Draw() method which allows document.Draw to override the text 
15595         that will be drawn. Removes 1024 char limitation on length of passworded 
15596         lines.
15597
15598 2007-01-29  Jackson Harper  <jackson@ximian.com>
15599
15600         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
15601         single chars is not.
15602
15603 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
15604
15605         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
15606         one pixel.  Fix a StackOverflowException caused by an overload wrongly
15607         calling itself.
15608
15609 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
15610
15611         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
15612         also remove ProcessArrowKey and put the code inside ProcessKeys.
15613
15614 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
15615
15616         * PaddingConverter.cs: Added.
15617
15618 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15619         
15620         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
15621         ShowPanels is false (fixes #80600). Only draw up to 127 characters
15622         of text (fixes #80601). For panels clip the text to draw to the
15623         panel (fixes #80603).
15624
15625 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15626
15627         * ComboBox.cs: Fixed implementation of ResetText.
15628
15629 2007-01-25  Jackson Harper  <jackson@ximian.com>
15630
15631         * TextControl.cs: For the last char of a line we need to use the
15632         line size, not that chars width, since it won't actually be
15633         computed since the right side of a char is based on the start of
15634         the left side of the next char, and the next char does not exist.
15635
15636 2007-01-25  Chris Toshok  <toshok@ximian.com>
15637
15638         * Splitter.cs: fix the new unit tests, and reindent some switch
15639         statements.
15640
15641 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15642
15643         * ComboBox.cs: Implemented 2.0 methods and events.
15644         * TextBoxBase.cs: Added OnTextUpdate, so that
15645         ComboBox.ComboTextBox can inform ComboBox of it.
15646
15647 2007-01-25  Jackson Harper  <jackson@ximian.com>
15648
15649         * TextControl.cs: Respect ShowSelection when deciding whether or
15650         not to display the caret, this allows comboboxes to have carets
15651         when the combotextbox does not have focus.
15652
15653 2007-01-25  Jackson Harper  <jackson@ximian.com>
15654
15655         * TextControl.cs: Add a Suspend/Resume for updating, basically the
15656         same as the Suspend/Resume for recalc, except this will do actual
15657         Invalidates.
15658         - New Undo manager, works much like the MS version.
15659         - Implemented Redo
15660         * TextBoxBase.cs: The Cut operation is undoable.
15661
15662 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15663         
15664         * TextBoxBase.cs: Don't antialias text. Makes it look way better
15665         on Windows (no difference on Linux).    
15666
15667 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15668
15669         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
15670         we don't want to activate any windows. Fixes #79433.
15671
15672 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
15673
15674         - ButtonBase.cs: Fix capitalization of parameter: disposing.
15675         [Fixes bug #80609]
15676
15677 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
15678
15679         * FileDialog.cs:
15680         - Move to using System.ComponentModel.EventHandlerList
15681         - Replace Refresh with Invalidate
15682         - Clear the mime filecache on closing
15683         - Some other memory reducing work. After beeing closed FD now uses
15684           only about 300 KB for the fdo mime stuff plus the memory of the
15685           cached icons.
15686         * Mime.cs: Changed coding style and removed unnecessary commented
15687         code. Some more memory memory reducing work.
15688
15689 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15690
15691         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
15692         a few other missing 2.0 properties.
15693         * Theme.cs: Added DrawFlatStyleComboBox.
15694         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
15695
15696 2007-01-24  Chris Toshok  <toshok@ximian.com>
15697
15698         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
15699         wake_waiting flag, not just when there's data to be read.  if we
15700         don't, then future wakeup's won't reach us and we'll be doomed to
15701         wait for the entire 1 second timeout forever (unless there are X
15702         events to be had).
15703
15704 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
15705
15706         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
15707         until you pass Items.Count, not Items.Count - 1 like 1.1.
15708
15709 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
15710
15711         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
15712
15713 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
15714
15715         * ToolStripContainer.cs: The recent Dock fix exposed that I was
15716         adding the panels in the wrong order.
15717
15718 2007-01-24  Jackson Harper  <jackson@ximian.com>
15719
15720         * TextBoxBase.cs: When we move the caret we also need to move the
15721         selection, this fixes some random crashing after doing select
15722         text, unselect, delete a char, paste.
15723
15724 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15725
15726         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
15727
15728 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
15729
15730         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
15731         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
15732         * ToolBar.cs: Force redraw in BackgroundImageChanged.
15733
15734 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
15735
15736         * ToolBar.cs:
15737         - Implement support for vertical toolbars. Fixes #80539;
15738         - Call LayoutToolBar when resize, it fix some other problems in layout.
15739         - Rename requested_height to requested_size, as we can have width on it
15740         when toolbar is vertical.
15741         - Create a private property "Vertical" that uses Dock to verify when 
15742         toolbar is vertical or not.
15743         - Set ControlStyles when change Dock property.
15744         - Refactory in LayoutToolBar to have better variables names and to support
15745         vertical toolbars.
15746         - Fixes default value for ButtonSize when button count is equal zero, size
15747         must be (39, 36) test case writed.
15748
15749 2007-01-23  Chris Toshok  <toshok@ximian.com>
15750
15751         * Control.cs: fix the checks so that they work correctly for mdi
15752         parents/children.
15753
15754 2007-01-23  Chris Toshok  <toshok@ximian.com>
15755
15756         * Control.cs: ControlCollection seems to have super-secret
15757         abstraction breaking knowledge of Mdi containers.  allow MdiClient
15758         to add toplevel controls.
15759
15760 2007-01-23  Chris Toshok  <toshok@ximian.com>
15761
15762         * Control.cs: throw an ArgumentException if a toplevel control is
15763         added to our control collection from ControlCollection.Add, as
15764         well as from ControlCollection.IList.Add.  This fixes the
15765         ControlSetTopLevelTest.TestTopLevelAdd unit test.
15766
15767         Also, in ControlCollection.IList.Add, don't through an
15768         ArgumentNullException, throw an ArgumentException, when value ==
15769         null.  This matches MS.
15770
15771 2007-01-23  Chris Toshok  <toshok@ximian.com>
15772
15773         * BindingSource.cs: initial, incomplete, implementation of
15774         BindingSource.
15775
15776 2007-01-23  Jackson Harper  <jackson@ximian.com>
15777
15778         * TextControl.cs:
15779         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
15780         that I can fix a broken unit test (TextBoxTest::ClearUndo)
15781         
15782 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
15783
15784         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
15785
15786 2007-01-23  Andreia Gaita  <avidigal@novell.com>
15787
15788         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
15789         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
15790         IndexOfKey() for 2.0
15791
15792 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15793
15794         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
15795         to prevent it from changing z-order.
15796         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
15797         leave UI updates in MdiWindowManager.
15798         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
15799         1 sized (NC handling goes weird on Linux otherwise).
15800         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
15801         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
15802         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
15803         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
15804         and SetWindowState(s) to allow for changing the size of an activated child
15805         before activating it (reduces a lot of flicker).
15806
15807 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
15808
15809         * Form.cs: Changing FormBorderStyle has different semantics based
15810         on whether the Form is visible or not.  If not visible, don't change
15811         the Size.  But InvalidateNC needs to be called to force the window
15812         to pick up the changes and redraw itself.  [Fixes bug #80574]
15813
15814 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
15815
15816         [Moma work]
15817         * ContainerControl.cs: ProcessCmdKey.
15818         * ErrorProvider.cs: new constructor.
15819         * Form.cs: fix AutoValidateEvent compiler warning.
15820         * Label.cs: fix OnAutoSizeChanged compiler warning.
15821         * MenuStrip.cs: fix CanOverflow compiler warning.
15822         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
15823         * TextBox.cs: Dispose.
15824         * ToolStrip.cs: CanOverflow, re-enable double buffering.
15825         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
15826         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
15827         * ToolStripItem.cs: Overflow, RightToLeft properties.
15828
15829 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15830
15831         * Form.cs: Move the layout of the main form to MdiWindowManager.
15832         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
15833         do a layout of the main window to update MdiClient's client area to
15834         the right area. Fixes #80533. Remove the calculation of nc size, 
15835         it was just wrong and the correct one is the same as for 
15836         InternalWindowManager. 
15837
15838 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
15839
15840         * Control.cs: Setting Anchor or Dock needs to reset the other
15841         to its default.  [Fixes bug #80556]
15842
15843 2007-01-20  Chris Toshok  <toshok@ximian.com>
15844
15845         * CheckedListBox.cs: class status changes.
15846
15847         * ScrollableControl.cs: same.
15848
15849         * RichTextBox.cs: same.
15850
15851         * ContainerControl.cs: same.
15852
15853         * ListView.cs: same.
15854
15855         * NotifyIcon.cs: same.
15856
15857         * MenuStrip.cs: same.
15858
15859         * RadioButton.cs: same.
15860
15861         * CheckBox.cs: same.
15862
15863         * PrintPreviewDialog.cs: same.
15864
15865         * Form.cs: same.
15866
15867 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
15868
15869         * TreeNode.cs: Apply Alan's patch for Name property.
15870
15871 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15872         
15873         * Form.cs: Implemented SizeGripStyle.
15874         * SizeGrip.cs: Check for minimum and maximum size for the
15875         control being resized and only resize if size has actually
15876         changed.
15877
15878 2007-01-19  Chris Toshok  <toshok@ximian.com>
15879
15880         * DataGridColumnStyle.cs: stop setting _readonly in the
15881         PropertyDescriptor setter.  fixes a unit test failure.
15882
15883         also, rename ParentReadOnly to TableStyleReadOnly, and have it
15884         just consult our table style (if we have one).  We don't need to
15885         consult the datagrid readonly attribute because that's passed in
15886         as the _ro arg to Edit.  this simplifies things a little.
15887         
15888         * DataGrid.cs: use CurrentColumn instead of
15889         current_cell.ColumnNumber just to simplify some of the code.
15890
15891         switch the order of some things in the CurrentCell setter to keep
15892         the previous cell from getting a textbox again -
15893         EnsureCellVisibility causes scrolling to happen, which calls Edit.
15894         So we need to set the new cell before calling it.
15895         
15896         call Edit in OnEnter, as does Microsoft.
15897         
15898         also, make sure the current table style isn't the one we create
15899         initially when checking to see if it's different than the one
15900         we're setting it to in BindColumns (this fixes #80421).
15901
15902         * GridTableStylesCollection.cs: table styles can have "" for a
15903         mapping name.  part of the fix for #80421.
15904
15905         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
15906         Edit significantly.
15907
15908 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
15909
15910         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
15911         and less GDI object leaky-er.
15912
15913 2007-01-18  Andreia Gaita  <avidigal@novell.com>
15914
15915         * LinkLabel.cs: Add opaque control style
15916
15917 2007-01-18  Jackson Harper  <jackson@ximian.com>
15918
15919         * TextControl.cs: Calculate width properly.
15920         - Don't store the tag's X offset, this can be figured out very
15921         easily.
15922         - When getting the caret tag make sure to get the last empty tag.
15923
15924 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
15925
15926         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
15927         [Fixes bug #79959]
15928
15929         * Control.cs: Color.Empty shouldn't count for previous transparent
15930         redraw changes.
15931
15932 2007-01-18  Jackson Harper  <jackson@ximian.com>
15933
15934         * TextBox.cs:
15935         * RichTextBox.cs:
15936         * TextControl.cs: Starting to merge in some pieces of my older
15937         undo work.  Basically just some slight cleanup of the undo API.
15938
15939 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15940
15941         * TrackBar.cs: Fix signature of RightToLeftLayout.
15942         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
15943         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
15944         * Application.cs: Implemented UseWaitCursor.
15945
15946 2007-01-18  Jackson Harper  <jackson@ximian.com>
15947
15948         * TextControl.cs: We can't skip tags if any part of the tag is
15949         visible.
15950
15951 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
15952
15953         * ContainerControl.cs: Override OnLayout.
15954
15955 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
15956
15957         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
15958
15959         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
15960         everything else.
15961
15962 2007-01-18  Chris Toshok  <toshok@ximian.com>
15963
15964         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
15965         (leftover from the container_selected days, I'd wager).  fixes bug
15966         #80546.
15967
15968 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
15969
15970         * Control.cs: Apply patch from George to fix the new testcase on
15971         bug #80451.  We can't just check for Color.Transparent, we need 
15972         to check if the back color's alpha channel is < 255.
15973
15974 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
15975
15976         * Form.cs: Move setting show_icon = true to before the constructor
15977         so that the base constructor has that information when it calculates
15978         the form's size.  Was causing forms to be (6, 6) bigger than they
15979         were supposed to be.  Thanks for catching this Rolf!
15980
15981 2007-01-18  Jackson Harper  <jackson@ximian.com>
15982
15983         * TextControl.cs: When replacing a selection we need to invalidate
15984         from the initial selection start, because selection start is moved
15985         to the end of the replacement.
15986
15987 2007-01-18  Andreia Gaita  <avidigal@novell.com>
15988
15989         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
15990
15991 2007-01-18  Chris Toshok  <toshok@ximian.com>
15992
15993         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
15994         I just added.
15995
15996 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
15997
15998         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
15999         layout methods and properties from ToolBarButton must be available
16000         into ToolBarButtonInfo.
16001
16002 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
16003
16004         * Control.cs: If the control has a transparent background, we
16005         need to refresh it when it moves and when it's parent's background
16006         image changes.  [Fixes bug #80451]
16007
16008 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
16009
16010         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
16011
16012 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
16013
16014         * XplatUIWin32.cs: Implement proper double buffering for Windows.
16015         [Fixes bug #80447, and probably speeds up things as well]
16016
16017 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16018
16019         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
16020         * XplatUIWin32.cs: We need to recalculate NC size after changing 
16021         window style to toolwindow (otherwise the client rectangle will be
16022         3 pixels to small for some reason).
16023         * MdiWindowManager.cs: Revert NC size calculations to match how
16024         they are calculated only based on window styles (to match
16025         Win32AdjustWindowRectEx, since otherwise when setting size or 
16026         location, Control will call Win32AdjustWindowRectEx to update client 
16027         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
16028         calculate a different value of client size causing another paint 
16029         (and flickering))
16030         * InternalWindowManager.cs: When moving or resizing a window only
16031         update size or location if they actually changed.
16032         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
16033         (seems to match Windows behaviour better). Cleaned up 
16034         ManagedWindowDecorations to draw what's needed and nothing else
16035         (was drawing borders and lines where they shouldn't be)
16036         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
16037         (style = 0xFFFF) and takes into account caption height when 
16038         calculating window rectangle.   
16039
16040 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
16041
16042         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
16043         can be added to toolbar multiple times, we need to maintain a list of 
16044         button information for each positions.
16045
16046 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
16047
16048         * ToolBar.cs: Some small stetic changes.
16049
16050 2007-01-16  Jackson Harper  <jackson@ximian.com>
16051
16052         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
16053         that allow us to have nested recalc = false blocks.
16054         - Add paste support for images in the RichTextBox
16055         * RichTextBox.cs: flush the text after the color is changed, so
16056         the change takes effect.
16057         - Use SuspendRecalc
16058         - Some extra debugging info
16059         * TextControl.cs: Tags no longer track their length, it is just
16060         computed from the next tags length, this makes things a little
16061         simpler and reduces places that we have to track length changes.
16062         - Refactored the linetag class a little so we could make it
16063         a base class for different kinds of tags
16064         - Created a image tag, a tag that can have a single image inserted
16065         into it
16066         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
16067         that we can call suspend multiple times.
16068         - Add some debugging methods
16069
16070 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16071
16072         * MdiClient.cs: Add ActivatePreviousChild for 
16073         mdi child window navigation.
16074         * Form.cs: Use MdiClient.ActivateNextChild/
16075         ActivatePreviousChild instead of Form.SelectNextControl
16076         to select the next/previous child since 
16077         SelectNextControl doesn't do it in the same order
16078         as mdi children should do it.
16079
16080 2007-01-16  Chris Toshok  <toshok@ximian.com>
16081
16082         * Control.cs: remove container_selected field.
16083
16084 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16085
16086         * MdiClient.cs: Update main form's ActiveChild when
16087         updating keyboard focus for the mdi child.
16088
16089 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
16090
16091         * Control.cs: PreferredSize fix.
16092
16093         * Form.cs: Add several 2.0 events, properties, and methods.
16094
16095 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
16096
16097         * Form.cs: Provide meaningful message when MdiParent is assigned a
16098         Form that is not an MdiContainer.
16099
16100 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16101
16102         * MdiClient.cs: Update main form's ActiveChild when
16103         activating a mdi child.
16104
16105 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16106
16107         * MdiWindowManager.cs: Fix NRE when merging menus and main form
16108         doesn't have a menu.
16109
16110         * Form.cs: Request NCRecalc after creating a mdi child window.
16111         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
16112         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
16113         
16114         * MdiClient.cs: Add new method SendFocusToActiveChild that either
16115         sends keyboard focus to the active child, or to the MdiClient
16116         if there are no child forms.
16117         
16118 2007-01-15  Chris Toshok  <toshok@ximian.com>
16119
16120         * ListView.cs: drop the *Internal overrides, just do our work in
16121         ItemControl's WndProc instead.
16122
16123         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
16124         of the various controls, and forward the events properly (in the
16125         same manner as MS) from the textbox to the UpDown.  Also the
16126         ActiveControl of the UpDownBase gets set properly now.  Finally,
16127         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
16128
16129         * NumericUpDown.cs: set Text in the ctor.
16130
16131         * DomainUpDown.cs: call UpdateEditText in the ctor.
16132         
16133         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
16134         so even a Selectable = false textbox can be focused if you click
16135         in it.  Go figure.
16136
16137         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
16138         just add their handling in their respective WndProc's.  Also add
16139         an explicit FocusInternal method that doesn't consult CanFocus
16140         before calling Select(this).
16141
16142         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
16143         do our work in WndProc instead.
16144
16145         * TabControl.cs: same.
16146
16147         * ComboBox.cs: same.
16148
16149 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
16150
16151         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
16152         Fixes #80006.
16153
16154 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16155
16156         * ListViewItem.cs:
16157         * ThemeWin32Classic.cs: Don't draw the item text outside
16158         item bounds in Details view, as well as use trimming.
16159         Fixes bug #80376.
16160
16161 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
16162
16163         * Form.cs: Implement Form.ShowIcon.
16164         
16165         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
16166         null, which when combined with the DlgModalFrame window style removes
16167         the icon from the title bar.
16168
16169 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
16170
16171         * Control.cs: Call OnMouseClick after OnClick. (2.0)
16172
16173 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
16174
16175         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
16176         menu when mdi child windows theres a menu, uses insert to get icon
16177         at first position. Partially fix #80006.
16178
16179 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
16180
16181         * Clipboard.cs: Implement 2.0 methods.
16182
16183 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
16184
16185         * Menu.cs: Implement Insert method of MenuItemCollection class
16186         to fix MenuMerge.
16187
16188 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16189
16190         * ListView.cs: Implement 2.0 FindItemWithText method.
16191
16192 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
16193
16194         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
16195         to calculate menu bar size. Fixes #80290.
16196
16197 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
16198
16199         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
16200
16201 2007-01-11  Chris Toshok  <toshok@ximian.com>
16202
16203         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
16204         initial form.
16205
16206 2007-01-11  Chris Toshok  <toshok@ximian.com>
16207
16208         * LinkLabel.cs: make sure to call base.Select in our Select method
16209         if it turns out we're going to be selected (i.e. if we have a link
16210         that is going to receive focus).  That way our container's
16211         ActiveControl is updated properly.
16212
16213 2007-01-11  Chris Toshok  <toshok@ximian.com>
16214
16215         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
16216         they have 1 or more links.  this fixes the crash gert reported.
16217
16218 2007-01-11  Andreia Gaita  <avidigal@novell.com>
16219
16220         * ContainerControl.cs: Remove ContainerSelected flag, not needed
16221         anymore.
16222
16223         * Control.cs (Controls.Add): Check if control to be added to the collection
16224         is a top level control, and throw an ArgumentException if it is.
16225         Remove ContainerSelectedFlag, not needed anymore.
16226
16227         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
16228         top most control doesn't activate the form. This fixes a problem in the
16229         MessageBox, where the default button wouldn't get focus because the form
16230         was activated before being Loaded - when the Owner is set, SetTopMost is
16231         called, and it would activate it.
16232
16233 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
16234
16235         * Button.cs: When clicked and setting the parent form's DialogResult,
16236         use FindForm instead of Parent, since parent could be a container
16237         control and not the Form.  Fixes bug #80495.
16238
16239 2007-01-10  Chris Toshok  <toshok@ximian.com>
16240
16241         * Form.cs: move the call to SendControlFocus into the same
16242         is_loaded check.
16243
16244 2007-01-10  Chris Toshok  <toshok@ximian.com>
16245
16246         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
16247         It breaks in the face of the new ActiveControl stuff, and should
16248         be unnecessary.
16249
16250         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
16251         activecontrol's focus if it's not already set, after we set
16252         ActiveControl, but before we call OnActivated.  Re-fixes #79667
16253         after the previous focus/active control fixes regressed it.
16254
16255         * Control.cs: reindent some code.
16256         
16257 2007-01-10  Chris Toshok  <toshok@ximian.com>
16258
16259         * Splitter.cs: clearing some outstanding changes from my tree.
16260         Replace all accesses (not writes) to the internal dock_style field
16261         with the Dock property.
16262
16263 2007-01-10  Chris Toshok  <toshok@ximian.com>
16264
16265         * Control.cs: make FireEnter, FireLeave, FireValidating, and
16266         FireValidated virtual.
16267
16268         * Form.cs: override and don't chain up calls to FireEnter and
16269         FireLeave.
16270
16271 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16272
16273         * ListView.cs: Add more text padding space when using
16274         auto resize for columns (the previous value didn't work fine).
16275
16276         * ThemeWin32Classic.cs: Update text position inside columns,
16277         to match the appeareance of .Net.
16278
16279         * ColumnHeader.cs: When using auto resize, only the Width should
16280         depend on the sub items, not the Height. Also, set width after
16281         auto resizing (the value of Width should never remain as -1 or -2).
16282
16283 2007-01-10  Chris Toshok  <toshok@ximian.com>
16284
16285         * Application.cs: fix compilation errors when debug is enabled.
16286
16287 2007-01-10  Chris Toshok  <toshok@ximian.com>
16288
16289         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
16290         add some nice ascii art pictures and explanation of the process).
16291         (GetMostDeeplyNestedActiveControl): new utility function we need
16292         because our ActiveControl can refer to a child container with its
16293         own ActiveControl.
16294
16295         * Form.cs (OnActivated): remove the call to SelectActiveControl
16296         from here, since you can override this method and not chain up,
16297         and winforms still sets the active control.
16298         (OnCreateControl): also remove the unnecessary SelectActiveControl
16299         call from here.
16300         (WndProc): it's actually called from the WM_ACTIVATE block, just
16301         before calling OnActivated.
16302
16303         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
16304         inside the else.  the ActiveControl setter will end up setting
16305         focus on @control.  This keeps us from setting it again (and
16306         generating an extra LostFocus/GotFocus pair).
16307         (Select (bool, bool)): reindent.
16308
16309 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
16310
16311         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
16312         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
16313         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
16314         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
16315         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
16316         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
16317         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
16318         ToolStripTextBox.cs: Another wave of corcompare work.
16319
16320 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16321
16322         * ColumnHeader.cs: Implement 2.0 AutoResize method using
16323         the Width property.
16324
16325         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
16326         methods by callling Column.AutoResize method on columns.
16327
16328 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
16329
16330         * Control.cs: Provide proper implementations of PreferredSize
16331         and GetPreferredSize (2.0).
16332
16333 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
16334
16335         * Form.cs: Remove one character (!) to make my previous OnClosing
16336         stuff work for modal windows like MessageBox.
16337
16338 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16339
16340         * ListView.cs:
16341         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
16342         ListView.Columns to get the last displayed column. Fixes #80452.
16343
16344 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
16345
16346         * Label.cs, LinkLabel.cs: Source code identation fixes.
16347
16348 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
16349
16350         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
16351         we dont need to invalidate only borders because when we invalidate four
16352         border lines the invalidate's generates a complete redraw of button, 
16353         because it now invalidate a complete rect some other redraws operations
16354         are fixed. Fixes #80196.
16355         
16356         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
16357         Remove ToolBarInvalidateEntireButton as it is not used.
16358
16359 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
16360         
16361         * Form.cs: Make sure that both OnClosing and OnFormClosing are
16362         called for 2.0 profile.
16363         * CloseReason.cs: Make class internal for 1.1.
16364
16365 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
16366
16367         * ToolStripManager.cs: Implement FindToolStrip functionality.
16368         * ToolStrip.cs: Register and unregister with ToolStripManager.
16369
16370 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
16371
16372         * Control.cs: This was messy.  2.0 moves much of ControlCollection
16373         to ArrangedElementCollection.  Implemented this with as few #if's as 
16374         possible (which is still too many).
16375
16376 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
16377
16378         * Control.cs: Implement SizeFromClientSize() [2.0].
16379
16380 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
16381
16382         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
16383         use Theme.BorderSize to calculate area instead of static value 1, 
16384         by the way use new BorderStaticSize instead     Border3DSize when 
16385         border_static is true. Fixes #79537.
16386         
16387         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
16388         
16389         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
16390         it is not needed.
16391
16392 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
16393
16394         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
16395
16396 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
16397
16398         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
16399         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
16400         
16401         * Hwnd.cs: 
16402         - border_static field added, it will used to define when a control 
16403         theres 3D border but it must be static (thin).
16404         - In GetWindowRectangle use Theme.BorderSize to calculate area 
16405         instead of static value 1, by the way use new BorderStaticSize instead
16406         Border3DSize when border_static is true.
16407
16408         * XplatUIX11.cs, XplatUIOSX.cs: 
16409         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
16410         
16411         * Theme.cs: BorderStaticSize field added.
16412
16413 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
16414
16415         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
16416
16417 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
16418
16419         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
16420         mimic same behavior than win32 that set border only in CreateParams,
16421         it fix problems under CreateParams overrides. Fix #79442 and partial
16422         fix #79537.
16423         
16424         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
16425         of thi control you must call recreate handle. 
16426         
16427         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
16428         need to do anything as RecreateHangle will take care about borders.
16429
16430 2007-01-05  Mike Kestner  <mkestner@novell.com>
16431
16432         * ListView.cs: hack to eliminate Lost/Got focus notifications on
16433         cycles between the ItemControl and parent.  Fixes #80388.
16434
16435 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
16436
16437         * Control.cs: Lazy init layout engine. Do not directly use 
16438         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
16439
16440 2007-01-05  Chris Toshok  <toshok@ximian.com>
16441
16442         * DataGrid.cs: don't forceably rebind columns in SetDataSource
16443         unless our list manager has changed (i.e. unless we have reason to
16444         believe our columns have changed).  Fixes #80422.
16445         
16446         also, disable the call do BindColumns in
16447         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
16448         1.1 the event isn't raised in response to a column addition on a
16449         table.)
16450
16451 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
16452
16453         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
16454         that inheritors can not call it if they choose.  Fixes bug #80456.
16455
16456 2007-01-05  Andreia Gaita  <avidigal@novell.com>
16457
16458         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
16459         doesn't blow up with a null exception on marshalling.
16460         
16461 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
16462
16463         * Control.cs: Implement several 2.0 protected properties and methods.
16464         Ensure that all necessary events are being called when properties
16465         are set.
16466
16467 2007-01-05  Mike Kestner  <mkestner@novell.com>
16468
16469         * ListView.cs: implement PgUp/PgDn for Details view.  Also
16470         fixes First/LastVisibleIndex to use the item_control.ClientRect 
16471         instead of the parent control.  Fixes #80378.
16472
16473 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
16474
16475         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
16476           determine whether to use yard-pound or not (bug #78399).
16477
16478 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
16479
16480         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
16481         problems. So it is time to bring back the old popupbutton colors.
16482
16483 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16484
16485         * ColumnHeader.cs:
16486         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
16487         property by using the internal information of the
16488         columns order in ListView.
16489
16490 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
16491
16492         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
16493         Add 2.0 Tag properties.
16494
16495         * LinkArea.cs: Add 2.0 ToString method.
16496
16497 2007-01-03  Chris Toshok  <toshok@ximian.com>
16498
16499         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
16500         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
16501         when we're editing, which fixes #80047.
16502
16503 2007-01-03  Chris Toshok  <toshok@ximian.com>
16504
16505         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
16506         #80404.
16507
16508 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
16509
16510         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
16511         property and implementation.
16512
16513         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
16514         for MdiWindowListItem property.
16515
16516         * ToolStripDropDown.cs: Don't consider hidden menu items while
16517         laying out the menu.
16518
16519 2007-01-03  Andreia Gaita  <avidigal@novell.com>
16520
16521         * SendKeys.cs: window handle is not needed in win32, so just
16522         get the active window for X after parsing keys and don't use
16523         it when building the message; it is passed by parameter to the 
16524         Xplat method and used there to build the message instead. Also,
16525         wait for events to be processed on SendWait, as opposed to Send,
16526         which doesn't wait :) Playing with threads and Send() completely 
16527         hangs on ms.net, only SendWait() works.
16528         
16529         XplatUIX11.cs
16530         X11Display.cs: Check for valid window handle.
16531
16532 2007-01-03  Jackson Harper  <jackson@ximian.com>
16533
16534         * TextControl.cs: Need to prevent wrap calculations when replacing
16535         text (this was there before i removed it accidently).
16536         - Don't update the cursor during the positioning, just set it to
16537         selection_start at the end of the operaion.
16538
16539 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16540
16541         * Control.cs:
16542         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
16543         
16544 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16545
16546         * MonthCalendar.cs: Added Click and DoubleClick events again,
16547         but this time they only hide Control's Click and DoubleClick.
16548         
16549 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
16550
16551         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
16552         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
16553
16554 2007-01-02  Jackson Harper  <jackson@ximian.com>
16555
16556         * TextBoxBase.cs: We move the caret with the split now, so we
16557         don't need to explicitly move the caret after splitting.  This
16558         fixes the caret bumping down an extra line on Enter.
16559
16560 2007-01-02  Miguel de Icaza  <miguel@novell.com>
16561
16562         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
16563         2.72). 
16564
16565         * ScrollableControl.cs: Add Scroll event.
16566
16567 2007-01-02  Mike Kestner  <mkestner@novell.com>
16568
16569         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
16570         to fix all hdr height padding codepaths.  Fixes #80207.
16571
16572 2007-01-02  Chris Toshok  <toshok@ximian.com>
16573
16574         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
16575         setting it to the Control defaults anyway, and it being after the
16576         Dock set was screwing up layout.
16577         (set_Dock): don't short circuit out of setting base.Dock.  Also,
16578         no need to call UpdateStatusBar here, as it'll be re-layed out if
16579         it needs to be.
16580
16581 2007-01-02  Mike Kestner  <mkestner@novell.com>
16582
16583         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
16584         to header height for width == -1. Fixes the rest of #80207.
16585
16586 2007-01-02  Mike Kestner  <mkestner@novell.com>
16587
16588         * ListView.cs: rework the mouse event forwarding everaldo added
16589         to translate the coordinates to the parent control not
16590         raise the parent events until after we've done our work. Hover
16591         needs more work, in the case where HoverSelection is on, because
16592         the item control receives more than one MouseHover per Enter
16593         event, so we need to ensure only the "first" hover gets forwarded.
16594         Opening a minor bug for that.
16595
16596 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
16597
16598         * CheckedListBox.cs: Fixed SelectionMode to match MS.
16599         * ListControl.cs: Implemented AllowSelection property. Removed extra
16600         tabs.
16601         * ListBox.cs: Implemented AllowSelection property.
16602
16603 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
16604
16605         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
16606         SelectedItem, it prevent for errors when you must disable item
16607         before perform click. Fixes #80409.
16608
16609 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
16610
16611         * MenuAPI.cs: Prevent second level and beyond submenus to close
16612         until first level when move out side of popup.
16613         
16614 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
16615
16616         * MenuAPI.cs:
16617         - Down submenu positin in three pixels.
16618         - Closes sub menu when mouse leaves from menu. Fixes #80402.
16619
16620 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
16621
16622         * ThemeWin32Classic.cs:
16623         - Fix popup menu size adding one pixel on the top.
16624         - Down menu item border from two to one to mimic Win32.
16625         - Some source identation fixes. 
16626
16627 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
16628
16629         * ThemeWin32Classic.cs: Use float numbers to calculate size and
16630         position of menu arrows, it fix wrong arrow size.
16631
16632 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
16633
16634         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
16635         instead of line, it simplify draw operation and fix it using 3D
16636         borders to mimic Win32.
16637
16638 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
16639
16640         * StatusStrip.cs: Add implementation of the sizing grip.
16641
16642         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
16643         StatusStrip rendering.
16644
16645 2006-12-31  Chris Toshok  <toshok@ximian.com>
16646
16647         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
16648         override the layout style (anchor/dock) of the control.  assign to
16649         Dock instead.  Fixes bug #80416.
16650
16651         * ToolStrip.cs: same.
16652
16653 2006-12-31  Andreia Gaita  <avidigal@novell.com>
16654
16655         * ContainerControl.cs: Use ContainerSelected flag to check if 
16656         a Container is directly selected, or if Select is called on a 
16657         non-container. If a container is directly selected, focus events 
16658         should not be raised.
16659         Apply #80411 patch to throw exception on set_ActiveControl if 
16660         control is the same as the current one.
16661         
16662         * Control.cs: Use ContainerSelected flag (see above).
16663         Add invalidation check to raise event but not invalidate if 
16664         dimensions are 0.       
16665         Apply #80411 patch.
16666         
16667
16668 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
16669
16670         * MenuAPI.cs: After click, dont close popup menu when menu is
16671         ContextMenu. Fixes #80399.
16672
16673 2006-12-30  Chris Toshok  <toshok@ximian.com>
16674
16675         * ContainerControl.cs: make sure we throw the exception if the
16676         container control doesn't contain the control we're setting
16677         ActiveControl to.
16678
16679 2006-12-30  Chris Toshok  <toshok@ximian.com>
16680
16681         * Control.cs (SetTopLevel): fix the exception raised by
16682         SetTopLevel for child controls.
16683         (set_Anchor): call UpdateDistances when setting the anchor type.
16684         This fixes bug #80336.
16685
16686 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
16687
16688         * Theme.cs: For now, revert back to 8pt font.
16689
16690 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
16691
16692         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
16693         Fixes #80395.
16694
16695 2006-12-29  Chris Toshok  <toshok@ximian.com>
16696
16697         * Control.cs: reorder the code in OnResize to give the same event
16698         ordering as MS.
16699
16700 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16701
16702         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
16703         TileHorizontally and TileVertically.
16704         
16705 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
16706
16707         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
16708         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
16709         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
16710         Corrected copyright and email adress.
16711
16712 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
16713
16714         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
16715         of Exception in FullPath property if no TreeView is associated with
16716         the TreeNode.
16717
16718 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
16719
16720         * Theme.cs: Marked default_font as private, and initialize it in ctor
16721         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
16722         on 2.0 profile.
16723         * ThemeGtk.cs: Removed default_font intialization.
16724         * ThemeWin32Classic.cs: Removed default_font initialization.
16725
16726 2006-12-28  Chris Toshok  <toshok@ximian.com>
16727
16728         * Control.cs: fix a couple of place where we were creating handles
16729         more aggressively than we should be.  Fixes ControlRefresh unit
16730         tests.
16731
16732 2006-12-28  Chris Toshok  <toshok@ximian.com>
16733
16734         * Control.cs: contrary to what the comment said, Control.Dock does
16735         not supercede Control.Anchor - the last one you assign to decides
16736         the layout behavior.  so we need to keep track of which was the
16737         last set.  Also, fix some of the affected property arguments in
16738         PerformLayout calls, and remove an redundant parent.PerformLayout
16739         call in OnResized.
16740
16741         Add a VisibleInternal property, which returns is_visible.  We
16742         can/should get rid of all the usage of this field elsewhere.
16743
16744 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16745         
16746         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
16747         control style, not DoubleBuffer. Added UseDoubleBuffering property
16748         that indicates whether doublebuffering is enabled and supported.
16749         (comment from and code based on Gert Driesen's patch in #80324).
16750         Fixes #80324.
16751
16752 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16753         
16754         * Control.cs: Fixed a NRE.
16755
16756 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16757
16758         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
16759         for 2.0.
16760
16761 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16762
16763         * Control.cs: Rewrote double buffering, now a seperate
16764         class handles all the buffering, no Graphics is disposed of
16765         until the painting is finished (earlier implementation 
16766         would crash if the control was resized in the OnPaint, 
16767         since it would cause the double buffer to be recreated
16768         and the old one disposed), a separate Graphics is 
16769         created for every paint (MS behaviour and anyways the state
16770         of the Graphics would have to be saved and restored otherwise)
16771         
16772         * XplatUIDriver.cs: 
16773         * XplatUIX11.cs:
16774         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
16775         so that we can get the graphics for the back buffer without
16776         having to create a new one and remove the offscreen_dc parameter
16777         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
16778         
16779 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16780
16781         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
16782         Also make virtual all the key-related methods.
16783
16784         * ListViewItem.cs: Make virtual the key related methods for
16785         ListViewSubItemCollection.
16786
16787 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16788
16789         * ListView.cs:
16790         * ListViewItem.cs:
16791         * ThemeWin32Classic.cs:
16792         * Theme.cs: Initial support for Tile view in ListView,
16793         as well as the implementation of the required bits for it (Item
16794         and Subitem).
16795
16796 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
16797
16798         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
16799         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
16800         Provide useful exception messages.
16801
16802 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16803
16804         * TrackBar.cs: Remove a warning.
16805         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
16806         when used by DateTimePicker, fixes #80287. This also requires that 
16807         MonthCalendar implements it's own drawing for the yearly updown control,
16808         otherwise the Capture tracking would be too complicated. Removed the Click 
16809         and DoubleClick events (according to comments they were hiding the base class
16810         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
16811         raise these events, not that they cannot be raised. It is possible to raise 
16812         them by calling OnClick and OnDoubleClick). Added two internal fields in 
16813         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
16814         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
16815         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
16816         event, no longer needed.
16817         
16818 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
16819
16820         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
16821         true if new value differs from current value.
16822
16823 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
16824
16825         * Control.cs: ControlCollection.Count must be public. Fixed build of
16826         unit tests.
16827
16828 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
16829
16830         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
16831
16832 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
16833
16834         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
16835
16836 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
16837
16838         * Control.cs: Invalidates control including when Width and Height is 
16839         equal zero or is not visible, only Paint event must be care about 
16840         this. Fixes #79913.
16841
16842 2006-12-26  Chris Toshok  <toshok@ximian.com>
16843
16844         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
16845         more corcompare work.
16846
16847         * DataGridView.cs: fix compiler warning.
16848
16849         * ColumnHeader.cs: some corcompare work, and also take the
16850         opportunity to make the internal fields private.
16851
16852         * ListView.cs: fix the fallout from the above field change.
16853
16854 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
16855
16856         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
16857         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
16858         ToolStripTextBox.cs: Fixes to events and corcompare.
16859
16860 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
16861
16862         * ListView.cs: Call owner.OnMousexx event to propagate events from
16863         item to ListView. Fixes #80367.
16864
16865 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
16866
16867         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
16868         if value is less than one. ItemHeight should not be set to a value
16869         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
16870         Removed extra tabs.
16871
16872 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
16873
16874         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
16875         * ToolStripStatusLabel.cs: Add Spring for Moma.
16876
16877 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
16878
16879         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
16880         Fixed code formatting. Removed debug code.
16881         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
16882
16883 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
16884
16885         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
16886         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
16887         ArgumentOutOfRangeException if ColumnCount is negative. In 
16888         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
16889         less than 4 or higher than 32768.
16890         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
16891         Fixed FormatProvider to return CurrentCulture unless explicitly set.
16892         Fixed IsFormatProviderDefault to return true if FormatProvider has
16893         not been explicitly set.
16894
16895 2006-12-25  Chris Toshok  <toshok@ximian.com>
16896
16897         * Application.cs: add a couple of 2.0 events.
16898
16899 2006-12-25  Chris Toshok  <toshok@ximian.com>
16900
16901         * Control.cs: fix compiler warning.
16902
16903         * AxHost.cs: corcompare fixes.
16904
16905         * ApplicationContext.cs: corcompare fixes.
16906
16907 2006-12-25  Chris Toshok  <toshok@ximian.com>
16908
16909         * Control.cs: only update dist_right/dist_bottom if the
16910         width/height is > 0.  this fixes anchored controls being resized
16911         smaller until they disappear and then resized larger again.
16912
16913 2006-12-25  Chris Toshok  <toshok@ximian.com>
16914
16915         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
16916         since they're nothing more than X/Left and Y/Top, respectively.
16917
16918         Also, move back to a per-control Bitmap/Graphics for
16919         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
16920         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
16921         Height.
16922
16923 2006-12-25  Miguel de Icaza  <miguel@novell.com>
16924
16925         * MessageBox.cs: Implemented overload that takes a new "bool
16926         displayHelpButton" by adding a new internal field "show_help".
16927         When clicked this will raise the HelpRequested on the owner or the
16928         main form. 
16929
16930         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
16931         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
16932
16933         * ListView.cs: Add support ColumnWidthChanged and
16934         ColumnWidthChanging. 
16935
16936         Add support for ColumnReordered event.
16937         (ReorderColumn): Add NET_2_0 specific support for cancelling the
16938         reorder.
16939
16940         Very nice codebase!
16941
16942         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
16943
16944         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
16945
16946 2006-12-24  Chris Toshok  <toshok@ximian.com>
16947
16948         * GridTablesFactory.cs: 2.0 corcompare work.
16949
16950         * ToolStripContainer.cs: add "override" to
16951         ContextMenuStripChanged, and remove the local event object.
16952
16953         * ToolStripDropDown.cs: same with a couple properties.
16954
16955         * ToolStripPanel.cs: same with AutoSizeChanged event.
16956
16957         * TextBoxBase.cs: add "override" to AutoSizeChanged.
16958
16959         * Form.cs: add the remaining 2.0 events, and do some corcompare
16960         attribute work.
16961
16962         * DateTimePicker.cs: add "new" to padding.
16963
16964         * ButtonBase.cs: use Control's use_compatible_text_rendering.
16965
16966         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
16967
16968         * DataGridView.cs: PaddingChanged is overridden.
16969
16970 2006-12-24  Chris Toshok  <toshok@ximian.com>
16971
16972         * Control.cs: corecompare work here too.
16973
16974         * DataGridViewElement.cs, DataGridView.cs,
16975         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
16976         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
16977         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
16978         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
16979         work.
16980
16981 2006-12-24  Miguel de Icaza  <miguel@novell.com>
16982
16983         * Control.cs: Switched the error message on the console for a
16984         todo.  A review of the code will have to cope with this anyways
16985         (since its a large feature, it is in our radar) and it was
16986         producing too much output when running PDN.
16987
16988         * ToolStripComboBox.cs: Set the text when the SelectedIndex
16989         changes.  Applications depend on this (PDN 2.72)
16990
16991 2006-12-23  Chris Toshok  <toshok@ximian.com>
16992
16993         * TableLayoutSettings.cs: finish up the corcompare work for this
16994         class.
16995
16996 2006-12-23  Chris Toshok  <toshok@ximian.com>
16997
16998         * Control.cs: make SetImplicitBounds internal, do some futzing
16999         with LayoutEngine so that it's available in 1.1, and remove the
17000         entire duplicated code mess from PerformLayout.  Use
17001         System.Windows.Forms.Layout.DefaultLayout instead.
17002
17003         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
17004
17005 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
17006
17007         * Form.cs: Add MainMenuStrip property.
17008
17009 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
17010
17011         * Control.cs: Add ContextMenuStrip property and implementation.
17012         Fix ContextMenu implementation to show menu centered on control when
17013         activated using the keyboard instead of showing at screen (0,0).
17014
17015         * ToolStripDropDown.cs: Fix needed overload of Show ().
17016
17017 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17018
17019         * Menu.cs: Name property added for 2.0 profile.
17020         
17021 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17022
17023         * Menu.cs: Update information about FindMenuItem, method to be
17024         implemented soon.
17025
17026 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17027
17028         * MenuAPI.cs: When deselect items deselect also selected subitems.
17029         
17030 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
17031
17032         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
17033         FindSubItemByCoord to found itens that is not active, also an
17034         cheking added to FindSubItemByCoord to search for items only 
17035         in visible popup windows. Fixes #80274.
17036
17037 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
17038
17039         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
17040         internal property, it be care about change ExStyle. 
17041
17042 2006-12-22  Andreia Gaita  <avidigal@novell.com>
17043
17044         * ContainerControl.cs: set activeControl for parent forms up the 
17045         tree when the new activecontrol is a container.
17046         When validating the active control, if it is a container, also
17047         raise up the validation for it's active control. Fixes #80280
17048         
17049         * Control.cs: Add internal property flag and check to prevent
17050         Focus events from getting raised when Select() is called for
17051         a ContainerControl. There are still too many focus events being
17052         raised at the moment though.
17053         Cleaned up the code a bit.
17054
17055 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17056
17057         * Control.cs: Added all missing 2.0 events.and
17058         fixed a couple of corcompare issues.
17059         * TrackBar.cs: Implemented missing 2.0 bits.
17060         * MonthCalendar.cs, 
17061         * DateTimePicker.cs, 
17062         * MdiClient.cs: Fixed some corcompare issues.
17063
17064 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
17065
17066         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
17067         SplitterPanel.cs: corecompare work.
17068
17069 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
17070
17071         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
17072         Clean up warnings for BackgroundImageChanged and PaddingChanged
17073         events now that they are implemented in Control.cs.
17074
17075 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
17076
17077         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
17078         
17079         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
17080         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
17081         of TableLayoutPanel and supporting cast.
17082
17083 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17084
17085         * XplatUIWin32.cs: 
17086         - GrabWindow now confines the mouse pointer to the confine window.
17087         - Added Win32ClipCursor and Win32GetClipCursor.
17088
17089         * Control.cs: 
17090         - Added CaptureWithConfine to be able to capture and confine 
17091         mouse pointer.
17092         
17093         * InternalWindowManager.cs: 
17094         - Call CaptureWithConfine instead of Capture if we're an
17095         MdiChild (fixes #79982).
17096
17097 2006-12-21  Chris Toshok  <toshok@ximian.com>
17098
17099         * DataGrid.cs: guard against the initial state of selection, where
17100         selection_start == -1.  make sure we only select from index >= 0.
17101         Fixes bug #80291.
17102
17103 2006-12-21  Chris Toshok  <toshok@ximian.com>
17104
17105         * Control.cs: we don't need to be so draconian with
17106         UpdateDistances, and we thusly don't need to call it before
17107         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
17108
17109 2006-12-21  Daniel Nauck  <dna@mono-project.de>
17110
17111         * ComboBox.cs,
17112         TextBox.cs: Implemented AutoComplete properties.
17113
17114 2006-12-20  Chris Toshok  <toshok@ximian.com>
17115
17116         * DataGridView*.cs: some corecompare work.
17117
17118 2006-12-20  Jackson Harper  <jackson@ximian.com>
17119
17120         * XplatUIX11.cs: We need to hide the caret when deleting it,
17121         otherwise you get carets left lying around everywhere.
17122         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
17123         prevents getting some weird half drawn caret tracers when
17124         scrolling.
17125         * TextControl.cs: Attempt to reduce the number of times we need to
17126         recreate the caret.
17127
17128 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
17129
17130         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
17131
17132 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17133
17134         * DateTimePicker.cs:
17135         - Implemented missing 2.0 bits.
17136         - Changed some default values to match MS.
17137         
17138 2006-12-20  Jackson Harper  <jackson@ximian.com>
17139
17140         * TextBoxBase.cs: When changing the font across the document we
17141         can't recalculate after changing each line, since that will cahnge
17142         the line count.
17143         - PreferredHeight is a little different than i thought.
17144         - When backspacing, move the caret before we do the actual char
17145         delete, because when that delete crosses a wrap boundary the
17146         positional information will change.
17147
17148 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17149
17150         * Control.cs: Added some missing 2.0 bits: 
17151         BackgroundImageLayout, BackgroundImageLayoutChanged, 
17152         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
17153         add IBindableComponent and IDropTarget implementation.
17154         
17155         * MonthCalendar.cs: 
17156         - Added all missing 2.0 features:
17157         BackgroundImageLayout, RightToLeftLayout, 
17158         OnHandleDestroyed, RightToLeftLayoutChanged, 
17159         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
17160         PaddingChanged.
17161         - Rewrote all the BoldDate code, it was completely broken.
17162         - Fixed all the tests (the tests can now be re-enabled, the
17163         problems were not with the tests, but with the control, it was
17164         mostly broken).
17165         
17166         * DateTimePicker.cs: Changed the location where the 
17167         MonthCalendar is shown.
17168         
17169 2006-12-19  Chris Toshok  <toshok@ximian.com>
17170
17171         * DataGridView.cs: add IDropTarget implementation.
17172
17173         * ToolStripPanel.cs: add IDropTarget implementation.
17174
17175 2006-12-19  Jackson Harper  <jackson@ximian.com>
17176
17177         * TextControl.cs: soft now means something different than what it
17178         used to mean, we want to move the caret regardless of whether or
17179         not this break was soft (would we really have wanted the caret
17180         to not move with the break in the old context?)
17181         * TreeView.cs: Make sure we factor in the vert scrollbar when
17182         calculating the horizontal scrollbar's maximum.
17183
17184 2006-12-19  Andreia Gaita  <avidigal@novell.org>
17185
17186         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
17187         check for keywords in alternate casing, close bug #80049.
17188
17189 2006-12-19  Chris Toshok  <toshok@ximian.com>
17190
17191         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
17192         methods (which all do nothing).
17193
17194         * IDropTarget.cs: add the 4 missing methods.
17195
17196 2006-12-19  Chris Toshok  <toshok@ximian.com>
17197
17198         * TableLayoutRowStyleCollection.cs: corcompare work.
17199         
17200         * TableLayoutSettings.cs: same.
17201
17202         * TableLayoutStyle.cs: same.
17203
17204         * TableLayoutColumnStyleCollection.cs: same.
17205
17206 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
17207
17208         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
17209         TableLayoutPanel I've had in my local tree for way too long.
17210
17211 2006-12-19  Miguel de Icaza  <miguel@novell.com>
17212
17213         * TableLayoutSettings.cs: Finish the public API (still needs all
17214         the logic to update on changes). 
17215
17216         * TableLayoutPanelCellPosition.cs: new file.
17217         
17218         * TableLayoutRowStyleCollection.cs,
17219         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
17220         TableLayoutSettings.cs: Track the final 2.0 table api.
17221
17222 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17223
17224         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
17225         and Image List 2.0 members for ColummnHeader.
17226         * ListView.cs: Add key-related 2.0 methods for
17227         ColumnHeaderCollection.
17228
17229 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
17230
17231         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
17232         ArgumentNullException if items argument is null. Ignore null item in
17233         arrays. Removed extra tabs.
17234
17235 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
17236
17237         * MonthCalendar.cs: Fixed InvalidCastException.
17238
17239 2006-12-19  Jackson Harper  <jackson@ximian.com>
17240
17241         * TextControl.cs: Don't increment the position here.
17242         - When calculating char positions only add in the line break size
17243         for hard line breaks.
17244
17245 2006-12-19  Andreia Gaita  <avidigal@novell.org>
17246
17247         * SendKeys.cs: Changed some things to match ms.net behaviour
17248         when parsing shifted capital letters.
17249         
17250         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
17251         Add window handle as parameter to SendInput. X11 needs the 
17252         window handle, and the handle being passed      to it in the keys 
17253         queue is the active control handle (which windows needs), not 
17254         the window handle.
17255         
17256         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
17257         to support SendKeys on X.       
17258         
17259         * X11Keyboard: Implement helper method to lookup a linux keycode
17260         given the virtual keycode. Added table of keycode-2-virtualkey
17261         values to support this.
17262
17263 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17264
17265         * ListView.cs: Add support for SelectedIndexCollection
17266         and SelectedItemCollection 2.0 methods. Implement support
17267         for ImageKey too.
17268         * ListViewItem.cs: Add support for ListViewSubItemCollection
17269         2.0 methods. Also, fix an incorrect behavior of AddRange method
17270         (it shouldn't call Clear).
17271         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
17272
17273 2006-12-19  Jackson Harper  <jackson@ximian.com>
17274
17275         * RichTextBox.cs: 
17276         * TextBoxBase.cs: New args for FormatText
17277         * TextControl.cs: Rewrote the main drawing method, this version
17278         feels a little easier to understand and debug to me.  Hopefully it
17279         does to others also
17280         - Fix FormatText to OR in the new formating values.  Added
17281         FormatSpecified param, basically this works in the same way as
17282         BoundsSpecified in Control.
17283         - Set the caret properties when the caret is positioned.
17284         - When wrapping text make sure that we calculate the width of the
17285         last character
17286         - when calculating alignments we might have wrapped down to the
17287         next line, so don't search for an individual tag, search for the
17288         end of the line
17289         - We need to invalidate the selection area when we replace the
17290         selection.
17291         
17292 2006-12-19  Daniel Nauck  <dna@mono-project.de>
17293
17294         * Application.cs: add Restart () 2.0 support
17295
17296 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
17297
17298         * MenuItem.cs: Invalidate menu item rectangle after change Enable
17299         property. Fixes #80268.
17300         
17301 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
17302
17303         * MenuAPI.cs: Dont trigger select event when closes top menu
17304         item. Fixes #80270.
17305
17306 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
17307
17308         * MenuAPI.cs: When you click on menuitem only trigger onselect
17309         event for top menu itens. Fixes #80271.
17310         
17311 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17312
17313         * MdiWindowManager.cs: Make IconicBounds depend on
17314         the bottom of MdiClient, not the top (fixes #80267)
17315         
17316 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17317
17318         * MdiClient.cs: Added missing 2.0 attribute
17319
17320 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17321
17322         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
17323         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
17324
17325 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
17326
17327         * MenuAPI.cs: Fix click when menuitem is not popup,
17328         this regression was caused by last commit (#80272).
17329
17330 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
17331
17332         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
17333         fire click event or close menu. Fixes #80272.
17334
17335 2006-12-17  Daniel Nauck  <dna@mono-project.de>
17336
17337         * ListViewHitTestInfo.cs: add
17338
17339 2006-12-17  Daniel Nauck  <dna@mono-project.de>
17340
17341         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
17342         * FlatButtonAppearance.cs: add
17343         * DockingAttribute.cs: add
17344
17345 2006-12-17  Chris Toshok  <toshok@ximian.com>
17346
17347         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
17348         and rebind our columns when it does - this way, if you make
17349         changes to the DataTable (or set the Table attribute on a DataView
17350         after setting it as the DataGrid's DataSource, the changes are
17351         made visible.)  Fixes bug #80107.
17352
17353 2006-12-17  Daniel Nauck  <dna@mono-project.de>
17354
17355         * ListViewGroup.cs: add internal Location property for layouting.
17356         * Theme.cs: add abstract ListViewGroupHeight function.
17357         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
17358
17359 2006-12-16  Andreia Gaita  <avidigal@novell.com>
17360
17361         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
17362         Added reset of selected index to 0 when adding first tab page.
17363         Fixes #80264
17364         
17365         * NumericUpDown.cs: Fix NET_2_0 check
17366
17367 2006-12-16  Daniel Nauck  <dna@mono-project.de>
17368
17369         * ListViewGroup.cs: fixed DefaultValueAttribute value
17370
17371 2006-12-16  Daniel Nauck  <dna@mono-project.de>
17372
17373         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
17374
17375 2006-12-15  Miguel de Icaza  <miguel@novell.com>
17376
17377         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
17378         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
17379         ScrollableControl.cs: Add a handful of methods that are
17380         overwritten in 2.0 
17381
17382 2006-12-15  Chris Toshok  <toshok@ximian.com>
17383
17384         * XplatUIWin32.cs: initial implementation of the Reversible
17385         drawing functions.  there are some problems.  DrawReversibleFrame
17386         doesn't seem to work at all for Dashed FrameStyle, and in the
17387         Thick case there are drawing errors at the corners (we probably
17388         need to bind Rectangle instead of doing moveto/lineto's.)
17389
17390 2006-12-16  Andreia Gaita  <avidigal@novell.com>
17391         
17392         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
17393         to send blocks of key messages. Send accumulates keys to send with Flush, 
17394         while SendWait sends all keys immediately.
17395                 
17396         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
17397         XplatUIX11.cs,  XplatUIX11-new.cs:
17398         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
17399         to Win32 SendInput.
17400         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
17401         
17402         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
17403         testing for ms.net on this class is very tricky, as the tests run too fast 
17404         to allow the hook to release, essentially freezing the keyboard and the 
17405         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
17406         category :p
17407
17408 2006-12-16  Daniel Nauck  <dna@mono-project.de>
17409
17410         * Padding.cs: fixed serialization compability to MS ("_var" field names),
17411                         added missing attributes.
17412  
17413 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17414
17415         * ListViewGroup.cs: Added missing attributes.
17416         * ListViewGroupCollection.cs: Added missing attributes.
17417
17418 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17419
17420         * ListViewItem.cs: fixed ListViewSubItem text property.
17421
17422 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17423         
17424         * Control.cs: Added missing 2.0 attributes
17425         
17426 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17427         
17428         * MdiClient.cs: Added missing 2.0 attribute.
17429         * MonthCalendar.cs: Added some missing 2.0 attributes 
17430         and properties.
17431         
17432 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17433
17434         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
17435
17436 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
17437
17438         * MainMenu.cs: Add the new 2.0 constructor to help out people
17439         using the MainMenu in VS2005.
17440
17441 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17442         
17443         * MdiChildContext.cs: Removed it, no longer used.
17444         * MdiClient.cs: Added missing 2.0 attributes.
17445         
17446 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17447         
17448         * InternalWindowManager.cs: Fix a NullRef with previous 
17449         changes for toolwindows.
17450         
17451 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17452
17453         * Control.cs: 
17454         - Added AfterTopMostControl to allow for certain controls 
17455         to always stay on top when normal controls are brought to 
17456         front.
17457         
17458         * XplatUIWin32.cs: 
17459         - (DrawInversibleRectangle): Get window rectangle from Win32 
17460         in stead of from control, since Win32 doesn't calculate
17461         screen coords correctly from control's Location if it 
17462         have docked siblings.
17463         
17464         * MdiWindowManager.cs:
17465         - Correct the control menu popup location when clicked on
17466         the maximized form icon. (fixes #80223.1)
17467         - Don't show moving rectangle if mouse hasn't moved from
17468         the original clicked point.
17469         - Removed FormGotFocus handler (not used).
17470         - Calculate the control buttons location from the main
17471         window's size and not client size (fixes #79770).
17472         - Form is now closed when the form icon is double-clicked
17473         (fixes #79775). 
17474         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
17475         
17476         * InternalWindowManager.cs:
17477         - Moved some MDI-only methods to MdiWindowManager.
17478         - Removed unused properties and methods.
17479         - Unified method naming for methods handling wm messages.
17480         - Moved all message handling to seperate methods for
17481         each message.
17482         
17483         * ThemeWin32Classic.cs:
17484         - DrawManagedWindowDecorations now draws the title bar 
17485         with a gradient brush.
17486         - Add a CPDrawButtonInternal that allows us to specify
17487         light, normal and dark colors for the buttons (control 
17488         buttons for MDI children were drawn with the same light
17489         color as the background, therefore loosing the 3D effect).
17490         
17491         * SizeGrip.cs:
17492         - Add a CapturedControl property that is used to 
17493         determine the control to resize (defaults to parent). 
17494         Needed for MdiClient, since its SizeGrip's parent is
17495         MdiClient, but the control to resize is the main form.
17496         
17497         * MdiClient.cs:
17498         - Set SizeGrip's CapturedControl to the main form in order
17499         to resize the main form and not the MdiClient.
17500         - Override AfterTopMostControl to leave the scrollbars 
17501         always on top.
17502
17503 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17504
17505         * ListView.cs: fixed ListViewItemCollection AddRange and
17506                         implemented ListViewItemCollection AddRange 2.0 support.
17507
17508 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17509
17510         * ListViewGroup.cs: Add.
17511         * ListViewGroupCollection.cs: Add
17512         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
17513         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
17514                                 stub for ImageKey 2.0 support.
17515
17516 2006-12-14  Mike Kestner  <mkestner@novell.com>
17517
17518         * ListView.cs: add text padding to the autocalculation for columns
17519         of width -2.  Fixes #80207.
17520  
17521 2006-12-14  Mike Kestner  <mkestner@novell.com>
17522
17523         * ListView.cs: add some index guarding for partial row navigation 
17524         logic.  Fixes #80250.
17525
17526 2006-12-14  Mike Kestner  <mkestner@novell.com>
17527
17528         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
17529         are added or inserted to the collection.  Fixes #81099.
17530
17531 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
17532
17533         * MenuAPI.cs: Closes menu when right click out side of popup
17534         it fix problem in ContextMenu and MainMenu. Fixes #80252.
17535
17536 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17537
17538         * ListViewItem.cs: Fix dumb error.
17539
17540         * ListView.cs: Add Find and ContainsKey methods in 
17541         ListViewItemCollection, and also return true for IsReadOnly
17542         and IsFixedSize (changes for 2.0). 
17543
17544 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
17545
17546         * Control.cs: Allow Region to be set to null.
17547
17548 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17549
17550         * MdiWindowManager.cs: Remove unused (commented out) code.
17551         * Form.cs: When the MdiChild is maximized, the form needs 
17552         WM_NCMOUSELEAVE, so request it.
17553         * InternalWindowManager.cs: 
17554         - Added tooltips to control buttons.
17555         - Removed duplicated control button handling code.
17556         - Removed unused (commented out) code.
17557         
17558 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
17559
17560         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
17561         was used because we must set cursor without trigger ChangeCursor event
17562         and without change Cursor control property. Fixes #79963.
17563
17564 2006-12-12  Andreia Gaita  <avidigal@novell.com>
17565         
17566         * Control.cs: Check if Region setter value is null, and ignore
17567
17568 2006-12-12  Jackson Harper  <jackson@ximian.com>
17569
17570         * TextControl.cs: We were almost always drawing one more line then
17571         needed, since the GetLineByPixel will return the last line found
17572         at that pixel. In most cases though, we were invalidating up to
17573         the junction between two lines.
17574         - Improve debug code.
17575
17576 2006-12-12  Chris Toshok  <toshok@ximian.com>
17577
17578         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
17579         and FillReversibleRectangle.
17580
17581         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
17582         and FillReversibleRectangle.
17583
17584         * XplatUIWin32.cs: add stubs which do nothing for
17585         DrawReversibleFrame, DrawReversibleLine, and
17586         FillReversibleRectangle.
17587
17588         * XplatUIOSX.cs: add stubs which raise NIE for
17589         DrawReversibleFrame, DrawReversibleLine, and
17590         FillReversibleRectangle.
17591
17592         * XplatUIX11.cs: add working implementation for
17593         DrawReversibleFrame, DrawReversibleLine, and
17594         FillReversibleRectangle.
17595         
17596         * ControlPaint.cs: implement DrawReversibleFrame,
17597         DrawReversibleLine, and FillReversibleRectangle, by calling into
17598         the appropriate XplatUI method.
17599
17600 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17601
17602         * Form.cs: Make MdiClient have the focus even if it's
17603         not selectable, since it should receive WM_KEY* and WM_MOUSE 
17604         messages. Fixes #79907.
17605         
17606 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17607
17608         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
17609         queried after the window is created.
17610         
17611         * XplatUIX11.cs: Added SendParentNotify to implement 
17612         WM_PARENTNOTIFY logic. Fixes #79965.
17613         
17614         * Control.cs: Added MakeParam.
17615         
17616 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17617
17618         * MdiClient.cs: Resume Layout before setting window
17619         states (fixes #80201).
17620
17621 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17622
17623         * MenuAPI.cs: Deselect a menu item after performing
17624         the click (fixes #80197).
17625
17626 2006-12-11  Jackson Harper  <jackson@ximian.com>
17627
17628         * TextBoxBase.cs: We need to cap this value, since Maximum -
17629         ViewPortHeight can be less than zero.
17630         - Only do selection with the left mouse button.
17631         * TextBox.cs: Don't tell the world that we have a context menu.
17632         * Control.cs: New method so that we can control whether or not the
17633         context menu is visible outside MWF.
17634
17635 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
17636
17637         * ToolBarButton.cs: Fix text positon. 
17638
17639 2006-12-11  Miguel de Icaza  <miguel@novell.com>
17640
17641         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
17642
17643         * Control.cs (DoubleBuffered): Add implementation.
17644
17645         * Application.cs (OpenForms): Add.
17646
17647 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
17648
17649         * Form.cs: Use opacity instead of Opactiy to determine if we need
17650         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
17651
17652 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
17653
17654         * Control.cs: Fix NRE if Control.Site was set to null.
17655
17656 2006-12-11  Chris Toshok  <toshok@ximian.com>
17657
17658         * Control.cs: ControlCollection.Remove should return if the arg is
17659         null, and ControlCollection.SetChildIndex should raise a ANE.
17660
17661 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
17662
17663         * Control.cs: Verify value set for Dock property. Code formatting
17664         updates.
17665
17666 2006-12-11  Jackson Harper  <jackson@ximian.com>
17667
17668         * TextControl.cs: Draw the caret and the selection when a flag is
17669         set on the owner.
17670         * TextBoxBase.cs: We want to draw the caret and the selection for
17671         TextBox but not for TextBoxBase.
17672         - If the window is resized and scrolling is no longer needed (the
17673         whole doc is visible) set the scroll position to zero.
17674         - The default SelectWord (the one TextBox uses) should move the
17675         caret to the end of the word.
17676         - SelectAll moves the caret to the end of the selection.
17677         * TextBox.cs: We don't selectall on focus, we just do it when the
17678         control is created.
17679         
17680 2006-12-11  Mike Kestner  <mkestner@novell.com>
17681
17682         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
17683
17684 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17685
17686         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
17687         2.0 support.
17688         * ListViewItem.cs: Add Name 2.0 property.
17689
17690 2006-12-11  Andreia Gaita  <avidigal@novell.com>
17691
17692         * TabControl.cs: Set visibility on selected or default tab 
17693         when tabcontrol handle is created, so that it's contents
17694         actually show up (duh). Fixes #80193
17695         Don't redraw the control if there is no handle created, as
17696         the selected index might be completely invalid. Added some tests
17697         to check for this.
17698
17699 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
17700
17701         * ToolBar.cs: Uses maximun width and height of all buttons as 
17702         button rectangle when ButtonSize specified, it looks strange but
17703         is what happens in Win32. Fixes #80189.
17704
17705 2006-12-11  Jackson Harper  <jackson@ximian.com>
17706
17707         * TextControl.cs: Need to track undo levels ourself, since
17708         compound actions will mess them up.
17709
17710 2006-12-10  Andreia Gaita  <avidigal@novell.com>
17711
17712         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
17713         SelectedIndex value is changed (even if it's not valid).
17714         Reset SelectedIndex to 0 when the handle is created and if
17715         the current index is invalid.
17716         Fixes SelectdeIndex unit tests and #80128
17717
17718 2006-12-08  Chris Toshok  <toshok@ximian.com>
17719
17720         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
17721         calls EndEdit, it needs to be called before we set current_cell to
17722         its new value.  Otherwise, we end up committing the value in the
17723         textbox to the new cell as well.  Fixes bug #80160.
17724
17725 2006-12-08  Chris Toshok  <toshok@ximian.com>
17726
17727         * Form.cs (set_CancelButton): if the button's DialogResult is
17728         None, set it to Cancel.  Fixes bug 80180.
17729
17730 2006-12-08  Jackson Harper  <jackson@ximian.com>
17731
17732         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
17733         to watch ourselves when setting the canvas size and setting the
17734         scrollbar values.
17735
17736 2006-12-08  Chris Toshok  <toshok@ximian.com>
17737
17738         * DataGrid.cs: comment out the two MakeTransparent calls for the
17739         time being so people using trunk (and not 1.2.2) on windows can
17740         actually use the datagrid.  This deals with bug #80151.
17741
17742 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
17743
17744         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
17745         Graphics.DrawImage (image, int, int, int, int) overload instead
17746         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
17747         the dpi difference and was blurring images it drew.
17748         [Fixes bug #79960]
17749
17750 2006-12-08  Chris Toshok  <toshok@ximian.com>
17751
17752         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
17753         rowcnt is 0 (such as with an empty datasource), and make sure we
17754         initialize not_usedarea.Y to cells.Y, so we don't draw over the
17755         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
17756
17757 2006-12-08  Chris Toshok  <toshok@ximian.com>
17758
17759         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
17760         grid.
17761
17762 2006-12-08  Chris Toshok  <toshok@ximian.com>
17763
17764         [ Fixes bug #80167 ]
17765         
17766         * ThemeWin32Classic.cs: don't draw the image if the button's flat
17767         style is FlatStyle.System.
17768
17769         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
17770         ButtonBase.flat_style private, and switch uses of it to the public
17771         property.
17772         
17773 2006-12-08  Chris Toshok  <toshok@ximian.com>
17774
17775         [ Fixes bug #80121 ]
17776         
17777         * ThemeWin32Classic.cs: center the caption text in the datagrid
17778         when we draw it.
17779
17780         * DataGrid.cs: lessen the amount we add to the caption height from
17781         6 to 2.  6 was making it huge.
17782
17783 2006-12-08  Andreia Gaita  <avidigal@novell.com>
17784
17785         * UpDownBase: Handle MouseWheel call directly instead of capturing
17786         the inner textbox's OnMouseWheel. Fixes #80166
17787
17788 2006-12-08  Jackson Harper  <jackson@ximian.com>
17789
17790         * TextControl.cs: We need to invalidate the textbox when we empty
17791         it (how had this not been discovered before?)
17792
17793 2006-12-08  Jackson Harper  <jackson@ximian.com>
17794
17795         * TextBoxBase.cs: Reworked the mouse down code so I could get it
17796         to behave like MS, we now ignore the eventargs.Click and just
17797         track state ourself, which we were already doing anyways.
17798         - Constrain the double click handler to the double click size.
17799         
17800 2006-12-08  Chris Toshok  <toshok@ximian.com>
17801
17802         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
17803         direction if that scrollbar isn't shown.  fixes bug #80158.
17804
17805 2006-12-08  Andreia Gaita  <avidigal@novell.com>
17806
17807         * NumericUpDown.cs: Update value on getter. Fixes #79950
17808
17809 2006-12-08  Chris Toshok  <toshok@ximian.com>
17810
17811         * MenuItem.cs: add back in the event cloning code.  I didn't know
17812         how to do it in the face of the EventHandlerList work i'd done
17813         last week.  Fixes bug #80183.
17814
17815 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
17816
17817         * Control.cs: Add an invalidate to the BackgroundImage setter.
17818         [Fixes 80184]
17819
17820 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
17821
17822         * ToolStrip*: Add some small properties reported by MoMA, fix event
17823         firing and default properties based off of unit tests, and add some
17824         attributes based off of the class status page.
17825
17826 2006-12-07  Jackson Harper  <jackson@ximian.com>
17827
17828         * TextBoxBase.cs: Take HideSelection into account when determining
17829         whether or not to show the selection.
17830         * RichTextBox.cs: After inserting the RTF into the document move
17831         the cursor to the beginning of the document.
17832
17833 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
17834
17835         * Control.cs: Remove static ArrayList "controls" which maintained
17836         a reference to every control created.
17837         * Application.cs: Create a static FormCollection to maintain a reference
17838         to every form created.  Use it in places that formerly enumerated through
17839         the controls one looking for forms.
17840         * Form.cs: Add and remove self from above FormCollection.
17841
17842 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
17843
17844         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
17845           not libgdk (though it makes me wonder why I didn't have any
17846           problems)
17847
17848 2006-12-07  Chris Toshok  <toshok@ximian.com>
17849
17850         [ you had to know this was coming after that last commit...]
17851         
17852         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
17853         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
17854         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
17855         XCopyArea).
17856
17857 2006-12-07  Chris Toshok  <toshok@ximian.com>
17858
17859         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
17860         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
17861         all the behavior we need for double buffering.
17862
17863         * XplatUIDriver.cs: implement the 3 double buffer methods using a
17864         client side Bitmap, just like the old Control-based double buffer
17865         code did.  The methods are virtual, so each XplatUI driver
17866         subclass can replace the implementation to use a faster, platform
17867         specific approach.
17868
17869         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
17870         double buffer code, and clean things up a bit in the process.
17871
17872 2006-12-06  Chris Toshok  <toshok@ximian.com>
17873
17874         * Control.cs: reindent WndProc.
17875
17876 2006-12-06  Chris Toshok  <toshok@ximian.com>
17877
17878         [ I wanna be like BenM when I grow up ]
17879         
17880         * Hwnd.cs: create a single static Graphics object on the static
17881         Bitmap we create.  use this for our text measurements.
17882
17883         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
17884         This was causing us to allocate a backbuffer for every control,
17885         even when it wasn't flagged as double buffered.  Instead use the
17886         single graphics instance.  This might have implications for
17887         multithreaded applications.  If we run into problems we can switch
17888         to creating 1 Graphics per control, on the static Hwnd bitmap.
17889
17890         this change nets us a 7M savings in private dirty mappings when
17891         running FormsTest.exe.
17892
17893 2006-12-06  Chris Toshok  <toshok@ximian.com>
17894
17895         * ListView.cs: the BackgroundImage override is just to set
17896         attributes.  chain up to base.BackgroundImage.
17897
17898         * RichTextBox.cs: same.
17899
17900         * ToolBar.cs: same, but we need to also redraw the toolbar when it
17901         changes, so instead a handler for BackgroundImageChanged.
17902         
17903         * Control.cs: make background_image private.
17904
17905 2006-12-06  Chris Toshok  <toshok@ximian.com>
17906
17907         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
17908         sure we even need this assignment, but roll with it for now.
17909
17910         * Control.cs: make the cursor field private.
17911
17912 2006-12-06  Chris Toshok  <toshok@ximian.com>
17913
17914         * Form.cs: we don't need to explicitly set ImeMode to
17915         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
17916         behavior in the face of ImeMode.Inherit.
17917
17918         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
17919         change the ctor's assignment to use ImeMode instead of ime_mode.
17920
17921         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
17922         ImeModeInherit.  Only check for the parent's imemode (and return
17923         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
17924         This fixes the button unit test, which sets both ImeMode and
17925         DefaultImeMode to ImeMode.Disable.
17926
17927         also make the ime_mode field private.
17928
17929 2006-12-06  Chris Toshok  <toshok@ximian.com>
17930
17931         * Control.cs: make control_style private.
17932
17933         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
17934         setting the styles to true, then setting them to false instead of
17935         reverting to their previous values.
17936
17937         also, call SetStyle on the scrollbars instead of using
17938         control_style directly.
17939
17940 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
17941
17942         * FormCollection.cs: Implement. [2.0]
17943
17944 2006-12-06  Chris Toshok  <toshok@ximian.com>
17945
17946         * Control.cs: make tab_stop private.
17947
17948         * Label.cs: set TabStop, not tab_stop.  reformat some event
17949         add/remove methods to make them more compact.
17950
17951 2006-12-06  Chris Toshok  <toshok@ximian.com>
17952
17953         * RadioButton.cs: fix TabStop handling.
17954
17955 2006-12-06  Chris Toshok  <toshok@ximian.com>
17956
17957         * TextBox.cs: remove the explicit assignments to has_focus.
17958         Control does that.
17959
17960         * ButtonBase.cs: remove the assignment to has_focus.  Control will
17961         manage that.
17962         
17963 2006-12-06  Chris Toshok  <toshok@ximian.com>
17964
17965         * ButtonBase.cs: remove all uses of is_enabled from this code.
17966         it's always true when any of the code containing the checks is
17967         executed.
17968
17969 2006-12-06  Chris Toshok  <toshok@ximian.com>
17970
17971         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
17972         with different semantics (some are present in both 1.1 and 2.0
17973         profiles) so that we match MS's behavior in our unit tests.
17974
17975 2006-12-06  Jackson Harper  <jackson@ximian.com>
17976
17977         * TextControl.cs: Make this operation undoable.
17978         * TextBoxBase.cs: Factor the border width into the preferred
17979         height.
17980         - implement Modified as per the spec.
17981
17982 2006-12-06  Chris Toshok  <toshok@ximian.com>
17983
17984         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
17985
17986 2006-12-06  Chris Toshok  <toshok@ximian.com>
17987
17988         * Control.cs: make right_to_left and context_menu fields private.
17989
17990 2006-12-06  Chris Toshok  <toshok@ximian.com>
17991
17992         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
17993         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
17994         Control.child_controls private.  switch all uses over to
17995         Control.Controls.
17996
17997 2006-12-06  Chris Toshok  <toshok@ximian.com>
17998
17999         * System.Windows.Forms/GroupBox.cs,
18000         System.Windows.Forms/AccessibleObject.cs,
18001         System.Windows.Forms/ErrorProvider.cs,
18002         System.Windows.Forms/Control.cs,
18003         System.Windows.Forms/UpDownBase.cs,
18004         System.Windows.Forms/ScrollBar.cs,
18005         System.Windows.Forms/DateTimePicker.cs,
18006         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
18007         System.Windows.Forms/ToolTip.cs,
18008         System.Windows.Forms/RadioButton.cs,
18009         System.Windows.Forms/LinkLabel.cs,
18010         System.Windows.Forms/Splitter.cs,
18011         System.Windows.Forms/TextBoxBase.cs,
18012         System.Windows.Forms/ToolStripTextBox.cs,
18013         System.Windows.Forms/ContainerControl.cs,
18014         System.Windows.Forms/ThemeWin32Classic.cs,
18015         System.Windows.Forms/SizeGrip.cs,
18016         System.Windows.Forms/ToolStripDropDown.cs,
18017         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
18018         private.  switch all uses over to Control.Parent.
18019
18020 2006-12-06  Chris Toshok  <toshok@ximian.com>
18021
18022         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
18023         Control does this before calling emitting these events.
18024
18025         * TabControl.cs: same.
18026
18027         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
18028         Control.client_rect.
18029
18030         * ButtonBase.cs: use the ClientSize property instead of the
18031         client_size field.
18032
18033         * ScrollableControl.cs: same.
18034
18035         * Control.cs: another pass at making properties private.  also,
18036         move the initialization of tab_stop to the ctor.
18037
18038 2006-12-05  Andreia Gaita <avidigal@novell.com>
18039
18040         * TabControl.cs: Let the selected index be set freely if the 
18041         control handle is not yet created.
18042
18043 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
18044
18045         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
18046         internal until I can rewrite DefaultLayout.
18047         * ToolStrip.cs: Fix build error and some general cleaning.
18048         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
18049         Fix build errors caused by making some of Control's fields private.
18050
18051 2006-12-05  Jackson Harper  <jackson@ximian.com>
18052
18053         * TextControl.cs: Redo Insert a little so that it use IndexOf
18054         instead of Split, this prevents it from messing up on things like
18055         \n\n\n. Also more effecient since the split array doesn't need to
18056         be created.
18057         * TextBoxBase.cs: AppendText doesnt handle multiline and non
18058         multiline text differently, this is the first of many fixes that
18059         will make multiline/non-multiline the same thing as far as the
18060         TextBoxBase is concerned.
18061         - Don't split the text and insert lines, this can lose some line
18062         endings (like is the last line a soft or hard break). Instead use
18063         the new Insert.
18064         - Fix an off by one when combining all the lines in the Text
18065         getter.
18066         - Remove separate multiline handling from the Text getter/setter.
18067
18068 2006-12-05  Chris Toshok  <toshok@ximian.com>
18069
18070         * ButtonBase.cs: a few changes:
18071
18072         - don't reinitialize internal Control fields in the ctor when they
18073         have the same values as Control sets them.
18074
18075         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
18076         this before calling those methods.
18077
18078         - we don't need to call Refresh for anything.  use Invalidate
18079         instead.
18080
18081         - OnEnabledChanged doesn't need to redraw at all - Control.cs
18082         calls Refresh in its OnEnabledChanged.
18083         
18084         - several of the events we were registered for in the ctor to
18085         redraw ourselves already include calls to Invalidate in the
18086         property setters that raise the events.  remove the extra
18087         invalidation.
18088
18089         - reformat a switch statement that was 83274658 columns wide.
18090         
18091 2006-12-05  Mike Kestner  <mkestner@novell.com>
18092
18093         * ComboBox.cs: fix a unit test regression from a TextBox
18094         SelectionLength return of -1 when there's no selection.  
18095
18096 2006-12-05  Chris Toshok  <toshok@ximian.com>
18097
18098         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
18099         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
18100         cleaning up some of the internal Control fields being used by
18101         subclasses.
18102
18103 2006-12-05  Mike Kestner  <mkestner@novell.com>
18104
18105         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
18106         listbox after AddImplicit calls since it defaults to hidden. Add a 
18107         hack to preserve requested heights across DropDownStyle changes.
18108
18109 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
18110
18111         * PropertyGrid.cs: Hide FindFirstItem method from public API.
18112
18113 2006-12-05  Chris Toshok  <toshok@ximian.com>
18114
18115         * DataGridView.cs: fix compiler warnings.
18116
18117         * PrintControllerWithStatusDialog.cs: same.
18118
18119         * ToolBar.cs: same.
18120
18121         * FolderBrowserDialog.cs: same.
18122
18123         * Splitter.cs: same.
18124
18125         * DataGridViewComboBoxCell.cs: same.
18126
18127         * XplatUIWin32.cs: same.
18128
18129         * PictureBox.cs: same.
18130
18131         * Win32DnD.cs: same.
18132
18133         * PageSetupDialog.cs: same.
18134
18135         * FileDialog.cs: same.
18136
18137         * PrintDialog.cs: same.
18138
18139         * DataGridTextBoxColumn.cs: same.
18140
18141         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
18142
18143 2006-12-05  Chris Toshok  <toshok@ximian.com>
18144
18145         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
18146         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
18147         System.ComponentModel.EventHandlerList work.
18148
18149 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
18150
18151         * DrawTreeNodeEventArgs.cs: Added.
18152
18153 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18154         
18155         * InternalWindowManager.cs: Remove an unused field.
18156         
18157 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18158
18159         * InternalWindowManager.cs:
18160         - Save the point where the title bar is clicked.
18161         
18162         * MdiWindowManager.cs:
18163         - Only allow moving of the window as long as the 
18164         clicked point on the title bar does not get out of
18165         MdiClient's rectangle. Fixes #79982.
18166         
18167         * MdiClient.cs:
18168         - Added Horizontal/VerticalScrollbarVisible.
18169         - Simplified the scrollbar sizing algorithm.
18170         - Cache the difference in scrolled value in
18171         H/VBarValueChanged and move the calculation out
18172         of the for loop.
18173
18174 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18175
18176         * Control.cs: Make the Console.WriteLine in WndProc 
18177         write more info.
18178
18179 2006-12-05  Chris Toshok  <toshok@ximian.com>
18180
18181         * ToolStripManager.cs, ToolStripButton.cs,
18182         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
18183         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
18184         ToolStripSplitButton.cs, ToolStripSeparator.cs,
18185         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
18186         ToolStripProgressBar.cs, ToolStripContainer.cs,
18187         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
18188         to using System.ComponentModel.EventHandlerList.
18189
18190 2006-12-04  Chris Toshok  <toshok@ximian.com>
18191
18192         * LinkLabel.cs: fix up compiler warnings.
18193
18194         * TableLayoutSettings.cs: same.
18195
18196         * TreeView.cs: same.
18197
18198         * ToolBar.cs: same.
18199
18200         * TabControl.cs: same.
18201
18202         * RichTextBox.cs: same.
18203
18204         * ListViewItem.cs: same.
18205
18206         * PropertyGrid.cs: same.
18207
18208         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
18209
18210         * ToolTip.cs same.
18211
18212         * TextRenderer.cs: fix up compiler warnings.
18213
18214         * Label.cs: same.
18215
18216         * Form.cs: corcompare fixes.
18217
18218         * PictureBox.cs: fix up compiler warnings.
18219
18220         * ImageListStreamer.cs: same.
18221
18222         * TrackBar.cs: corcompare fix.
18223
18224         * Control.cs: fix up compiler warnings.
18225
18226         * SplitterPanel.cs: same.
18227
18228         * NumericTextBox.cs: same.
18229
18230         * ImageList.cs: same.
18231
18232         * StatusStrip.cs: same.
18233
18234         * ProgressBar.cs: corcompare fix.
18235
18236         * ToolStripButton.cs: fix up compiler warnings.
18237
18238         * ToolStripStatusLabel.cs: same.
18239
18240         * ToolStripSplitButton.cs: same.
18241
18242         * ToolStripSeparator.cs: same.
18243
18244         * ToolStripProgressBar.cs: same.
18245
18246         * ToolStripDropDownMenu.cs: same
18247
18248         * ToolStripDropDown.cs: same.
18249
18250         * ToolStripDropDownButton.cs: same.
18251
18252         * ToolStrip.cs: same.
18253
18254         * ToolStripControlHost.cs: same.
18255
18256         * ToolStripContentPanel.cs: same.
18257
18258         * ToolStripDropDown.cs: same.
18259
18260         * ToolStripContainer.cs: same.
18261
18262         * ToolStripPanel.cs: same, and add "new" where we need it to work
18263         with the new ArrangedElementCollection.
18264
18265         * ToolStripItemCollection.cs: add "new" where we need it to work
18266         with the new ArrangedElementCollection.
18267
18268 2006-12-04  Andreia Gaita <avidigal@novell.com>
18269
18270         * TabControl.cs: Fix default tab selection to after TabControl
18271         gets focus and not before. Fixes #80128
18272
18273 2006-12-04  Chris Toshok  <toshok@ximian.com>
18274
18275         * DataGridTableStyle.cs: remove the gross calling of
18276         datagrid.Refresh from here.  It's a broken idea and it doesn't
18277         work anyway.
18278
18279         * DataGrid.cs: instead, just register/unregister from the
18280         DataGridTableStyle events in CurrentTableStyle.  we play it
18281         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
18282         even though some would most likely not require it.  Fixes bug
18283         #80115 (and one portion of #80117 as a side effect).
18284
18285 2006-12-04  Chris Toshok  <toshok@ximian.com>
18286
18287         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
18288         so the textbox (if any) goes away.  Fixes bug #80117.
18289
18290 2006-12-04  Chris Toshok  <toshok@ximian.com>
18291
18292         * DataGridColumnStyle.cs: set the column's readonly property
18293         initially based on the property descriptor's IsReadOnly.  Fixes
18294         bug #80044.
18295
18296 2006-12-04  Chris Toshok  <toshok@ximian.com>
18297
18298         * ComboBox.cs: wrap the dropdown style changing work in
18299         SuspendLayout/ResumeLayout.  Fixes bug #79968.
18300
18301 2006-12-04  Jackson Harper  <jackson@ximian.com>
18302
18303         * TextBoxBase.cs: Fix off by one, since these are one-based.
18304         * TextBox.cs: Select all the text when we get focus.  The TextBox
18305         does this but the RTB does not.
18306
18307 2006-12-04  Chris Toshok  <toshok@ximian.com>
18308
18309         * DataGridTextBoxColumn.cs: remove some spew.
18310
18311         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
18312         but some part of me is saying "it shouldn't be here.."  At any
18313         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
18314         setting the value.
18315
18316 2006-12-04  Chris Toshok  <toshok@ximian.com>
18317
18318         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
18319         to reassign the propertydescriptor.
18320
18321 2006-12-04  Jackson Harper  <jackson@ximian.com>
18322
18323         * TextBoxBase.cs:
18324         * TextControl.cs: Remove some unused variables.  Maybe this will
18325         patch things up between mike and I.
18326         - don't split lines less then one char wide, if the viewport is
18327         that small text won't be visible anyways.
18328         
18329 2006-12-04  Jackson Harper  <jackson@ximian.com>
18330
18331         * TextBoxBase.cs: Default selection length is -1, need to do some
18332         more testing on windows to see when this is used for the property.
18333         - Redid the Lines [] property to that we properly remove soft line
18334         breaks
18335         - added support for preserving carriage returns
18336         -  CanUndo is not a variable like 'is undo enabled' it just returns
18337         true if there is undo operations available.
18338         - AppendText doesn't need to grab the last tag itself anymore,
18339         this happens automatically when we move the cursor.
18340         * TextControl.cs: Add CompoundActions to the undo class. This
18341         allows combining the other operations into one big option.  ie a
18342         paste will combine { delete old, insert new, move cursor }
18343         - Add InsertString undo operation
18344         - New method for deleting multiline text
18345         - Add carriage returns to lines. So we can preserve carriage
18346         returns when text is 'roundtripped'
18347
18348 2006-12-04  Chris Toshok  <toshok@ximian.com>
18349
18350         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
18351         minimum 0.  Fixes the scrollbar exception in bug #80136.
18352
18353 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18354
18355         * MdiClient.cs: 
18356         * MdiWindowManager: Removed unused fields and methods.
18357         
18358 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18359         
18360         * StatusBar.cs: Update all panels when a AutoSize=Contents
18361         panel needs updating.
18362         
18363         * StatusBarPanel.cs: Remove twidth and only use initialize.
18364         Fixes #80031.
18365                 
18366 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18367
18368         * Form.cs: When a form's MdiParent is set add it directly
18369         on top of the z-order in stead of relying on MdiClient's
18370         ActivateChild to do it. Fixes #80135.
18371         
18372         * MdiClient.cs: 
18373         - Remove original_order, mdi_child_list is already doing
18374         the same thing.
18375         - Create mdi_child_list on construction in
18376         stead of first use (avoids a few null checks).
18377
18378         * MenuItem.cs: Use an already existing list of mdi children
18379         to get the correct order of children and remove the other
18380         redundant list.
18381
18382 2006-12-04  Chris Toshok  <toshok@ximian.com>
18383
18384         * PropertyGridView.cs: cached_splitter_location is only used in
18385         !DOUBLEBUFFER code.
18386
18387         * PropertyGrid.cs: implement the ComComponentNameChanged event
18388         using Events, hoping that would fix the warning.  Looks like a
18389         compiler bug instead (#80144).
18390
18391         * PropertyManager.cs: remove unused method.
18392
18393 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
18394
18395         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
18396         include parentesis to fix expression evaluation. Fixes #79634.
18397
18398 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
18399         
18400         * MenuAPI.cs:
18401         - Changes to fix behavior in Menu control, some reported in #80097
18402         and other detected during behavior refactory like a select event
18403         problems.
18404         - Remove unneded "if's" conditions.
18405         - Created an internal to flag when popup is active in control, we need 
18406         it because in .NET you can have menu active but without popup active
18407         when you active menu using popup without visible items.
18408         - Mimic win32 behavior for Select and Popup events.  
18409         - Dont open popup menu when you dont have visible subitems.
18410         - Do nothing when click on disabled menu item.
18411         - Some small changes to follow the coding style guidelines.
18412         - Unselect menu only when another control gives focus. Fixes #80097.
18413         - Remove unused code.
18414         
18415         * MenuItem.cs: internal VisibleItems method to check if menu
18416         theres visible subitems, it will be usefull to fix some 
18417         behavior in Menu control.
18418         
18419 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
18420         
18421         * Timer.cs: Tag property for 2.0 profile.
18422         
18423 2006-12-01  Chris Toshok  <toshok@ximian.com>
18424
18425         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
18426         
18427         * Win32DnD.cs: comment out some unused fields.
18428
18429         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
18430         some unused properties/methods.
18431
18432         * XplatUIX11.cs: fix MousePosition so we override the base class's
18433         property instead of conflicting with it.
18434
18435         * PictureBox.cs: comment out some unused fields
18436
18437         * OSXStructs.cs: make some struct fields public.
18438
18439         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
18440         MousePosition so we override the base class's property instead of
18441         conflicting with it.
18442
18443         * X11Dnd.cs: comment out some unused fields
18444
18445         * X11DesktopColors.cs: fix some struct field visibility to quiet
18446         the compiler.
18447
18448         * X11Dnd.cs: remove some debug code.
18449
18450         * ThemeClearlooks.cs: comment out unused field.
18451
18452         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
18453
18454         * ThemeGtk.cs: comment out some unused pinvokes.
18455
18456         * Timer.cs: remove some unused fields.
18457
18458         * ThemeClearlooks.cs: comment out unused field.
18459
18460         * UpDownBase.cs: comment out unused field.
18461
18462         * DataObject.cs: comment out unused field.
18463
18464         * DataGridBoolColumn.cs: reomve unused field.
18465
18466         * DataGrid.cs: remove unused field.
18467
18468         * Cursor.cs: remove old ToBitmap code.
18469
18470         * ControlPaint.cs: remove unused method.
18471
18472         * ScrollBar.cs: remove unused fields.
18473
18474         * ComboBox.cs: remove unused field, and chain up to
18475         AccessibleObject ctor.
18476
18477         * ListBox.cs: remove unused field.
18478
18479         * ButtonBase.cs: wrap a couple fields in NET_2_0.
18480
18481         * GridEntry.cs: remove unused fields.
18482
18483         * Binding.cs: remove unused fields.
18484
18485         * AxHost.cs: remove unused method.
18486
18487         * ContainerControl.cs: remove unused field.
18488
18489         * ScrollableControl.cs: remove unused fields.
18490
18491 2006-12-01  Chris Toshok  <toshok@ximian.com>
18492
18493         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
18494         the Where/WhereString stuff.  it's easy enough to CWL
18495         Environment.StackTrace.
18496
18497         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
18498         unused private fields.
18499
18500 2006-12-01  Jackson Harper  <jackson@ximian.com>
18501
18502         * TextControl.cs: Do not update the view while inserting multiline
18503         text. If we update the view we might wrap lines, before entering
18504         the new lines, which causes the new line insertion calculations to
18505         be totally fubared.
18506         - Remove an old TODO
18507         - Make debug output a little nicer
18508         
18509 2006-12-01  Chris Toshok  <toshok@ximian.com>
18510
18511         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
18512
18513 2006-12-01  Chris Toshok  <toshok@ximian.com>
18514
18515         [ fix the majority of the CS0108 warnings we've been suppressing ]
18516         
18517         * TreeView.cs: mark BackgroundImageChanged as 'new'.
18518
18519         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
18520         to "LayoutToolBar" to quiet mcs.
18521         
18522         * TabControl.cs: mark our ControlCollection class as 'new'.
18523
18524         * TextBoxBase.cs: mark some events as 'new'.
18525
18526         * Splitter.cs: TabStop is 'new'.
18527
18528         * ControlBindingsCollection.cs: mark a few methods as new since
18529         they change the visibility from protected to public.
18530
18531         * RadioButton.cs: DoubleClick -> base class, and remove unused
18532         HaveDoubleClick.
18533
18534         * MonthCalendar.cs: ImeMode property -> base class, and mark many
18535         events as new.
18536
18537         * NumericUpDown.cs: TextChanged -> base class.
18538
18539         * CheckedListBox.cs: mark our ObjectCollection class as new to
18540         quiet mcs.
18541
18542         * FolderBrowserDialog.cs: make HelpRequest event new and have it
18543         muck with the base class.
18544
18545         * StatusBar.cs: fix some mcs warnings about Update being the same
18546         name as a base class method.
18547
18548         * RichTextBox.cs: mark some events as new, and make them do things
18549         to the base class impl.
18550
18551         * UserControl.cs: mark TextChanged as new, and have it manipulate
18552         base.TextChanged.
18553
18554         * UpDownBase.cs: mark some things new.
18555
18556         * CheckBox.cs: mark DoubleClick "new", and add some text about
18557         what we need to look at.
18558
18559         * Panel.cs: make the events "new", and manipulate the base
18560         version.  these are just here for attributes.
18561
18562         * AccessibleObject.cs: make owner private.
18563
18564         * Control.cs: deal with AccessibleObject.owner being private.
18565         cache our own copy if we need it.
18566
18567         * Button.cs: add "new" to the DoubleClickEvent.
18568
18569         * ListBox.cs: no need to track our own has_focus here.  let
18570         Control.has_focus do it for us.  Also some other work to clear up
18571         warnings about not overriding base class methods of the same name.
18572         
18573         * ComboBox.cs: clear up some warnings about not override base
18574         class methods of the same name.
18575
18576 2006-12-01  Chris Toshok  <toshok@ximian.com>
18577
18578         * Form.cs: flag a few things as "new" to quiet some of the mcs
18579         warnings.
18580
18581         * AxHost.cs: same.
18582
18583         * PrintPreviewDialog.cs: same.
18584
18585         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
18586         now DGV isn't so horrible on the class status page.  also, move
18587         all events to using System.ComponentModel.EventHandlerList.  my
18588         wrists hurt.
18589
18590 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18591
18592         * MdiWindowManager.cs:
18593         - Set form to active mdi child if shown,
18594         and update the active mdi child to the next 
18595         remaining child in the z-order if the form is hidden.
18596
18597         * Form.cs: 
18598         - Track if the form has been visible and if its 
18599         visibility is beeing changed, so that the MdiClient
18600         can properly decide the ActiveMdiChild. The MdiClient 
18601         cannot track this since the form can change visibility 
18602         before MdiClient is created.
18603
18604         * MdiClient.cs:
18605         - Don't activate anything of the parent form is changing
18606         its visibility.
18607         - Rework ActiveMdiChild to only return visible mdi 
18608         children and take into account several other corner 
18609         cases.
18610
18611 2006-12-01  Chris Toshok  <toshok@ximian.com>
18612
18613         * IBindableComponent.cs: new 2.0 interface.
18614
18615 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
18616
18617         * DataGrid.cs: Font for caption area is bold by default.
18618
18619 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
18620
18621         * Menu.cs: Tag property for 2.0.
18622         
18623 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
18624
18625         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
18626         
18627 2006-12-01  Chris Toshok  <toshok@ximian.com>
18628
18629         * TreeView.cs: doh, the Begin* events should be
18630         TreeViewCancelEventHandler.
18631
18632 2006-12-01  Chris Toshok  <toshok@ximian.com>
18633
18634         * Form.cs: Form.ControlCollection already stores off the
18635         form_owner field.  don't access the base class's internal "owner"
18636         field.
18637
18638         * Control.cs: make all the fields in Control.ControlCollection
18639         private.  there's no need for any internal fields here.
18640
18641 2006-12-01  Chris Toshok  <toshok@ximian.com>
18642
18643         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
18644         OnHandleCreated.  Fixes bug #80109.
18645
18646 2006-12-01  Chris Toshok  <toshok@ximian.com>
18647
18648         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
18649         SplitContainer.cs, Control.cs, StatusStrip.cs,
18650         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
18651         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
18652         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
18653         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
18654         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
18655         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
18656         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
18657         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
18658         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
18659         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
18660
18661         do most of the work to convert our code over to use
18662         System.ComponentModel.Component.Events for
18663         adding/removing/dispatching events.
18664
18665
18666 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
18667
18668         * DataGridView.cs: Fix an ArgumentNullException reported 
18669         twice today in IRC.
18670
18671 2006-11-30  Mike Kestner  <mkestner@novell.com>
18672
18673         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
18674         grabbed listbox.  Fixes #80036 and #80101.
18675
18676 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
18677
18678         * Message.cs: Changed ToString() to match MS.
18679         
18680 2006-11-30  Jackson Harper  <jackson@ximian.com>
18681
18682         * TextBoxBase.cs: You can still change the selected text on a read
18683         only textbox.
18684         * TextControl.cs: Lower magic number for wrap calculations. This
18685         lets text get closer to the right (far) edge.
18686
18687 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
18688
18689         * Control.cs: Tweak 2.0 layout properties.
18690         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
18691         * TextRenderer.cs: Add a new overload.
18692         * ToolStrip*: Huge amount of changes and new features.
18693
18694 2006-11-30  Mike Kestner  <mkestner@novell.com>
18695
18696         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
18697         scroll range correct.  Fixes #79994.
18698
18699 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
18700
18701         * MdiWindowManager.cs: Update main form's text when
18702         a form is closed. (fixes #80038)
18703         
18704 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
18705
18706         * ToolBar.cs:
18707         - Fix an regression in ButtonSize.
18708         - Get ImeMode default value change to "Disable".
18709         - Get ShowTooltips default value change to true, default value is 
18710         "false" but after make a test in .NET we get "true" result as default.
18711         
18712 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
18713
18714         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
18715
18716 2006-11-29  Chris Toshok  <toshok@ximian.com>
18717
18718         * XplatUIWin32.cs (GetWindowTransparency): check return value of
18719         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
18720         SetWindowTransparency hasn't been called.
18721
18722 2006-11-29  Chris Toshok  <toshok@ximian.com>
18723
18724         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
18725         if it's supported.
18726         (set_AllowTransparency): reorder things a little so that the
18727         WS_EX_LAYERED style is removed properly.
18728
18729 2006-11-29  Chris Toshok  <toshok@ximian.com>
18730
18731         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
18732         
18733         * Form.cs: only call the XplatUI transparency method (get/set) if
18734         SupportsTransparency says it's supported. Otherwise fallback to
18735         doing nothing (in the set case) or returning the instance field we
18736         cache (in the get case).
18737
18738         * XplatUIStructs.cs: add TransparencySupport flag enum.
18739         
18740         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
18741         change to SupportsTransparency.
18742
18743         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
18744         TransparencySupport.None from SupportsTransparency.
18745
18746         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
18747         TransparencySupport.Set from SupportsTransparency.
18748
18749         * XplatUIWin32.cs: implement GetWindowTransparency calling
18750         GetLayeredWindowAttributes, and implement SupportsTransparency by
18751         checking whether or not both
18752         GetWindowTransparency/SetWindowTransparency are available
18753         entrypoints.  We need to do this since SetWindowTransparency is
18754         available as of win2k, but GetWindowTransparency requires winxp.
18755         yay win32 api.
18756
18757         * XplatUI.cs: Add GetWindowTransparency, and change
18758         SupportsTransparency to allow for either/both Get/Set.
18759
18760 2006-11-29  Chris Toshok  <toshok@ximian.com>
18761
18762         * DataGrid.cs: keep from going into an infinite loop redrawing a
18763         datagrid that has no datasource.  Fixes bug #80033.
18764
18765 2006-11-29  Chris Toshok  <toshok@ximian.com>
18766
18767         * MenuItem.cs: fix the NRE when we assign text (and therefore call
18768         Invalidate) before the mainmenu has been assigned to a control.
18769
18770 2006-11-29  Chris Toshok  <toshok@ximian.com>
18771
18772         * DataGrid.cs: detect when we should be double the double click
18773         row/column autosize stuff, although that codepath has yet to be
18774         written.  part of the work for bug #79891.
18775
18776 2006-11-29  Chris Toshok  <toshok@ximian.com>
18777
18778         * Binding.cs (SetControl): fix unit test.
18779
18780 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18781
18782         * PageSetupDialog.cs: Validate the margins and set them in
18783         PageSettings. 
18784         * NumericTextBox.cs: New class to mimic the behavior of the
18785         textboxes used in the printing dialogs.
18786
18787 2006-11-29  Andreia Gaita  <avidigal@novell.com>
18788         
18789         * Form.cs: Revert previous change (remove call UpdateBounds
18790         from form constructor), because it messes with the handle creation
18791         order, and that one needs lots and lots of love.
18792         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
18793         for valid printer and throw InvalidPrinterException if document
18794         is set but printer not valid), adding a MonoTODO. Once 
18795         handle creation is done properly, we can put this back in.
18796
18797 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
18798
18799         * MenuItem.cs: Create a invalidate method for menu item, to be
18800         calling from set text, it make text changes to imadiate update
18801         on screen. Fixes #80013. 
18802         
18803 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
18804
18805         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
18806         fixes bug #80070 and some other problem on toolbar buttons
18807         layout.
18808
18809 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
18810
18811         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
18812         with dotted brush.      Fixes #79564
18813         
18814 2006-11-28  Andreia Gaita  <avidigal@novell.com>
18815
18816         * Form.cs: Removed call to UpdateBounds on Form
18817         constructor, it was causing a call to CreateHandle
18818         before it was supposed to.
18819         * PrintControllerWithStatusDialog: Applied patch
18820         by Chris Toshok to hide controller when there are
18821         no printers available.
18822         PrintDialog.cs: initialize printer settings to 
18823         null - correct DefaultValues test #5
18824         * PrintPreviewControl.cs: Move PrintController
18825         initialization to GeneratePreview
18826         * PrintPreviewDialog.cs: 
18827         - Remove Preview generation     from Document_set(). It is 
18828         called on OnPaint
18829         - Throw InvalidPrinterException on CreateHandle if
18830         a Document is set but there are no printers or 
18831         printer is not valid.
18832         * ThemeWin32Classic: don't paint PrintPreviewControl
18833         if there is nothing to paint    
18834
18835 2006-11-28  Miguel de Icaza  <miguel@novell.com>
18836
18837         * Form.cs: Add another popular method.
18838
18839         * TabPage.cs: ditto.
18840
18841 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18842
18843         * MenuItem.cs: Fixed a warning.
18844         * InternalWindowManager: Fixed a warning.
18845
18846 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18847
18848         * MenuItem.cs:
18849         - When cloning a menu also clone MdiList and clone the 
18850           window menu items properly (as the forms and menuitems
18851           are kept in an internal hashtable, these need updating 
18852           as well)
18853         - Rewrote the window menu code, menu items are added in the
18854           order the forms were added to their parent, and they are
18855           updated every time the window menu is shown (before the
18856           list was only generated once, in the current order of the
18857           forms, and would never be updated). A checkmark is shown
18858           next to the item corresponding to the active mdi child.
18859
18860 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18861
18862         * XplatUIStructs.cs: 
18863         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
18864         
18865         * XplatUIWin32.cs: 
18866         - Added TME_NONCLIENT to TMEFlags.
18867         - Handles WM_NCMOUSEMOVE in GetMessage to 
18868           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
18869
18870         * MdiWindowManager:
18871         - Now merges mdi child menu to parent menu when maximized.
18872         - Recalculate NC areas of both mdi child and mdi parent. 
18873           Fixes #79757 (4).
18874           on window state and size changes.Fixes #79844 (3).
18875         - Handle WM_NCCALCSIZE to properly calculate borders.
18876
18877         * Form.cs:
18878         - Add/remove to the mdi containers list of mdi children 
18879           in the order they are added.
18880         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
18881           to the maximized mdi child.
18882         
18883         * InternalWindowManager.cs:
18884         - Only execute a click on the control buttons on the mouse up,
18885           not on the mouse down. Show the state of the button 
18886           (was only showing Normal state, never Pressed state). The
18887           pressed button now follows the mouse (if you click the Close 
18888           button and move the mouse over the Maximize button, the 
18889           Maximize button will be shown as pressed). Since Win32 does
18890           not generate WM_NCLBUTTONUP if you release the button outside
18891           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
18892           it as a mouse up.
18893         
18894         * ThemeWin32Classic.cs:
18895         - Draw a missing border around mdi child forms. Fixes #79844 (2).
18896
18897         * MdiClient.cs:
18898         - Added a list of forms which contains the order the forms are
18899           added to the mdi parent.
18900         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
18901         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
18902         - If the active form changes set the scrollbars to the top
18903           of the Z order, otherwise the form could hide them.
18904         - Scrollbars are now sized according to ClientSize, not 
18905           to Size, and they take into account the other scrollbar
18906           to determine maximum.
18907         
18908 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
18909         
18910         * XplatUI.cs:
18911         * XplatUIDriver.cs:
18912         * XplatUIX11.cs:
18913         * XplatUIWin32.cs:
18914         * XplatUIOSX.cs:
18915         - Added RequestAdditionalWM_NCMessages for windows to 
18916           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
18917           Currently only implemented in XplatUIWin32.
18918
18919 2006-11-27  Chris Toshok  <toshok@ximian.com>
18920
18921         * Hwnd.cs: only add the hwnd to the windows hash in
18922         set_WholeWindow and set_ClientWindow if whole_window/client_window
18923         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
18924
18925 2006-11-27  Mike Kestner  <mkestner@novell.com>
18926
18927         * ComboBox.cs: remove redundant OnDropDown call.  It is called
18928         from the ComboListBox.ShowWindow code. Fixes #79969.
18929
18930 2006-11-27  Chris Toshok  <toshok@ximian.com>
18931
18932         * Hwnd.cs: remove the setters for ExposePending and
18933         NCExposePending - noone uses them.
18934
18935 2006-11-27  Jackson Harper  <jackson@ximian.com>
18936
18937         * TextControl.cs: new param for ReplaceSelection which determines
18938         whether we select the new selection, or set the cursor to the end
18939         of the new selection.
18940         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
18941         pasting, select the new text.
18942         * RichTextBox.cs: Use new param for ReplaceSelection.
18943
18944 2006-11-27  Jackson Harper  <jackson@ximian.com>
18945
18946         * TextBoxBase.cs: Set the selection to the caret after the caret
18947         is moved, otherwise they get out of sync.
18948
18949 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
18950
18951         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
18952         it fixes #80015
18953
18954 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
18955
18956         * ThemeWin32Classic.cs: 
18957         - Fix toolbar drop down arrow position.
18958         - Fix drop down appearance when ToolBar.Appearance is normal,
18959         it fixes #80018.
18960         
18961 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
18962
18963         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
18964         * Control.cs: Same.
18965         * UpDownBase.cs: Same.
18966         * ButtonBase.cs: Same.
18967         * ScrollBar.cs: Same.
18968         * TrackBar.cs: Same.
18969         * PictureBox.cs: Same.
18970         * UserControl.cs: Same.
18971         * Label.cs: Same.
18972         * ListControl.cs: Same.
18973         * TextBoxBase.cs: Same.
18974         * ListView.cs: Same.
18975         * RichTextBox.cs: Same.
18976         * TreeView.cs: Same.
18977
18978 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
18979
18980         * PrintDialog.cs:
18981         - Text label for where 
18982         - Text label comment was not shown
18983
18984 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
18985
18986         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
18987
18988 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
18989
18990         * InternalWindowManager.cs: 
18991         - Handle WM_PARENTNOTIFY to activate the form
18992         if any child control is clicked.
18993         - The form is only sizable if not minimized.
18994
18995         * MdiWindowManager.cs:
18996         - Save the IconicBounds if the form is moved.
18997         - Rework SetWindowState, now the window bounds 
18998         are stored only if the old window state is Normal.
18999         
19000         * MdiClient.cs:
19001         - In SetWindowStates store the old window state if 
19002         the window is maximized and restore window state if
19003         the window looses focus.
19004         - Don't handle any scrollbar value changes if 
19005         initializing the scroll bars. Fixes #79771.
19006         - Reworked ArrangeIconicWindows. Current algorithm
19007         tests bounds agains all other minimized windows, if
19008         any intersections create new bounds (going left to 
19009         right, bottom to top) and then test again. When 
19010         successful the bounds are saved and never computed
19011         again. Fixes #79774.
19012
19013 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
19014
19015         * InternalWindowManager.cs: Added HandleTitleBarUp.
19016
19017 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
19018
19019         * NumericUpDown.cs: In .NET 1.1, user entered text is still
19020         hexadecimal in ParseUserEdit.
19021
19022         
19023 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
19024
19025         * MdiWindowManager.cs: 
19026         - Handle a click on the form's icon to show the 
19027         system menu (when maximized). Fixes #79775.
19028         - Change the existing click handler for the form's
19029         icon when not maximized to show on MouseUp.
19030         Fixes #79776.
19031
19032         * Form.cs: In OnResize only layout the mdi child's
19033         parent if it actually has a parent. Might not if
19034         the window is closing.
19035
19036
19037 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
19038
19039         * MdiClient.cs: Ignore active MDI client for text of parent, if
19040         child has no text set.
19041
19042 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
19043
19044         * ToolBar.cs: Fixed ToString to match MS.
19045
19046 2006-11-22  Andreia Gaita  <avidigal@novell.com>
19047
19048         * NumericUpDown: 
19049         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
19050         update inner values on set. Fixes #79966.
19051         - Override OnLostFocus to update value on NET 2. Fixes #79950.
19052         - Fix hexadecimal parsing.
19053         
19054         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
19055         parent. Fixes #79957
19056
19057 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19058
19059         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
19060         the actual size has to be queried, since if height /
19061         width is negative Win32 changes it to 0. 
19062         Fixes #79999 on Windows.
19063         
19064         * XplatUIX11.cs: Set height / width to 0 if negative
19065         in SetWindowPos. Fixes #79999 on Linux.
19066         
19067 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
19068
19069         * ThemeWin32Classic.cs: Fix text redenring when button is
19070         pressed.
19071
19072 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
19073
19074         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
19075         and later navigate by mouse. Fixes #79528.
19076
19077 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
19078
19079         * ToolBar.cs: Set default value for TabStop to false in
19080         constructor, it fixes remaining behavior of bug #79863.
19081
19082 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19083
19084         * MdiWindowManager.cs:
19085         * InternalWindowManager.cs:
19086         - Moved a few methods specific to Mdi from 
19087         InternalWindowManager to MdiWindowManager.
19088         Fixes #79996.
19089         
19090 2006-11-21  Chris Toshok  <toshok@ximian.com>
19091
19092         * XplatUIOSX.cs: stub out InvalidateNC.
19093
19094         * XplatUIWin32.cs: implement InvalidateNC using the call I found
19095         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
19096
19097         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
19098
19099         * XplatUIDriver.cs: add InvalidateNC abstract method.
19100
19101         * XplatUI.cs: add InvalidateNC.
19102
19103 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
19104
19105         * ToolBar.cs: Invalidate complete button area when pressed status 
19106         was changed.
19107         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
19108         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
19109         by 1 when button is pressed.
19110
19111 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
19112
19113         * ToolButton.cs: Invalidate middle of DropDown button when
19114         ToolBar theres DropDownArrows.
19115         * ThemeWin32Classic.cs: Change position of DropDown arrow and
19116         fix DropDown drawing operations.
19117
19118 2006-11-20  Chris Toshok  <toshok@ximian.com>
19119
19120         * NativeWindow.cs: fix the formatting of functions ('{' on the
19121         following line), and enable the thread exception dialog.
19122
19123         * Application.cs: remove the duplicate exception catching from
19124         here.
19125
19126 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
19127
19128         * Toolbar.cs: Triggers button click event when click on icon
19129         of dropdown ToolBarButton. Fixes #79912.
19130         
19131 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19132
19133         * Theme.cs:
19134         * ThemeWin32Classic.cs:
19135         - Added a property WindowBorderFont to enable themeing
19136           of mdi child windows' Text.
19137           
19138 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19139
19140         * InternalWindowManager.cs:
19141         * Form.cs:
19142         * MdiClient.cs:
19143         * MdiWindowManager.cs: 
19144         - If mdi child is maximized, set mdi parent's
19145           text to "Parent - [Child]". Fixes #79770.
19146         - If there is any maximized mdi child windows, only the active 
19147           window (and any new windows) is maximized, the rest are normal.
19148         - On a WindowState change only save mdi child's window bounds 
19149           if the old window state was normal. Fixes #79774.
19150         - The scroll bars are now calculated on hopefully all
19151           necessary events. Fixed #79771 / #79844->6 / #79906.
19152         - MdiClient.SizeScrollBars() now takes into account docked 
19153           controls in the parent when calculating available space.
19154         - InternalWindowManager now always repaints the entire title
19155           area. Fixes #79844->1/4/5.
19156         - Added RequestNCRecalc on mdi child windowstate changes.
19157           Fixes #79772.
19158
19159 2006-11-20  Mike Kestner  <mkestner@novell.com>
19160
19161         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
19162         in the MouseUp handler of the listbox and move the return handling
19163         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
19164
19165 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
19166
19167         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
19168
19169 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
19170
19171         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
19172           working in 1.2.x anymore. So, updated.
19173
19174 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
19175
19176         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
19177         NumberGroupSeparator of current culture instead of assuming en-US.
19178         Fixed bug #79967.
19179
19180 2006-11-17  Mike Kestner  <mkestner@novell.com>
19181
19182         * Control.cs: Add the concept of implicit bounds setting so that
19183         dock/undock round trips preserve explicitly set size/locations.
19184         Fixes #79313.
19185
19186 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
19187
19188         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
19189           can't handle those filters. (Fixes bug #79961)
19190
19191 2006-11-17  Chris Toshok  <toshok@ximian.com>
19192
19193         [ fixes the exit/crashes associated with #79835.  it's clearly
19194         suboptimal though, we need to figure out a better way to solve
19195         this. ]
19196         
19197         * PrintPreviewControl.cs: deal with the new invalid printer
19198         exceptions.
19199
19200         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
19201         and return false (so CommonDialog.ShowDialog doesn't actually show
19202         the form.)
19203
19204         * PrintDialog.cs: enable/disable the Ok button depending on
19205         whether or not the printer is valid.
19206
19207         * CommonDialog.cs (ShowDialog): only actually show the form if
19208         RunDialog returns true.
19209
19210 2006-11-17  Jackson Harper  <jackson@ximian.com>
19211
19212         * TextControl.cs: When soft splitting a line, mark it as a soft
19213         split line. Also carry over the current line break to the next
19214         line.
19215
19216 2006-11-17  Chris Toshok  <toshok@ximian.com>
19217
19218         * XplatUIX11.cs: when scrolling a window with an invalid area, we
19219         only want to shift the part of the invalid area that overlaps the
19220         area we're scrolling.  we also don't want to clear the invalid
19221         area unless the invalid area was entirely contained within the
19222         scrolling area.
19223
19224 2006-11-16  Chris Toshok  <toshok@ximian.com>
19225
19226         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
19227         also make sure to free the memory returned by XGetWindowProperty
19228         in GetText().
19229
19230         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
19231
19232 2006-11-16  Chris Toshok  <toshok@ximian.com>
19233
19234         * XplatUI.cs: add a new super secret way to get at the totally
19235         unsupported X11 backend.
19236
19237 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
19238
19239         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
19240
19241 2006-11-16  Jackson Harper  <jackson@ximian.com>
19242
19243         * TreeView.cs: Allow more explicit setting of top node position
19244         for scrollbars. Slower algo, but more accurate.
19245         - CollapseAll should maintain the current top node.
19246         * TextBoxBase.cs: When positioning the caret, use the line, pos
19247         method, since the x, y method does not grab the correct tag, and
19248         the caret height never gets set correctly. (Maybe I should just do
19249         away with the caret having its own height, and always use the
19250         carets current tag for height).
19251
19252 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
19253
19254         [Fixes 79778, 79923]
19255
19256         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
19257         Parent to the FosterParent instead.
19258
19259 2006-11-16  Jackson Harper  <jackson@ximian.com>
19260
19261         * TreeView.cs: Need to recalc the topnode when we expand or
19262         collapse. The scrolling methods can't handle this on their own,
19263         since they use differences between the last scroll position, and
19264         those difference get completely messed up since we are expanding
19265         nodes.  This problem should probably be fixed in the scrolling
19266         methods, so they can figure out exactly where they are, but this
19267         will slow things down a little.
19268         * ThemeWin32Classic.cs: Special case for groupboxes with empty
19269         strings, makes nunit-gui look a lot nicer.
19270
19271 2006-11-16  Chris Toshok  <toshok@ximian.com>
19272
19273         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
19274         the broken multithreaded event handling we have in here.  File
19275         this entry under "Why we should move to the new X11 backend".
19276
19277         Any thread can make it into UpdateMessageQueue, which gets events
19278         from the X socket - some of which could belong to hwnds being
19279         managed by a different thread.  We can also have multiple threads
19280         in UpdateMessageQueue at the same time, with each one reading from
19281         the X socket.  This leads to many problems, with the following
19282         solutions:
19283
19284         We can't use hwnd.Queue.Enqueue anywhere in here and must use
19285         EnqueueLocked.
19286
19287         The MotionNotify compression we do can't work across threads
19288         (without locking the entire queue, perhaps) since we call
19289         hwnd.Queue.Peek, so we just punt and don't compress motion events
19290         unless the owning thread is the one which got the X event.
19291
19292         ConfigureNotify is another fun one, since it modifies the hwnd's
19293         bounds and then enqueues the event.  We add a lock to Hwnd which
19294         is held when setting configure_pending to true (and enqueuing the
19295         event).
19296
19297         There is a race wrt the wake socket.  we need to make sure that
19298         only 1 thread is waiting on that socket, or else a thread could
19299         sleep waiting for data that never comes.  It's difficult (but not
19300         impossible) to make happen, because it seems to require something
19301         like the following:
19302
19303             1. Thread 1 polls on wake_receive
19304         
19305             2. poll returns saying there's data to be read on
19306                wake_receive.
19307         
19308             3. Thread 2 polls on wake_receive and immediately returns
19309                saying there's data to be read.
19310
19311             4. Thread 2 reads the wakeup byte from wake_receive
19312
19313             5. Thread 1 attempts to read the wakeup byte from
19314                wake_receive.
19315
19316             6. Thread 2 exits (due to a form closing, perhaps).
19317
19318             7. Thread 1 blocks forever.
19319         
19320         Fun, eh?
19321
19322         Fixing the Expose handling isn't done yet, and the races inherent
19323         in that piece of code are responsible for the drawing mistakes you
19324         see when generating expose events in a MT app (like NPlot).  This
19325         one is the likely to be the hardest to bandaid, and it doesn't
19326         appear to cause anything but drawing problems.  The other issues
19327         caused apps to exit or hang.
19328
19329         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
19330         called from a different thread than the one that should be calling
19331         these functions.
19332
19333         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
19334
19335 2006-11-15  Chris Toshok  <toshok@ximian.com>
19336
19337         * Application.cs: null out the context's MainForm when we exit
19338         RunLoop.  Fixes a newly checked in unit test as well as the last
19339         ODE from bug #79933.
19340
19341 2006-11-15  Chris Toshok  <toshok@ximian.com>
19342
19343         * Form.cs (set_Owner): allow a null value so we can clear the
19344         form's owner.
19345         (Dispose): set all our owned_form's Owner properties to null, and
19346         clear the owned_forms collection.
19347         (WM_CLOSE): clean up this a little bit.. still not right though.
19348
19349         * ApplicationContext.cs: OnMainFormClosed should only call
19350         ExitThreadCore if the main form isn't recreating.  Fixes unit
19351         test.
19352
19353 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
19354
19355         [Fixes 78346]
19356
19357         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
19358
19359 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
19360
19361         [Fixes 79433]
19362
19363         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
19364         keep popup window types from stealing focus from the main form
19365         on Windows.
19366
19367         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
19368
19369         * MenuAPI.cs: Set above flag to true.
19370
19371 2006-11-15  Chris Toshok  <toshok@ximian.com>
19372
19373         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
19374         the button being released is not in wParam.
19375
19376 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
19377
19378         * Form.cs: Add the released button to MouseEventArgs.Button
19379         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
19380         on Win32.
19381
19382 2006-11-15  Chris Toshok  <toshok@ximian.com>
19383
19384         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
19385         GetText().  untested because it's unused in our implementation.
19386         Control.Text always caches the text, even if
19387         ControlStyles.CacheText is not set.
19388
19389         fixes bug #79939.
19390
19391 2006-11-15  Chris Toshok  <toshok@ximian.com>
19392
19393         [ fixes #79933 ]
19394         
19395         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
19396         message.  no hiding, no disposing.
19397
19398         in the WM_CLOSE handler, hide the form if it's modal.
19399
19400 2006-11-15  Chris Toshok  <toshok@ximian.com>
19401
19402         * XplatUIX11.cs: use AddExpose instead of sending a message.
19403         fixes textbox border drawing.
19404
19405 2006-11-15  Chris Toshok  <toshok@ximian.com>
19406
19407         * PropertyGridView.cs: keep from crashing on mouse move/down when
19408         the property grid is empty.
19409
19410 2006-11-14  Jackson Harper  <jackson@ximian.com>
19411
19412         * TextControl.cs: Make PageUp and PageDown more like the MS
19413         versions.
19414         * TextBoxBase.cs: When we set the text property position the
19415         cursor at the beginning of the document.
19416
19417 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19418
19419         * Form.cs: if a mdi child's WindowState has changed
19420         before it's creation, it would display wrong control
19421         buttons.
19422         
19423 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
19424
19425         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
19426           (Fixes bug #79927)
19427
19428 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
19429
19430         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
19431         the window gets to paint its borders even if the window is
19432         getting smaller.
19433         
19434         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
19435         otherwise the old control buttons would still be painted 
19436         if the window gets bigger.
19437         
19438         * PaintEventArgs.cs: add an internal method so that the clip 
19439         rectangle can be changed.
19440         
19441 2006-11-13  Chris Toshok  <toshok@ximian.com>
19442
19443         [ fixes bug #79745 ]
19444         
19445         * NotifyIcon.cs: lots of cleanup.
19446
19447         * X11Structs.cs: add an enum for XEMBED messages.
19448
19449         * XplatUIX11.cs: reindent one of the giant switch statements, it
19450         was taking up an additional tab stop, and this file is already way
19451         too wide for my laptop's screen.
19452
19453         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
19454         we get it, resize the hwnd to the WMNormalHints max_width/height.
19455
19456 2006-11-13  Jackson Harper  <jackson@ximian.com>
19457
19458         * TextBoxBase.cs: Compute the value changes for the mouse wheel
19459         teh simple way.
19460
19461 2006-11-13  Chris Toshok  <toshok@ximian.com>
19462
19463         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
19464         #79898.  force a reference to the Region to stick around so the
19465         unmanaged object isn't collected (rendering our handle in the MSG
19466         stale).
19467
19468 2006-11-13  Chris Toshok  <toshok@ximian.com>
19469
19470         * XplatUIX11.cs: fix #79917 for window managers which support
19471
19472         using XStoreName on the raw utf8, and we need to convert to
19473         COMPOUND_TEXT if it's non-latin1.
19474
19475 2006-11-13  Chris Toshok  <toshok@ximian.com>
19476
19477         * Form.cs (set_DialogResult): we need to set closing to false if
19478         we're setting our result to None.  fixes bug #79908.
19479
19480 2006-11-13  Jackson Harper  <jackson@ximian.com>
19481
19482         * TextControl.cs: When formatting text, compute the adjusted tag
19483         lengths correctly, using FindTag for the end tag instead of trying
19484         to figure it out outselves.
19485         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
19486         the item, ItemHeight doesn't work, because trees with large
19487         imagelists use those for their height
19488         * TreeView.cs: ActualItemHeight factors in the image height
19489         - compute left edge of checkboxes correctly
19490         - when expanding/collapsing move the bottom down one pixel, so we
19491         aren't moving part of the node
19492
19493 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19494
19495         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
19496         stack in PaintEventStart so that it won't get disposed by the gc
19497         before reaching PaintEventEnd.
19498
19499 2006-11-13  Jackson Harper  <jackson@ximian.com>
19500
19501         * TextBoxBase.cs: Don't select the word if we are on a line with
19502         no text.
19503         - We don't need to position the caret on mouse up, since the mouse
19504         move handler should be doing this
19505         - When double clicking a blank line, the caret is advanced to the
19506         next line.
19507
19508 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
19509
19510         * TreeNodeCollection.cs: Avoid duplicating indexer code.
19511
19512 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
19513
19514         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
19515         Fixes part of bug #79910.
19516
19517 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
19518
19519         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
19520           (bug #79903). Some minor string updates to match ms.
19521
19522 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
19523
19524         * FileDialog.cs: Don't add an extension if the filename
19525           already ends with that extension.
19526
19527 2006-11-10  Jackson Harper  <jackson@ximian.com>
19528
19529         * TreeView.cs: Use the currently highlighted node for the
19530         BeforeSelect event.
19531         * TextBoxBase.cs: There is no need to expand selection on
19532         MouseMove.
19533         - CanUndo means 'is there any undo operations', not 'is undo
19534         allowed on this textcontrol. Fixed ClearUndo unit test.
19535
19536 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
19537
19538         * Button.cs: only perform click when button is Selectable (so as 
19539         not to activate default buttons when they're disabled)
19540         
19541         * Control.cs: Rewrite of the SelectNextControl and related 
19542         methods. HandleClick now selects next control if the current one
19543         is being disabled.
19544         
19545         * Form.cs: OnActivated selects next active control only if Load 
19546         has already occurred. If Load hasn't run, there's no point in 
19547         selecting here, Load might change the state of controls.
19548         
19549         * FocusTest.cs: Tests marked as working again for these fixes
19550
19551 2006-11-10  Chris Toshok  <toshok@ximian.com>
19552
19553         * XplatUIX11.cs: a couple of fixes.
19554
19555         - use XInternAtoms with almost all the atoms we need to register,
19556         instead of many, many calls to XInternAtom.  should help a bit on
19557         startup time, at the expense of making the code look a little
19558         worse.
19559
19560         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
19561         isn't reparented (which seems to be a clue that we're running fon
19562         compiz) and they have an Owner form.  This fixes the tool windows
19563         in paint.net when running under compiz.
19564
19565         - when setting the opacity of a window, support both the case
19566         where the window has been reparented and also when it hasn't been.
19567         Since compiz/beryl doesn't seem to reparent windows, and these are
19568         the only window managers which support translucency, I'm not sure
19569         why we need the hwnd.reparented case at all.. but leave it in.
19570         now we get translucent windows in paint.net under compiz/beryl.
19571
19572 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
19573
19574         * FileDialog.cs: Always return the value for FilterIndex that
19575           was set. Internally convert it to values that make sense.
19576
19577 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
19578         
19579         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
19580
19581 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
19582
19583         * Toolbar.cs: Change default value of DropDownArrows to true, the 
19584         signature still using false to make it compatible with MS but the 
19585         initial value is true. Fixes #79855.
19586
19587 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
19588
19589         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
19590           only available on Linux.
19591
19592 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
19593
19594         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
19595         reduce number of calls to redraw method during toolbar creation.
19596
19597 2006-11-09  Mike Kestner  <mkestner@novell.com>
19598
19599         * ListView.cs : raise SelectedIndexChanged when an item is selected
19600         programmatically via the Item.Selected property.  Gert's nice 
19601         ListViewSelectedIndexChanged test fixture now runs clean.
19602
19603 2006-11-09  Mike Kestner  <mkestner@novell.com>
19604
19605         * ListView.cs : raise SelectedIndexChanged when a selected item is
19606         removed from the item collection using Remove or RemoveAt.
19607
19608 2006-11-09  Mike Kestner  <mkestner@novell.com>
19609
19610         * ListView.cs : raise SelectedIndexChanged once per selected item
19611         for compat with MS.  Fixes #79849+.
19612
19613 2006-11-09  Chris Toshok  <toshok@ximian.com>
19614
19615         * TabControl.cs: initialize row_count to 0, and set it to 1 when
19616         we need to (if we have any tab pages).  Fixes unit test.
19617
19618 2006-11-09  Chris Toshok  <toshok@ximian.com>
19619
19620         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
19621         width is 0, not 3.  Fixes a unit test.
19622
19623 2006-11-09  Mike Kestner  <mkestner@novell.com>
19624
19625         * ListView.cs : use Implicit scrollbars so that focus isn't 
19626         stolen from the listview when they are clicked. Fixes #79850.
19627
19628 2006-11-09  Chris Toshok  <toshok@ximian.com>
19629
19630         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
19631         have a root item.  Fixes #79879.
19632
19633 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
19634
19635         * FileDialog.cs:
19636           - Fix ToString ()
19637           - An ArgumentException is now thrown if a wrong filter
19638             is applied (matches ms). The previous filter doesn't change
19639             anymore if an exception is thrown.
19640           - Changing the FileName property also affects FileNames
19641         * ColorDialog.cs: The length of the CustomColors array is always
19642           16. It doesn't matter if we use a smaller array or null to update
19643           or change the custom colors property.
19644         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
19645           for RootFolder if we get a undefined value.
19646
19647 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19648
19649         * StatusBarPanel.cs: 
19650         - Width is set to MinWidth if Width is smaller than
19651         MinWidth. Fixes #79842.
19652         - MinWidth now always overrides Width (MSDN says MinWidth
19653         is set to Width when AutoSize = None, but they do not 
19654         behave like that).
19655         - Style has now the the correct default value.
19656         
19657 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19658  
19659         * TrackBar.cs: 
19660         - The control is completely invalidated on 
19661         Got/LostFocus to draw the focus rectangle correctly.
19662         - When AutoSize then height is always 45 (width for 
19663         vertical controls).
19664         
19665         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
19666         on the mouse when moved and it doesn't move when grabbed
19667         until the mouse moves as well. Also fixed some wrong 
19668         calculations when clicking on the thumb (control thought
19669         click was outside of thumb and didn't grab it).
19670         Fixes some of the issues in #79718.
19671
19672 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
19673
19674         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
19675
19676 2006-11-08  Chris Toshok  <toshok@ximian.com>
19677
19678         * PropertyGridView.cs: only call ToggleValue if the item is not
19679         readonly.
19680
19681 2006-11-08  Jackson Harper  <jackson@ximian.com>
19682
19683         * TextBoxBase.cs: The RichTextBox and textbox have very different
19684         word selection methods.  Implement the textbox's simple word
19685         selection here, and let the RichTextBox override and provide it's
19686         own.
19687         - Don't do extra selection on mouseup
19688         * RichTextBox.cs: Use the documents word selection algorithm, I
19689         think ideally, this function will be pulled into the
19690         RichTextBox.cs code someday.
19691
19692 2006-11-08  Chris Toshok  <toshok@ximian.com>
19693
19694         * RootGridEntry.cs: new class to represent GridItemType.Root.
19695
19696         * CategoryGridEntry.cs: reformat, and add boilerplate.
19697         
19698         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
19699         returns the UI parent anyway, and we need special handling to
19700         implement the GetTarget method in the face of it.  Also, implement
19701         Select().
19702
19703         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
19704         a root grid item, and use that instead of PropertyGrid.grid_items.
19705         Also, make use of TypeConverters (and add limitted support for
19706         ICustomTypeDescriptors) when initially populating the grid.
19707         Arrays now show up more or less properly.
19708
19709 2006-11-08  Chris Toshok  <toshok@ximian.com>
19710
19711         * Application.cs: set the modal dialog to non modal after we close
19712         it.  Fixes bug #79866.
19713
19714 2006-11-08  Jackson Harper  <jackson@ximian.com>
19715
19716         * TextControl.cs: When combining lines carry over the line end
19717         style from the end line.
19718         - Invalidate the selected area when setting it, if it is visible.
19719         * TextBoxBase.cs: Only rich text box can do full line selects.
19720         - Make sure to set the cursor position when there is a click,
19721         otherwise two clicks in separate areas could cause a large chunk
19722         to be selected.
19723
19724 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19725
19726         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
19727         Fixes #79863.
19728
19729 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19730
19731         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
19732         time. Remove tooltips when ToolButton click events.  Fixes #79856.
19733
19734 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19735
19736         * MenuAPI.cs: Ignore right click for menu actions and fixes
19737         menu border when clicked.  Fixes #79846.
19738
19739 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19740
19741         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
19742         MouseState after create wParam for message, this fixes mouse button 
19743         equal none in mouse up events.
19744         
19745 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
19746
19747         * Control.cs : Focus() now calls Select to set the Container's
19748         Active Control and to give it focus. To avoid infinite recursion
19749         (because ActiveControl also calls Focus at one point), a check 
19750         is made in Focus with the help of a new internal variable
19751         is_focusing.
19752
19753 2006-11-07  Mike Kestner  <mkestner@novell.com>
19754
19755         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
19756         if there's a selection.  Fixes #79849.
19757
19758 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
19759
19760         * PropertyGrid.cs: Avoid fixed height of help description label.
19761         Fixes part of bug #79829.
19762
19763 2006-11-07  Chris Toshok  <toshok@ximian.com>
19764
19765         * XplatUIX11.cs: fix #79790 again, by using the
19766         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
19767
19768 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19769
19770         * ToolBar.cs: Fix left click checking.
19771
19772 2006-11-07  Chris Toshok  <toshok@ximian.com>
19773
19774         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
19775
19776 2006-11-07  Chris Toshok  <toshok@ximian.com>
19777
19778         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
19779         PropertyManager unit tests.
19780
19781         * PropertyManager.cs: make property_name internal.
19782
19783 2006-11-07  Chris Toshok  <toshok@ximian.com>
19784
19785         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
19786         pass a unit test.  Also, don't set image_index to anything in
19787         response to setting the ImageList property.
19788
19789 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19790
19791         * ToolBar.cs: Ignore click events when mouse button is not a
19792         left button, only accepts other button for dropdown menus.  
19793         Fixes #79854.
19794
19795 2006-11-07  Chris Toshok  <toshok@ximian.com>
19796
19797         * DataGrid.cs: make the back and parent row buttons a little less
19798         ugly.
19799
19800 2006-11-07  Jackson Harper  <jackson@ximian.com>
19801
19802         * TextBoxBase.cs: When converting to Text don't put line breaks in
19803         for soft line breaks.
19804         * TextControl.cs: There is an initial "fake" line in the document,
19805         this is now a soft break line, so that an extra line feed doesn't
19806         get added to the end of documents.
19807
19808 2006-11-07  Chris Toshok  <toshok@ximian.com>
19809
19810         [ fix bug #79778 ]
19811         
19812         * CurrencyManager.cs: if the list is readonly, don't bother
19813         checking if IBindingList.AllowNew is true.
19814
19815         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
19816         for non-DataRowView datasources..  or rather, make it not crash.
19817         (DataGridPaintRelationRow): make sure we limit the row painting to
19818         the area not covered by the row header, and make our cell width at
19819         least large enough to cover the relation area.  This allows grids
19820         that have relations but no rows to render correctly.
19821         (DataGridPaintRowContents): same type of changes here.
19822         (SetDataSource): move back to always calling
19823         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
19824         navigating back through relations.
19825         (HitTest): handle the case where we have no cells but have
19826         relations.  Right now we generate a hit in cell 0 of whatever the
19827         row is, not sure if this is strictly correct, but it works for our
19828         purposes.
19829         
19830         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
19831         bother doing anything.
19832
19833 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
19834
19835         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
19836         early version of StatusStrip.  Not responsible for eaten
19837         application or firstborn children.
19838
19839 2006-11-06  Chris Toshok  <toshok@ximian.com>
19840
19841         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
19842         call GetTabRect with a -1 index.  Fixes #79847.
19843
19844 2006-11-06  Jackson Harper  <jackson@ximian.com>
19845
19846         * TreeNodeCollection.cs: Update scrollbars after clearing.
19847
19848 2006-11-06  Chris Toshok  <toshok@ximian.com>
19849
19850         * NumericUpDown.cs: fix the ToString method for some unit test
19851         love.
19852
19853 2006-11-06  Chris Toshok  <toshok@ximian.com>
19854
19855         * PropertyGrid.cs:
19856         - set the initial SelectedGridItem if we can.
19857
19858         - Exclude non-mergable properties only if we're merging > 1
19859         object.  Merging 1 object isn't really merging, obviously.
19860
19861         - Handle PropertySort.NoSort just like Alphabetical, which is
19862         wrong of course, but at least gets things on the screen.
19863         
19864         * PropertyGridView.cs:
19865         - Add method "FindFirstItem" which finds the first property grid
19866         item, so we can select it by default.
19867
19868         - make use of GridEntry.CanResetValue.
19869
19870         - Don't call RedrawBelowItemOnExpansion here anymore, the
19871         individual GridEntry's will do that.
19872
19873         - Remove the ITypeDescriptorContextImpl internal class.
19874         
19875         * GridEntry.cs:
19876         - this class needs to implement ITypeDescriptorContext, as it's
19877         what MS's PropertyDescriptorGridEntry does, which means we can
19878         remove the ITypeDescriptorContextImpl internal class from
19879         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
19880
19881         - keep a reference to our PropertyGridView, and move the call to
19882         RedrawBelowItemOnExpansion here from PGV.  This means
19883         programmaticly setting Expanded actually does something visible.
19884
19885         - add a CanResetValue() function which takes into account our
19886         possibly multiple "selected_objects" in the merged case.  Shifting
19887         PropertyGridView to use this method fixes another unreported
19888         crasher found running the test for #79829.
19889
19890         - when Top or Bounds is updated, make sure the PropertyGridTextBox
19891         is updated to reflect this.
19892
19893         * CategoryGridEntry.cs: the ctor takes the PGV now.
19894         
19895 2006-11-06  Jackson Harper  <jackson@ximian.com>
19896
19897         * TextControl.cs: These are 1 based.
19898         * TextBoxBase.cs: When setting the selected text, don't change the
19899         selected text tags, this is done by ReplaceText, just position the
19900         cursor at the end of the new text.
19901
19902 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
19903
19904         * ListView.cs: Allow label edit only when, when LabelEdit is
19905           set to true.
19906
19907 2006-11-06  Jackson Harper  <jackson@ximian.com>
19908
19909         * TextControl.cs: If a suitable wrapping position isn't found,
19910         just wrap right in the middle of a word.
19911
19912 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
19913
19914         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
19915           bug #79820.
19916
19917 2006-11-06  Jackson Harper  <jackson@ximian.com>
19918
19919         * TreeView.cs: Can't use the VisibleCount property when setting
19920         scrollbar heights, because this doesn't take into account whether
19921         or not the horz scrollbar just came visible.
19922
19923 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
19924
19925         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
19926         activated.  Fixes #79369, #79832.
19927
19928 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
19929
19930         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
19931           had to remove support for links that point to a directory. FileInfo
19932           returns no usefull information (means, the directory they point to)
19933           for such links. Replaced some empty string ("") with String.Empty.
19934
19935 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
19936
19937         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
19938         NullReferenceException when attempting to remove node that is not in
19939         collection. Throw NullReferenceException when null is passed to 
19940         Remove. Allow first element of the collection to be removed. Fixes
19941         bug #79831.  In GetEnumerator ().Current return null if positioned 
19942         before the first element of the collection. In GetEnumerator ().Reset,
19943         position before first element of the collection.
19944
19945 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
19946
19947         * PropertyGrid.cs: To match MS, remove default title and description
19948         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
19949         buttons.
19950
19951 2006-11-04  Chris Toshok  <toshok@ximian.com>
19952
19953         * Theme.cs: add a Clamp method, just for kicks.
19954
19955         * ThemeWin32Classic.cs: clamp all color components to [0..255].
19956
19957 2006-11-04  Chris Toshok  <toshok@ximian.com>
19958
19959         * Form.cs: if the form isn't visible, Close() does nothing.
19960
19961 2006-11-03  Chris Toshok  <toshok@ximian.com>
19962
19963         * Form.cs (Close): if the form is modal, don't Dispose of it, only
19964         Hide it.
19965         (WndProc): don't Dispose after handling the WM_CLOSE message.
19966
19967         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
19968         them as such, instead of using casts from Control to Form.  Also,
19969         don't Dispose of the modal dialog when we fall out of the loop -
19970         Close() it instead.
19971
19972         fixes bug #79813.
19973
19974 2006-11-03  Chris Toshok  <toshok@ximian.com>
19975
19976         * Control.cs (Dispose): only go through the dispose thing if we're
19977         @disposing, and we haven't already been disposed.  Fixes bug
19978         #79814.
19979
19980         * Form.cs: no reason to call "base.Dispose()" here instead of
19981         "Dispose()".
19982
19983 2006-11-03  Mike Kestner  <mkestner@novell.com>
19984
19985         * ComboBox.cs : use ToString instead of casts in AddItem for
19986         sorting functionality.  Fixes #79812.
19987
19988 2006-11-03  Chris Toshok  <toshok@ximian.com>
19989
19990         * Application.cs: pave the way for actually using the thread
19991         exception dialog.  it's ifdefed out at the moment.
19992
19993 2006-11-03  Chris Toshok  <toshok@ximian.com>
19994
19995         * ThreadExceptionDialog.cs: until we get a better layout, actually
19996         hide the details textbox and label when we shouldn't see them.
19997
19998 2006-11-03  Jackson Harper  <jackson@ximian.com>
19999
20000         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
20001         multiline textboxes anymore.  This method also determines the
20002         width/height of a textboxes canvas area.
20003         - Sorta a revert of the last patch.  For multiline just position
20004         the controls, then bail.  This way the scrollbar width won't be
20005         altered.
20006
20007 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
20008
20009         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
20010         it dont need.  Fixes #79537.
20011
20012 2006-11-02  Jackson Harper  <jackson@ximian.com>
20013
20014         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
20015         send the status after firing the DndOver event.
20016
20017 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20018
20019         * TrackBar.cs: Now orientation only switches height / width if
20020         the control's handle is created (Win32 does it like this). Also 
20021         fixed a typo in ToString() for a test to pass, changed the 
20022         exception thrown in set_LargeChange and set_SmallChange to 
20023         match Win32 behaviour, and added TrackBar tests to the unit 
20024         tests.
20025
20026 2006-11-02  Chris Toshok  <toshok@ximian.com>
20027
20028         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
20029         not _NET_WM_STATE_NO_TASKBAR.
20030
20031 2006-11-02  Jackson Harper  <jackson@ximian.com>
20032
20033         * TextControl.cs: Increment count by one, since in the update view
20034         count - 1 is used.
20035
20036 2006-11-02  Jackson Harper  <jackson@ximian.com>
20037
20038         * TextBoxBase.cs: Use client rectangle not bounds for checking if
20039         the mouse is in the client rectangle (duh).
20040
20041 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20042         
20043         * TrackBar.cs: Fixed trackbar jumping around when clicking
20044         on it - the trackbar was not detecting correctly at which
20045         side of the thumb the click was done. (fixes #79718)
20046
20047 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
20048
20049         * ListBox.cs: scroll visible area when change SelectedIndex to
20050         a non visible area.  Fixes #79481.
20051
20052 2006-11-01  Jackson Harper  <jackson@ximian.com>
20053
20054         * TextControl.cs: When replacing the selection move the selection
20055         start/end/anchor to the end of the new text.
20056
20057 2006-11-01  Jackson Harper  <jackson@ximian.com>
20058
20059         * XplatUIWin32.cs: When setting the parent change the controls
20060         visibility to it's visibility flag, not to it's old parents
20061         visibility (.Visible walks the parent chain).
20062
20063 2006-11-01  Chris Toshok  <toshok@ximian.com>
20064
20065         * XplatUIX11.cs: revert the #79790 fix, as the simple.
20066         XSetTransientForHint fix breaks paint .net's tool windows.  more
20067         work needed for that one.
20068
20069 2006-11-01  Chris Toshok  <toshok@ximian.com>
20070
20071         * ScrollBar.cs: throw ArgumentException instead of Exception in
20072         LargeChange/SmallChange setters.  fixes unit tests.
20073
20074 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
20075
20076         * ContainerControl.cs: reverted rev.67183 (which was itself
20077         a reversion of rev.66853... eh).
20078         
20079         * Control.cs: Fixes Reflector hang by changing Focus() call
20080         to what it was before rev.66643 (calling Select() here sets 
20081         ActiveControl, which in some situations calls back Focus and 
20082         eventually does a stack overflow). Temp fix.    
20083         Changes to GetNextControl() to not look for children to select when
20084         parent cannot be selectable (so it looks for siblings instead)  
20085         
20086 2006-10-31  Mike Kestner  <mkestner@novell.com>
20087
20088         * CheckedListBox.cs : off by one error in returned index from
20089         ObjectCollection.Add.  Fixes #79758.
20090
20091 2006-10-31  Chris Toshok  <toshok@ximian.com>
20092
20093         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
20094         calls for the textbox/spinner, to keep from recursing to the point
20095         where we crash.  Fixes #79760.
20096
20097 2006-10-31  Chris Toshok  <toshok@ximian.com>
20098
20099         * ListControl.cs (set_SelectedValue): don't throw exceptions on
20100         null/"" value, just return.  matches ms's behavior and fixes some
20101         failing tests.
20102
20103 2006-10-31  Chris Toshok  <toshok@ximian.com>
20104
20105         * Control.cs (set_Capture): make a logic a little easier to
20106         follow.
20107
20108         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
20109         if it's being destroyed.  A necessary fix surely, but a bandaid
20110         also, to fix the stuck capture problem in bug #78413.
20111
20112 2006-10-31  Chris Toshok  <toshok@ximian.com>
20113
20114         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
20115         convention of clearing hwnd.ClientRect when we set the
20116         width/height (so it'll be recalculated by Hwnd).
20117
20118 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
20119
20120         * ContainerControl.cs: reversed Contains check from
20121         ActiveControl due to hanging problems. This fix
20122         partly regresses #79667 (button does not have
20123         initial focus), so this might be a symptom for 
20124         a larger parenting problem (set_ActiveControl
20125         is being called but the child control does
20126         not have the parent set yet?)   
20127         
20128 2006-10-31  Mike Kestner  <mkestner@novell.com>
20129
20130         * MenuAPI.cs : fix keynav when menu is click activated.
20131
20132 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
20133
20134         * ToolStrip*: Version 0.2.
20135
20136         * MenuStrip.cs: Version 0.1.
20137
20138         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
20139
20140 2006-10-30  Chris Toshok  <toshok@ximian.com>
20141
20142         [ fixes the oversized notify icon issue in bug #79745 ]
20143         
20144         * NotifyIcon.cs: scale the icon down to the size we're given by
20145         the XplatUI layer (this would be faster if we did it once instead
20146         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
20147         since it's never invoked.
20148
20149         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
20150         pixels high by default, so let's hardcode our systray icon to that
20151         size.  The SYSTEM_TRAY protocol should really have a way for
20152         client apps to query for the correct icon size.. but oh well.  A
20153         couple of patches to deal with the screwy client_window ==
20154         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
20155         instance, and also make sure we don't XSelectInput twice).
20156
20157 2006-10-30  Chris Toshok  <toshok@ximian.com>
20158
20159         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
20160         recreating forms.  Control recreation is the bane of my existence.
20161         Fix it in a way that keeps everyone happy.
20162
20163 2006-10-30  Chris Toshok  <toshok@ximian.com>
20164
20165         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
20166         just non-CHILD ones.  otherwise sometimes scrollbars end up with
20167         client_windows not being resized to the proper size (ReportBuilder
20168         shows this extremely well).
20169
20170 2006-10-30  Chris Toshok  <toshok@ximian.com>
20171
20172         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
20173         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
20174         showing up in the gnome taskbar.  Fixes bug #79790.
20175
20176 2006-10-30  Chris Toshok  <toshok@ximian.com>
20177
20178         * ApplicationContext.cs: guard against a NRE.
20179
20180         * Application.cs: null out the old MainForm for the context, so we
20181         don't try to use it again once it's disposed.  Fixes bug #79783.
20182
20183 2006-10-30  Chris Toshok  <toshok@ximian.com>
20184
20185         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
20186         BindingContext, set the data source directly, otherwise do the
20187         lazy approach - the actual ListManager will be created when we get
20188         a BindingContext. Fixes bug #79700.
20189
20190 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
20191
20192         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
20193           XplatUIX11.cs: Remove old 2 parameter SetVisible.
20194
20195         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
20196
20197 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
20198
20199         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
20200         of SetVisible that allows a window to be shown, but not activated.
20201         This is needed on Windows for MenuStrip, and can probably be used
20202         with MainMenu and ComboBox to fix the focus stealing issues on
20203         Windows.
20204
20205         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
20206
20207 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
20208
20209         * PictureBox.cs: Fix the output of the ToString method.
20210
20211 2006-10-29  Chris Toshok  <toshok@ximian.com>
20212
20213         * Control.cs (get_TopLevelControl): fix bug #79781.
20214
20215 2006-10-29  Chris Toshok  <toshok@ximian.com>
20216
20217         * ListControl.cs (set_DataSource): throw Exception here, not
20218         ArgumentException, to match MS behavior.
20219
20220 2006-10-29  Chris Toshok  <toshok@ximian.com>
20221
20222         * Form.cs: remove the try-catch's around calls to GetWindowState.
20223         We can just check the return value.
20224
20225         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
20226         Instead return -1.
20227
20228         * XplatUI.cs: Add note about additional return value for
20229         GetWindowState.
20230
20231 2006-10-29  Chris Toshok  <toshok@ximian.com>
20232
20233         * Control.cs (CreateHandle): when we create our handle, we also
20234         create the handles of our child controls.  Fixes one of the
20235         Control unit tests (CH11).
20236
20237 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
20238
20239         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
20240
20241 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
20242
20243         * ThemeClearlooks.cs: A little speedup.
20244
20245 2006-10-27  Chris Toshok  <toshok@ximian.com>
20246
20247         * Control.cs: implement Control.FromChildHandle in a way that
20248         matches the docs (and fixes the failed test.)
20249
20250 2006-10-27  Chris Toshok  <toshok@ximian.com>
20251
20252         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
20253         comments).
20254
20255         * DataGrid.cs: implement ResetForeColor such that the tests
20256         succeed.
20257         
20258 2006-10-27  Chris Toshok  <toshok@ximian.com>
20259
20260         * ToolBarButton.cs: setting text/tooltiptext to null results in it
20261         being set to "".  Fixes bug #79759.
20262
20263 2006-10-27  Jackson Harper  <jackson@ximian.com>
20264
20265         * TextControl.cs: We need to clear the entire selection area when
20266         setting the start, otherwise multiline selections are still
20267         visible.
20268
20269 2006-10-26  Chris Toshok  <toshok@ximian.com>
20270
20271         * PropertyGridView.cs: 
20272
20273         - ifdef all the code specific to the double
20274         buffer case, and provide some alternatives in the non-doublebuffer
20275         code, which makes heavy use of XplatUI.ScrollWindow to move things
20276         around without having to invalidate (and cause flicker).  There
20277         are still some drawing problems in the non-doublebuffered case, so
20278         DOUBLEBUFFER is defined by default.
20279
20280         - Fix the way dropdowns are handled.  now we explicitly watch for
20281         the events which might cause the dropdown to close, and break out
20282         of the nested event loop there.  This gets rid of all Capture
20283         code, at the expense of the Msg special casing.  Seems to work,
20284         though, and fixes bug #79743.
20285
20286 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
20287         * Control.cs: SetIsRecreating now recreates implicitly added
20288         child controls as well. Finally fixes #79629. The flag passed to 
20289         SetIsRecreating has also been removed since it wasn't used.
20290         
20291 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20292
20293         * PageSetupDialog.cs: Clean some code, fix some bits, 
20294         add some checks, and add a printer sub-dialog.
20295
20296 2006-10-26  Chris Toshok  <toshok@ximian.com>
20297
20298         * PropertyGrid.cs: make set_SelectedObject call
20299         set_SelectedObjects, and move the duplicate logic to the
20300         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
20301
20302         * PropertyGridView.cs: hide the textbox when we get a
20303         SelectedObjectsChanged event.
20304
20305         Fixes bug #79748.
20306
20307 2006-10-26  Chris Toshok  <toshok@ximian.com>
20308
20309         * PropertyGridView.cs: deal with the type converter not supporting
20310         GetStandardValues() or GetStandardValues() returning null, which
20311         is does in the default case.  Fixes #79742.
20312
20313 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
20314
20315         * CheckedListBox.cs: nunit no longer crashes when selecting 
20316         Project/Edit menu option
20317         
20318 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
20319
20320         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
20321         is no menu selected. fixes #79739
20322
20323 2006-10-25  Chris Toshok  <toshok@ximian.com>
20324
20325         * PropertyGridView.cs: factor out the splitter invalidation code
20326         into the SplitterPercent setter, and for kicks implement the
20327         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
20328         amount in either direction.
20329
20330 2006-10-25  Chris Toshok  <toshok@ximian.com>
20331
20332         * PropertyGridView.cs: do some cleanup of the brush used to draw
20333         text - read only fields should be grayed out.  not sure how to do
20334         this with the textbox, though.  but the textbox's should also be
20335         readonly now at least.  Also, hide/show the textbox when resizing
20336         the control.
20337         
20338         * CursorConverter.cs: use System.Reflection when getting the
20339         properties of Cursors, as TypeDescriptor.GetProperties isn't
20340         returning static properties.
20341
20342 2006-10-25  Chris Toshok  <toshok@ximian.com>
20343
20344         * PropertyGridView.cs: factor out the up/down handling, and reuse
20345         it for page up/down.  also add End/Home support.
20346
20347 2006-10-25  Chris Toshok  <toshok@ximian.com>
20348
20349         * PropertyGridView.cs:
20350
20351         - ensure the selected grid item is visible in the scrolled area,
20352         fixes bug #79572.
20353
20354         - fix Keys.Down handling when you're on the last item in the
20355         propertygrid.
20356
20357 2006-10-25  Mike Kestner  <mkestner@novell.com>
20358
20359         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
20360         clicks too.  Fixes #79725.
20361
20362 2006-10-24  Chris Toshok  <toshok@ximian.com>
20363
20364         * PropertyGrid.cs: use property.Converter instead of
20365         TypeDescriptor.GetConverter(property.PropertyType), so we catch
20366         TypeConverters declared on the property as well as on the
20367         PropertyType.  Fixes bug #79678.
20368
20369 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
20370
20371         * MimeIcon.cs, Mime.cs:
20372           Fallback to the default platform handler if no shared mime info
20373           stuff exists (fixes #79693).
20374
20375 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20376         * ContainerControl.cs: Incorrect contains check in ActiveControl 
20377         from previous fix (duh).
20378
20379 2006-10-20  Chris Toshok  <toshok@ximian.com>
20380
20381         * PropertyGridView.cs: the dropdown should be MIN(number of items
20382         in list, 15).  Fixes #79551.
20383
20384 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20385         Fixes #79384, #79394, #79652, #79667
20386         * Application.cs: 
20387         
20388         - Modal windows are now destroyed in the proper order for windows
20389         
20390         * ContainerControl.cs:
20391         
20392         - ActiveControl setter has more conditions on when to return:
20393                 - if we're reselecting the active control, but it actually
20394                 didn't have focus (window hidden or some such), it runs
20395                 - if the active control being selected doesn't actually 
20396                 exist in the container, it returns
20397         
20398         * Form.cs
20399         
20400         - The ShowDialog now gets the current form as the owner when
20401         invoking without parameters, and correctly activates the owner 
20402         when returning
20403         
20404         * MessageBox.cs
20405         
20406         - MessageBox now catches the Escape key to exit
20407
20408 2006-10-20  Chris Toshok  <toshok@ximian.com>
20409
20410         * PropertyGridView.cs: fix a number of issues (bug #78565, and
20411         most of bug #79676):
20412
20413         - you can navigate around the property grid with the arrow keys.
20414
20415         - the dropdown is sized properly when the pg has a vertical
20416         scrollbar.
20417
20418         - fix the indentation for subentries, and properly select the
20419         entire label rect.
20420
20421         - fix the gray bar's drawing (only draw it to the last element,
20422         not for the height of the control.  Also make sure we draw that
20423         last horizontal grid line.
20424
20425         - use the same mechanism the datagrid uses wrt the editing textbox
20426         when scrolling/resizing/etc.  Namely, we hide it first, do the
20427         operation, then show it again (if it's still visible).
20428         
20429         - aggressively remove a lot of unnecessary refreshes (and also
20430         calls to Invalidate(). call more limited variants, and only redraw
20431         what we need.)
20432         
20433         * PropertyGrid.cs:
20434
20435         - when we're populating the merged collection, fill in the UI
20436         parent with either the passed in item, or the category item we
20437         create.
20438
20439         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
20440
20441         * GridItem.cs: drop some fully qualified names.
20442         
20443         * GridEntry.cs: add a "UIParent", which is basically the parent
20444         treenode.
20445
20446         * GridItemCollection.cs: add an IndexOf method.
20447
20448 2006-10-20  Mike Kestner  <mkestner@novell.com>
20449
20450         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
20451         a working win32 NC invalidation mechanism, we can't invalidate
20452         menus.  [Fixes #79705]
20453
20454 2006-10-20  Mike Kestner  <mkestner@novell.com>
20455
20456         * ListBox.cs : don't update the VScrollbar if the list is empty,
20457         just hide it.  [Fixes #79692]
20458
20459 2006-10-20  Jackson Harper  <jackson@ximian.com>
20460
20461         * RichTextBox.cs: Handle some special chars better, and don't skip
20462         the entire group when we encounter a special char that we don't
20463         handle correctly.
20464
20465 2006-10-18  Chris Toshok  <toshok@ximian.com>
20466
20467         * PropertyGridView.cs: address a number of issues from bug #79676,
20468         mostly of the cosmetic variety.
20469
20470         - The highlight rectangle for indented items not extends all the
20471         way to the left.
20472
20473         - Indented items aren't indented so much.
20474
20475         - the dropdown is properly sized width-wise if the pg has a
20476         vertical scrollbar.
20477
20478 2006-10-18  Chris Toshok  <toshok@ximian.com>
20479
20480         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
20481         systray stuff is rather convoluted to begin with.
20482
20483         systray icons are a single window for some reason (that I haven't
20484         figured out yet), and for them, client_window == whole_window.
20485         Given the way the tests are structured elsewhere to determine
20486         which paints are pending (client vs. nc), that situation will
20487         always yield PAINT, not NCPAINT.  So, if we have a pending
20488         nc_expose and no pending expose, remove the hwnd from the paint
20489         queue, and also set nc_expose_pending to false, to keep us from
20490         blocking further expose's adding the hwnd to the paint queue.
20491
20492         phew.  like i said, a rather convoluted change.  Fixes the
20493         notifyicon repaint issues in bug #79645.
20494
20495 2006-10-18  Chris Toshok  <toshok@ximian.com>
20496
20497         * Form.cs: when getting the backcolor of the form, don't get
20498         base.BackColor, as this allows parents to influence the background
20499         color.  This breaks mdi forms.  Instead, if the background_color
20500         is empty, return the default.
20501
20502 2006-10-18  Chris Toshok  <toshok@ximian.com>
20503
20504         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
20505         to being private instead of internal static.
20506
20507         * Control.cs: remove all the stupid ParentWaitingOnRecreation
20508         crap, it wasn't working for more deeply nested controls anyway,
20509         and we already have the is_recreating flag - use that instead.
20510         Before calling DestroyHandle in RecreateHandle, recurse through
20511         the control tree setting it to true.  this returns the recreate
20512         code to much of its original simplicity, while now guaranteeing we
20513         actually recreate everything we're supposed to.  This change gets
20514         fyireporting actually showing mdi children.
20515
20516 2006-10-17  Chris Toshok  <toshok@ximian.com>
20517
20518         * Form.cs: remove some debug spew, and collapse some duplicate
20519         code at the end of SetClientSizeCore.
20520
20521         * XplatUIX11.cs: 
20522         - add some more debug spew here too wrt Destroy handling.
20523         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
20524         in Control's handling of WM_DESTROY.
20525         - Remove the handling of zombie window DestroyNotifies from the
20526         event loop - we don't need it.  Now the only DestroyNotifies we
20527         actually handle are ones generated by X.
20528         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
20529         match gtk's (functioning) handling of this. This keep metacity
20530         from leaving droppings in the form of wm borders with no window
20531         contents all over the place.
20532
20533         * Control.cs:
20534         - add a bunch of debug spew wrt control recreation.
20535         - fix a bug where we weren't tracking Visible properly on
20536         recreated hwnds.
20537         - fixed the WM_PAINT double buffer handling to support re-entrant
20538         calls (yes, i know it's gross, but it's happening to us).
20539
20540 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
20541         * ThemeWin32Classic.cs: changed drawing of selected days
20542         to make them look better.
20543
20544 2006-10-16  Chris Toshok  <toshok@ximian.com>
20545
20546         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
20547         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
20548
20549         * XplatUIX11.cs: move away from using hwnd.client_dc and
20550         hwnd.non_client_dc and on to a stack of dc's (and in window's
20551         case, PAINTSTRUCT's), so we can deal with nested Paint calls
20552         without puking or not disposing of Graphics objects.
20553
20554         * XplatUIOSX.cs: same.
20555
20556         * XplatUIWin32.cs: same.
20557
20558 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
20559
20560         * FileDialog.cs: Don't call on_directory_changed inside
20561           OnSelectedIndexChanged (it changes the SelectedIndex too).
20562           Instead move it to OnSelectionChangeCommitted.
20563
20564 2006-10-13  Chris Toshok  <toshok@ximian.com>
20565
20566         * XplatUIX11.cs: more Destroy work.  the current code does the
20567         following things, in order:
20568
20569         1. Enumerates all handles of all controls at or below the one
20570         being destroyed, in pre-order.  As it is doing this, it marks the
20571         handles as zombie and clears all references to them.
20572         
20573         2. calls XDestroyWindow on the window passed in.
20574
20575         3. SendMessage's WM_DESTROY to all he handles in the accumulated
20576         list.
20577
20578 2006-10-13  Chris Toshok  <toshok@ximian.com>
20579
20580         * XplatUIX11.cs: set hwnd.zombie to true before calling
20581         SendMessage (WM_DESTROY).  this keeps us from marking the new
20582         window a zombie, and also keeps us from calling sendmessage at
20583         all.
20584
20585 2006-10-13  Jackson Harper  <jackson@ximian.com>
20586
20587         * TextControl.cs: Do not show the caret and selection at the same
20588         time.  Reduces ugliness by 35%.
20589
20590 2006-10-13  Chris Toshok  <toshok@ximian.com>
20591
20592         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
20593         zombie after we do the recursive call, so we actually do call
20594         SendMessage on the children controls.
20595         (GetMessage): if we find a pending paint event for a zombie hwnd,
20596         remove the hwnd from the paint queue, or else it will always be
20597         there (and we'll effectively loop infinitely)
20598
20599 2006-10-13  Mike Kestner  <mkestner@novell.com>
20600
20601         * MenuItem.cs : add Selected format under keynav too.
20602         Fixes #79528.
20603
20604 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
20605
20606         * PropertyGrid.cs: Fixed some NRE's and small difference between our
20607         implementation and that of MS.
20608
20609 2006-10-13  Chris Toshok  <toshok@ximian.com>
20610
20611         * Control.cs (OnInvalidated) only futz with the invalid_region if
20612         the control is double buffered.  this fixes the apparent hang in
20613         the ListView unit tests.  Someone needs to make the
20614         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
20615
20616 2006-10-13  Chris Toshok  <toshok@ximian.com>
20617
20618         * PropertyGridView.cs:
20619
20620         - do a little refactoring so that only one place calls
20621         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
20622         else call that.  Also make it Refresh, since there are redraw bugs
20623         otherwise (we should take a look at that...)
20624
20625         - do a little more refactoring work to share the body of code
20626         involved with the drop down.  it was duplicated in the code
20627         dealing with the listbox handling and in the code dealing with the
20628         UITypeEditors.
20629
20630         - add a Capture to the dropdown form's control once it's
20631         displayed, and add a MouseDown handler that checks to make sure
20632         the position is inside the control.  If it's not, close the
20633         dropdown.  This fixes #78190.
20634
20635         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
20636         if the value is different than the initial value.
20637         
20638 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
20639
20640         * Control.cs: see #78650
20641         - Fixed GetNextControl for several cases:
20642                 - Changed FindFlatForward to return 
20643                 correct sibling control when more than one
20644                 control has same TabIndex as the currently 
20645                 focused one.
20646                 - Changed FindFlatBackward to loop children
20647                 from last to first and apply same logic as in
20648                 FindFlatForward
20649                 - Changed FindControlForward to search for
20650                 children when control is not a container
20651                 but has children, or search for siblings if
20652                 control is a container...
20653                 - Changed FindControlBackward   to continue
20654                 searching for child controls when hitting 
20655                 Panel-like parents
20656                 
20657         - Fixed Focus method to update ActiveControl
20658         (FocusTest.FocusSetsActive failure)
20659         
20660         * TabControl.cs:
20661         - Focus rectangle now refreshes when gaining
20662         or losing focus
20663         - Removed grab for Tab key on IsInputKey that 
20664         was keeping tab navigation from working (#78650)
20665
20666 2006-10-13  Chris Toshok  <toshok@ximian.com>
20667
20668         * PropertyGridView.cs:
20669         - Rewrite SetPropertyValue to loop over SelectedGridItem's
20670         SelectedObjects.
20671
20672         - Deal with GridItem.Value == null a few places.
20673
20674         * PropertyGrid.cs: 
20675         - replace the PopulateGridItemCollection with a pair of methods
20676         which compute the intersection of all the properties in the
20677         SelectedObjects array.  Fixes #79615.
20678
20679         - Throw ArgumentException from set_SelectedObjects if there's a
20680         null in the array.
20681
20682         - Add GetTarget method which can be used to traverse up the
20683         GridItem.Parent chain.  It depends on the assumption that
20684         selected_objects for different GridEntries are always in the same
20685         order (a safe assumption).  Use this method and loop over all the
20686         selected objects in the entry when calling RemoveValueChanged and
20687         AddValueChanged.
20688         
20689         * GridEntry.cs: Make this handle multiple selected objects.
20690         .Value returns null if not all the selected objects share the same
20691         value.
20692
20693 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
20694         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
20695           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
20696           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
20697           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
20698           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
20699         add additional functionality.
20700
20701 2006-10-12  Mike Kestner  <mkestner@novell.com>
20702
20703         * ErrorProvider.cs : new ToolTipWindow ctor sig.
20704         * HelpProvider.cs : new ToolTipWindow ctor sig.
20705         * ToolTip.cs : remove ToolTip param from Window sig since it is
20706         not used.
20707         * ToolBar.cs : add tooltip support.  Fixes #79565.
20708
20709 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
20710
20711         * ComboBox.cs: move the events in set_SelectedIndex to 
20712         after the call to HighlightIndex in order to avoid 
20713         possible recursion and subsequent problems with the call
20714         to HighlightIndex and include a range check in 
20715         set_HighlightIndex. Fixes #79588
20716         
20717 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
20718
20719         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
20720         to ui thread's settings instead of sunday. 
20721         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
20722
20723 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
20724
20725         * DateTimePicker.cs
20726         * MonthCalendar.cs
20727         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
20728         and implement missing functionality (selecting different parts 
20729         of the date and edit them individually with the keyboard).
20730         
20731 2006-10-11  Chris Toshok  <toshok@ximian.com>
20732
20733         * Control.cs (OnInvalidated): fix NRE relating to last change.
20734
20735 2006-10-11  Chris Toshok  <toshok@ximian.com>
20736
20737         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
20738         atoms in _NET_WM_STATE here if the window is maximized.  We need
20739         to do this because we're *replacing* the existing _NET_WM_STATE
20740         property, so those atoms will be lost otherwise, and any further
20741         call to GetWindowState will return Normal for a window which is
20742         actually maximized.  Fixes #79338.
20743
20744 2006-10-11  Jackson Harper  <jackson@ximian.com>
20745
20746         * TextControl.cs: Special case for setting selection end to
20747         selection start, we basically kill the anchor.
20748         - some todo comments.
20749
20750 2006-10-11  Chris Toshok  <toshok@ximian.com>
20751
20752         * Control.cs: switch to using an "invalid_region" to track which
20753         parts of the image buffer need updating.  This is more code than
20754         the simple fix from r66532.  That version just attempted to always
20755         fill the entire buffer on redraw, which turns out to be
20756         inefficient when invalidating small rectangles.  This version
20757         simply adds the invalid rectangle to the invalid region.  When we
20758         get any WM_PAINT message we see if it can be filled using the
20759         image buffer, and if it can't (if the paint event's clip rectangle
20760         is visible in the invalid region) we first fill the image buffer.
20761         So, the image buffer is still a cache, we just fill it lazily.
20762
20763         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
20764         need it any longer.
20765
20766 2006-10-11  Chris Toshok  <toshok@ximian.com>
20767
20768         * XplatUIX11.cs (SetWindowPos): we need to update both position as
20769         well as size after calling XMoveResizeWindow.  This keeps us from
20770         ignoring future SetWindowPos calls.  Fixes the disappearing
20771         DateTimePicker in the ToolBarDockExample from bug #72499.
20772
20773 2006-10-11  Chris Toshok  <toshok@ximian.com>
20774
20775         * TextBoxBase.cs: reorder things a bit when it comes to
20776         resizing-causing-recalculation.  we were recalculating the
20777         document when our position was changed, which shouldn't happen.
20778         We only care about size changes.  Clear up some more redundant
20779         recalculation calls while I'm at it.  This makes the toolbar dock
20780         example snappy when you're just dragging toolbars around (since it
20781         causes a relayout whenever you move one.)
20782
20783 2006-10-11  Chris Toshok  <toshok@ximian.com>
20784
20785         * ToolBarButton.cs (get_Rectangle): this only returns
20786         Rectangle.Empty if Visible == false, or Parent == null.
20787         Parent.Visible doesn't matter.
20788
20789 2006-10-10  Chris Toshok  <toshok@ximian.com>
20790
20791         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
20792         by .net 1.1, so switch to an internal method instead.
20793
20794 2006-10-10  Chris Toshok  <toshok@ximian.com>
20795
20796         * Control.cs (WM_PAINT): when a control is double buffered we draw
20797         initially to the ImageBuffer and then copy from there.  But when a
20798         parent control which has child controls is double buffered, the
20799         initial drawing doesn't encompass the entire ClientRectangle of
20800         the parent control, so we end up with uninitialized bits (this is
20801         easily seen by dragging the top toolbar in
20802         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
20803         manually set the ClipRectangle of the paint_event (only the one we
20804         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
20805         of the nastiness in bug #72499.
20806
20807         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
20808         which we use in Control.cs's WM_PAINT handling.
20809
20810 2006-10-10  Jackson Harper  <jackson@ximian.com>
20811
20812         * TextBoxBase.cs: Finish off the autoscrolling stuff.
20813
20814 2006-10-10  Chris Toshok  <toshok@ximian.com>
20815
20816         * Cursor.cs: Apply a slightly different patch to the one suggested
20817         in #79609.
20818
20819 2006-10-10  Jackson Harper  <jackson@ximian.com>
20820
20821         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
20822         not the parent form.
20823         * TextControl.cs: use difference in old line count vs new count to
20824         calculate how many lines were added, this takes into account soft
20825         line breaks properly.
20826
20827 2006-10-10  Chris Toshok  <toshok@ximian.com>
20828
20829         * LinkLabel.cs: don't call MeasureCharacterRanges against a
20830         rectangle located at 0,0 and the size of the text.  Use
20831         ClientRectangle instead.  This fixes rendering of non-left aligned
20832         link labels.
20833
20834 2006-10-10  Jackson Harper  <jackson@ximian.com>
20835
20836         * TextBoxBase.cs: When we set the selection start position the
20837         caret.
20838         * TextControl.cs: Need to update the caret when we decrement it to
20839         zero.
20840         - Make sure that the selection_visible flag gets reset to false if
20841         the selection isn't visible.  Before this you could get it set to
20842         visible by changing the selection start, then changing the end to
20843         equal the start.
20844
20845 2006-10-09  Jackson Harper  <jackson@ximian.com>
20846
20847         * TreeView.cs: Don't update scrollbars when we aren't visible.
20848         * TreeNodeCollection.cs: Only need to update scrollbars if being
20849         added to an expanded visible node or the root node.
20850
20851 2006-10-09  Chris Toshok  <toshok@ximian.com>
20852
20853         * XplatUIX11.cs (SendMessage): fix NRE.
20854
20855 2006-10-09  Jackson Harper  <jackson@ximian.com>
20856
20857         * TextBoxBase.cs: Implement horizontal autoscrolling.
20858         * TextControl.cs: Add a movement types that allows moving forward
20859         and backwards without wrapping.
20860
20861 2006-10-09  Mike Kestner  <mkestner@novell.com>
20862
20863         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
20864         with focus "expansion" of labels.  Fixes #79532 and then some.
20865         * ThemeWin32Classic.cs : add LineLimit to ListView label format
20866         when wrapping.
20867
20868 2006-10-09  Jackson Harper  <jackson@ximian.com>
20869
20870         * TextBoxBase.cs: Set the default max values to MaxValue since
20871         we use the scrollbar for autoscrolling and the default value is
20872         100.  If we don't do this the caret won't keep up with typing
20873         after about 18 characters.
20874         * TextControl.cs: Make sure the selection is offset by the
20875         viewport x.  This fixes selection when using auto scrolling.
20876
20877 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
20878         
20879         * Form.cs: The active control should be selected after the 
20880         OnLoad so that any child control initialization that affects
20881         the selection is done. Fixes #79406
20882
20883 2006-10-06  Chris Toshok  <toshok@ximian.com>
20884
20885         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
20886         to have no evil effects.
20887
20888         - Stop selecting StructureNotifyMask on non-toplevel windows.
20889
20890           The only way children should be resized is by using the SWF api,
20891           and we already send WM_WINDOWPOSCHANGED messages in those cases.
20892           Toplevel windows can be interacted with via the window manager,
20893           and so we keep the input mask there.
20894
20895           The other event StructureNotifyMask gives us (that we care
20896           about) is DestroyNotify.  The code is already structured such
20897           that it assumes we won't be getting a DestroyNotify event for
20898           the window we pass to XDestroyWindow (which is what
20899           StructureNotifyMask is supposed to guarantee.)  So, that code
20900           shouldn't be affected by this either.
20901
20902         - Stop selecting VisibilityChangeMask altogether.
20903
20904           We weren't doing anything with the resulting events anyway.
20905         
20906         This vastly reduces the number of X requests and events we see
20907         when resizing/laying out a large ui.
20908
20909 2006-10-06  Chris Toshok  <toshok@ximian.com>
20910
20911         * ScrollableControl.cs (DisplayRectangle): we need to take into
20912         account the DockPadding regardless of whether or not auto_scroll
20913         == true.  rework this slightly to this effect, and fix bug #79606,
20914         and part of #72499 (you can now see the drag handles and drag
20915         toolbars around).
20916
20917 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
20918
20919         * ListViewItem.cs: Collections of selected and checked items are now
20920         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
20921         we mark the collection "dirty".
20922         * ListView.cs: Marked collections readonly. Modified UpdateSelection
20923         to only clear SelectedItems when a new item is selected and MultiSelect
20924         is enabled. CheckedItems and SelectedItems now subscribe to Changed
20925         event of ListViewItemCollection, and mark its list dirty whenever
20926         that event is fire. This allows us to return selected/checked items 
20927         in the same order as they are in the Items collection. This matches
20928         the MS behavior.
20929
20930 2006-10-06  Chris Toshok  <toshok@ximian.com>
20931
20932         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
20933         right mouse clicks.  Fixes bug #79593.
20934
20935 2006-10-06  Chris Toshok  <toshok@ximian.com>
20936
20937         * Splitter.cs: doh, fix splitters that don't want to cancel the
20938         movement when you drag them.  Also, impose the limits on the
20939         values we send to the SplitterMovingEvent.  Fixes #79598.
20940
20941 2006-10-06  Jackson Harper  <jackson@ximian.com>
20942
20943         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
20944         since we use this for auto scrolling also.
20945
20946 2006-10-05  Chris Toshok  <toshok@ximian.com>
20947
20948         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
20949         beginning to think that most datagrid column types don't need this
20950         method.  Fixes bug #79392.
20951
20952 2006-10-05  Chris Toshok  <toshok@ximian.com>
20953
20954         * DataGrid.cs: move back to a more lazy scheme for creating the
20955         CurrencyManager, so we aren't updating it every time you set
20956         either DataSource or DataMember.  Also, don't call
20957         RecreateDataGridRows if the currency manager hasn't changed.
20958
20959 2006-10-05  Chris Toshok  <toshok@ximian.com>
20960
20961         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
20962         emitted, SelectedIndex should already be updated.  Fixes bug
20963         #78929.
20964
20965 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
20966
20967         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
20968           ToolStripTextBox.cs: Initial commit.
20969         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
20970
20971 2006-10-05  Jackson Harper  <jackson@ximian.com>
20972
20973         * TabControl.cs: We need to invalidate the tab control area when
20974         new ones are added (duh).
20975
20976 2006-10-03  Chris Toshok  <toshok@ximian.com>
20977
20978         * Form.cs (ProcessDialogKey): if the focused control is in this
20979         form and is a button, call its PerformClick method here.  Fixes
20980         #79534.
20981
20982 2006-10-04  Jackson Harper  <jackson@ximian.com>
20983
20984         * TabPage.cs: Ignore setting of Visible, and add an internal
20985         method for setting the controls visibility.  TabPage's Visible
20986         property is a little strange on MS, this seems to make us
20987         compatible, and fixes cases where people set all the tab pages to
20988         visible.
20989         * TabControl.cs: Use the new internal setting on tab pages
20990         visibility.
20991
20992 2006-10-03  Mike Kestner  <mkestner@novell.com>
20993
20994         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
20995
20996 2006-10-03  Mike Kestner  <mkestner@novell.com>
20997
20998         * ListView.cs : use is_visible instead of Visible to check if 
20999         scrollbars should be placed/sized.  Also some max_wrap_width
21000         love for LargeIcon view.  [Fixes #79533]
21001
21002 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
21003
21004         * TextControl.cs :
21005           Make set_TextAlign() do actually update the align. Fixed #78403.
21006
21007 2006-10-03  Chris Toshok  <toshok@ximian.com>
21008
21009         * DataGrid.cs: fix a crash when switching datasources if the
21010         vertical scrollbar is at someplace other than Value = 0.  Also,
21011         reduce the number of recalculation passes we do in SetDataSource
21012         from 2 to 1.
21013
21014 2006-10-03  Jackson Harper  <jackson@ximian.com>
21015
21016         * TextBoxBase.cs: Move the if value the same bail check up, we
21017         don't want to empty the document if it is already empty, this
21018         seems to severly mess up the caret.  TODO: I should probably fix
21019         the empty statement to update teh caret somehow.
21020
21021 2006-10-03  Chris Toshok  <toshok@ximian.com>
21022
21023         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
21024         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
21025         reflection, an internal row type, properties on said type, etc.)
21026         will work with our datagrid.  Fixes #79531.
21027
21028 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
21029
21030         * FileDialog.cs: Don't crash if a path is not accessible
21031           (System.UnauthorizedAccessException). Fixes #79569.
21032         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
21033           a ':' too. Return unknown icon for those paths/files.
21034
21035 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
21036
21037         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
21038         GetContainerControl returns null.
21039
21040 2006-10-02  Chris Toshok  <toshok@ximian.com>
21041
21042         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
21043         call to XGetWindowAttributes instead of "handle".  fixes an X
21044         error using notifyicon after the NotifyIconWindow to Form base
21045         class switch.
21046
21047 2006-10-02  Chris Toshok  <toshok@ximian.com>
21048
21049         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
21050         server grab and looping we need to do to get down to the most
21051         deeply nested child window.
21052         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
21053         QueryPointer again after the WarpPointer so we can generate a
21054         proper (fake) MotionNotify event to be enqueued in the destination
21055         window's queue.
21056         (GetCursorPos): call QueryPointer.
21057
21058         Fixes #79556.
21059
21060 2006-10-02  Jackson Harper  <jackson@ximian.com>
21061
21062         * NotifyIcon.cs: Derive the notify icon from a form, so things
21063         like FindForm work on it.
21064         - Swallow the WM_CONTEXTMENU message, since that is generated on
21065         mouse down, and context menu is a mouse up kinda guy.  I believe
21066         the correct fix here is probably to make the notify icon entirely
21067         NC area, but this seems to work fine for anyone not manipulating
21068         WndProc.
21069
21070 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
21071
21072         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
21073           ToolStripItemCollection.cs, ToolStripLabel.cs,
21074           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
21075           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
21076           Initial implementation.
21077         * TextRenderer.cs: Provide padding to MeasureText.
21078
21079 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
21080
21081         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
21082         of ButtonBaseAccessibleObject. Fix bug #79552.
21083
21084 2006-10-02  Jackson Harper  <jackson@ximian.com>
21085
21086         * MdiWindowManager.cs: When maximizing use the containers client
21087         rect, not it's bounds, so nc area is accounted correctly.
21088         - Use the parent form's size for the menu position, since the
21089         client isn't always the full form size.
21090
21091 2006-10-01  Chris Toshok  <toshok@ximian.com>
21092
21093         * ScrollableControl.cs: make sure neither right_edge or
21094         bottom_edge are < 0, since they're used as LargeChange for the
21095         horiz/vert scrollbars respectively.  Fixes #79539.
21096
21097 2006-10-01  Chris Toshok  <toshok@ximian.com>
21098
21099         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
21100         the xplatuix11 code can cause us to destroy/recreate our handle.
21101
21102         * XplatUIX11.cs
21103         (SystrayAdd):
21104         - this code can be invoked many times for the same Hwnd.  Make
21105           sure we only destroy the client window once (the first time this
21106           method is called).  This fixes bug #79544.
21107         - Remove the call to the improperly bound XSync.  why we had two
21108           bindings to this, I will never know, but this call resulted in
21109           events being discarded from the queue(!).
21110         - correct a misunderstanding of _XEMBED_INFO - the second atom is
21111           not our current state but the state we wish to be in.  So, 0 if
21112           we don't want to be mapped.  Change it to 1.
21113         (SystrayRemove): The XEMBED spec makes mention of the fact that
21114         gtk doesn't support the reparent of client windows away from the
21115         embedder.  Looking at gtksocket-x11.c seems to agree with this.
21116         The only avenue we have for removing systray icons is to destroy
21117         them.  We don't want the handle to go away for good, though, so
21118         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
21119         #79545.
21120         
21121 2006-10-01  Chris Toshok  <toshok@ximian.com>
21122
21123         * Form.cs (WndProc): inline the native_enabled variable usage into
21124         the cases in which it's used.  Fixes #79536.
21125
21126 2006-09-29  Mike Kestner  <mkestner@novell.com>
21127
21128         * ListView.cs : toggle the selection state for ctrl clicks in 
21129         multiselect mode. [Fixes #79417]
21130
21131 2006-09-29  Mike Kestner  <mkestner@novell.com>
21132
21133         * ListView.cs : kill CanMultiSelect and refactor the selection
21134         code to support multiselection in the absence of mod keys. Steal
21135         arrow/home/end keys by overriding InternalPreProcessMessage to
21136         restore regressed keynav behavior.
21137         [Fixes #79416]
21138
21139 2006-09-29  Jackson Harper  <jackson@ximian.com>
21140
21141         * MdiClient.cs: Repaint the titlebars when the active window is
21142         changed.
21143
21144 2006-09-29  Chris Toshok  <toshok@ximian.com>
21145
21146         * Application.cs: when entering a runloop with a modal, make sure
21147         the hwnd is enabled.  Fixes #79480.
21148
21149 2006-09-29  Chris Toshok  <toshok@ximian.com>
21150
21151         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
21152         when ListManager.CanAddRows == false, bump us back one.
21153
21154         * DataGridColumnStyle.cs (ParentReadOnly): remove the
21155         listmanager.CanAddRows check.  This makes ArrayLists uneditable
21156         using a datagrid, which is not right.
21157         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
21158         is an IEditable, but call property_descriptor.SetValue regardless.
21159         fixes #79435.
21160
21161 2006-09-29  Chris Toshok  <toshok@ximian.com>
21162
21163         * DataGridBoolColumn.cs: we need to test equality in the face of
21164         possible null values (as is the case with the default NullValue).
21165         This patch keeps us from crashing in that case.
21166
21167 2006-09-29  Jackson Harper  <jackson@ximian.com>
21168
21169         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
21170         here, since it will get called for every node collection in the
21171         tree. This is now done in the treeview once the sorting is
21172         finished.
21173         * TreeView.cs: Recalculate the visible order, and update the
21174         scrollbars after sorting, set the top nope to the root so that the
21175         recalc actually works.
21176
21177 2006-09-29  Chris Toshok  <toshok@ximian.com>
21178
21179         * LinkLabel.cs: more handling of the default link collection in
21180         the face of LinkArea manipulation.  The default link collection
21181         contains 1 element (start=0,length=-1).  If the user sets LinkArea
21182         to anything and the links collection is the default, clear it.
21183         Then only add the link if its nonempty.  Fixes #79518.
21184
21185 2006-09-29  Chris Toshok  <toshok@ximian.com>
21186
21187         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
21188         piece correctly when we hit a '\n'.  Fixes #79517.
21189
21190 2006-09-29  Chris Toshok  <toshok@ximian.com>
21191
21192         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
21193         change the binding of gdk_init_check to take two IntPtr's, and
21194         pass IntPtr.Zero for both of them.  Fixes #79520.
21195
21196 2006-09-29  Mike Kestner  <mkestner@novell.com>
21197
21198         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
21199         [Fixes #78779]
21200
21201 2006-09-28  Jackson Harper  <jackson@ximian.com>
21202
21203         * XplatUIX11.cs: When translating NC messages make sure we go from
21204         whole window to screen, not client window to screen.
21205         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
21206         method doesn't exist
21207         - Skip over controls that aren't forms when arranging.
21208
21209 2006-09-28  Jackson Harper  <jackson@ximian.com>
21210
21211         * XplatUIWin32.cs: Clip the rect to the parent window.
21212         * XplatUIStructs.cs: Add clipping modes struct.
21213         * InternalWindowManager.cs: New private method that factors title
21214         bar heights in when calculating the pos of an NC mouse message.
21215         - Use SendMessage to force a paint when the form's size is changed
21216         instead of painting the decorations immediately.
21217         - Don't let the NC button click messages get to DefWndProc,
21218         because they will attempt to handle windowing themself, and this
21219         messes up z-order (it will put them in front of the scrollbars).
21220         * XplatUIX11.cs: Make sure that we don't reset window managers if
21221         we already have one (ie the window is an MDI window).
21222
21223 2006-09-28  Chris Toshok  <toshok@ximian.com>
21224
21225         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
21226         menu code really needs going over.
21227
21228 2006-09-27  Chris Toshok  <toshok@ximian.com>
21229
21230         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
21231         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
21232         window is maximizable.  So, we need to make sure that even if we
21233         clear the border/wm frame of those functions, they're still
21234         available (basically, we remove the decoration without removing
21235         the function).  Half the fix for #79338.
21236
21237 2006-09-27  Chris Toshok  <toshok@ximian.com>
21238
21239         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
21240         Fixes bug #79515.
21241
21242 2006-09-27  Chris Toshok  <toshok@ximian.com>
21243
21244         * Splitter.cs: reorder things a bit so that we don't actually
21245         draw/move the splitter until after calling OnSplitterMoving.  This
21246         lets users cancel/disallow the movement by explicitly setting
21247         event.SplitX/SplitY.  Fixes #79372.
21248
21249 2006-09-27  Jackson Harper  <jackson@ximian.com>
21250
21251         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
21252         because it is most likely on a window being destroyed, and that
21253         will give us an X11 error.
21254
21255 2006-09-27  Chris Toshok  <toshok@ximian.com>
21256
21257         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
21258         the dropdown button now toggles between showing and hiding the
21259         dropdown.  Also, get rid of dropdown_form_showing and just use
21260         dropdown_form.Visible.  We still don't do a grab, but I'll leave
21261         that part to someone who has handled Capture-fu before.
21262
21263 2006-09-27  Chris Toshok  <toshok@ximian.com>
21264
21265         * DataGrid.cs: return false if alt isn't pressed when '0' is
21266         pressed.  this keeps the '0' key from being swallowed, and fixes
21267         bug #79350.
21268
21269 2006-09-27  Chris Toshok  <toshok@ximian.com>
21270
21271         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
21272         Calling Refresh (in response to a scrollbar event) screws up the
21273         scrollbar painting.  Fixes bug #78923.
21274
21275 2006-09-27  Chris Toshok  <toshok@ximian.com>
21276
21277         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
21278         then insert into hashtable" blocks threadsafe.
21279
21280 2006-09-27  Chris Toshok  <toshok@ximian.com>
21281
21282         * MessageBox.cs (CreateParams): the styles should be |'ed with our
21283         baseclass's, since otherwise the
21284         ControlBox/MinimizeBox/MaximizeBox assignments above have no
21285         effect.  This gets the close button back in messageboxes.
21286
21287 2006-09-27  Chris Toshok  <toshok@ximian.com>
21288
21289         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
21290         flag, not just != 0.  this makes flags that are actually multiple
21291         bits (like WS_CAPTION) work.  fixes bug #79508.
21292
21293 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
21294
21295         * PageSetupDialog.cs: add support for getting and settings the 
21296         paper size, source and orientation.
21297
21298 2006-09-26  Chris Toshok  <toshok@ximian.com>
21299
21300         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
21301         and caption == "", we need to remove the resize handles as well as
21302         the title bar.
21303
21304         * Control.cs (set_Text): turns out that setting Text on a form
21305         should change the WM styles on the window, since if ControlBox ==
21306         false, the only way to get a window border is to have a non-""
21307         Text property.  check winforms/forms/text.cs for an example.  so,
21308         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
21309         update both window styles and title.  This fixes a lot of dialogs
21310         (including the preferences dialog in MonoCalendar.)
21311
21312 2006-09-26  Chris Toshok  <toshok@ximian.com>
21313
21314         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
21315         control isn't a Form), call Win32ShowWindow to hide the window,
21316         but don't update the control Visible property.  When we reparent
21317         back to a parent control, call SetVisible in order for the
21318         window's visibility to be reinstated.
21319
21320         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
21321         the FosterParent.
21322
21323         * Control.cs (ControlCollection.Remove): remove that value.Hide()
21324         call for good, since it breaks MonoCalendar (and other things I'm
21325         sure.) Also, set all_controls to null *after* the owner calls,
21326         which end up regenerating it.
21327         (ChangeParent): allow new_parent to be == null, passing
21328         IntPtr.Zero down to XplatUI.
21329
21330         this fixes #79294 the right way.
21331
21332 2006-09-26  Mike Kestner  <mkestner@novell.com>
21333
21334         * GridEntry.cs : internal SetParent method.
21335         * PropertyGrid.cs : attach to property changed on the proper
21336         target if we have a hierarchical grid with subobjects. Setup
21337         GridItem.Parent for hierarchical items.
21338         * PropertyGridView.cs : Set value on the correct target for
21339         hierarchical grids. [Fixes #78903]
21340
21341 2006-09-26  Chris Toshok  <toshok@ximian.com>
21342
21343         * Control.cs (ChildNeedsRecreating): this should return true if
21344         either we're being recreated and the child is in our list, or our
21345         parent is waiting for our recreation.
21346
21347 2006-09-26  Chris Toshok  <toshok@ximian.com>
21348
21349         * Control.cs (ControlCollection.Remove): reinstate the
21350         value.Hide() call as suggested in bug #79294.
21351
21352 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
21353
21354         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
21355         coordinates (versus a relative move).
21356
21357 2006-09-26  Chris Toshok  <toshok@ximian.com>
21358
21359         * Control.cs: rework child recreation a little bit.  It turns out
21360         that we race between the DestroyNotify the WM_DESTROY message.  If
21361         the parent gets its DestroyNotify before the child gets the
21362         WM_DESTROY message, the child ends up not recreating (since the
21363         parent finishes its recreation on DestroyNotify, and the child
21364         checks ParentIsRecreating.)
21365
21366         So, instead we store off a list of all the child controls which
21367         need to be recreated when the parent control starts to recreate
21368         itself.  Then, when child controls get their WM_DESTROY message we
21369         check to see if they're in the parent's pending recreation list,
21370         and if so, we recreate.  This removes all dependency on ordering
21371         from the code and fixes the initial MonoCalendar upgrade dialog.
21372         
21373 2006-09-26  Jackson Harper  <jackson@ximian.com>
21374
21375         * TextControl.cs: Use the Line to get the length of the line,
21376         since soft line breaks can change the end line.
21377
21378 2006-09-26  Chris Toshok  <toshok@ximian.com>
21379
21380         * Control.cs (ControlCollection.AddImplicit): don't add the
21381         control again if it's already in one of our lists.  This keeps us
21382         from adding controls over and over again for comboboxes when their
21383         handle gets recreated (as the combobox adds implicit controls in
21384         OnHandleCreated).  Fixes the X11 errors in bug #79480.
21385
21386 2006-09-26  Jackson Harper  <jackson@ximian.com>
21387
21388         * TextControl.cs: When deleting characters make sure that any
21389         orphaned zero lengthed tags get deleted.
21390         - Fix ToString for zero lengthed tags.
21391
21392 2006-09-25  Jackson Harper  <jackson@ximian.com>
21393
21394         * TextControl.cs: When getting a tag at the location there can be
21395         multiple tags at the same spot, these are 0-lengthed tags that
21396         appear when extra formatting has been stuck in a location.  We
21397         need to pull out the last of these 0 lengthed tags.
21398
21399 2006-09-25  Jackson Harper  <jackson@ximian.com>
21400
21401         * TextControl.cs: Fix print out in debug method.
21402         * TextBoxBase.cs: When text is set bail if we are setting to the
21403         previous value.
21404         
21405 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
21406
21407         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
21408           It is now possible to change the selected index in a FontXXXListBox
21409           with the up and down arrow keys from the FontXXXTextBoxes.
21410           Also, send the FontXXXTextBox mouse wheel event to the corresponding
21411           FontXXXListBoxes to match ms.
21412
21413 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
21414
21415         * SystemInformation.cs: Return a clone of the theme's MenuFont because
21416         anyone can dispose it, anytime. All other properties returns enums, 
21417         structs or basic types so they don't need such tricks.
21418
21419 2006-09-22  Jackson Harper  <jackson@ximian.com>
21420
21421         * XplatUI.cs:
21422         * XplatUIWin32.cs:
21423         * Clipboard.cs:
21424         * DataFormats.cs:
21425         * XplatUIOSX.cs:
21426         * XplatUIDriver.cs: Update interface to add a primary selection
21427         flag, so the driver can use the primary selection buffer if
21428         needed.
21429         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
21430
21431         * RichTextBox.cs: We need to supply the data object to paste now
21432         (so we can choose to supply CLIPBOARD or PRIMARY).
21433         * TextBoxBase.cs: Supply data object to paste (see above).
21434         - Middle click uses the primary selection data object.
21435         
21436 2006-09-21  Chris Toshok  <toshok@ximian.com>
21437
21438         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
21439         of SetWMStyles.  It's still a rat's nest and is largely
21440         order-dependent which I dislike immensely.  This also fixes the X
21441         button disappearing from toplevel forms.
21442
21443 2006-09-21  Mike Kestner <mkestner@novell.com>
21444
21445         * ListBox.cs: move Jordi's click/dblclick raising code to the
21446         mouse up handler.
21447
21448 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
21449
21450         * ListBox.cs: Fixes 79450
21451
21452 2006-09-21  Mike Kestner <mkestner@novell.com>
21453
21454         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
21455         to deal with people updating the TreeNodeCollection after the tree
21456         is disposed.  "Fixes" 79330.
21457
21458 2006-09-20  Jackson Harper <jackson@ximian.com>
21459
21460         * TextControl.cs: Push the cursor record onto the undo stack
21461         before the delete action. This fixes 78651.
21462
21463 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
21464
21465         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
21466         CreateParams. Fixes 79329.
21467
21468 2006-09-19  Chris Toshok  <toshok@ximian.com>
21469
21470         * XplatUIX11.cs: a couple of blanket code massage passes to clean
21471         things up a bit.  First, get rid of the NetAtoms array (and the NA
21472         enum), and just embed the atoms as static fields.  Also, add a
21473         couple of functions (StyleSet and ExStyleSet) to clean up all the
21474         bitmask testing of styles.
21475
21476         * X11Structs.cs: remove the NA enum, not needed anymore.
21477         
21478 2006-09-19  Chris Toshok  <toshok@ximian.com>
21479
21480         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
21481         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
21482         added cleanup to get MessageBox titles appearing again, which were
21483         broken by my earlier fix for caption-less/ControlBox-less windows.
21484
21485 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
21486
21487         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
21488           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
21489           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
21490           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
21491           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
21492           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
21493           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
21494           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
21495           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
21496           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
21497           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
21498             Inital import.
21499         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
21500           ToolStripButton.cs: Stubs needed for above.
21501         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
21502
21503 2006-09-15  Chris Toshok  <toshok@ximian.com>
21504
21505         * XplatUIX11.cs:
21506         - make the MessageQueues hashtable Synchronized.
21507         
21508         - SendMessage: if the Hwnd is owned by a different thread, use the
21509         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
21510         thread.  Fixes bug #79201.
21511
21512 2006-09-15  Chris Toshok  <toshok@ximian.com>
21513
21514         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
21515         ControlBox == false, we disallow maximize/minimize/close.  If the
21516         form Caption is "" we also disallow move (and get rid of the Title
21517         decoration).  Unfortunately, regardless of how things are set,
21518         we're stuck with the Title and WM menu.
21519
21520 2006-09-15  Chris Toshok  <toshok@ximian.com>
21521
21522         * Application.cs: add locking around the static message_filters
21523         ArrayList, part of #79196.
21524
21525 2006-09-15  Chris Toshok  <toshok@ximian.com>
21526
21527         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
21528         Form.ControlBox == false, the window has no titlebar nor resize
21529         handles.  fixes bug #79368.
21530
21531 2006-09-15  Chris Toshok  <toshok@ximian.com>
21532
21533         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
21534         >= 0.  Fixes bug #79370.
21535
21536 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
21537         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
21538         * Control.cs:
21539             Add properties: LayoutEngine, Margin, DefaultMargin.
21540             Add method: GetPreferredSize.
21541             Move layout logic from PerformLayout to layout engines. 
21542
21543 2006-09-13  Chris Toshok  <toshok@ximian.com>
21544
21545         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
21546         fix for #79326 broke #78718, so this change addresses that.
21547
21548         - in SendWMDestroyMessages remove the call to
21549         CleanupCachedWindows, since we might be recreating the control and
21550         need to maintain the references to right Hwnd handles.  Also, set
21551         the zombie flag to true for each of the children in the hierarchy
21552         instead of calling hwnd.Dispose.  This will cause GetMessage to
21553         ignore all events for the window except for DestroyNotify.
21554
21555         - In GetMessage, ignore messages except for DestroyNotify for
21556         zombie hwnds.
21557         
21558         * Control.cs: revert the is_recreating fix from the last
21559         ChangeLog.  It's definitely "right", but it breaks switching from
21560         an MDI form to a non-MDI form.  Will need to revisit that.
21561
21562         * Hwnd.cs: add a zombie flag, which means "the
21563         client_window/whole_window handles are invalid, but we're waiting
21564         for the DestroyNotify event to come in for them".  Set the flag to
21565         false explicitly if setting WholeWindow/ClientWindow, and also
21566         when Disposing.
21567         
21568 2006-09-13  Chris Toshok  <toshok@ximian.com>
21569
21570         * XplatUIX11.cs: rework window destruction slightly.
21571
21572         - when destroying the windows associated with a control, we don't
21573         need 2 separate XDestroyWindow calls.  Just the one for the
21574         whole_window (or for client_window if whole_window is somehow
21575         IntPtr.Zero -- can this happen?) is enough.
21576
21577         - reworked SendWMDestroyMessages slightly, so we always dispose
21578         the child control hwnd's after sending the messages.
21579         
21580         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
21581         the two places it was used (one was even using hwnd.Handle and the
21582         other hwnd.client_window.  ugh), adding another call in
21583         SendWMDestroyMessages.  We need this new call because now the
21584         DestroyNotify events in the queue will be ignored for the child
21585         controls (as their hwnd's were disposed, and the window id's
21586         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
21587
21588         - this fixes bug #79326.
21589
21590 2006-09-13  Chris Toshok  <toshok@ximian.com>
21591
21592         * Control.cs: don't always set is_recreating to false at the end
21593         of RecreateHandle, since sometimes we're not done (and won't be
21594         until WndProc handles the WM_DESTROY message).  Also, set
21595         is_recreating to false in the WM_DESTROY handling code.  Part of
21596         the fix for bug #79326.
21597
21598 2006-09-13  Miguel de Icaza  <miguel@novell.com>
21599
21600         * X11DesktopColors.cs: Start the droppage of debugging messages.
21601
21602         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
21603
21604 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
21605
21606         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
21607
21608 2006-09-12  Chris Toshok  <toshok@ximian.com>
21609
21610         * DataGrid.cs (get_ListManager): if the list_manager is null, try
21611         to create it using SetDataSource.  Fixes bug #79151.
21612
21613 2006-09-11  Chris Toshok  <toshok@ximian.com>
21614
21615         * XEventQueue.cs: add a DispatchIdle property.
21616
21617         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
21618         either the queue is null, or the queue has DispatchIdle set to
21619         true.
21620         (DoEvents): set queue.DispatchIdle to false around the
21621         peek/translate/dispatch message loop in this method.  This keeps
21622         Application.Doevents from emitting idle events.  Part of the fix
21623         for #78823.
21624
21625 2006-09-11  Chris Toshok  <toshok@ximian.com>
21626
21627         * DataGrid.cs (set_DataSource): make this work for both the
21628         winforms/datagrid test and ReportBuilder.  It seems as though when
21629         we've created a ListManager (or maybe it's if we have a
21630         BindingContext?), when we set the DataSource it clears the
21631         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
21632         #79333.
21633
21634 2006-09-11  Chris Toshok  <toshok@ximian.com>
21635
21636         * XplatUIX11.cs: deal with queue being null, which happens in all
21637         the Clipboard functions.  Fixes one of the two problems mentioned
21638         in #78612.
21639
21640 2006-09-11  Chris Toshok  <toshok@ximian.com>
21641
21642         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
21643         button on various spots (including outside the menu) works closer
21644         to MS, and doesn't crash.  Fixes #79343.
21645
21646 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
21647
21648         * ListView.cs: Do not initialize item_sorter in init. To match MS,
21649         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
21650         and the internal comparer is set. When a new ListViewItemSorter is set,
21651         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
21652         was specified. No further processing is necessary if SortOrder is set
21653         to it's current value. If Sorting is modified to None, and View is
21654         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
21655         (either custom or our internal ItemComparer) to null, on 1.0 profile
21656         only set item_sorter to null if its our internal IComparer. If Sorting
21657         is modified to Ascending or Descending, then use our internal IComparer
21658         if none is set, and if the current IComparer is our internal one then:
21659         on 2.0 profile always replace it with one for new Sorting, and on 1.0
21660         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
21661         Enum.IsDefined to verify whether a valid View value is specified in
21662         its setter. Automatically sort listview items when listview is
21663         created. In Sort, do nothing if ListView is not yet created, or if
21664         no item_sorter is set (no Sorting was set, Sorting was explicitly set
21665         to None or ListViewItemSorter was set to null). Added Sort overload
21666         taking a bool to indicate whether the ListView should be redrawn when
21667         items are sorted (we use this in ListViewItemCollection to avoid double
21668         redraws). Modified our internal IComparer to take the sort order into
21669         account. In Add and AddRange methods of ListViewItemCollection, also
21670         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
21671         view), but use overload with noredraw option to avoid double redraw.
21672         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
21673         true when View is Tile, and do the same when attempting to set View to
21674         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
21675         for selected/checked indices, as it involves overhead when sorting is
21676         done while these collections are not used all that often. Instead
21677         we'll build the indices on demand. Modified IList implementation of
21678         CheckedIndexCollection to use public methods if object is int.
21679         Modified CheckedListViewItemCollection to hide checked items if
21680         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
21681         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
21682         IList implementation in SelectedIndexCollection to use public methods
21683         if object is int. Modified SelectedListViewItemCollection to hide
21684         selected items if listview is not yet created.
21685         * ListViewItem.cs: CheckedIndices list no longer needs to be
21686         maintained separately (see ListView changes). Also clone font, fixes
21687         test failure.
21688
21689 2006-09-11  Mike Kestner  <mkestner@novell.com>
21690
21691         * ComboBox.cs: if we are updating the contents of the currently
21692         selected index, refresh the control or the textbox selection.
21693         [Fixes #79066]
21694
21695 2006-09-11  Mike Kestner  <mkestner@novell.com>
21696
21697         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
21698         the 'specified' logic has been moved there.  This seems like a bug 
21699         in Control.cs, since our current SetBoundsCore completely ignores 
21700         the specified parameter.  Peter's commit seems to indicate that is 
21701         the way the MS control implementation works.  [Fixes #79325]
21702
21703 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
21704
21705         * XplatUI.cs: Set default_class_name to be composed
21706         of current domain id. This allows MWF to be loaded in multiple
21707         domains on Win32.
21708
21709 2006-09-09  Miguel de Icaza  <miguel@novell.com>
21710
21711         * X11Keyboard.cs: If we are unable to obtain the input method, do
21712         not call CreateXic to create the input context.   Should fix
21713         #78944/79276.
21714
21715 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
21716
21717         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
21718           Simplified gnome support by adding more pinvokes to get the
21719           icon for a file or mime type.
21720
21721 2006-09-08  Jackson Harper  <jackson@ximian.com>
21722
21723         * MenuAPI.cs: Deslect popup context menu items before closing the
21724         window, so that you don't see the previously selected item
21725         selected when you reopen the menu.
21726         * TextControl.cs: Update the cursor position even if we don't have
21727         focus.  This fixes typing in things like the ComboBox.  I'm not
21728         totally sure we should always set the visibility if we don't have
21729         focus, but couldn't find any corner cases where the cursor showed
21730         up when it shouldn't.
21731
21732 2006-09-08  Chris Toshok  <toshok@ximian.com>
21733
21734         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
21735         our arrays are length 256.  & 0xff before indexing.  Fixes the
21736         crash in bug #78077.
21737         
21738 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21739
21740         * ThemeWin32Classic.cs: 
21741         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
21742         is true. Handle that check box too.
21743
21744 2006-09-07  Chris Toshok  <toshok@ximian.com>
21745
21746         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
21747         79244.
21748
21749 2006-09-07  Chris Toshok  <toshok@ximian.com>
21750
21751         * Control.cs: in set_BackColor only do the work if
21752         background_color != value.
21753
21754         * XplatUIX11.cs: move the clearing of invalid areas (both client
21755         and nc) to the same block of code where we set (nc_)expose_pending
21756         to false.  That is, move it from PaintEventEnd to PaintEventStart,
21757         so things that cause invalidates from within OnPaint will trigger
21758         another call to OnPaint.  Fixes bug #79262.
21759
21760 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
21761
21762         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
21763         * FileDialog.cs: Fix typo
21764
21765 2006-09-07  Jackson Harper  <jackson@ximian.com>
21766
21767         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
21768         for tab pages if they have any.
21769
21770 2006-09-06  Mike Kestner  <mkestner@novell.com>
21771
21772         * Splitter.cs: use the "current" rect when finishing drag handle
21773         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
21774
21775 2006-09-06  Mike Kestner  <mkestner@novell.com>
21776
21777         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
21778         support offset splitters. [Fixes #79298]
21779
21780 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
21781
21782         * Mime.cs: Fixed a bug that could override the global mime type
21783           result.
21784
21785 2006-09-05  Jackson Harper  <jackson@ximian.com>
21786
21787         * TabControl.cs: Better calculation method for setting the slider
21788         pos. Prevents crashes on really wide tabs.
21789         - Draw Image on tab pages if an image list is used.
21790
21791 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21792
21793         * MonthCalendar.cs: When Font changes, the Size should be
21794         updated to fit the new font's space requirements.
21795
21796 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
21797
21798         * ListBox.cs: If the items are cleared with Items.Clear set
21799           top_index to 0.
21800
21801 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21802
21803         * MonthCalendar.cs: Handle arrow keys as input keys. Also
21804         fire DateChanged event instead of DateSelected event when
21805         the date was changed by keyboard interaction.
21806
21807 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21808
21809         * DateTimePicker.cs: Handle DateChanged for the associated
21810         month_calendar control, and set month_calendar.Font from 
21811         OnFontChanged method, as well as resize the height of the
21812         control when needed. Make PreferredHeight proportional.
21813
21814 2006-09-01  Chris Toshok  <toshok@ximian.com>
21815
21816         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
21817         properties.
21818
21819         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
21820
21821 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
21822
21823         * FileDialog.cs: Set ClientSize instead of window size, to allow space
21824           for decorations (Fixes #79219)
21825
21826 2006-09-01  Mike Kestner  <mkestner@novell.com>
21827
21828         * ComboBox.cs: first stab at sorting plus some selection handling
21829         fixes to bring us more in line with MS behavior.  Also switches back
21830         to index based selection.  Alternative patches for index-based 
21831         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
21832         and latency@gmx.de on bug 78848.  I assume they were similar to this
21833         code I've had simmering in my tree forever.
21834         [Fixes #78848]
21835
21836 2006-09-01  Chris Toshok  <toshok@ximian.com>
21837
21838         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
21839         when setting list position guard against ending up with a -1 index
21840         (the other part of the fix for #78812).  Should probably make sure
21841         we don't need the analogous fix in the ItemDeleted case.
21842
21843         * DataGrid.cs:
21844         - in SetDataSource, work around the fact that the way
21845         OnBindingContextChanged is invoked will cause us to re-enter this
21846         method.  I'll remove the hack once I investigate
21847         OnBindingContextChanged.
21848
21849         - fix the logic in set_DataSource and set_DataMember (basically
21850         what to do if the other of the two is null.)
21851         
21852         - in OnListManagerItemChanged, we need to take into account the
21853         edit row when deciding whether or not to call RecreateDataGridRows
21854         (part of the fix for #78812).
21855
21856 2006-09-01  Jackson Harper  <jackson@ximian.com>
21857
21858         * Splitter.cs: Don't do anything if there is no control to affect
21859         (prevents us from crashing in weird tet cases).
21860         * TreeView.cs: Bounding box for the mouse movement reverting
21861         focus/selection back to previously selected node.  This matches
21862         MS, and makes the tree a lot more useable.
21863         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
21864         use clipping so they are not drawn.  This fixes when the control
21865         is set to have a transparent background, or if it was over an
21866         image.
21867
21868 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
21869
21870         * MimeIcon.cs: Improved handling for reading default icons when
21871           using gnome (2.16 made it necessary). Check and read svg icons
21872           first, then 48x48 and then 32x32 icons.
21873
21874 2006-08-31  Chris Toshok  <toshok@ximian.com>
21875
21876         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
21877         visible.
21878
21879         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
21880         ProcessKeyPreview.  Fixes part of #77806.
21881
21882         * DataGrid.cs: big patch.
21883
21884         - revert the queueing up of DataSource/DataMember if inside
21885         BeginInit/EndInit calls.  That's not the way the datagrid achieves
21886         its delayed databinding.  Instead, call SetDataSource in
21887         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
21888         #78811.
21889
21890         - Also, it wasn't mentioned in #78811, but the test case exhibits
21891         behavior that was lacking in our datagrid implementation - Columns
21892         that have mapping names that don't exist in the datasource's
21893         properties aren't shown.  Yuck.  To fix this I added the bound
21894         field to the column style, and basically any calculation to figure
21895         out anything about columns uses a loop to find the bound columns.
21896         still need to investigate if I can cache an array of the bound
21897         columns or if the indices must be the same.
21898
21899         - When setting CurrentCell, we no longer abort if the cell being
21900         edited was in the add row.  This fixes the other part of #77806.
21901
21902         - The new code also fixes #78807.
21903         
21904         * ThemeWin32Classic.cs: perpetrate the same disgusting
21905         column.bound field hack, and only render bound fields.
21906
21907 2006-08-31  Chris Toshok  <toshok@ximian.com>
21908
21909         * DataGridColumnStyle.cs: add bound field.  this field is true if
21910         the datasource has a property corresponding to the mapping name.
21911
21912         * DataGridTableStyle.cs: set the bound field on the column styles
21913         depending on whether or not we have a column for that property.
21914
21915 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
21916
21917         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
21918           splitter control (fixes #79228)
21919
21920 2006-08-31  Chris Toshok  <toshok@ximian.com>
21921
21922         * DataGridColumnStyle.cs: we need to delay the assignment of
21923         property descriptor until the last possible moment due to the lazy
21924         databinding stuff in the datagrid.  Also, fix the exceptions
21925         thrown by CheckValidDataSource to match MS.
21926
21927 2006-08-31  Jackson Harper  <jackson@ximian.com>
21928
21929         * Form.cs: When activated select the active control, if there is
21930         no active control, we select the first control.
21931         * XplatUIX11.cs: If there is no focus control when we get a
21932         FocusIn event, find the toplevel form and activate it.  This
21933         occurs when you popup a window, it becomes the focus window, then
21934         you close that window, giving focus back to the main window.
21935
21936 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21937
21938         * MonthCalendar.cs: 
21939         * ThemeWin32Classic.cs: Cache Font in bold style, as well
21940         as StringFormat with Center alignments in MonthCalendar,
21941         instead of creating new ones when drawing the control. 
21942         Also, draw the month name in bold style.
21943
21944 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
21945
21946         * Control.cs:
21947           - PerformLayout(): It would seem MS performs the fill even if the 
21948             control is not visible (part of #79218 fix)
21949           - ResetBackColor(): Use the setter to reset the color, to allow
21950             overriders to catch the change.
21951         * Form.cs:
21952           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
21953           - CreateHandle(): dito (part of $79218 fix)
21954           - Don't set an icon if we have a dialog
21955         * ScrollableControl.cs:
21956           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
21957           - ScrollIntoView(): No need to scroll if control is already visible
21958             (resolves fixme and fixes #79218)
21959
21960 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21961
21962         * MonthCalendar.cs: Change proportions in SingleMonthSize
21963         to match the aspect of the original control.
21964
21965 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
21966
21967         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
21968           get updated when they get maximized.
21969
21970 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
21971
21972         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
21973
21974 2006-08-29  Chris Toshok  <toshok@ximian.com>
21975
21976         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
21977
21978 2006-08-29  Jackson Harper  <jackson@ximian.com>
21979
21980         * TreeView.cs: Need to track selected node and highlighted node,
21981         they aren't always the same thing, when the mouse is down on a
21982         node it is hilighted, but not selected yet.
21983         - Do the HideSelection stuff right
21984         - Need to focus on rbutton mouse down. And redraw selection when
21985         right click is mouse upped.
21986
21987 2006-08-29  Mike Kestner  <mkestner@novell.com>
21988
21989         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
21990         when SubItems.Count < Columns.Count.  [Fixes #79167]
21991
21992 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
21993
21994         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
21995
21996 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
21997
21998         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
21999           from X. Only send based on ConfigureNotify if we don't have the
22000           correct location in hwnd (if the window manager moved us)
22001
22002 2006-08-28  Mike Kestner  <mkestner@novell.com>
22003
22004         * ListView.cs: remove a TODO. 
22005         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
22006         [Fixes ListView part of #79166]
22007
22008 2006-08-28  Mike Kestner  <mkestner@novell.com>
22009
22010         * ListView.cs: move wheel handler to parent since it is focused
22011         instead of the item_control now.  [Fixes #79177]
22012
22013 2006-08-28  Mike Kestner  <mkestner@novell.com>
22014
22015         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
22016         when the control is focused. [Fixes #79171]
22017
22018 2006-08-28  Mike Kestner  <mkestner@novell.com>
22019
22020         * ListView.cs: size the item and header controls for empty and
22021         unscrollable views.
22022         * ThemeWin32Classic.cs: draw disabled backgrounds.
22023         [Fixes #79187]
22024
22025 2006-08-28  Chris Toshok  <toshok@ximian.com>
22026
22027         * Form.cs: remove unused "active_form" static field.
22028
22029         * Hwnd.cs: lock around accesses to static windows collection.
22030
22031         * Application.cs: lock threads in Exit ().
22032
22033 2006-08-28  Chris Toshok  <toshok@ximian.com>
22034
22035         * NativeWindow.cs: lock around accesses to window_collection.
22036         
22037 2006-08-28  Chris Toshok  <toshok@ximian.com>
22038
22039         * Control.cs: err, fix this the right way, by locking on controls
22040         when using it.  not by making it synchronized.
22041
22042 2006-08-28  Chris Toshok  <toshok@ximian.com>
22043
22044         * Control.cs: make the static "controls" field synchronized, as it
22045         gets updated from multiple threads.
22046
22047 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
22048
22049         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
22050           Prevent other threads from exiting when calling thread sets quit state.
22051         * XEventQueue.cs: Added PostQuitState property
22052
22053 2006-08-27  Chris Toshok  <toshok@ximian.com>
22054
22055         * AsyncMethodData.cs: add a slot for the window handle.
22056
22057         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
22058         window (the destination control's window, not the foster window).
22059
22060         * Control.cs (BeginInvokeInternal): store the window's handle in
22061         the AsyncMethodData.
22062         
22063
22064 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
22065
22066         * XplatUIX11.cs:
22067           - PostQuitMessage: Removed resetting S.D display handle, we might have
22068             another loop started after calling PostQuitMessage (Fixes #79119)
22069           - Created destructor to reset S.D handle
22070
22071 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
22072
22073         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
22074
22075 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22076
22077         * TextControl.cs (Insert): Update the caret position even if we don't
22078           have a handle yet, just don't call the driver in that case.
22079         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
22080           to the end of the new selection text (Fixes #79184)
22081
22082 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22083
22084         * Form.cs (Activate): Only activate if the handle is created)
22085         * Control.c:
22086           - Mark window as invisible when it's disposed
22087           - Check if window handle is created when setting window visible, 
22088             instead of relying just on the is_created variable
22089           - Check if object is disposed when creating the control (Fixes #79155)
22090
22091 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22092
22093         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
22094           when allowing layout again. Otherwise we re-generate the anchoring 
22095           distance to the border again and actually alter what the user wanted
22096           This is ugly, it'd be better if we used DisplayRectangle instead of
22097           ClientRectangle for Control.UpdateDistances, but that causes us to
22098           have other problems (initial anchoring positons would be wrong)
22099           (Fixes #78835)
22100
22101 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22102
22103         * Control.cs:
22104           - The size and location setters shouldn't go directly to 
22105             SetBoundsCore, but to SetBounds, which triggers layout on the
22106             parent, then calls SetBoundsCore. (Related to fix for #78835)
22107           - SetBounds: Moved actual location update code into this function
22108             from SetBoundsCore, to match MS. Added call to PerformLayout if
22109             we have a parent (to trigger resizing of anchored parents if the 
22110             child size has changed (see testcase for #78835) 
22111         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
22112           new control code
22113         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
22114
22115 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22116
22117         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
22118           System.Drawing when a toplevel window gets closed; there might
22119           be other toplevel windows belonging to the same app (Fixes #78052)
22120
22121 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
22122
22123         * FileDialog.cs: After reading FileDialog settings from mwf_config
22124           use Desktop prefix only if a real folder doesn't exist anymore.
22125         * FontDialog.cs: Added char sets.
22126           It is now possible to select the font, size or style with the
22127           textboxes.
22128
22129 2006-08-25  KornĂ©l PĂ¡l  <kornelpal@gmail.com>
22130
22131         * PrintPreviewDialog.cs: Use assembly name constants.
22132
22133 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22134
22135         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
22136           scrollbar from whacking it's buttons)
22137
22138 2006-08-24  Chris Toshok  <toshok@ximian.com>
22139
22140         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
22141         in this patch (aggregating setting Left/Top/Width/Height to
22142         setting Bounds on the scrollbars), but the crux of the fix is in
22143         Recalculate, where we scroll by the remaining scroll_position if
22144         we're hiding a scrollbar.  The 2*$5 reward in the comment is
22145         serious.
22146
22147 2006-08-24  Jackson Harper  <jackson@ximian.com>
22148
22149         * MdiClient.cs:
22150         * MdiWindowManager.cs: If the form is made a non-mdi window we
22151         need to remove the form closed event so that closing forms works
22152         correctly.
22153
22154 2006-08-24  Jackson Harper  <jackson@ximian.com>
22155
22156         * Control.cs: Make IsRecreating internal so that the driver can
22157         check it
22158         - Temporarily remove the Hide when controls are removed, its
22159         making a whole bunch of things not work because visibility isn't
22160         getting reset elsewhere correctly
22161         * Form.cs: Need to do a full handle recreation when the mdi parent
22162         is set.
22163         * XplatUIX11.cs: If we are recreating handles don't dispose the
22164         HWNDs.  What was happening is the handles were being recreated in
22165         SendWMDestroyMessages, but then flow continued on in that method
22166         and destroyed the new handles.
22167
22168 2006-08-23  Jackson Harper  <jackson@ximian.com>
22169
22170         * Form.cs: MdiClient is always at the back of the bus
22171         * Control.cs: When the order of items in the collection is changed
22172         we need to reset the all_controls array
22173         - do the same sorta setup thats done when adding a control when a
22174         control is set on the collection.
22175
22176 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
22177
22178         * TextBoxBase.cs (get_Text): Return an empty array if our document
22179           is empty (fixes #79052)
22180
22181 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22182
22183         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
22184           on WM_SYSCHAR messages (fixes #79053)
22185
22186 2006-08-23  Chris Toshok  <toshok@ximian.com>
22187
22188         * DataGrid.cs: fix flickering when scrolling vertically.
22189
22190 2006-08-23  Chris Toshok  <toshok@ximian.com>
22191
22192         * DataGrid.cs (EndEdit): only invalidate the row header when we
22193         need to.
22194
22195 2006-08-23  Chris Toshok  <toshok@ximian.com>
22196
22197         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
22198         methods.  fixes the flicker when scrolling around.
22199
22200 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22201
22202         * FileDialog.cs: Making sure the control is created before we get a 
22203           chance to use it with BeginInvoke (Fixes #79096)
22204
22205 2006-08-23  Chris Toshok  <toshok@ximian.com>
22206
22207         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
22208         width to use when painting the rows.
22209
22210 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22211
22212         * TextBoxBase.cs:
22213           - Throw ArgumentException if a negative value is passed to SelectionLength
22214           - Update the selection end if start is moved. end needs to be always
22215             after start. (Fixes #79095)
22216           - Track selection length; MS keeps the selection length even if start
22217             is changed; reset on all other operations affection selection
22218
22219 2006-08-22  Jackson Harper  <jackson@ximian.com>
22220
22221         * TreeView.cs: Make sure both scrollbars get displayed and sized
22222         correctly when the other bar is visible.
22223         - Use the original clip rectangle for checking if the area between
22224         the two scrollbars is visible, not the viewport adjusted clipping
22225         rectangle.
22226
22227 2006-08-22  Jackson Harper  <jackson@ximian.com>
22228
22229         * Binding.cs: We don't use IsBinding because it requires the
22230         control to be created, which really shouldn't be necessary just to
22231         set a property on the control.
22232
22233 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22234
22235         * ComboBox.cs: Some CB.ObjectCollection methods must throw
22236         ArgumentNullReferenceException when the argument is null.
22237
22238 2006-08-21  Jackson Harper  <jackson@ximian.com>
22239
22240         * Timer.cs: Track the thread that the timer is started in (NOT
22241         CREATED), this way messages for it will only be triggered on its
22242         queue.
22243         * XEventQueue.cs: Track the timers here, this makes timers per
22244         thread, like MS.
22245         * XplatUIX11.cs: The timers are moved to the XEventQueue.
22246
22247 2006-08-19  Chris Toshok  <toshok@ximian.com>
22248
22249         * XplatUIX11.cs: after further communication with pdb, we get the
22250         best of both worlds.  SetZOrder working for un-Mapped windows, and
22251         no X errors for un-mapped windows.
22252
22253 2006-08-19  Chris Toshok  <toshok@ximian.com>
22254
22255         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
22256         as it was causing pdn toolbars to not have the correct stacking.
22257
22258 2006-08-18  Mike Kestner  <mkestner@novell.com> 
22259
22260         * ListView.cs : guard against negative ClientArea.Width in scrollbar
22261         calculation.  Not sure why control should ever be setting a negative
22262         width though.  Fixes #78931.
22263
22264 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22265
22266         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
22267         null items in ObjectCollection class.
22268         * ListBox.cs.: Likewise.
22269
22270 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
22271
22272         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
22273           as the base method in ThemeWin32Classic should work fine.
22274           Fixed bug #78607.
22275
22276 2006-08-18  Jackson Harper  <jackson@ximian.com>
22277
22278         * Binding.cs: When validating if the value entered doesn't convert
22279         properly reset to the old value.
22280         * RadioButton.cs: Don't fire click when we get focus.
22281
22282 2006-08-18  Jackson Harper  <jackson@ximian.com>
22283
22284         * FileDialog.cs: Paint the selection on the directory combobox the
22285         same way as on MS. 
22286
22287 2006-08-17  Jackson Harper  <jackson@ximian.com>
22288
22289         * ErrorProvider.cs: Don't allow the error control to be selected.
22290         * Control.cs: Don't send the SetFocus messages, the control
22291         activation will do this, and if we do it blindly here validation
22292         does not work.
22293
22294 2006-08-17  Jackson Harper  <jackson@ximian.com>
22295
22296         * Control.cs:
22297         * ContainerControl.cs: Make validation events fire in the correct
22298         order.  TODO: For some reason the first validation event is not
22299         getting fired.
22300
22301 2006-08-17  Mike Kestner  <mkestner@novell.com> 
22302
22303         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
22304
22305 2006-08-17  Mike Kestner  <mkestner@novell.com> 
22306
22307         * ComboBox.cs : implement scroll wheel support for popped-down
22308         state. Fixes #78945. 
22309
22310 2006-08-17  Jackson Harper  <jackson@ximian.com>
22311
22312         * TreeView.cs: Specify treeview actions (old patch that didn't get
22313         committed for some reason).
22314         - Don't let the mouse wheel scroll us too far.  Just want to make
22315         the bottom node visible, not scroll it all the ways to the top.
22316
22317 2006-08-17  Jackson Harper  <jackson@ximian.com>
22318
22319         * XplatUIX11.cs: Mouse wheel events go to the focused window.
22320
22321 2006-08-17  Mike Kestner  <mkestner@novell.com> 
22322
22323         * ComboBox.cs : don't do mouseover selection in simple mode.
22324
22325 2006-08-16  Jackson Harper  <jackson@ximian.com>
22326
22327         * Form.cs: Fire the closing events for all the mdi child windows
22328         when a window is closed.  If the cancel args are set to true, the
22329         main window still gets the event fired, but it doesn't not close.
22330         * MdiWindowManager.cs: Do this closing cleanup in a Closed
22331         handler, instead of when the button is clicked, so cancelling the
22332         close works correctly.
22333         * ComboBox.cs: Send the mouse down to the scrollbar.
22334
22335 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22336
22337         * ListBox.cs: When passing 'null' to SelectedItem,
22338         set SelectedIndex to -1, to unselect items. This is the
22339         observed behaviour in .Net.
22340
22341 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
22342
22343         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
22344           MS flags saying there won't be any. (fixes #78800)
22345         * Control.cs (HandleClick): Made virtual
22346
22347 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
22348
22349         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
22350           cultures. Fixed bug #78399.
22351
22352 2006-08-16  Jackson Harper  <jackson@ximian.com>
22353
22354         * Form.cs: Use the MdiClients MdiChildren property to access
22355         MdiChildren instead of creating the array from the child controls.
22356         * MdiClient.cs: Maintain a separate array of the mdi children, so
22357         that insertion order is maintained when the Z-order is changed.
22358
22359 2006-08-16  Mike Kestner  <mkestner@novell.com> 
22360
22361         * ListView.cs : add an ItemComparer and default to it for sorting.
22362         Fixes #79076, but sorting needs a complete overhaul to be compat with
22363         MS.
22364
22365 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
22366
22367         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
22368
22369 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
22370
22371         * Hwnd.cs (Mapped): Properly traverse the tree
22372
22373 2006-08-15  Chris Toshok  <toshok@ximian.com>
22374
22375         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
22376         pass manager.Current.GetType() to ParseData.  It has to be the
22377         property type.  So, hold off doing the ParseData until we're in
22378         SetPropertyValue where we know the type.  This fixes the crash in
22379         #78821 but the textbox is still empty.
22380
22381 2006-08-15  Chris Toshok  <toshok@ximian.com>
22382
22383         * DataGrid.cs:
22384         - when we're scrolling, only call Edit() again if the
22385         current cell is still unobscured. Fixes bug #78927.
22386         - when handling mousedown on a cell, ensure the cell is visible
22387         before calling Edit.
22388         - remove the properties from DataGridRow, and remove the
22389         DataGridParentRow class altogether.
22390         
22391
22392 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
22393
22394         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
22395           fire OnTextChanged by ourselves. There's no point calling base,
22396           we don't set the base value anywhere else. Fixes #78773.
22397
22398 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22399
22400         * ListBox.cs: Call CollectionChanged when modifying
22401         an item from Items indexer, to update the actual items
22402         in the list box.
22403
22404 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22405
22406         * PrintDialog.cs: Small fixes for focus and a pair of checks,
22407         to match .Net behaviour.
22408
22409 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
22410
22411         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
22412
22413 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
22414
22415         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
22416
22417 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
22418
22419         * MessageBox.cs: Prevent potential NRE exception.
22420         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
22421
22422 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
22423
22424         * MessageBox.cs: Calculate the owner of a messagebox, also make
22425           it topmost. Fixes #78753
22426
22427 2006-08-14  Chris Toshok  <toshok@ximian.com>
22428
22429         * XplatUIX11.cs: A couple of fixes so that metacity will let us
22430         programmatically move windows.  first, set the PPosition hint as
22431         well as the USPosition hint.  Second include some code from pdb
22432         that sets the window type to NORMAL when we set the transient for
22433         hint.  This is because, in the absence of a window type, metacity
22434         thinks any window with TransientFor set is a dialog, and refuses
22435         to let us move it programmatically.  fascists.
22436
22437 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
22438
22439         * XplatUIX11.cs: When setting normal hints, take into consideration
22440           an different hints previously set so we don't delete them (fixes #78866)
22441
22442 2006-08-12  Chris Toshok  <toshok@ximian.com>
22443
22444         * ToolBarButton.cs: make Layout return a boolean, if something to
22445         do with the button's layout changed.
22446
22447         * ToolBar.cs:
22448         - add another parameter to Redraw, @force, which all existing
22449           calls set to true.
22450         - make the Layout function return a boolean which is true if the
22451           layout has actually changed.  Redraw now uses this (and @force)
22452           to determine when to invalidate.  At present the only place
22453           where @force can be false is the call from OnResize, when
22454           background_image == null.  So, resizing a toolbar when the
22455           layout doesn't change results in no drawing.
22456
22457 2006-08-12  Chris Toshok  <toshok@ximian.com>
22458
22459         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
22460         the VScrollBar and HScrollbar reversed.  oops.
22461
22462         * DataGrid.cs: fix the logic that assigns sizes to the implicit
22463         scrollbars.  we were assigning them twice (once in
22464         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
22465         therefore causing two scrollbar resizes (and redraws?) to happen
22466         per grid resize.
22467
22468 2006-08-12  Chris Toshok  <toshok@ximian.com>
22469
22470         * ToolBarButton.cs: redraw the entire button if the theme tells us
22471         to.
22472
22473         * Theme.cs: add ToolBarInvalidateEntireButton.
22474
22475         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
22476         buttons, just the border.
22477
22478         * ThemeNice.cs: redraw the entire toolbar button since we need to
22479         draw the highlight image.
22480
22481         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
22482         we need to redraw the entire button (not just the border).
22483
22484 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
22485
22486         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
22487           for vertical bars. Fixes the mismatches shown by #78513
22488
22489 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
22490
22491         * FileDialog.cs: If a saved/remembered path doesn't exist
22492           anymore, fall back to "Desktop".
22493
22494 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
22495
22496         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
22497           parent. It's apparently legal to not have one
22498         * XplatUIX11.cs:
22499           - SetZOrder: Don't try to set Z-Order on an unmapped window
22500           - CreateWindow: 0,0 are legal coordinates for a window. don't move
22501             it unless the coordinates are negative
22502
22503 2006-08-10  Mike Kestner  <mkestner@novell.com>
22504
22505         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
22506         when setting to null per msdn docs.  Fixes #78854.
22507
22508 2006-08-10  Chris Toshok  <toshok@ximian.com>
22509
22510         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
22511         flickering by setting a clip rectangle on the Graphics when we
22512         need to redraw just a particular menuitem.  Also, rename "OnClick"
22513         to "OnMouseDown" to reflect what it actually is.
22514         
22515         * Form.cs: track the OnMouseDown change.
22516
22517 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
22518
22519         * CommonDialog.cs: Properly inherit the CreateParams from the form
22520           and only change what we need. Fixes #78865
22521
22522 2006-08-10  Chris Toshok  <toshok@ximian.com>
22523
22524         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
22525         flickering in flat mode (and most of the flickering in general) by
22526         only invalidating the button border (and not the entire rectangle)
22527         when the state changes.  A couple of cases still flicker:
22528         ToggleButtons, and the dropdown arrow case when the user mouse
22529         ups.
22530
22531 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
22532
22533         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
22534           for german keyboards. Numlock state shouldn't affect the behaviour
22535           of the Del key. Fixes bug #78291.
22536
22537 2006-08-10  Chris Toshok  <toshok@ximian.com>
22538
22539         * ListControl.cs: remove the items.Clear line from BindDataItems,
22540         as this is the first thing done by both subclasses in their
22541         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
22542         passed -1, refresh the list.  This gets databinding working when
22543         the datasource is set on the list before the datasource is
22544         populated (as in wf-apps/ReportBuilder.)
22545
22546         * ComboBox.cs: remove the argument to BindDataItems.  This call
22547         should really go away, and be initiated by the ListControl code.
22548
22549         * ListBox.cs: same.
22550
22551 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
22552
22553         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
22554           if no data is in the document when the control is displayed
22555
22556 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
22557
22558         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
22559           yes (fixes #78806)
22560         * TextControl.cs: 
22561           - PositionCaret: Allow positioning of caret but don't call methods 
22562             requiring a handle if the window isn't created yet
22563           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
22564           - owner_HandleCreated: Don't position the caret, just update it's 
22565             location. User might have already set a different position
22566
22567 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
22568
22569         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
22570           windows. Screws up the returned coordinates for child windows. 
22571           Fixes #78825. I'm hoping this doesn't break something, since the
22572           code was explicitly put in 8 months ago, but no bug was attached.
22573           Menus still seem to work properly.
22574
22575 2006-08-08  Chris Toshok  <toshok@ximian.com>
22576
22577         * DataGrid.cs: make BeginInit/EndInit actually do what they're
22578         supposed to do - delay data binding until the EndInit call.  Also,
22579         make the table style collection's CollectionChangeAction.Refresh
22580         work properly.
22581
22582         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
22583         (with action = Refresh) when a consituent table's MappingName is
22584         changed.
22585
22586 2006-08-08  Chris Toshok  <toshok@ximian.com>
22587
22588         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
22589         Invalidate, since changing the text can change the size of the all
22590         toolbar buttons.
22591
22592 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
22593
22594         * Form.cs (AddOwnedForm): Still need to add the form to our listif
22595           we don't have it yet
22596
22597 2006-08-08  Chris Toshok  <toshok@ximian.com>
22598
22599         * PrintControllerWithStatusDialog.cs: don't .Close() the status
22600         dialog, as this causes X errors later on, since we actually
22601         destroy the window.  Instead, .Hide() it.
22602
22603 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
22604
22605         * ComboBox.cs: Added focus reflection for popup window
22606         * XplatUIX11.cs: 
22607           - Removed transient setting for non-app windows for now, not sure it
22608             was needed
22609           - Fixed logic checking if we have captions when deciding 
22610             override_redirect, WS_CAPTION is two bits and a 0 check was not
22611             sufficient
22612           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
22613             complicated
22614         * Form.cs: 
22615           - AddOwnedForm: Don't just add the form to the list, call the property
22616             to ensure the driver is informed about the ownership as well
22617           - CreateHandle: Set the TopMost status in the driver if we have an owner
22618         * XplatUI.cs: Fixed debug statement
22619
22620 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
22621         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22622           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
22623           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
22624           TrackBarRenderer.cs: Make constructor private.
22625         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
22626         * ProfessionalColorTable.cs: Make properties virtual.
22627
22628 2006-08-06  Duncan Mak  <duncan@novell.com>
22629
22630         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
22631         is not changing.
22632
22633 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
22634         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22635           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
22636           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
22637           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
22638           Initial import of new 2.0 classes.
22639
22640 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
22641         * Application.cs: Add 2.0 VisualStyles properties.
22642
22643 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
22644         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22645           XplatUIX11.cs: Create property to allow access to existing private
22646           variable "themes_enabled"
22647
22648 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22649
22650         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
22651         file size, as otherwise our class libraries fail using windows. Fixes
22652         bug #78759.
22653
22654 2006-08-04  Jackson Harper  <jackson@ximian.com>
22655
22656         * Form.cs:
22657         * XplatUIX11.cs: Move the toolwindow window manager creation into
22658         the X11 driver, this way on win32 we can let windows create/handle
22659         the toolwindows.
22660
22661 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22662
22663         * PrintDialog.cs: Remove some redundant checks, add some others,
22664         clean some code, and move the focus to the text boxes when the
22665         values are incorrect.
22666
22667 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
22668
22669         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
22670
22671 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
22672
22673         * NumericUpDown.cs: Setting the Minimum and Maximum is now
22674           handled correctly. Fixes bug #79001.
22675
22676 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22677
22678         * PrintDialog.cs: The "Copies" numeric up down must have
22679         set the Minimum property to 1; only if the value is bigger
22680         than 1, activate "Collate" check box. This is the behaviour of .Net.
22681         Also modify the Document elements only if it is not null.
22682
22683 2006-08-03  Jackson Harper  <jackson@ximian.com>
22684
22685         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
22686         length. (We have a larger array then actual node count).
22687                 
22688 2006-08-03  Jackson Harper  <jackson@ximian.com>
22689
22690         * ComboBox.cs: Don't show selection by default.
22691         - The SelectAll isn't needed here, since the focus code should do
22692         that
22693         - DDL style lists to manual selection drawing, so when they
22694         get/lose focus they have to invalidate.
22695
22696 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
22697
22698         * TextBoxBase.cs: Don't always show all selections by default.
22699
22700 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
22701         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
22702           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
22703           Fixed various typos.
22704
22705 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
22706
22707         * Control.cs: Removing the controls in a ControlCollection with
22708           Clear now hides the controls as expected. Fixes bug #78804. 
22709
22710 2006-08-03  Jackson Harper  <jackson@ximian.com>
22711
22712         * Control.cs: Revert previous focus patch, it breaks reflector.
22713
22714 2006-08-03  Jackson Harper  <jackson@ximian.com>
22715
22716         * ComboBox.cs: Cleanup selection and focus with the combobox.
22717         This also eliminates some duplicated keyboard code, since now
22718         everything is handled by the main class.
22719         - Make list selection work on mouse up instead of down, to match
22720         MS.
22721
22722 2006-08-02  Jackson Harper  <jackson@ximian.com>
22723
22724         * Control.cs: Setting focus needs to go through the whole
22725         selection mechanism.
22726
22727 2006-08-02  Chris Toshok  <toshok@ximian.com>
22728
22729         * PrintPreviewDialog.cs: change MinimumSize to use
22730         base.MinimumSize so it works.
22731
22732 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
22733
22734         * TextControl.cs:
22735           - UpdateCaret: Added sanity check in case caret isn't defined yet
22736           - Line.Delete: Now updating selection and caret markers if we're
22737             transfering a node (Properly fixes #78323)
22738           - SetSelectionEnd: Added sanity check
22739         * TextBoxBase.cs: Removed broken attempt to fix #78323
22740
22741 2006-08-01  Chris Toshok  <toshok@ximian.com>
22742
22743         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
22744         Close() call is handled in Form, not here.
22745
22746 2006-08-01  Chris Toshok  <toshok@ximian.com>
22747
22748         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
22749         layout/rendering.
22750
22751         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
22752         for sizes < 100% zoom.  The code now aggressively attempts to keep
22753         from calling document.Print (), and tries not to use the scaling
22754         g.DrawImage whenever possible (it still does if you scale to >
22755         100%, since usually that involves huge images).
22756
22757         * PrintPreviewControl.cs: hook up the close button.
22758
22759 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
22760         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
22761           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
22762           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
22763           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
22764           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
22765           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
22766           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
22767           Removed [Serializable] for 2.0 Event Handlers.
22768
22769 2006-07-31  Jackson Harper  <jackson@ximian.com>
22770
22771         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
22772         * TextControl.cs: Uncomment out the body of this method.
22773
22774 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
22775
22776         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
22777           standard cursors.
22778
22779 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
22780
22781         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
22782           that embed TextBox and need selections visible even if textbox is not
22783           focused to enforce that behaviour.
22784         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
22785           selection drawing
22786
22787 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
22788
22789         * TextControl.cs:
22790           - Added new SetSelectionStart/SetSelectionEnd overloads
22791           - Fixed viewport width assignment to be accurate
22792           - Adjusted alignment line shift calculations to allow cursor on right
22793             aligned lines to be always visible at the right border (like MS)
22794         * TextBoxBase.cs:
22795           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
22796           - TextBoxBase_SizeChanged: recalculating canvas on size changes
22797           - CalculateScrollBars: Use ViewPort size instead of window size, to
22798             properly consider space occupied by the border and scrollbars 
22799             (Fixes #78661)
22800           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
22801             calculations; no longer leaves artifacts
22802           - CaretMoved: Adjusted window scrolling to match MS and fixed several
22803             calculation bugs (Still missing right/center align calculations)
22804
22805 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
22806
22807         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
22808           use of both scroll rect and clip rect, as they do the same.
22809
22810 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
22811
22812         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
22813           in the event handler (fixes #78912)
22814
22815 2006-07-31  Chris Toshok  <toshok@ximian.com>
22816
22817         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
22818         grid.ListManager.Count, since grid.ListManager might be null.
22819         This of course begs the question "why are we drawing rows for a
22820         grid with no list manager (and therefor no rows)?"  Fixes the
22821         crash in bug #78929.
22822
22823 2006-07-31  Chris Toshok  <toshok@ximian.com>
22824
22825         * RelatedPropertyManager.cs: Don't always chain up to the parent
22826         ctor.  instead, call SetDataSource if the parent's position is !=
22827         -1.  Fixes the crash in #78822.
22828
22829 2006-07-31  Chris Toshok  <toshok@ximian.com>
22830
22831         * DataGrid.cs (get_ListManager): use field instead of property
22832         accessors for datasource and datamember.
22833         (RowsCount): make internal again.
22834         (OnMouseDown): end edits before resizing columns/rows.
22835         (OnMouseUp): restart edits after resizing columns/rows.
22836
22837 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
22838
22839         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
22840           This fixes the situation where the last set cursor is displayed
22841           whenever the mouse is over scrollbars.
22842
22843 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22844
22845         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
22846         Document properties, as well as initial values.
22847
22848 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
22849
22850         * XplatUIWin32.cs (SetBorderStyle): Setting both border
22851           and ClientEdge results in a 3-pixel border, which is
22852           wrong.
22853
22854 2006-07-28  Jackson Harper  <jackson@ximian.com>
22855
22856         * TreeNodeCollection.cs: Fix the clear method.
22857         - Fix the Shrink also
22858
22859 2006-07-27  Jackson Harper  <jackson@ximian.com>
22860
22861         * TreeView.cs: Make sure the visible order is computed when we
22862         attempt to size the scrollbars (for trees that mess with the
22863         scrolling when they shouldn't.
22864         - Make sure to give the scrollbars valid values.
22865
22866 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
22867
22868         * XplatUIX11.cs: Move motion compression code to where it
22869           has less performance impact
22870
22871 2006-07-26  Jackson Harper  <jackson@ximian.com>
22872
22873         * UpDownBase.cs: When the control is selected make the child
22874         controls non selectable, so that a click on them won't do a
22875         focus/unfocus cycle.
22876         - Don't give focus to the text box when the spinner is selected.
22877         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
22878
22879 2006-07-26  Chris Toshok  <toshok@ximian.com>
22880
22881         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
22882         satisfied with this solution.  If the bitmaps are small, we should
22883         just cache them in the PrintPreviewDialog and draw them here.
22884         Also, the layout is broken for the 2-up and 3-up cases.
22885
22886         * Theme.cs: add PrintPReviewControlPaint.
22887
22888         * PrintPreviewDialog.cs: first pass implementation.
22889
22890         * PrintPreviewControl.cs: first pass implementation.  No
22891         scrollbars yet.
22892
22893         * PrintDialog.cs: only validate fields if that particular portion
22894         of the UI is enabled.  Also, set the document's controller to a
22895         PrintControllerWithStatusDialog wrapping the document's print
22896         controller.
22897
22898         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
22899         bring up a SaveFileDialog (i hope we don't want to match the
22900         behavior of the crappy windows file entry) and set the
22901         PrinterSettings.PrintFileName accordingly.
22902
22903 2006-07-26  Jackson Harper  <jackson@ximian.com>
22904
22905         * ContainerControl.cs: Add a field that disables auto selecting
22906         the next control in a container when the container is activated.
22907         * UpDownBase.cs: Don't select the text box when the up down is
22908         selected.
22909
22910 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
22911
22912         * XEventQueue.cs: Added methods for peeking (used for compression
22913           of successive events)
22914         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
22915           mouse move events (fixes #78732)
22916
22917 2006-07-25  Jackson Harper  <jackson@ximian.com>
22918
22919         * UpDownBase.cs: Use an internal class for the textbox so that we
22920         can control focus.  the updown control should always have focus,
22921         if either the text area or the buttons are clicked.
22922         - Send the key messages to the textbox, since it never actually
22923         has focus
22924         - Activate and decativate the textbox caret.
22925
22926 2006-07-24  Jackson Harper  <jackson@ximian.com>
22927
22928         * Control.cs: Use the directed select when selecting a control,
22929         this way the container controls override will get called and the
22930         whole ActiveControl chain will get triggered.  TODO: probably need
22931         to make sure this gets done everywhere instead of the old
22932         Select(Control).
22933         * ContainerControl.cs: Implement the directed Select method to
22934         find and activate the correct child control.    
22935         
22936 2006-07-22  Mike Kestner  <mkestner@novell.com>
22937
22938         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
22939         menu handling code so that clicks without a grab work too.
22940         [Fixes #78914]
22941
22942 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
22943
22944         * FileDialog.cs: Enable the BackButton when dirstack has one element.
22945           Added some small optimizations.
22946
22947 2006-07-21  Matt Hargett  <matt@use.net>
22948
22949         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
22950
22951 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
22952
22953         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
22954           tests pass and match MS in some strange border cases.
22955
22956 2006-07-21  Chris Toshok  <toshok@ximian.com>
22957
22958         * ThemeWin32Classic.cs: handle drawing of the relation links and
22959         parent row buttons.
22960
22961         * Theme.cs: change args to DataGridPaintParentRow.
22962
22963         * DataGrid.cs: Don't use controls for the relation links and
22964         parent buttons, so we have to handle all their interactions in
22965         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
22966         when we're navigating through child tables, so we can reinstate
22967         selection, expanded state, current cell, etc.
22968
22969 2006-07-20  Chris Toshok  <toshok@ximian.com>
22970
22971         * ToolBar.cs: When we redraw a button, for whatever reason,
22972         there's no reason to redraw the entire toolbar.  Also, don't call
22973         Control.Refresh from within Redraw, as it's much heavier than
22974         Invalidate (which is really what we want).
22975
22976 2006-07-20  Chris Toshok  <toshok@ximian.com>
22977
22978         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
22979         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
22980         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
22981         traces from within a debug IBindingList datasource
22982         (in mono/winforms/datagrid) for *days*, I've finally gotten things
22983         to work in a similar fashion.
22984
22985 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22986
22987         * ListBox.cs: Don't call Sort () when setting 
22988         the Sorted property to false (avoid an unnecessary sort).
22989
22990 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22991
22992         * ListControl.cs: DataSource should throw an ArgumentException
22993         instead of a normal exception when the argument is not of the 
22994         correct type.
22995
22996 2006-07-20  Mike Kestner  <mkestner@novell.com>
22997
22998         * Control.cs: add InternalPreProcessMessage to allow us to steal
22999         key events before MWF gets its paws on them.  Adapted from a
23000         suggestion by eno.
23001         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
23002         up/down/left/right navigation. Override the new internal control
23003         method to steal the events since they never make it to WndProc.
23004         * ToolBarButton.cs: don't worry about pushed when setting hilight
23005         since the drawing code prefers pushed to hilight. Invalidate on 
23006         Hilight changes. Fixes #78547 and #78525.
23007
23008 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
23009
23010         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
23011           the canvas size. Fixes #78868
23012
23013 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
23014
23015         * Splitter.cs: Track requested split position until first layout
23016           is performed. Fixes #78871
23017
23018 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
23019
23020         * Application.cs: Removed code that forces 1.x for the version
23021           number if the version started with 0. Not sure why that code was
23022           there and I couldn't find any bugs that indicated we needed it.
23023           Fixes #78869
23024
23025 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
23026
23027         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
23028           ResetDefaults(), just write some output to the console until it's
23029           implemented. Fixes bug #78907 for now. Eliminated two warnings.
23030
23031 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
23032
23033         * PropertyGridView.cs: set StartPosition of drop down forms
23034         so they appear in correct initial spot.  Fixes #78190.
23035
23036 2006-07-19  Mike Kestner  <mkestner@novell.com>
23037
23038         * ThemeWin32Classic.cs: use parent background color when drawing
23039         flat toolbars.  Restructure the conditionals to make sure non-flat
23040         non-Divider toolbars are filled too.  Fixes #78837.
23041
23042 2006-07-19  Mike Kestner  <mkestner@novell.com>
23043
23044         * ListBox.cs: Sort on collection changes even if the handle
23045         isn't created yet.  Fixes #78813.
23046
23047 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23048
23049         * ListControl.cs: DisplayMember should never be null,
23050         and now we assign String.Empty when null is passed to it (this
23051         is the .Net way).
23052
23053 2006-07-17  Mike Kestner  <mkestner@novell.com>
23054
23055         * ListViewItem.cs: restructure Font and subitem Font handling 
23056         to hold a specific font and refer back to owner on null.
23057         Fixes #78761.
23058
23059 2006-07-17  Mike Kestner  <mkestner@novell.com>
23060
23061         * ToolBar.cs: bandaid for side-effect of previous patch which was
23062         discarding explicit heights for non-AutoSize toolbars.  Need to
23063         extend my format tester to deal with AutoSize=false. Fixes #78864.
23064
23065 2006-07-15  Jackson Harper  <jackson@ximian.com>
23066
23067         * LabelEditTextBox.cs:
23068         * TreeView.cs: Use a new LabelEdit class for node editing, this
23069         class automatically 'closes' itself when it gets the enter key or
23070         loses focus.
23071         - Use the client rectangle when setting the trees scrollbars, so
23072         border style is taken into account.
23073         
23074 2006-07-14  Jackson Harper  <jackson@ximian.com>
23075
23076         * TreeNode.cs:
23077         * TreeView.cs: Make the editing work similar to MSs, firing the
23078         events correctly and ending edits correctly.
23079
23080 2006-07-14  Mike Kestner  <mkestner@novell.com>
23081
23082         * ToolBarButton.cs:
23083         * ToolBar.cs: layout restructuring and redraw enhancements to support
23084         formatting changes gracefully, like setting TextAlign, ImageList, 
23085         ButtonSize, and Appearance.  Handles explicit button sizing quirks
23086         of the MS controls.  Things like flat toolbars ignoring button size
23087         but becoming constant sized at the largest button's size.  Normal
23088         toolbars with an image set cannot be shrunk smaller than the image,
23089         but text can be clipped/ignored.
23090         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
23091         is zero.  Seems like DrawString should be smart enough to not put
23092         anything on screen though. Also trim labels and ellipsize at the char
23093         boundary, not word.
23094         Fixes #78711 and #78483.
23095
23096 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
23097
23098         * FolderBrowserDialog.cs: Disable "New Folder" button and
23099           "New Folder" contextmenu menuitem if a folder like "My Computer"
23100           is selected.
23101
23102 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
23103
23104         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
23105         * FolderBrowserDialog.cs:
23106           - Use MWFConfig to store and read size and position settings
23107           - Added code to create a new folder (button or context menu).
23108             Use TreeView labeledit to change the name of the new folder.
23109
23110 2006-07-14  Jackson Harper  <jackson@ximian.com>
23111
23112         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
23113         when the tree is scrolled we end editing.
23114
23115 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
23116
23117         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
23118           Down arrows
23119
23120 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
23121
23122         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
23123         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
23124         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
23125         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
23126         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
23127         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
23128         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
23129         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
23130         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
23131         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
23132         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
23133         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
23134         ListViewItemSelectionChangedEventHandler.cs,
23135         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
23136         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
23137         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
23138         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
23139         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
23140         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
23141         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
23142         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
23143         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
23144         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
23145         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
23146         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
23147         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
23148         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
23149         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
23150         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
23151         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
23152         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
23153         WebBrowserNavigatingEventHandler.cs, 
23154         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
23155
23156 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
23157
23158         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
23159         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
23160         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
23161         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
23162         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
23163         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
23164         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
23165         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
23166         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
23167         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
23168         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
23169         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
23170         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
23171         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
23172         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
23173         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
23174         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
23175         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
23176         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
23177         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
23178         ListViewItemStates.cs, MaskFormat.cs: Added
23179
23180 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
23181
23182         * PropertyGridView.cs: Fix keyboard navigation of drop down.
23183         Patch from eno for bug 78558.
23184         
23185 2006-07-13  Jackson Harper  <jackson@ximian.com>
23186
23187         * TreeView.cs: When an edit is finished make sure that the
23188         selected node is visible.
23189         - When setting the top/bottom use the scrollbars is_visible, so
23190         everything will be set correctly even if the tree isn't visible
23191         yet.
23192
23193 2006-07-13  Jackson Harper  <jackson@ximian.com>
23194
23195         * ComboBox.cs: Revert the item->index part of my previous patch.
23196         * TreeView.cs: Use LostFocus instead of Leave for detecting when
23197         the edit box has lost focus (duh).
23198         - Just make the edit box not visible when we get return, that will
23199         take the focus, which will call EndEdit
23200         * TreeNode.cs When we start editing, notify the treeview.
23201
23202 2006-07-12  Jackson Harper  <jackson@ximian.com>
23203
23204         * ComboBox.cs: Clear out old items before setting the item list.
23205         This prevents databound controls from having their items added
23206         twice.
23207         - Switch the combobox to use indices whereever possible instead of
23208         using Item's.  This allows usto navigate through lists that have
23209         more then one item with the same string value (ie a, b, b, a).
23210         - Scroll the listboxes scrollbar when a non visible item is
23211         highlighted
23212         - Allow keypress to cycle through all the possible values. For
23213         example if you have b1, b2, b3 and hold down the B key all the
23214         values will be cycled through.
23215         
23216 2006-07-12  Jackson Harper  <jackson@ximian.com>
23217
23218         * TextBoxBase.cs:
23219         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
23220         this using the internal methods.
23221         * Control.cs: Add OnGotFocusInternal.  A new method that allows
23222         controls to "override" OnGotFocus and change focus behavior if
23223         needed.
23224         - Same thing for LostFocus
23225         * ComboBox.cs: Pass off focus to the text control properly.
23226
23227 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
23228
23229         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
23230         * FolderBrowserDialog.cs: Almost a complete rewrite.
23231           - Better support for Environment.Specialfolders
23232           - Added support for MWFVFS
23233           - Made setting SelectedPath work
23234
23235 2006-07-12  Jackson Harper  <jackson@ximian.com>
23236
23237         * Control.cs: Optimze getting all the controls.
23238
23239 2006-07-11  Jackson Harper  <jackson@ximian.com>
23240
23241         * ContainerControl.cs: Override SETFOCUS in the container control,
23242         so that it is not selected on mouse click.
23243
23244 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
23245
23246         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
23247           Hopefully we will have a better way once all of focus is complete.
23248
23249 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
23250
23251         * ThemeWin32Classic.cs: Commented out some debug code and fixed
23252           a compile error with csc.
23253
23254 2006-07-11  Jackson Harper  <jackson@ximian.com>
23255
23256         * Control.cs: When hiding a control only select the next control
23257         if the current control was focused.
23258         - Don't handle enter/leave when setting/killing focus, this is
23259         done by the container control.
23260         - Remove is_selected, it's not needed anymore.
23261         - Add utility methods for selecting a child control, and for
23262         firing the Enter/Leave events.
23263         * ContainerControl.cs: When a control is activated fire the
23264         enter/leave events.
23265         - Don't wrap when processing the tab key, so that focus can be
23266         moved outside of the container.
23267         - Use the correct active control
23268
23269 2006-07-11  Jackson Harper  <jackson@ximian.com>
23270
23271         * ComboBox.cs: Remove some debug code that was blinding me.
23272         * UpDownBase.cs: These controls actually aren't implicit, they are
23273         visible to the user.
23274
23275 2006-07-10  Chris Toshok  <toshok@ximian.com>
23276
23277         * DataGrid.cs: move back to the is_adding boolean field.  god i
23278         hate this is_editing/is_adding/is_changing stuff.
23279
23280 2006-07-10  Chris Toshok  <toshok@ximian.com>
23281
23282         * DataGridTableStyle.cs: just check if the property type is bool.
23283         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
23284         Don't use CanRenderType.
23285
23286         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
23287         if our text == NullText.  Remove CanRenderType.
23288
23289         * DataGridBoolColumn.cs: nuke CanRenderType.
23290
23291         * DataGrid.cs: reenable some code to end the current edit inside
23292         of set_CurrentCell.  This fixes the other 1.1.16 regression.
23293         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
23294         Also, remove the visible_row_count arg from CalcRowHeaders, since
23295         we don't need to worry about the actual height of the area.
23296
23297 2006-07-10  Chris Toshok  <toshok@ximian.com>
23298
23299         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
23300         mode, just return.
23301
23302         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
23303         the real sense of the IsInEditOrNavigateMode property (true =
23304         navigate, false = edit).  Also, update OnKeyPress to reflect this.
23305
23306         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
23307         column style exists, we still need to set its property descriptor
23308         to match up with our list manager.
23309
23310 2006-07-10  Chris Toshok  <toshok@ximian.com>
23311
23312         * ThemeWin32Classic.cs: implement the new row/header painting
23313         approach.  The parent row painting will likely go away and
23314         replaced with label controls, but the rest seems to work ok (and
23315         efficiently).
23316
23317         * Theme.cs: change the way we draw datagrid rows.  we don't draw
23318         the row headers as a block now.  Instead we draw them in the
23319         normal draw-row loop.  Add some calls for drawing parent rows and
23320         relation rows.
23321
23322         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
23323         a default table style.  Set the defaults from ThemeEngine.Current,
23324         not SystemColors.  Fix lots of misc issues with property setters.
23325
23326         * DataGrid.cs: move loads of style information out of this class
23327         as it's being duplicated with DataGridTableStyle.  keep track of a
23328         special DataGridTableStyle for the properties we used to mirror
23329         here.  Switch all the style properties to access this table style
23330         instead of instance fields of this class.  Also add a internal
23331         class to represent parent rows (more needs to be stored here, like
23332         the selection state from the parent table, as well as the
23333         expansion state.)  Also, for datasources with relations, do the
23334         right thing for collapse/expand, and add support for the
23335         navigation/parent row buttons.
23336
23337         Lastly, fix the crash in the 1.1.16 build.
23338
23339         * GridTableStylesCollection.cs: make the explicit interface
23340         implementations call the class's methods as opposed to duplicating
23341         them.
23342
23343         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
23344         0 so the text doesn't jump around when we move the cursor.
23345
23346 2006-07-10  Jackson Harper  <jackson@ximian.com>
23347
23348         * TextBoxBase.cs:
23349         * ListBox.cs: Match MS's ToString (this makes debugging focus
23350         stuff infinitely easier).
23351
23352 2006-07-10  Jackson Harper  <jackson@ximian.com>
23353
23354         * Control.cs (SelectNextControl): When checking the control's
23355         parent use this instead of ctrl.parent so that null can be passed
23356         to SelectNextControl. (I have unit tests for this).
23357         - Remove unused var.
23358
23359 2006-07-10  Chris Toshok  <toshok@ximian.com>
23360
23361         * CurrencyManager.cs: correct one regression, the removal of the
23362         finalType field.  Also, add a MonoTODO on CanAddRows, implement
23363         Refresh() correctly, and fix some event emission in
23364         ListChangedHandler.
23365
23366 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
23367
23368         * FileDialog.cs: Don't use brackets for new folders if they exist
23369           under *nix. Instead use -(number of existing folders +1).
23370
23371 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
23372
23373         * FileDialog.cs:
23374           - Fixed really nasty bug #78771
23375           - Don't block the whole GUI when reading directories with a lot of
23376             entries. Use an other thread instead and call BeginInvoke to
23377             update the ListView in MWFFileView
23378
23379 2006-07-07  Chris Toshok  <toshok@ximian.com>
23380
23381         * Control.cs (Dispose): release any Capture when disposing.
23382
23383 2006-07-07  Chris Toshok  <toshok@ximian.com>
23384
23385         * LinkLabel.cs (Select): if we chain up to the parent, set
23386         focused_index to -1 so we'll search for the first available link
23387         the next time the user tabs into us.  Also, if the direction is
23388         backward and focused_index == -1, start the search from the last
23389         element.
23390
23391 2006-07-07  Chris Toshok  <toshok@ximian.com>
23392
23393         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
23394         is beyond the end of the text, don't do anything.
23395         (CreateLinkPieces): set our ControlStyles.Selectable based on
23396         whether or not we have any links.
23397         (Link.Invalidate): use a loop instead of foreach.
23398         (Link.set_Start): null out owner.sorted_links so it'll be
23399         recreated by CreateLinkPieces.
23400
23401 2006-07-06  Chris Toshok  <toshok@ximian.com>
23402
23403         * LinkLabel.cs: revert the SetStyle change.
23404
23405 2006-07-06  Chris Toshok  <toshok@ximian.com>
23406
23407         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
23408         (OnEnableChanged): s/Refresh/Invalidate
23409         (OnGotFocus): if we have a focused index already, refocus it (so
23410         if we mouse out/in to the window it'll focus the right link).
23411         (OnKeyDown): move the tab handling out of here.
23412         (OnLostFocus): don't set focused_index to -1, so we can refocus it
23413         when we lose focus.
23414         (OnMouseDown): don't Capture here - Control handles it.  Also,
23415         focus the active link.
23416         (OnMouseUp): don't deal with Capture.
23417         (OnPaintBackgroundInternal): remove.
23418         (OnTextAlignChanged): CreateLinkPieces before calling the
23419         superclass's method.
23420         (OnTextChanged): call CreateLinkPieces before calling superclass's
23421         method.
23422         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
23423         move around.
23424         (Select): implement this, moving the selection between different
23425         links, and call parent.SelectNextControl if we don't have another
23426         link to focus in the given direction.
23427         (CreateLinkPieces): call Invalidate instead of Refresh.
23428         
23429 2006-07-06  Chris Toshok  <toshok@ximian.com>
23430
23431         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
23432         new LinkLabel internals.
23433
23434         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
23435         over pieces looking for active/focused/etc links.  also, deal with
23436         runs of text (and links) with embedded \n's in them, and use
23437         MeasureCharacterRanges instead of MeasureString to figure out the
23438         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
23439         two-step.
23440
23441 2006-07-04  Jackson Harper  <jackson@ximian.com>
23442
23443         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
23444         XKB or key auto repeat, do it manually.  Without key auto repeat,
23445         when a key is held down we get key press, key release, key press,
23446         key release, ... with auto repeat we get key press, key press, key
23447         press ..., and then a release when the key is actually released.
23448
23449 2006-07-03  Jackson Harper  <jackson@ximian.com>
23450
23451         * TabControl.cs:
23452         * ThemeWin32Classic.cs: Tabs do not obey normal background color
23453         rules, they are always control color regardless of the background
23454         color.
23455
23456 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
23457
23458         * FileDialog.cs: Added internal class MWFConfig.
23459           Removed Registry support and replaced it with support for the new
23460           MWFConfig class. See MWFConfig comments for more information.
23461
23462 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
23463
23464         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
23465           rectangle. Added some patches from eno from bug #78490 and fixed
23466           the arrow position for small up and down CPDrawScrollButtons.
23467
23468 2006-06-30  Jackson Harper  <jackson@ximian.com>
23469
23470         * InternalWindowManager.cs: Remove some debug code.
23471         * Form.cs: When an MdiParent is set to null, the window is
23472         "detatched" and becomes a normal window.
23473         * MdiClient.cs: Don't bring the new child form to the front until
23474         it is activated (setting it as active does this), this makes the
23475         previously active forms titlebar get redrawn as inactive.
23476
23477 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
23478
23479         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
23480           with later controls
23481
23482 2006-06-29  Mike Kestner  <mkestner@novell.com>
23483
23484         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
23485         arrow in keynav state.  Fixes #78682.
23486
23487 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
23488
23489         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
23490           order (fixes #78393)
23491
23492 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
23493
23494         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
23495           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
23496           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
23497           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
23498           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
23499           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
23500           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
23501           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
23502           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
23503           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
23504           enumerations (FlagsAttribute, SerializableAttribute, added/removed
23505           values)
23506
23507 2006-06-28  Mike Kestner  <mkestner@novell.com>
23508
23509         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
23510
23511 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
23512
23513         * PropertyGrid.cs,
23514           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
23515           item lines from other area (It also makes BackColor consistent and
23516           compatible with .NET). Fixed bug #78564.
23517
23518 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
23519
23520         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
23521         Patch from Eno for #78555.
23522
23523 2006-06-27  Chris Toshok  <toshok@ximian.com>
23524
23525         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
23526
23527         * DataGridColumnStyle.cs: same.
23528
23529         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
23530         
23531         * DataGridDrawingLogic.cs: nuke.
23532
23533 2006-06-27  Chris Toshok  <toshok@ximian.com>
23534
23535         * DataGridTableStyle.cs: clean up the constructors, and build the
23536         list of child relations for this table.  I have no idea if this is
23537         where we should be doing it (it probably isn't), but since we're
23538         already iterating over the properties..
23539
23540         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
23541         struct and array for keeping track of row information, similar to
23542         what's shown in a hack on
23543         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
23544
23545         * Theme.cs: be consistent about the naming of DataGrid methods,
23546         prefering ColumnWidths and RowHeights over columnsWidths and
23547         RowsHeights.
23548
23549         * ThemeWin32Classic.cs: same, and also add support for variable
23550         sized rows (and the +/- expansion icons for related rows).
23551
23552 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
23553
23554         * TextBoxBase.cs: Applied Eno's patch from #78660
23555
23556 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
23557
23558         * Form.cs (ScaleCore): We don't want to scale our form if it's
23559           state is minimized or maximized, but we still need to scale our
23560           child windows. Also, added try/finally block to ensure layout
23561           gets reset (Fixes #78697)
23562
23563 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
23564
23565         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
23566
23567 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
23568
23569         * Form.cs: Fixed c+p error and added check to resize form if minimum
23570           size is bigger than current size (Fixes #78709)
23571
23572 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
23573
23574         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
23575
23576 2006-06-26  Mike Kestner  <mkestner@novell.com>
23577
23578         * ComboBox.cs: only do Keypress handling in the combo when there  
23579         are items in the collection. Fixes #78710.
23580
23581 2006-06-26  Chris Toshok  <toshok@ximian.com>
23582
23583         * Binding.cs: make this work bi-directionally.  also, clear up
23584         other mixups between Push/Pull Data (e.g. we're supposed to pull
23585         data when validating).
23586
23587         * BindingManagerBase.cs: trim some fully qualified collection
23588         types.
23589
23590         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
23591
23592 2006-06-23  Chris Toshok  <toshok@ximian.com>
23593
23594         * PropertyManager.cs: It appears (according to the unit tests)
23595         that PropertyManager doesn't use
23596         PropertyDescriptor.AddValueChanged to track propery value changes
23597         in its datasource, but uses the same scheme as Binding, where it
23598         looks for a <Property>Changed event and binds to it.
23599
23600         Also, according to the docs, IsSuspended always returns false for
23601         a property manager with a non-null datasource.
23602
23603 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
23604
23605         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
23606           need to update the actual DialogResult. (Fixes #78613)
23607
23608 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
23609
23610         * Form.cs (ShowDialog): Release any captures before running the
23611           new message pump (fixes #78680)
23612
23613 2006-06-22  Mike Kestner  <mkestner@novell.com>
23614
23615         * ListView.cs: Layout column widths properly in details mode even 
23616         if HeaderStyle.None is set.  Fixes #78691.
23617
23618 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
23619
23620         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
23621
23622 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
23623
23624         * Control.cs (ContainsFocus): Using new driver method to get focused
23625           window, instead of trying to use internal tracking var, which can
23626           recursion issues (Fixes #78685)
23627         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
23628           XplatUIWin32.cs: Added GetFocus method to return focused window
23629
23630 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23631
23632         * ColorDialog.cs: when the mouse button is pressed inside the color
23633         matrix, don't let the cursor move out of it until the button is
23634         released, which is the behavior on windows. Changed 'colours' by
23635         'colors' to use the same word consistently.
23636
23637 2006-06-21  Chris Toshok  <toshok@ximian.com>
23638
23639         * DataGrid.cs: add in some basic navigation stuff (navigating to a
23640         child relation and back, using a stack).  Also, remove
23641         GetDataSource and the code that calls it - it's not needed.  Also,
23642         track CurrencyManager.ListName's removal.
23643
23644 2006-06-21  Chris Toshok  <toshok@ximian.com>
23645
23646         * CurrencyManager.cs: push some of the original type checking from
23647         BindingContext.CreateBindingManager to here, and remove some of
23648         the finalType stuff.  Need more tests to make sure I've got the
23649         ListName part right, and we might need more in SetDataSource.
23650
23651         * PropertyManager.cs: add a ctor that takes just the datasource,
23652         and no property name.  Make SetDataSource work with a null
23653         property_name, and make Current return the data_source if the
23654         property descriptor is null.  this makes 'string foo = "hi";
23655         BindingContext[foo].Current' return "hi" as it should.
23656
23657         * RelatedCurrencyManager.cs: make this code more generic - there's
23658         no reason the parent manager has to be CurrencyManager, and
23659         there's no reason to pass the DataRelation.  It suffices to use a
23660         BindingManagerBase and PropetyDescriptor.
23661
23662         * RelatedPropertyManager.cs: make a similar change here.
23663         
23664         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
23665         flower I knew it could be.
23666
23667 2006-06-20  Chris Toshok  <toshok@ximian.com>
23668
23669         * PropertyManager.cs: the PropertyChangedHandler is invoked when
23670         data in the source has changed and we need to update the control,
23671         so s/PullData/PushData.
23672
23673         * CurrencyManager.cs: Refresh is meant to update the control from
23674         data in the datasource.  So, s/PullData/PushData.
23675
23676         * BindingContext.cs: add more ugliness (we weren't handling the
23677         case where data_source = DataTable and data_member = column_name).
23678
23679         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
23680         from the perspective of the datasource.  PullData pulls from the
23681         control, PushData pushes to the control.
23682
23683 2006-06-20  Chris Toshok  <toshok@ximian.com>
23684
23685         * BindingContext.cs: rewrite the CreateBindingManager code to
23686         handle navigation paths more or less properly.  This could
23687         definitely stand some more work, in particular to push the
23688         recursion up to the toplevel.  But that relies on fixes in other
23689         places (System.Data comes to mind).
23690
23691         Also, move to a flat hashtable (and encode the twolevel nature of
23692         the dictionary into the hash key).  This lets us implement the
23693         IEnumerable.GetEnumerator method.
23694
23695         * RelatedCurrencyManager.cs: new class.  Update our view based on
23696         our relation and our parent CurrencyManager's position.
23697
23698         * CurrencyManager.cs: split out some logic from the ctor into
23699         SetView, so it can be called from the new RelatedCurrencyManager
23700         subclass.
23701
23702         * RelatedPropertyManager.cs: new class.  Update our datasource
23703         based on the position of our parent CurrencyManager.
23704
23705         * PropertyManager.cs: split out some logic from the ctor into
23706         SetDataSource, so it can be called from the new RelatedDataSource
23707         subclass.  Also, make the Current getter return the value
23708         of the PropertyDescriptor, not the data_source.
23709
23710         * Binding.cs: no need to duplicate the string splitting code here.
23711
23712 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
23713
23714         * Control.cs:
23715           - set_Enabled: OnEnabledChanged is not called if the inherited state 
23716             of the control is not altered, even though  we might be changing the
23717             internal state of the control (#78458)
23718           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
23719             OnEnabledChanged, to allow easy altering of any child window state
23720           - OnEnabledChanged: Added code to enable/disable driver window state
23721           - OnParentEnabledChanged: Instead of firing the event, call 
23722             OnEnabledChanged, which will fire the event and also a) set driver
23723             window state and pass the enabled state to any grandchildren (#78458)
23724
23725 2006-06-19  Jackson Harper  <jackson@ximian.com>
23726
23727         * InternalWindowManager.cs: We don't set the cursor explicitly
23728         thats done via the response to NCHITTESTs.
23729         - Don't need to adjust for titlebar heights anymore, the
23730         coordinates are coming in the correct coordinates now (see peters
23731         last patch).
23732
23733
23734 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
23735
23736         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
23737           being translated relative to whole window, instead of client window.
23738           That caused broken offsets on mouseclick (and caused gas for our
23739           InternalWindowManager)
23740
23741 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
23742
23743         * TextControl.cs:
23744           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
23745           - Undo(): Added replay of cursor move on DeleteChars action; added
23746             calling Undo() again if a recorded cursor move is invalid (to
23747             ensure that some action is performed on Undo)
23748         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
23749
23750 2006-06-16  Jackson Harper  <jackson@ximian.com>
23751
23752         * MdiClient.cs: Instead of just sizing maximized windows when
23753         there is a resize we also have to adjust the Y of minimized
23754         windows, so they stay pinned to the bottom of the mdi container.
23755         - Eliminate separate tracking of the active control, we can just
23756         get this from the controls collection.
23757         - Paint the decorations for the newly activated titlebar so we get
23758         a pretty blue bar.
23759         * InternalWindowManager.cs:
23760         * ThemeWin32Classic.cs: Minimized windows get all three buttons
23761         even if they are a tool window.
23762         
23763 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
23764
23765         * TextControl.cs (Undo): Handle non-existent cursor locations in the
23766           undo buffer, these can happen when text was deleted and the cursor
23767           was recorded first. Since we will also have a recorded cursor
23768           after the delete this is not an issue. (Fixes #78651)
23769
23770 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
23771
23772         * AccessibleObject.cs: Remove dependence on Control.is_selected;
23773           instead properly track control states internally (allows us to
23774           remove is_selected from Control)
23775
23776 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23777
23778         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
23779         whose width is not a multiple of 8.
23780
23781 2006-06-13  Jackson Harper  <jackson@ximian.com>
23782
23783         * MdiClient.cs:  Only maximize the next child if the current one
23784         is maximized.
23785
23786 2006-06-13  Chris Toshok  <toshok@ximian.com>
23787
23788         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
23789         modified.  Also, guard against grid or grid_drawing being null in
23790         Invalidate.
23791
23792         * DataGrid.cs: Reformat tons of getters/setters.  In the
23793         DataMember setter, just call SetNewDataSource instead of
23794         duplicating some of its functionality.  In SetNewDataSource, don't
23795         check ListManager for null, since the property getter creates the
23796         object if needed.
23797
23798         * DataGridTableStyle.cs: don't set TableStyle or call
23799         SetDataGridInternal on the column here, it's done in
23800         GridColumnStylesCollection.Add.
23801
23802         * GridColumnStylesCollection.cs: fix all the explicit interface
23803         implementations to just call our methods.  Nuke AddInternal() and
23804         move the body of it to Add().  Also, add a call to
23805         column.SetDataGridInternal to Add().
23806
23807         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
23808         base()+duplicate code.  Also, use the Format property instead of
23809         format to generate an Invalidate ala MS.  Lastly, create the
23810         textbox here, unconditionally.
23811         (set_Format): call Invalidate.
23812         (get_TextBox): no need to call EnsureTextBox.
23813         (Commit): remove the message box.
23814         (Edit) remove the call to EnsureTextBox.
23815         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
23816         (EnterNullValue): no need to check textbox for null.
23817         (HideEditBox): no need to check textbox for null.
23818         (SetDataGridInColumn): add the textbox to the grid's controls.
23819         (EnsureTextBox): nuke.
23820         
23821 2006-06-13  Jackson Harper  <jackson@ximian.com>
23822
23823         * MdiWindowManager.cs: Hook up to the maximized menus paint event
23824         and redraw the buttons when needed. Unhook when the window is
23825         unmaximized.
23826         * MainMenu.cs: Add an internal Paint event, the mdi window manager
23827         needs this so that it can redraw its buttons when the menu is
23828         repainted.
23829         * InternalWindowManager.cs:
23830         * Form.cs: The method order has changed for DrawMaximizedButtons,
23831         so that it can be a PaintEventHandler.
23832         
23833 2006-06-13  Jackson Harper  <jackson@ximian.com>
23834
23835         * MdiClient.cs: When we close a maximized mdi window, the next mdi
23836         window is activated and maximized, even if it wasn't before.
23837         - When  a new window is activated repaint the decorations of the
23838         old one, so that it no longer has the Active "look" (the blue
23839         titlebar).
23840         * InternalWindowManager.cs: Open up CreateButtons to base classes
23841         so they can recreate the buttons on state changes.
23842         - If a window is maximized give it all three buttons
23843         * MdiWindowManager.cs: Create the titlebar buttons when the state
23844         is changed, this is needed because a toolwindow will not have all
23845         three buttons until it is maximized.
23846
23847 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
23848
23849         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
23850           Fixed bug #78609.
23851
23852 2006-06-12  Jackson Harper  <jackson@ximian.com>
23853
23854         * KeysConverter.cs: Make sure we handle the Ctrl special case
23855         if its the only key.
23856         
23857 2006-06-12  Jackson Harper  <jackson@ximian.com>
23858
23859         * Theme.cs: Add a method to get the size of a managed window
23860         toolbar button.
23861         * InternalWindowManager.cs: Remove the ButtonSize property, this
23862         should be retrieved from the theme.
23863         * MdiWindowManager.cs: Get the button size from the theme
23864         * ThemeWin32Classic.cs: Make the method to get the managed window
23865         titlebar button size public.
23866         - Handle the different button sizes of maximized toolwindows
23867         (should match any maximized window).
23868         - Get the titlebar height from the theme, not the WM (which gets
23869         it from the theme).
23870
23871 2006-06-12  Jackson Harper  <jackson@ximian.com>
23872
23873         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
23874         event down to the mdi window manager.
23875         - Expose some extra stuff to base classes
23876         - Make sure to end the Capture on an NC Mouse up, so that we can
23877         get double clicks properly, and the sizing doens't stick.
23878         - When doing PointToClient contain it in the workable desktop
23879         area, this prevents windows from changing size when the cursor is
23880         pulled outside of the working area while sizing.
23881         * MdiWindowManager.cs: When we get a double click maximize the
23882         window.
23883         - Reset the cursor after handling mode changes.
23884
23885 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
23886
23887         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
23888           current desktop, instead of just assuming a 0, 0 origin. This
23889           is needed for our internal window manager, to know the top
23890           margin of the desktop
23891
23892 2006-06-12  Chris Toshok  <toshok@ximian.com>
23893
23894         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
23895         we need this to get rid of the selected background in the bool
23896         column.
23897         (CancelEditing): move the ConcedeFocus call to above the Abort
23898         call.  Also, set is_changing to false and invalidate the row
23899         header if we were changing before.
23900         (ProcessKeyPreviewInternal): remove, since noone outside this
23901         class calls it anymore.  Roll the code into ProcessKeyPreview.
23902         (EndEdit): remove the internal version.
23903         (InvalidateCurrentRowHeader): make private.
23904
23905         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
23906         Keys.Escape handling (and with it the last call to
23907         DataGrid.EndEdit from outside the class.)
23908
23909
23910 2006-06-12  Chris Toshok  <toshok@ximian.com>
23911
23912         * DataGridTextBox.cs (.ctor): isedit defaults to false.
23913         (OnKeyPress): set isedit to true.
23914         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
23915         already handled by the grid.
23916
23917         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
23918         right.  ugh.
23919         (set_DataSource): SetDataSource always returns true, so stop
23920         putting it in an if statement.
23921         (EndEdit): get rid of some {}'s
23922         (ProcessGridKey): return true in case Keys.Escape.
23923         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
23924         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
23925         PositionChanged, stopped connecting to CurrentChanged.
23926         (GetDataSource): simplify this a bunch.
23927         (SetDataSource): change return type from bool to void.
23928         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
23929         to this, and make sure we don't set ListManager.Position inside
23930         set_CurrentCell.
23931         (OnListManagerItemChanged): if we're passed an actual index,
23932         redraw that row.
23933
23934         * CurrencyManager.cs (set_Position): don't call PullData here.
23935
23936 2006-06-09  Jackson Harper  <jackson@ximian.com>
23937
23938         * TreeNode.cs:  Recalculate the visible order before doing the
23939         Expand/Collapse Below calls, because those calls generate an
23940         expose.
23941         - Reduce calls to the TreeView property, which is mildly expensive
23942         by using a local var.
23943         * Form.cs: Layout the MDI child windows when creating the parent
23944         form.
23945         - Don't use the internal constructor anymore
23946         * MdiClient.cs: use the parent form width/height (if available)
23947         when laying out the child windows, we do this because the
23948         mdiclient isn't docked yet when the initial layout is done.
23949         - Don't need an internal constructor anymore.
23950
23951 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23952
23953         * FileDialog.cs: handle access errors when trying to create a folder
23954         or changing to a directory. No need to initialize out parameters.
23955
23956 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
23957
23958         * FileDialog.cs: Append a number when creating a new folder if the
23959           folder already exists (use parenthesis instead of square brackets)
23960
23961 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
23962
23963         * FileDialog.cs:
23964           - Disabled registry support for windows and added better registry
23965             error checking for other systems (need to investigate why it
23966             works perfectly on my system)
23967           - If a folder already exist show an error MessageBox instead of
23968             trying to create an indexed name.
23969           - Fixed a non intentional typo.
23970
23971 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23972
23973         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
23974
23975 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
23976
23977         * FileDialog.cs: When creating a new folder don't crash if the
23978           folder already exists.
23979
23980 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
23981
23982         * FileDialog.cs: Allmost a complete rewrite.
23983           - added a "virtual" file system that handles the differences
23984             between unix and windows file systems (especially the directory
23985             structure). Moved most of the directory and file handling code
23986             into the vfs.
23987             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
23988             UnixFileSystem and FSEntry.
23989           - Recently used folder/directory, size, location and used file names
23990             (file name ComboBox) are now stored in the registry and get read
23991             before the dialog shows up (fixes part 6 of bug #78446).
23992           - Creation of new folders/directories is now possible (context menu
23993             or ToolBar). Added TextEntryDialog for this that fills in the gap
23994             until ListView.LabelEdit works.
23995           - Fixed cursor handling (bug #78527) and focus handling for
23996             PopupButtonPanel
23997           - Various "Search in" ComboBox enhancements. The content of the
23998             dropdown listbox now almost matches ms.
23999           - Changed the behaviour when the user switches to SpecialFolder
24000             Recent to show the ListView in View.Details.
24001           - Beside using the ToolBar to change the View property of the
24002             file ListView it is now possible to use the context menu too.
24003
24004 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
24005
24006         * ComboBox.cs: Don't create a new ObjectCollection when an item
24007           gets inserted. Just insert the item in the existing object_items
24008           ArrayList.
24009
24010 2006-06-08  Jackson Harper  <jackson@ximian.com>
24011
24012         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
24013         that the treeview and root node checks are done also, this fixes a
24014         regression i caused in the unit tests.
24015
24016 2006-06-07  Wade Berrier <wberrier@novell.com> 
24017
24018         * RichTextBox.cs: More ISO8859-1 -> unicode
24019
24020 2006-06-07  Mike Kestner  <mkestner@novell.com>
24021
24022         * ComboBox.cs : use items to hold highlight/selection so that
24023         collection insertions don't require synchronization.
24024
24025 2006-06-07  Jackson Harper  <jackson@ximian.com>
24026
24027         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
24028         routine.  We now always keep the sized edge at the cursor instead
24029         of computing movement and adjusting rects.  There is one buglet
24030         with this method though when the cursor is moved over area that
24031         the window can not expand too (such as the toolbars on the desktop).
24032
24033 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24034
24035         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
24036         here. Fixes crash on startup in AlbumSurfer.
24037
24038 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
24039
24040         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
24041           values
24042
24043 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24044
24045         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
24046         statement to avoid calling XNextEvent which will block if another thread
24047         took the event that we were expecting. Fixes bug #78605.
24048
24049 2006-06-07  Mike Kestner  <mkestner@novell.com>
24050
24051         * ListView.cs : isolated checkbox clicking from the selection logic.
24052         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
24053
24054 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24055
24056         * Form.cs: Check that the value passed to Form.DialogResult
24057         is a valid enum value.
24058
24059 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24060
24061         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
24062         Computer'. Clicking it in the network view goes to 'My Computer'.
24063         Added CIFS filesystem type. Display the mount point of filesystems.
24064         Avoid duplicate mount points (happens for me with CIFS);
24065
24066 2006-06-06  Jackson Harper  <jackson@ximian.com>
24067
24068         * InternalWindowManager.cs: Draw the maximized windows buttons
24069         when resizing.
24070
24071 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24072
24073         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
24074         all other dialogs. Fixes bug #78585.
24075
24076 2006-06-06  Mike Kestner  <mkestner@novell.com>
24077
24078         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
24079         Only invalidate checkbox on checkstate changes to avoid flicker.
24080         * ListBox.cs : avoid unselect/select when clicking selected item.
24081         avoid reselection flicker for already multiselected items.
24082         Fixes #78382.
24083
24084 2006-06-06  Jackson Harper  <jackson@ximian.com>
24085
24086         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
24087         the parent form so that the menu is removed if needed.
24088
24089 2006-06-06  Mike Kestner  <mkestner@novell.com>
24090
24091         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
24092         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
24093
24094 2006-06-06  Mike Kestner  <mkestner@novell.com>
24095
24096         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
24097
24098
24099 2006-06-06  Jackson Harper  <jackson@ximian.com>
24100
24101         * Control.cs: Use the property (instead of the field) to get the
24102         default cursor so it is instantiated correctly.
24103         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
24104         resizes so we need to manually repaint the window decorations here.
24105         - Set the titlebar button locations as soon as they are created,
24106         otherwise they are not set correctly on win32.
24107         
24108 2006-06-06  Chris Toshok  <toshok@ximian.com>
24109
24110         * CurrencyManager.cs (set_Position): call PullData before
24111         OnCurrentChanged.
24112         (AddNew): after calling IBindingList.AddNew, update our
24113         listposition, and call OnCurrentChanged/OnPositionChanged (without
24114         calling PullData).
24115         (OnCurrentChanged): remove the call to PullData from here.
24116         (OnItemChanged): remove the call to PushData from here.
24117         (OnPositionChanged): change the test from == null to != null to
24118         match the other methods.
24119         (ListChangedHandler): the grossest part of the patch.  Implement
24120         this such that it passes the unit tests in CurrencyManagerTest and
24121         the output more or less matches that of MS's implementation.
24122  
24123 2006-06-06  Mike Kestner  <mkestner@novell.com>
24124
24125         * ListView.cs : only update check state on single click.
24126         * ThemeWin32Classic.cs : fix focus drawing for details view without
24127         fullrowselect.  Fixes #78454.
24128         * XplatUIX11.cs : fix for double click emission.
24129
24130 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
24131
24132         * PropertyGridView.cs : Applied Atsushi's patch to fix
24133         font dialog bug  (#78197).
24134
24135 2006-06-05  Jackson Harper  <jackson@ximian.com>
24136
24137         * TreeNode.cs: Compute the next node for expanding/collapsing
24138         correctly. We now factor in nodes without a NextNode
24139         correctly. (Fixes somes cases in nunit-gui).
24140         * InternalWindowManager.cs: Set the bounds when updating the
24141         virtual position of a tool window.
24142         
24143 2006-06-05  Chris Toshok  <toshok@ximian.com>
24144
24145         * DataGrid.cs: rename cached_currencymgr to list_manager.
24146         (set_CurrentCell): move SetCurrentCell code here, and clean it up
24147         some.
24148         (CurrentRow, CurrentColumn): single accessors so we can make the
24149         cursor movement code a lot easier to understand.
24150         (CurrentRowIndex): implement this in terms of CurrentRow.
24151         (BeginEdit): clean this up a bit.
24152         (CancelEditing): sort out the is_editing/is_changing/is_adding
24153         stuff a little.
24154         (EndEdit): minor changes.
24155         (OnKeyDown): add a comment about a (most likely) unnecessary
24156         check.
24157         (OnMouseDown): cancel editing when we click on a row header.  And
24158         use the CurrentRow setter, not CurrentCell.
24159         (ProcessDialogKey): directly call ProcessGridKey.
24160         (UpdateSelectionAfterCursorMove): factor out this common block of
24161         code (it's used everywhere that we move the cursor by updating row
24162         or column).
24163         (ProcessGridKey): pretty substantial overhaul.  Use the
24164         CurrentRow/CurrentColumn properties to make the code a lot more
24165         readable.  Only use the CurrentCell property when we have to
24166         modify both row and column at once.  Tab behavior is still broken,
24167         and Delete is untested.
24168         (Select): if we have no selected rows, set selection_start to
24169         @row.
24170         (EditCurrentCell): rename EditCell this.  It was only ever invoked
24171         with CurrentCell as the arg, so drop the arg and rename it.
24172
24173         * DataGridColumnStyle.cs: clean up the constructors a little, and
24174         drop CommonConstructor().
24175
24176         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
24177         actually get notified when the user hits it.
24178         (ProcessKeyMessage): *substantially* simplify this method.
24179         There's no reason (that I can see) for the textbox to be making
24180         calls into the datagrid at all.  Remove all of them but the ones
24181         for Enter handling.  those will take some more work.
24182
24183         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
24184         calling HideEditBox.
24185         (HideEditBox): if we have an active textbox, render it invisible
24186         without causing a re-layout of the datagrid.
24187
24188 2006-06-05  Mike Kestner  <mkestner@novell.com>
24189
24190         * ListView.cs : fix NRE crasher when focuseditem is cleared by
24191         collection changes by resetting it to Items[0].  Fixes #78587.
24192
24193 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24194
24195         * MessageBox.cs: if the height of the text is larger than the icon_size,
24196         use that. Fixes bug #78575.
24197
24198 2006-06-05  Jackson Harper  <jackson@ximian.com>
24199
24200         * TreeView.cs: Fix line drawing when scrolling.  To do this each
24201         node is basically responsible for drawing its entire horizontal
24202         area.  When drawing a node it draws its parent node lines if
24203         needed.
24204         - Adjust the clip area to the viewport rectangle
24205         - Fix Left/Right key handling to match MS. (It expand/collapses
24206         and moves to parents/first child but does not move selection to
24207         sibling nodes).
24208         - Fix SetTop to work with new bound calculation code
24209         - When scrollbars are no longer needed we need to reset scrolling
24210         vars and recalculate the visible order so the redraw is correct
24211         * TreeNode.cs: We can't expand/collapse nodes with no children.
24212
24213 2006-06-03  John Luke  <john.luke@gmail.com> 
24214
24215         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
24216         so the colors work without dev packages
24217         
24218 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
24219
24220         * Control.cs 
24221           - Select: Implemented to just use activate. Seems to match MS 
24222             behaviour closest. Documented to only do actual control walking 
24223             based on it's parameters if in a container control so I moved 
24224             the code there.
24225           - Removed selection check logic from our internal Select() method
24226         * ContainerControl.cs:
24227           - Select: Moved selection logic from Control here, since MS documents
24228             that containers obey the bool arguments. No longer calling base
24229
24230 2006-06-02  Jackson Harper  <jackson@ximian.com>
24231
24232         * TreeView.cs: If the selected node isn't changed when we get
24233         focus update the previously selected node so that we see the
24234         selection box.
24235
24236 2006-06-02  Mike Kestner  <mkestner@novell.com>
24237
24238         * ComboBox.cs: restructure grab and general mouse event handling.
24239         Make the composite control raise mouse events like it was a single
24240         control for leaves/enters/motion/up/down events.  fix dropdown list
24241         coordinate mangling and refactor it into the scrollbar subclass to
24242         reduce code duplication.  Fixes #78282 #78361 and #78457.
24243
24244 2006-06-02  Mike Kestner  <mkestner@novell.com>
24245
24246         * ScrollBar.cs: remove Capture setting/clearing, as it happens
24247         automatically in the Control.WndProc.
24248
24249 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24250
24251         * FileDialog.cs: fix crash when running SharpChess, which sets the
24252         FilterIndex to 2 with only one Filter.
24253
24254 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24255
24256         * ToolBar.cs: add SizeSpecified property.
24257         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
24258         try to figure out our real size, otherwise fallback to what the
24259         container says.
24260
24261 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
24262
24263         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
24264         * Control.cs (WndProc): MS always calls the DefWndProc to pass
24265           up the event
24266
24267 2006-06-01  Mike Kestner  <mkestner@novell.com>
24268
24269         * ListView.cs: revamp the focus management in ListView.  It still
24270         causes churn of LostFocus/GotFocus emissions on clicks, but it's
24271         better than not handling focus at all.  Will revisit when pdb feels
24272         the general focus handling is solid.  Fixes #78526.
24273
24274 2006-06-01  Jackson Harper  <jackson@ximian.com>
24275
24276         * TreeView.cs: Set the default border style in the constructor.
24277         - Move painting to use OnPaintInternal instead of capturing
24278         WM_PAINT, this is the correct way of doing things
24279         - UpdateBelow shouldn't invalidate the scrollbar area
24280         - Cap the top on update below in case the node was above the top
24281         of the viewport rectangle.
24282         - ExpandBelow and Collapse below need to obey Begin/End Update.
24283         * TreeNode.cs: Make is_expanded internal so the treenode
24284         collection can change it without firing the whole event chain.
24285         * TreeNodeCollection.cs: When clearing all the child nodes make
24286         sure to recalc the visible order.
24287         - Improve algo for remove the top node
24288
24289 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
24290
24291         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
24292           SendMessage directly calling window procedures, which in turn might
24293           call SetFocus()
24294
24295 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
24296
24297         * Control.cs: Don't handle WM_SETFOCUS if the same window already
24298           has focus (works around X11 sending a FocusIn after our SetFocus)
24299         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
24300
24301 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
24302
24303         * Mime.cs: Fix for the NET_2_0 build.
24304           NameValueCollection needs StringComparer now.
24305
24306 2006-05-31  Chris Toshok  <toshok@ximian.com>
24307
24308         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
24309         return (via an out parameter) the starting X of the column.
24310         (UpdateVisibleColumn): track change to FromPixelToColumn.
24311         (HitTest): add a ColumnResize case here.
24312         (DrawResizeLine): new function, probably poorly named.
24313
24314         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
24315         only need to keep one reference.
24316         (set_ListManager): same.
24317         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
24318         Also, add support for HitTestType.ColumnResize.
24319         (OnMouseMove): add column resize behavior here, and change the
24320         cursor to the correct one as we move around the datagrid.
24321         (OnMouseUp): terminate the column resize if we're resizing.
24322         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
24323         for the current cell.
24324         (ConnectListManagerEvents): use cached_currencymgr.
24325         (DisconnectListManagerEvents): fill this in, using
24326         cached_currencymgr.
24327         (SetCurrentCell): remove cached_currencymgr_events handling.
24328         (SetDataMember): only call DisconnectListManagerEvents if
24329         cached_currencymgr is != null.
24330         (SetDataSource): same.
24331         (OnListManagerCurrentChanged): cached_currencymgr_events ->
24332         cached_currencymgr.
24333
24334 2006-05-31  Jackson Harper  <jackson@ximian.com>
24335
24336         * BindingManagerBase.cs: Remove somedebug code that creeped into
24337         SVN.
24338         * TreeNode.cs: We get the indent level dynamically right now, so
24339         don't track it as a member.
24340         * TreeNodeCollection.cs: Make sure all nodes added to the list
24341         have parents, treeviews/topnodes setup properly.
24342         - Don't attempt to track indent level.
24343
24344 2006-05-30  Jackson Harper  <jackson@ximian.com>
24345
24346         * BindingContext.cs: Create the currency manager tables here.
24347         This allows us to more easily create null tables (when bad data
24348         members are used), and more easily create related currency
24349         managers.
24350         * CurrencyManager.cs: All the table creation stuff is done by the
24351         binding context now.
24352         - Current should throw an exception if listposition is -1.
24353         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
24354         been bound yet.
24355
24356 2006-05-30  Mike Kestner  <mkestner@novell.com>
24357
24358         * ListView.cs: allow reexpansion of zero-width column headers.
24359         Fixes #78528.
24360
24361 2006-05-28  Chris Toshok  <toshok@ximian.com>
24362
24363         * CurrencyManager.cs (get_Current): after the late binding
24364         listposition = -1 fix, we need to guard against it here and return
24365         null, otherwise we raise an exception (which is swallowed
24366         elsewhere, and breaks datagrid databinding.)
24367
24368 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
24369
24370         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
24371           than WM_SYSKEY, don't throw if get something unexpected (#78507)
24372
24373 2006-05-26  Jackson Harper  <jackson@ximian.com>
24374
24375         * ControlPaint.cs:
24376         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
24377         values, it's faster and it's all we care about (we don't care if
24378         the names aren't equal).
24379         * KeyboardLayouts.cs: Eliminate some dead code.
24380         - Lazy init things
24381         * X11Keyboard.cs: Lazy init keyboard detection.
24382         - Cleanup access modifiers a little.
24383
24384 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
24385
24386         * XplatUIX11.cs: Once again, attempting to get layout just right.
24387
24388 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
24389
24390         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
24391           the sizes of each link section, that will result in sizes that
24392           match DrawString's layout (Fixes #78391)
24393
24394 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
24395
24396         * FileDialog.cs: If AddExtension property is true autocomplete the
24397           extensions in SaveFileDialog correctly. Fixes bug #78453.
24398           Set MyNetwork and MyComputer to "C:\" for windows. This should
24399           fix part 8 of bug #78446 for now.
24400
24401 2006-05-26  Chris Toshok  <toshok@ximian.com>
24402
24403         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
24404         invalidate the current row header if we need to, but presumably
24405         we'll invalidate the row corrsponding to the bounds or
24406         editingControl.
24407         (GridHScrolled): switch back to this method, as it's part of the
24408         public api.  *sigh*.
24409         (GridVScrolled): same.
24410         (OnMouseWheel): hack up something that more or less works.  Call
24411         GridHScrolled/GridVScrolled directly, instead of duplicating much
24412         of their code here.
24413         (EnsureCellVisibility): reinstate a bunch of this code, since we
24414         can't just set the scrollbar Value and expect to do all the work
24415         in the ValueChanged handler.  Also, Call Update() after scrolling
24416         in one direction so the other XplatX11.ScrollWindow call has the
24417         proper stuff in the proper places.
24418         (EditCell): set is_editing to true before calling .Edit.
24419
24420         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
24421         don't bother comparing first.
24422         (OnKeyPress): call grid.ColumnStartedEditing before calling
24423         base.OnKeyPress.  this will set is_changing and invalidate the row
24424         header if necessary.
24425         (ProcessKeyMessage): for WM_CHAR messages, call
24426         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
24427         and WM_KEYDOWN.
24428         
24429         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
24430         it's done in the DataGrid.
24431         (NextState): call grid.ColumnStartedEditing, which takes care of
24432         invalidating the row header (and setting is_changing).
24433
24434         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
24435         here.  it's done in the DataGrid.
24436
24437 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24438
24439         * Control.cs: allow changing the cursor when the mouse position is
24440         out of bounds but Capture is set.
24441         * LinkLabel.cs: handle the case when the mouse button is pressed on the
24442         linklabel but released somewhere else.
24443
24444 2006-05-25  Jackson Harper  <jackson@ximian.com>
24445
24446         * TreeView.cs: When we get focus if there is no selected node make
24447         it the top node
24448         - Remove some uneeded setup code from Draw.
24449         * TreeNodeCollection.cs: If the tree doesn't have a top node when
24450         a new node is inserted make the new node the top.
24451         * XplatUIX11.cs:
24452         * Timer.cs: Use Utc time so that no local time zone stuff needs to
24453         be used (should be faster).
24454         
24455 2006-05-25  Chris Toshok  <toshok@ximian.com>
24456
24457         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
24458         problem with the last commit.
24459
24460 2006-05-25  Chris Toshok  <toshok@ximian.com>
24461
24462         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
24463         need the invalidate call here, while scrolling right-to-left via
24464         the left arrow key (i.e. moving the editing cell while scrolling).
24465
24466         * DataGrid.cs (.ctor): remove the initialization of
24467         ctrl_pressed/shift_pressed.  We no longer track them using key
24468         up/down handlers, but by using Control.ModifierKeys.  Also, switch
24469         to using ValueChanged handlers on the scrollbars instead of
24470         Scrolled event handlers.  This simplifies a bunch of the scrolling
24471         code.
24472         (GridHValueChanged): rename from GridHScrolled, and change it to
24473         work with the new event args.
24474         (GridVValueChanged): same.
24475         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
24476         (OnMouseWheel): actually scroll the datagrid.  Don't change the
24477         selected cell.
24478         (ProcessGridKey): correct all the keyboard navigation stuff I
24479         could find.  Ctrl up/down/left/right/home/end work now.
24480         (EnsureCellVisibility): correct method name spelling.  Also,
24481         simplify this a touch by not explicitly calling the
24482         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
24483         scrollbar value.
24484         (OnKeyUpDG): no need for this method now.
24485         
24486 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24487
24488         * LinkLabel.cs: display the OverrideCursor when hovering the label.
24489         Fixes bug #78392.
24490
24491 2006-05-25  Chris Toshok  <toshok@ximian.com>
24492
24493         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
24494         r61019.
24495
24496 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
24497
24498         * Application.cs: Moved setting of is_modal and closing to before
24499           we create the control, to allow the event handlers called as a
24500           result of creation affect closing. Also removed Gonzalo's previous
24501           change to setting DialogResult, the behaviour has been moved to 
24502           Form.ShowDialog()
24503         * Form.cs: 
24504           - ShowDialog(): Removed explicit creation of the form, let RunLoop
24505             handle it instead
24506           - ShowDialog(): If no dialog result is set, we need to return Cancel
24507           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
24508             the close is cancelled
24509
24510 2006-05-25  Jackson Harper  <jackson@ximian.com>
24511
24512         * StatusBar.cs: We only need to update the sizes of the other
24513         panels when we have auto size contents.  Also we are only updating
24514         the contents of the panel, not the borders, so compensate for the
24515         border width (TODO: get this width from the theme somehow).
24516         * TreeView.cs: Scrollable is true by default
24517         - Use invalidate instead of refresh where needed
24518         - Factor the scrollable value into scrollbar updating
24519         - Update the scrollbars if the Scrollable property is altered
24520         - Update the selected node if its ImageIndex is changed
24521         - Handle null nodes in UpdateNode (mainly so we don't have to
24522         check if selected is null when updating it
24523         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
24524         are factored into the visible count
24525         - Use VisibleCount for clarity in the code
24526         - When the font is changed we need to recurse through all the
24527         nodes and invalidate their sizes
24528         
24529 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24530
24531         * Application.cs: set the DialogResult to fixed when the main form is
24532         hidden or destroyed while being modal.
24533
24534 2006-05-25  Miguel de Icaza  <miguel@novell.com>
24535
24536         * Theme.cs: Use Tangoified messagebox icons. 
24537
24538         (GetSizedResourceImage): Also cope with width = 0 and do not
24539         trigger a warning in that case (0 means "give me your icon from
24540         the resouce, no special size needed).
24541
24542 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
24543
24544         * Application.cs: Leave runloop if the the main modal form is 
24545           hidden (fixes #78484)
24546
24547 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
24548
24549         * BindingContext.cs : reject null datasource in Contains() and
24550           Item[].
24551         * CurrencyManager.cs : check data_member validity when data_source
24552           is dataset. When it is late binding, the initial position is -1.
24553
24554 2006-05-24  Jackson Harper  <jackson@ximian.com>
24555
24556         * TreeNodeCollection.cs: Dont't recalculate the visible order on
24557         inserted nodes that aren't visible.  This changes the
24558         max_visible_order which confuses scrollbar settings.
24559         - Use the enumerator to get the prev node instead of duplicating
24560         code.
24561         * TreeView.cs: Use new method for setting scrollbar values
24562         - Don't set the bounds every time the scrollbar is updated
24563         - When updating below the root node use an invalidate instead of a
24564         refresh to prevent the child controls (scrollbars) from being
24565         refreshed. (UpdateBelow still needs to be reworked anyways).
24566         - Reenable SetBottom now that visible orders are set correctly,
24567         added some debug code incase we ever get bad values there again.
24568         - Set the scrollbar max to 2 less then the max value, this
24569         compensates for the max value being one above the node count, and
24570         for scrollbars adding one extra "notch".
24571         - When drawing image nodes if there is an imagelist we draw the
24572         first image in the list if the supplied image index is out of the
24573         image list's bounds.
24574         
24575 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
24576
24577         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
24578           we receive a size change from the WM (Fixes #78503)
24579
24580 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
24581
24582         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
24583           rectangle (Fixes #78501)
24584
24585 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
24586
24587         * ButtonBase.cs: 
24588           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
24589             as a bitfield.
24590           - Fixed MouseMove to no longer switch pressed state unless the left
24591             mouse button is pressed. Atsushi provided the original patch (#78485)
24592           
24593 2006-05-24  Jackson Harper  <jackson@ximian.com>
24594
24595         * ScrollBar.cs: New internal methods that allow us to change a
24596         couple values on the scrollbar (the most common case is maximum
24597         and large change) without getting multiple invalidates.
24598
24599 2006-05-24  Chris Toshok  <toshok@ximian.com>
24600
24601         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
24602         (Edit): save off the original state in oldState, and set
24603         grid.is_editing to true.
24604         (OnKeyDown): abort editing if escape is pressed.  also, call
24605         NextState if space is pressed.
24606         (OnMouseDown): call NextState.
24607         (NextState): factor out shared code from OnKeyDown and OnMouseDown
24608         here.  Also, only invalidate the row header once (on the initial
24609         is_changing switch) to save on redraws.
24610
24611 2006-05-24  Chris Toshok  <toshok@ximian.com>
24612
24613         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
24614         if the value in the cell is different than it was before.  This
24615         keeps us from triggering a layout when we move around a datarid
24616         with a highlighted cell.
24617         (Edit): suspend layout when creating/positining the text box, and
24618         resume passing false so we don't ever actually re-layout.
24619         (ReleaseHostedControl): same.
24620         (EnsureTextBox): reformat slightly, and set WordWrap to false.
24621
24622         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
24623         control-key sequences should go to the datagrid - remove that
24624         lock.  Also, modify the conditions under which we move between
24625         cells when moving the cursor within a cell, and remove the "this"
24626         and "base" from field accesses.  We weren't even consistent, given
24627         they all were in the base class.
24628
24629 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
24630
24631         * Binding.cs : (.ctor)
24632           An obvious NRE fix for BindingTest.CtorNullTest().
24633
24634 2006-05-23  Chris Toshok  <toshok@ximian.com>
24635
24636         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
24637         them between lines.  This fixes some quirks editing cells in the
24638         datagrid.
24639
24640 2006-05-23  Jackson Harper  <jackson@ximian.com>
24641
24642         * TreeView.cs: Use begin/end update when doing expand/collapse all
24643         so that we don't get flicker on the scrollbar.
24644
24645 2006-05-23  Jackson Harper  <jackson@ximian.com>
24646
24647         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
24648         treenode calculations to be independant of the painting code. To
24649         do this nodes track a visible order which is calculated by the
24650         treeview.
24651         - Call new methods for expanding/collapsing nodes.  These methods
24652         use scrollwindow so we don't have to update everything below the
24653         node.
24654         * TreeView.cs: Refactored drawing and scrolling code.  We don't
24655         need to update nodes when drawing anymore or calculate scrollbar
24656         stuff.
24657         - Added new methods for expanding/collapsing nodes. These methods
24658         use ScrollWindow so as to not have to redraw all the nodes below.
24659         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
24660         we add/remove nodes or sort.
24661         - Handle removing the selected and the top node properly.
24662
24663 2006-05-23  Chris Toshok  <toshok@ximian.com>
24664
24665         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
24666         maybe this should actually happen in the datagrid code?
24667         (EndEdit): no need to invalidate anything, given that
24668         ReleaseHostedControl causes the datagrid to relayout, which
24669         invalidates everything anyway.
24670
24671         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
24672         in SetCurrentCell).
24673         (set_SelectionBackColor): call InvalidateSelection instead of
24674         Refresh.
24675         (set_SelectionForeColor): same.
24676         (BeginEdit): Flesh this out a bit.
24677         (CancelEditing): only do any of this if we're editing/adding.
24678         (EndEdit): same.
24679         (OnMouseDown): there's no need to cancel editing here, it's done
24680         in SetCurrentCell.
24681         (SetCurrentCell): only invalidate the current row header if it's a
24682         different row than the new one.
24683         (ShiftSelection): fix this to work like MS does.
24684         (ResetSelection): factor out the invalidation of selected_rows to
24685         InvalidateSelection.
24686         (SetDataSource): cancel any editing that's going on.
24687
24688         * DataGridColumnStyle.cs
24689         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
24690         call the non-interface version.
24691
24692         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
24693         header rectangle with the clip rectangle so we don't redraw the
24694         entire header for just a small area.  Gets rid of the last flicker
24695         when horizontally scrolling.
24696         (DataGridPaintRow): same.
24697
24698 2006-05-23  Mike Kestner  <mkestner@novell.com>
24699
24700         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
24701         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
24702         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
24703         Critical bug report.
24704
24705 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
24706
24707         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
24708           and this fixes #78493
24709
24710 2006-05-23  Miguel de Icaza  <miguel@novell.com>
24711
24712         * Theme.cs (GetSizedResourceImage): Scale images if the proper
24713         size is not found.  
24714         
24715         * FileDialog.cs: Do not change the background for the side bar as
24716         it wont work nicely with the theme, and also reduces the artifacts
24717         in rendering the icons (which I want to fix too).
24718
24719         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
24720         resources, not resgen resources. 
24721
24722         (PlatformDefaultHandler): Pull images using the new API.
24723
24724 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
24725
24726         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
24727           a reference to the hwnd and will not remove it unless there are
24728           no pending exposures (fixes #78341)
24729         * XplatUI.cs: Improved debug
24730
24731 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
24732
24733         * MenuAPI.cs : don't handle OnClick event when it was not the left
24734           button. Fixed bug #78487.
24735
24736 2006-05-23  Mike Kestner  <mkestner@novell.com>
24737
24738         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
24739         prefer submenus to the top menu for item lookup, to avoid popping down
24740         top-row items.
24741
24742 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
24743
24744         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
24745           Graphics.FillRectangle as the visual results are really bad (even
24746           on win). We now draw perfect arrows (and perfect shadows when the
24747           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
24748           Pen.DashPattern to draw the dots of each line.
24749
24750 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
24751
24752         * FileDialog.cs: Update the filename combobox when navigating through
24753           the ListView with the cursor keys. Fixes part 7 of bug #78446.
24754
24755 2006-05-22  Mike Kestner  <mkestner@novell.com>
24756
24757         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
24758         Fixes #78463.
24759
24760 2006-05-22  Mike Kestner  <mkestner@novell.com>
24761
24762         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
24763         requests. Fix a misspelled parameter and a copy paste exception error
24764         in Select.
24765
24766 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
24767
24768         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
24769           to get the same width/height (5/13) on X11 as the default font has on
24770           win32. This means that our DefaultFont emSize is smaller than the 
24771           the MS SWF equivalent (even thought the width/height stays the same)
24772
24773 2006-05-20  Jackson Harper  <jackson@ximian.com>
24774
24775         * MdiClient.cs:
24776         * MdiWindowManager.cs:
24777         * InternalWindowManager.cs: Make sure to use the border width from
24778         the theme.
24779
24780 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
24781
24782         * PrintDialog.cs: Implements printer details
24783
24784 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
24785
24786         * FileDialog.cs: Added focus handling for PopupButtonPanel.
24787           Fixes part 1 and 2 of bug #78446
24788
24789 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
24790
24791         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
24792           instead of sticking to the first ever calculated value
24793
24794 2006-05-19  Mike Kestner  <mkestner@novell.com>
24795
24796         * ComboBox.cs: fix mouse motion selection to use MousePosition and
24797         PointToClient, since Capture is set. Fixes #78344.
24798
24799 2006-05-19  Mike Kestner  <mkestner@novell.com>
24800
24801         * ListView.cs: match MS behavior in Details view where items are not
24802         drawn if Columns.Count == 0. 
24803         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
24804         Use a separate pen to draw the check, since changing the width affects
24805         the box as well.  Fixes #78454.
24806
24807 2006-05-18  Miguel de Icaza  <miguel@novell.com>
24808
24809         * ListView.cs: ArgumentOutOfRangeException, single versions of the
24810         exception should throw the name of the invalid argument.
24811
24812         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
24813         there are no files listed. 
24814
24815 2006-05-18  Jackson Harper  <jackson@ximian.com>
24816
24817         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
24818         up.
24819
24820 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
24821
24822         * Control.cs: Brought back our old UpdateZOrder method as a private
24823           function and switched our calls from UpdateZOrder to the new one.
24824           This fixes the Paint.Net canvas disappearing bug.
24825
24826 2006-05-18  Jackson Harper  <jackson@ximian.com>
24827
24828         * Theme.cs:
24829         * ThemeWin32Classic.cs:
24830         * InternalWindowManager.cs: Move the drawing into the theme,
24831         expose everything the theme should need from the window manager.
24832
24833 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
24834
24835         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
24836           from the call to NativeWindow to avoid walking up the parent chain
24837           further than needed (speeds up setting cursors and avoids setting
24838           the wrong cursor if a parent has another cursor defined)
24839         * Cursor.cs: When loading an icon as cursor, MS uses the center of
24840           the icon as hotspot, not what's contained as hotspot in the icon
24841           file. This fixes the perceived drawing offset seen with Paint.Net
24842         
24843 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
24844
24845         * XplatUIX11.cs: 
24846           - Store the calculated rectangle in Hwnd object and use it when 
24847             setting the client size
24848           - Force Toolwindows to always be type Dock, to ensure they're on top
24849
24850 2006-05-18  Mike Kestner  <mkestner@novell.com>
24851
24852         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
24853         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
24854         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
24855         Substantial refactoring to remove confusing nested classes. Coding
24856         standard and Get+Set->property refactorings.  Shift to index based
24857         highlighting in ComboListBox instead of constantly using IndexOf and
24858         Items[]. Add invalidations on resize for DropDownList to fix ugliness
24859         in FileDialog growth.  Draw borders manually since Simple mode needs
24860         to look like two independent controls.  Make listbox border
24861         conditional to DropDownStyle.  Improved OwnerDraw support.
24862
24863 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
24864
24865         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
24866         Don't set the disposed graphics to null, so we can throw the "right"
24867         exception if the graphics is reused later (added a flag to avoid 
24868         double disposing). Some behaviours are different under 2.0 and are
24869         filled under bug #78448.
24870
24871 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
24872
24873         * Control.cs: When double-buffering is enabled, we need to reset
24874           our graphics context between paint calls. Otherwise, any 
24875           transformations and other alterations on the context will 
24876           become cumulative (#77734)
24877
24878 2006-05-18  Mike Kestner  <mkestner@novell.com>
24879
24880         * ListView.cs: do focused item selection like MS on clicks. 
24881         Rework focus handling for ItemControl so LostFocus invalidates as
24882         well.
24883         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
24884         the ListView ItemControl has focus.
24885
24886 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
24887
24888         * XplatUIX11.cs: If client_window ends up being width or height zero
24889           due to border settings, move it off window inside whole_window (#78433)
24890
24891 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
24892
24893         * Mime.cs: Shrink the mime file cache correctly.
24894
24895 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
24896
24897         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
24898
24899 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
24900
24901         * XplatUIX11.cs (AddExpose): More sanity checks
24902
24903 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
24904
24905         * XplatUIX11.cs:
24906           - AddExpose: Don't add expose ranges outside the size of our
24907             window
24908           - Cast opacity values to Int32 to avoid crashes with certain
24909             values
24910           - Added disabled code paths that protect against illegal cross-
24911             thread painting (Developers.exe)
24912
24913 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
24914
24915         * ProgressBar.cs: Invalidate the control when it's resized
24916           since block size is based on control size. (#78388)
24917
24918 2006-05-16  Miguel de Icaza  <miguel@novell.com>
24919
24920         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
24921         of setting the incoming argument to the "reset" value, we set the
24922         this.datamember to string.empty (before we were invalidating the
24923         incoming data).   
24924
24925         Fixes 78420
24926
24927 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
24928
24929         * Form.cs: Only apply transparency settings after the form
24930           is created. (Fixes #77800)
24931
24932 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
24933
24934         * ApplicationContext.cs: Grab the HandleDestroyed event so
24935           we know when to fire OnMainFormClosed 
24936
24937 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
24938
24939         * Application.cs: Introduced sub-class to allow tracking of
24940           threads and centralized triggering of the event mess for
24941           ThreadExit, AppExit, etc..  (#76156)
24942
24943 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
24944
24945         * MimeIcon.cs:
24946           - Do not return a null icon index value for a mime subclass.
24947             Instead try the main mime type class too.
24948           - Seems that some newer distributions don't have a link to some
24949             gnome default icons anymore. So check the default gnome dir too.
24950           
24951
24952 2006-05-16  Jackson Harper  <jackson@ximian.com>
24953
24954         * MdiClient.cs: Don't paint the parent background image if we have
24955         our own background image.
24956
24957 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
24958
24959         * Control.cs:
24960           - PerformLayout: Do not shrink space filled by DockStyle.Fill
24961             controls, all filled controls are supposed to overlap (#78080)
24962           - UpdateZOrder is supposed to update the control's z-order in the
24963             parent's z-order chain. Fixed to behave like that
24964           - BringToFront: Removed obsolete code
24965           - SendToBack: Simplyfied
24966           - SetChildIndex: Trigger layout calculations when Z-order changes
24967             since layout is done by z-order
24968
24969 2006-05-16  Chris Toshok  <toshok@ximian.com>
24970
24971         [ fixes bug #78410 ]
24972         * DataGrid.cs (set_AlternatingBackColor): use
24973         grid_drawing.InvalidateCells instead of Refresh().
24974         (set_BackColor): call grid_drawing.InvalidateCells.
24975         (set_BackgroundColor): use Invalidate instead of Refresh.
24976
24977         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
24978         invalidate the cell area.
24979
24980 2006-05-15  Chris Toshok  <toshok@ximian.com>
24981
24982         [ fixes bug #78011 ]
24983         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
24984         on to DataGridPaintRow.
24985         (DataGridPaintRow): take a clip argument, and only draw the cells
24986         which intersect it.  same with the not_usedarea.
24987
24988         * Theme.cs (DataGridPaintRow) add @clip parameter.
24989
24990         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
24991         XplatUI.ScrollWindow.
24992         (ScrollToRow): same.
24993
24994         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
24995         with last column which was causing a gray swath to appear with the
24996         XplatUI.ScrollWindow code.
24997
24998 2006-05-15  Chris Toshok  <toshok@ximian.com>
24999
25000         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
25001         use XplatUI.ScrollWindow.
25002         (VerticalScrollEvent): use XplatUI.ScrollWindow.
25003
25004 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
25005
25006         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
25007
25008 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
25009
25010         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
25011           file since there are no equivalent X11 cursors
25012
25013 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
25014
25015         * MonthCalendar.cs : DateTimePicker should reflect selected date
25016           on mouse*up*, not mouse*down*. Fixed originally reported part of
25017           bug #76474.
25018
25019 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
25020
25021         * TabControl.cs : When argument index is equal or more than tab
25022           count, just ignore. Fixed bug #78395.
25023
25024 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
25025
25026         * Control.cs: Dispose all child controls when control is diposed (#78394)
25027
25028 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
25029
25030         * ColorDialog.cs: Finally it is possible to select the color with
25031           the text boxes
25032
25033 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
25034
25035         * PrintDialog.cs: Fix typo
25036
25037 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
25038
25039         * PrintDialog.cs: PrintDialog is not resizable
25040         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
25041           color. Made some ToolBar drawing methods protected virtual.
25042
25043 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
25044
25045         * PrintDialog.cs: Implementation of the PrintDialog
25046
25047 2006-05-12  Chris Toshok  <toshok@ximian.com>
25048
25049         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
25050         thumb, instead use MoveThumb.  This has the side effect of making
25051         most of the other thumb moving machinery use MoveThumb as well.
25052         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
25053         need to actually invalidate the rectangle where the new thumb will
25054         go.
25055         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
25056         We force an Update() after, so it's not as fast as it could be,
25057         but at least there's zero flicker and no droppings.
25058         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
25059         (UpdateThumbPos): add another argument (dirty), which says whether
25060         or not to calculate/add dirty regions which we later invalidate.
25061         For cases where we know we're going to use MoveThumb, we pass
25062         false for this.  Otherwise, pass true.
25063
25064 2006-05-12  Jackson Harper  <jackson@ximian.com>
25065
25066         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
25067         the status bar.
25068         
25069 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
25070
25071         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
25072           and GetClipRegion methods and UserClipWontExposeParent property.
25073         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
25074           overriding UserClipWontExposeParent property, setting to false, since
25075           Win32 handles the required expose messages to draw our clipped parent
25076           areas internally
25077         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
25078           PaintEventStart to set the user clip region if set.
25079         * Control.cs: 
25080           - Now internally tracking the Region for the control since we need to
25081             store it if the handle is not yet created and only set it when it
25082             becomes created. Before setting the region forced handle creation
25083           - Added code to draw the parents underneath a user-clipped region
25084         * Hwnd.cs: Added UserClip property
25085
25086 2006-05-12  Chris Toshok  <toshok@ximian.com>
25087
25088         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
25089         (set_Maximum): same.
25090         (set_Minimum): same.
25091         (set_SmallChange): same.
25092         (OnMouseUpSB): remove the call to refresh when releasing the
25093         thumb.  We shouldn't need it.
25094         
25095 2006-05-12  Miguel de Icaza  <miguel@novell.com>
25096
25097         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
25098         AutoSize set to None, we do not need to relayout everything, we
25099         just need to invalidate the current region.
25100
25101         (Draw): Do not draw the entire ClientArea, just redraw the
25102         clip area being passed.
25103
25104         * MdiClient.cs: Make MdiClient constructor with the Form argument
25105         internal. 
25106
25107 2006-05-12  Jackson Harper  <jackson@ximian.com>
25108
25109         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
25110         parents background image,  but strangely not their own.
25111         - (DrawStatusBarPanel): Take into account horizontal alignment
25112         when drawing the strings and icons.
25113
25114 2006-05-12  Mike Kestner  <mkestner@novell.com>
25115
25116         * ListBox.cs: avoid invalidations for focus when the collection is
25117         empty. 
25118
25119 2006-05-12  Chris Toshok  <toshok@ximian.com>
25120
25121         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
25122         invalidate the entire thumb area.  Call InvalidateDirty which
25123         limits the redraw to the thumb itself and surrounding pixels.
25124
25125         * XplatUIX11.cs (ScrollWindow): optimize copying.
25126         
25127 2006-05-12  Chris Toshok  <toshok@ximian.com>
25128
25129         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
25130         Figure out the positioning/layout in a single pass instead of
25131         multiple recursive invocations.  Speeds up the initial display of
25132         the data grid.  Also, make many things private that were
25133         originally public but unused outside this class.
25134
25135 2006-05-11  Jackson Harper  <jackson@ximian.com>
25136
25137         * MdiClient.cs: Improved layout code.
25138
25139 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
25140
25141         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
25142           not SelectedObject.
25143
25144 2006-05-11  Chris Toshok  <toshok@ximian.com>
25145
25146         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
25147         union of that will always be {0,0,width,height}.
25148
25149 2006-05-11  Jackson Harper  <jackson@ximian.com>
25150
25151         * Form.cs: Match MS's DefaultSize for forms (they must have
25152         changed the size in sp2).
25153
25154 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
25155
25156         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
25157
25158 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
25159
25160         * TextControl.cs : Fixed bug #78109. This incorrect position
25161           comparison caused crash on automatic line split.
25162         * TextBoxBase.cs : reduce duplicate code.
25163
25164 2006-05-10  Jackson Harper  <jackson@ximian.com>
25165
25166         * MdiClient.cs: Active form is only sent to the back when using
25167         the Next form functionality, when a form is clicked the current
25168         active shouldn't be sent to the back.
25169         - Layout the mdi windows when the container is first made visible.
25170         * Form.cs: Give the MdiClient a ref to the containing form when we
25171         create it.
25172         
25173 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
25174
25175         * LinkLabel.cs : link_font could be uninitialized, so populate one
25176           before actual use. Fixed bug #78340.
25177
25178 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
25179
25180         * XplatUIX11.cs : clipboard format native value is IntPtr.
25181           Fixed bug #78283.
25182
25183 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
25184
25185         * Control.cs: 
25186           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
25187             which is passed up the parent chain by DefWndProc
25188           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
25189             to DefWndProc (#77956)
25190         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
25191
25192 2006-05-10  Jackson Harper  <jackson@ximian.com>
25193
25194         * MdiClient.cs: We need to remove the controls from the mdi
25195         collection, when we close the window.
25196         * MdiWindowManager.cs: Special handling of closing mdi windows.
25197         * InternalWindowManager.cs: Make the close method virtual so the
25198         mdi window manager can handle it specially.
25199
25200 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
25201
25202         * DataGrid.cs:
25203           - Recalculate grid when the data source has changed
25204           - Matches styles provided by user from all data sources types
25205         * DataGridTableStyle.cs: For columns that provided by the user set the
25206         with the preferred value is there was unassigned.
25207         * CurrencyManager.cs: throw OnItemChanged event
25208
25209 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
25210
25211         * PictureBox.cs: Don't animate until handle is created. Start animation
25212           when handle is created.
25213
25214 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
25215
25216         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
25217           current codebase.
25218         * XEventQueue.cs: We don't need to provide the extra info
25219
25220 2006-05-10  Jackson Harper  <jackson@ximian.com>
25221
25222         * MdiClient.cs: If the mdi clients parent form has a background
25223         image set, we draw that background image for the mdi area's
25224         background.
25225
25226 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
25227
25228         * TextBoxBase.cs: Set IBeam cursor (#78347)
25229
25230 2006-05-10  Mike Kestner  <mkestner@novell.com>
25231
25232         * ToolBar.cs: fix some text padding issues with ButtonSize
25233         calculation. Update the default size to match MS documentation.
25234         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
25235         button size. Fixes #78296.
25236
25237 2006-05-10  Mike Kestner  <mkestner@novell.com>
25238
25239         * ListBox.cs: use is_visible for scrollbar positioning in case the
25240         control isn't on screen yet.  Fix off by one with Right vs Width
25241         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
25242         
25243 2006-05-10  Jackson Harper  <jackson@ximian.com>
25244
25245         * X11Dnd.cs: Drop to a control with another control on top of it.
25246         * ToolBar.cs: Work on a copy of the buttons list, so that it can
25247         be modified in click handlers. TODO: Look for similar problems in
25248         other controls.
25249
25250 2006-05-09  Jackson Harper  <jackson@ximian.com>
25251
25252         * Form.cs: Window managers need the old window state when setting
25253         window state now.
25254         * InternalWindowManager.cs: Allow the base mdi window manager to
25255         handle more of the MDI only stuff (like maximize buttons).
25256         * MdiWindowManager.cs: Fix some snafus in changing the window
25257         state.  Add all the menu functionality, for both popup and
25258         maximized menus.
25259         * MdiClient.cs: When a new form is selected the currently
25260         activated form is sent to the back, this matches MS.
25261         - Implement a new method to activate the next mdi child window.
25262
25263 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
25264
25265         * Control.cs: 
25266           - Added new InternalCapture method to allow controls to prevent
25267             the capture behaviour on the click handlers
25268           - Switched to use InternalCapture
25269         * ComboBox.cs:
25270           - Using InternalCapture to prevent mouse captures from being released
25271             on mouse button release (Fixes #78100)
25272         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
25273           returns Form borders if a caption is present. (Fixes #78310)
25274
25275 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
25276
25277         * TreeNode.cs: Changed serialization .ctor to not require every field
25278           to be present. (#78265)
25279         * OwnerDrawPropertyBag.cs: Added serialization .ctor
25280
25281 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
25282
25283         * MimeIcon.cs: for is faster than foreach for strings.
25284
25285 2006-05-05  Mike Kestner  <mkestner@novell.com>
25286
25287         * CheckedListBox.cs: update check handling code to not use selected.
25288         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
25289         behavior for visual feedback, motion response, shift/ctrl handling,
25290         and properly deal with all 4 selection modes. Updates to bounds
25291         handling logic.  Add scroll wheel support. [Fixes #77842]
25292
25293 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
25294
25295         * ListView.cs:
25296           - Moved adding of Implicit controls into .ctor. That way, subsequent
25297             creation of the controls will not cause them to think they are 
25298             toplevel windows (fixes #78200 header problem)
25299           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
25300           - Switched visibility setting of header control to use internal field
25301             to avoid triggering handle creation
25302           - Now checking if handle is created before causing a refresh when items
25303             are added (This makes us now match handle creation time with MS)
25304         * Splitter.cs: Removed loading of private splitter cursor, switched to
25305           Cursors version now that that is loading the right ones
25306         * Cursors.cs: Load proper splitter cursors from resources
25307         * Cursor.cs: Added second method of loading resource cursors for the 
25308           VS.Net users amongst us
25309
25310 2006-05-05  Mike Kestner  <mkestner@novell.com>
25311
25312         * ListView.cs: give header_control a minimum size based on the
25313         ListView size.
25314
25315 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
25316
25317         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
25318           window seems to do that with metacity, so set that type. (#78120)
25319
25320 2006-05-05  Mike Kestner  <mkestner@novell.com>
25321
25322         * ListViewItem.cs: fix Details mode checkbox layout bug.
25323         * ThemeWin32Classic.cs: draw a ListView column header for unused space
25324         at the end of the header, if it exists. [Fixes for #78200]
25325
25326 2006-05-04  Jackson Harper  <jackson@ximian.com>
25327
25328         * MdiClient.cs: Add a helper property to get the container form.
25329         * MdiWindowManager.cs: We have to make sure to use the menu origin
25330         when drawing the icons and buttons, this fixes maximized window
25331         icons/buttons on win32.
25332         * InternalWindowManager.cs: Reset the restore captions when a
25333         window goes from Maximized to Minimized and vice versa. Move the
25334         DrawMaximizedButtons into the MdiWindowManager source, tool
25335         windows can't be maximized. NOTE: This could use a little
25336         refactoring if time ever permits.
25337         
25338 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
25339
25340         * TextBox.cs: Add MWFCategoryAttributes
25341         * TextBoxBase.cs: Add MWFCategoryAttributes
25342         * Form.cs: Add MWFCategoryAttributes
25343
25344 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
25345
25346         * Control.cs: Add MWFCategoryAttributes
25347         * ScrollableControl.cs: Add MWFCategoryAttributes
25348
25349 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
25350
25351         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
25352           Divider is true. Fix a little glitch in PropertyToolBar
25353           drawing code
25354
25355 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
25356
25357         * Control.cs:
25358           - Dispose: Call base.Dispose, this causes the disposed event
25359             to be fired (and probably other, more important stuff)
25360           - SetVisibleCore: Set is_visible to true after creating the
25361             window so that the window still gets created invisible (if
25362             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
25363             to generate a WM_ACTIVE message
25364         * Form.cs: Call Dispose when we want to destroy the window, instead of
25365           just destroying the handle (Dispose will do that for us)
25366         * XplatUIX11.cs:
25367           - RootWindow also needs a queue, so we can properly process the
25368             property change events from RootWindow (like Activate)
25369           - Generatic synthetic WM_ACTIVE message when the active window is
25370             being destroyed
25371
25372 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
25373
25374         * LinkLabel.cs: Trigger a recalc of our label dimensions when
25375           bounds are changed
25376
25377 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
25378
25379         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
25380           for determining width and height (image might not be assigned if
25381           we're drawing an imagelist)
25382
25383 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
25384
25385         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
25386         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
25387           height from system
25388         * Theme.cs: No longer returns hardcoded menu height, instead calls
25389           new driver method
25390         * Form.cs (OnLoad): Scaling happens before triggering Load events 
25391           on MS (# 78257)
25392
25393 2006-05-01  Mike Kestner  <mkestner@novell.com>
25394
25395         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
25396
25397 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
25398
25399         * TextBoxBase.cs: Removed Fixme
25400         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
25401
25402 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
25403
25404         * XplatUIX11.cs:
25405           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
25406             the rectangle relative to the parent, considering borders. We
25407             don't really want that.
25408           - ScrollWindow: Fixed warning to be more understandable
25409         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
25410           scrollbars and scroll only the visible area
25411         * RichTextBox.cs: Removed debug output
25412
25413 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
25414
25415         * NumericUpDown.cs (Text): Just use base
25416         * UpDownBase.cs: Ensure txtView is created before using it
25417
25418 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
25419
25420         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
25421           casting to IntPtr to avoid 64bit overflow errors
25422
25423 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
25424
25425         * Control.cs:
25426           - AllowDrop: Don't force handle creation.
25427           - CreateHandle: Added call to tell driver if we're allowed to drop
25428
25429 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
25430
25431         * FileDialog.cs: Remember the last directory not only for the
25432           current instance but also for new FileDialog instances.
25433
25434 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
25435         
25436         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
25437           broke sending async messages
25438
25439 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
25440
25441         * XplatUIX11.cs:
25442           - ScrollWindow: Fixed method. We finally generate expose events again
25443             for scrolled areas. This was causing 'garbage' when scrolling
25444             textbox and other controls that used ScrollWindow
25445           - Switched from using the regular queue for paint events to the MS 
25446             model of 'generating' paint events when the queue is empty.
25447             We use the new XQueueEvent.Paint subclass to store which windows
25448             need painting.
25449           - AddExpose now takes the x/y/width/height of the exposed area
25450             and inserts the window into the paint queue if not already there
25451           - InvalidateWholeWindow: Switched to use new AddExpose method
25452           - UpdateMessageQueue: Added which queue to monitor for paint events
25453           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
25454             the unlikely case nothing above handles it. We reset the expose
25455             pending states to get them off the queue.
25456           - GetMessage: Now pulls a paint event if no other events are in the
25457             queue
25458           - Invalidate: Switched to new AddExpose method
25459           - PeekMessage: Updated to understand pending paint events
25460           - UpdateWindow: Fixed logic bug. We were only updating if the window
25461             didn't need updating. Also switched to sending WM_PAINT directly,
25462             like MS does.
25463         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
25464           and random access Remove(). The random access is needed to handle
25465           UpdateWindow() where a WM_PAINT is sent directly without accessing
25466           the queue.
25467         * ScrollBar.cs: Added Update() calls to cause immediate updates to
25468           allow for better feedback when scrolling. Scrollbars are small and
25469           the immediate update should make it 'feel' more responsive without
25470           slowing things down. ScrollBar still needs it's invaliate logic
25471           updated to not always invalidate the whole bar on certain changes.
25472
25473 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25474
25475         * Control.cs:
25476         (BackColor): if the control does not support a transparent background,
25477         return the default backcolor when the parent backcolor is transparent.
25478
25479 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
25480
25481         * Application.cs: Updated to new StartLoop/GetMessage API
25482         * RichTextBox.cs: Provide some output on RTF parsing errors
25483         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
25484           new queue_id argument to GetMessage and PeekMessage to allow faster
25485           handling of per-thread queues in drivers.
25486         * Hwnd.cs: Added Queue tracking and property
25487         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
25488         * XEventQueue.cs: Added thread trackingA
25489         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
25490         * XplatUIX11.cs:
25491           - Implemented new per-thread queue
25492           - GetMessage: Fixed return/break behaviour on several cases. We were
25493             returning stale messages in some cases, instead of just processing
25494             the next message
25495
25496 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
25497
25498         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
25499
25500 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
25501
25502         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
25503           fixed off-by-one comparisons between Width/Height and Right/Bottom.
25504
25505 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
25506
25507         * PropertyGridView.cs: Fix drop down width.
25508
25509 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
25510
25511         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
25512           a mess in DrawToolBar, so I removed one of them.
25513
25514 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
25515
25516         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
25517           needed (clip). Otherwise we get artifacts.
25518
25519 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
25520
25521         * FixedSizeTextBox.cs: Added constructor to allow specifying which
25522           dimension is fixed
25523         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
25524           and switched FixedSizeTextBox to only be fixed vertical (#78116)
25525         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
25526           if it matches the scale base font (avoids unneeded scaling)
25527
25528 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
25529
25530         * X11DesktopColors.cs: One gtk_init_check should be enough
25531
25532 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
25533
25534         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
25535           match MS behaviour
25536
25537 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
25538
25539         * TextBoxBase.cs: 
25540           - Generate OnTextChanged for Backspace even if we're only deleting
25541             the current selection
25542           - When setting the Text property, only select all text if the
25543             control does not have focus when it is being set. Otherwise
25544             just place the cursor at the beginning of the control
25545
25546 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
25547
25548         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
25549           Added a little helper to draw PropertyGrid ToolBar with a different
25550           border and a different BackColor.
25551         * PropertyGrid.cs: Some background parts didn't get painted with the
25552           correct background color. Added a class that helps us to draw the
25553           correct border for PropertyGridView and a class that helps us to
25554           draw ToolBars with a different backcolor
25555         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
25556
25557 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
25558
25559         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
25560         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
25561
25562 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
25563
25564         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
25565           into the palette entries. Also, since we're working on a copy
25566           we needed to copy the palette back onto the bitmap.
25567         * Cursor.cs: Same fix as XplatUIWin32.cs.
25568
25569 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
25570
25571         * ImageListStreamer.cs: Need to read the var (or we're off)
25572
25573 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
25574
25575         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
25576           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
25577           TextBoxBase.cs: Unused var fixes
25578         * AxHost.cs: Small 2.0 fix
25579         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
25580           as it seems that is what at least Metacity expects. This will make
25581           icons show up on 64bit platforms. We still have some 64bit size
25582           issues, though, since the startup app window size still won't match.
25583
25584 2006-04-25  Mike Kestner  <mkestner@novell.com>
25585
25586         * *.cs: cleanup newly reported exception var unused warnings.
25587
25588 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
25589
25590         * ThemeWin32Classic.cs: Button image alignment now matches exactly
25591           ms
25592
25593 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
25594
25595         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
25596           image. The image position is always the same, no matter if the
25597           button is pressed or not.
25598
25599 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
25600
25601         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
25602           selection and set the correct filename for SaveFileDialog.
25603           Patch by Emery Conrad.
25604
25605 2006-04-24  Mike Kestner  <mkestner@novell.com>
25606
25607         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
25608         check for item.X outside the ClientRect instead of item.Y. Fixes
25609         #78151.
25610
25611 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25612
25613         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
25614         trust that value blindly and do some sanity check. Fixes bug #77814.
25615
25616 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25617
25618         * ImageListStreamer.cs: save the mask as a 1bpp image.
25619
25620 2006-04-21  Mike Kestner  <mkestner@novell.com>
25621
25622         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
25623         pass Checked and Indeterminate to the Theme Engine. Improve
25624         encapsulation with ListBox.
25625         * ListBox.cs: Keep a StringFormat instead of calculating it every item
25626         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
25627         nested types.  Move all CheckState functionality to CheckedListBox.
25628         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
25629         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
25630         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
25631         single base list. Fix scrollbar sizing and placement to mirror MS.
25632         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
25633         used.
25634         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
25635         for CheckedListBox by using new DrawItemState info.  Center the
25636         checkboxes on the items. Use new StringFormat property.
25637
25638 2006-04-18  Jackson Harper  <jackson@ximian.com>
25639
25640         * Form.cs: MdiChildren don't do default locations the same way as
25641         regular forms.  This prevents a crash when trying to position the
25642         mdi windows.
25643
25644 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
25645
25646         * PropertyGridTextBox.cs: Formatting, copyright
25647         * PropertiesTab.cs: Formatting
25648         * PropertyGrid.cs: Formatting
25649         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
25650           click toggling of values
25651           
25652 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
25653
25654         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
25655         * Control.cs (.ctor): verify_thread_handle is static, don't reset
25656           every time a control is created
25657         * Application.cs: Removed obsolete EnableRTLMirroring method
25658
25659 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
25660
25661         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
25662         SelectedIndex to -1. Fixes bug #78121.
25663
25664 2006-04-17  Jackson Harper  <jackson@ximian.com>
25665
25666         * Binding.cs: Handle null values for Current and BindingContext.
25667         This occurs when binding is a little delayed.
25668         * CurrencyManager.cs: return null for Current when there are no
25669         items in the list.
25670         - Hookup to the listchanged event on the DataView and update
25671         bindings when the list is changed.  This fixes late binding of
25672         controls.
25673
25674 2006-04-17  Jackson Harper  <jackson@ximian.com>
25675
25676         * X11Dnd.cs:
25677         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
25678         Ringenbach.
25679
25680 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
25681
25682         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
25683           place
25684         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
25685           with the correct ButtonState
25686
25687 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
25688
25689         * XplatUIX11.cs: Improved distinguishing between window types to
25690           tell the WM a type closer to what the app wants (Fixes #78107)
25691
25692 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
25693
25694         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
25695           GrabHandle
25696
25697 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
25698
25699         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
25700           drawing code to reflect the size grip changes
25701
25702 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25703
25704         * ImageListStreamer.cs: fix handling of the mask that follows the main
25705         bitmap when deserializing and serialize it properly. The generated mask
25706         should better be a 1bpp image, but I'll do that later.
25707
25708 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
25709
25710         * FileDialog.cs: Show something in the DirComboBox on *nix if the
25711           path doesn't fit into some of our Current.Places
25712
25713 2006-04-13  Jackson Harper  <jackson@ximian.com>
25714
25715         * ComboBox.cs: Use borders instead of drawing our own decorations,
25716         try to obey correct rules for heights.
25717         * Theme.cs:
25718         * ThemeNice.cs:
25719         * ThemeClearLooks.cs:
25720         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
25721         this is now handled by borders.
25722         - Remove unused DrawListBoxDecorationSize method.
25723         
25724 2006-04-13  Mike Kestner  <mkestner@novell.com>
25725
25726         * MenuAPI.cs: null guarding for the disbled click check fixes crash
25727         reported by Alex.
25728
25729 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
25730
25731         * ThemeWin32Classic.cs: 
25732           - Fixed CPDrawStringDisabled
25733           - Corrected drawing of disabled menu items
25734           - Fixed drawing of disabled radio buttons (bug #78095)
25735           - Draw check in a disabled CheckBox with color ControlDark 
25736
25737 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
25738
25739         * Form.cs: Use the provided width when calculating the menu size;
25740           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
25741           and ClientSize.Width won't be updated yet
25742         * Application.cs: Use Visible instead of Show() to make form visible,
25743           this way we create the handle later and menusize is considered
25744
25745 2006-04-12  Mike Kestner  <mkestner@novell.com>
25746
25747         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
25748         reporting.
25749
25750 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
25751
25752         * TextBox.cs: Implemented context menu
25753
25754 2006-04-12  Mike Kestner  <mkestner@novell.com>
25755
25756         * ListView.cs: implement box selection. fixes #77838.
25757         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
25758
25759 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
25760
25761         * XplatUIX11.cs: Added setting of window type when transient window
25762           is created (metacity would move it otherwise)
25763         * X11Structs.cs: Added WINDOW_TYPE atoms
25764         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
25765           background (the control is Opaque but still wants transparent
25766           backgrounds)
25767
25768 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
25769
25770         * Control.cs: Added OnPaintBackgroundInternal to allow controls
25771           that set Opaque but don't mean it (like all ButtonBase-derived
25772           controls) to still draw their background
25773         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
25774           the background
25775
25776 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
25777
25778         * Control.cs (PaintControlBackground): Set the graphics object
25779           on our PaintEvent to null to prevent it from being disposed
25780           when the PaintEvent gets disposed
25781
25782 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
25783
25784         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
25785         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
25786
25787 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
25788
25789         * Control.cs: 
25790           - Added transparency check to BackColor property. Transparent
25791             backgrounds are only allowed if the control styles permit it
25792           - Added recursive painting of parent control background and
25793             foreground if a control with a transparent backcolor is drawn
25794             (Thanks to Tim Ringenback for providing his 'hack' as a base
25795              for this patch) Fixes #77985 and #78026.
25796           - Added Opaque style check before calling OnPaintBackground, no
25797             need to draw the background if the control is opaque
25798           - Removed ControlAccessibleObject owner variable (inherited from
25799             base, no need to define again)
25800           - Added some documentation links explaining the drawing events
25801             and styles
25802
25803 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
25804
25805         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
25806           that the affected control is the located at the left border of our
25807           parent (Fixes #77936)
25808
25809 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
25810
25811         * TextBoxBase.cs: When rendering disabled or readonly controls,
25812           draw the background with 'Control' instead of 'Window' color as
25813           long as the user hasn't specifically set a color
25814
25815 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
25816
25817         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
25818           since that won't be updated if the user types text (only if it's
25819           programatically set)
25820
25821 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
25822
25823         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
25824           layout changes do to app-triggered resizes will have the proper
25825           display rectangle for layout
25826
25827 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
25828
25829         * ThemeWin32Classic.cs:
25830           - Make use of the SystemBrushes and SystemPens wherever possible
25831           - Corrected some highlight colors
25832           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
25833             drawing
25834         * Theme.cs: Added Empty field to CPColor struct
25835
25836 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
25837
25838         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
25839           is displayed when calculating the display rectangle. Thanks to Mike
25840           for teaching me the err of my ways.
25841
25842 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
25843
25844         * ScrollableControl.cs:
25845           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
25846             (instead of 0,0) and we now return the real width/height instead of
25847             just the clientrectangle, adjusted for padding. The rectangle is
25848             now cached and created by the new CalculateDisplayRectangle method.
25849           - Created new CalculateDisplayRectange method, which basically does
25850             what get_DisplayRectangle() did originally, but now using the 
25851             right edge instead of DisplayRectangle to determine the size of
25852             our scrollbars
25853           - get_Canvas(): Fixed it to properly calculate canvas for 
25854             right/bottom controls which seem to be placed to the right/bottom
25855             of any controls that have a fixed location
25856           - Removed TODO that's taken care of
25857           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
25858             and SetDisplayRectLocation according to new MSDN2 docs
25859           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
25860             event when that is called, this is added for compatibility
25861           - ScrollControlIntoView(): Implemented.
25862           - Switched scrollbars to be implicit, they shouldn't be selectable
25863         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
25864           call it when the active control is set/changed
25865         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
25866         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
25867           implicit_control variable (used for native Win32 message generation)
25868         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
25869           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
25870         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
25871         * XplatUIStructs.cs: Added ScrollBarCommands enum
25872
25873 2006-04-10  Jackson Harper  <jackson@ximian.com>
25874
25875         * ButtonBase.cs:
25876         * CheckedListBox.cs:
25877         * ComboBox.cs:
25878         * DataGrid.cs:
25879         * DataGridView.cs:
25880         * Form.cs:
25881         * GroupBox.cs:
25882         * ListBox.cs:
25883         * PrintPreviewControl.cs:
25884         * ProgressBar.cs:
25885         * PropertyGrid.cs:
25886         * Splitter.cs:
25887         * StatusBar.cs:
25888         * TrackBar.cs:
25889         * UpDownBase.cs: Fixup base event overrides.
25890         
25891 2006-04-06  Mike Kestner  <mkestner@novell.com>
25892
25893         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
25894         all user-initiated value changes to min <= value <= max-thumbsz+1.
25895         (set_Value): check for vert/horiz when calculating new thumb position.
25896         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
25897         like MS does.
25898         (OnMouseMoveSB): refactor the thumb dragging code and refine
25899         invalidation logic to reduce flicker.
25900         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
25901         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
25902         (UpdateThumbPosition): small code readability cleanup
25903
25904 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
25905
25906         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
25907           different
25908
25909 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
25910
25911         * ThemeNice.cs: Use a better graphics effect when a button is pressed
25912
25913 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
25914
25915         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
25916         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
25917           This dramatically reduces the number of Pen.Dispose calls. 
25918           Where possible call ResPool methods only once instead of calling it
25919           over and over again (for example for the same color).
25920
25921 2006-04-06  Mike Kestner  <mkestner@novell.com>
25922
25923         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
25924         Also remove an unused private field on the collection. Fixes #77972.
25925
25926 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
25927
25928         * ThemeNice.cs: Added ToolBar drawing code
25929
25930 2006-04-06  Mike Kestner  <mkestner@novell.com>
25931
25932         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
25933         I'm assuming that means we need to look up the toplevel for the
25934         provided control. Fixes the crash trace in #77911 but exposes another
25935         crash in some strange reflection usage in NDocGui.
25936
25937 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
25938
25939         * ThemeNice.cs: Gave it a little silver touch and added Images
25940           method
25941         * FontDialog.cs: FontDialog is not resizable
25942         * FileDialg.cs: Added SizeGripStyle.Show
25943
25944 2006-04-05  Jackson Harper  <jackson@ximian.com>
25945
25946         * KeyboardLayouts.cs: Remove warning.
25947
25948 2006-04-05  Jackson Harper  <jackson@ximian.com>
25949
25950         * Control.cs: Enable OnPaintInternal so we can use it for drawing
25951         all of our controls instead of Paint +=.
25952         * ListBox.cs:
25953         * ListView.cs:
25954         * MenuAPI.cs:
25955         * MessageBox.cs:
25956         * NotifyIcon.cs:
25957         * ProgressBar.cs:
25958         * ScrollBar.cs:
25959         * Splitter.cs:
25960         * StatusBar.cs:
25961         * TabControl.cs:
25962         * TextBoxBase.cs:
25963         * ToolBar.cs:
25964         * TrackBar.cs:
25965         * UpDownBase.cs:
25966         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
25967         use OnPaintInternal. Remove Width/Height and Visible checks in
25968         paint handler, this is done at a higher level now.
25969         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
25970         * PaintEventArgs.cs: Add a handled flag so controls that don't
25971         want anymore painting after OnPaintInternal can make sure OnPaint
25972         isn't called.
25973
25974 2006-04-05  Mike Kestner  <mkestner@novell.com>
25975
25976         * Form.cs: fix the menu WndProc hacks to respect the native enabled
25977         state of the form, so that we don't process events when Modal dialogs
25978         are up. Fixes #77922.
25979
25980 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
25981
25982         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
25983           checking is done.
25984
25985 2006-04-05  Mike Kestner  <mkestner@novell.com>
25986
25987         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
25988
25989 2006-04-05  Mike Kestner  <mkestner@novell.com>
25990
25991         * ListView.cs (HeaderMouseMove): null guarding for the over column
25992         when setting up the drag_to_index.  Fixes #78015.
25993
25994 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
25995
25996         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
25997           in the taskbar. Transient windows seem to accomplish that.
25998
25999 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
26000
26001         * Form.cs:
26002           - Re-enabled CreateParams.X/Y code for FormStartPosition
26003           - Added code for manual placement when creating the Control
26004           - Incomplete patch to treat MDI forms differently when
26005             setting the ClientSizeCore. (Still need to figure out handling
26006             x/y coords there)
26007         * XplatUIX11.cs:
26008           - When we're explicitly setting the X/Y position of a non-Child
26009             window, let the WM know. Metacity really wants this.
26010
26011 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
26012
26013         * ThemeNice.cs: Added CPDrawButton
26014
26015 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
26016
26017         * ThemeNice.cs: Changed the color for focused buttons and activated
26018           the arrows for small scroll buttons.
26019
26020 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
26021
26022         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
26023           anymore. Changed some method modifiers to protected (virtual)
26024         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
26025           changes
26026         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
26027           Updated drawing of menus, buttons and progressbars; added
26028           CPDrawBorder3D 
26029
26030 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26031
26032         * ImageListStreamer.cs: implemented serialization/deserialization
26033         of the images.
26034
26035 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
26036
26037         * ThemeWin32Classic.cs:
26038           - Removed all the DrawFrameControl stuff; CPDrawButton,
26039             CPDrawCheckBox and CPDrawRadioButton are now handled directly
26040             inside the methods
26041           - Updated and corrected the drawing code of CPDrawButton,
26042             CPDrawCheckBox and CPDrawRadioButton to better match ms
26043           - Updated theme checkbox and radiobutton code to use the CP*
26044             methods
26045
26046 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
26047
26048         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
26049           bug is fixed
26050
26051 2006-03-31  Jackson Harper  <jackson@ximian.com>
26052
26053         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
26054         sometimes.
26055         * UpDownBase.cs: Don't CreateGraphics manually, use a
26056         Refresh. Ideally we would invalidate the correct areas here.
26057
26058 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
26059
26060         * XplatUIX11.cs: 
26061           - We now track the mapping state of windows. If a window (or 
26062             one of it's parents) is not mapped we no longer permit
26063             WM_PAINT messages to be generated since we'd otherwise get 
26064             lots of BadMatch X errors. Jackson did all the work figuring
26065             out the problem.
26066           - Destroying the caret if the window it's contained in is 
26067             destroyed. Can't use regular DestroyCaret method since it
26068             might fall into a drawing function (trying to remove the
26069             caret) and with that generate new BadMatch errors. Again,
26070             Jackson tracked this down.
26071           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
26072             make sure we send the messages to all windows. (The old code
26073             would send the WM_DESTROY to the window, and then all child
26074             windows would be 'gone' because the WM_DESTROY handle lookup
26075             would no longer find the destroyed window)
26076         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
26077         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
26078
26079 2006-03-31  Jackson Harper  <jackson@ximian.com>
26080
26081         * ScrollableControl.cs: Dont recalc if we are not visible.
26082
26083 2006-03-31  Mike Kestner  <mkestner@novell.com>
26084
26085         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
26086         the visibility branch.
26087
26088 2006-03-31  Jackson Harper  <jackson@ximian.com>
26089
26090         * ScrollBar.cs: Cap values when incrementing/decrementing.
26091
26092 2006-03-31  Mike Kestner  <mkestner@novell.com>
26093
26094         * MenuAPI.cs: setup menu.tracker for popup/context menus.
26095         * ToolTip.cs: guard against timer expirations with no active control.
26096         Not sure why it happened.
26097
26098 2006-03-31  Mike Kestner  <mkestner@novell.com>
26099
26100         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
26101         text.
26102         * ToolTip.cs: Position the tooltip based on where the cursor is at
26103         popup time, not at MouseEnter time.  Add a Down state so that we don't
26104         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
26105         positioning offset. Lookup DisplaySize at positioning time, since it
26106         can theoretically change during invocation.
26107         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
26108         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
26109
26110 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
26111
26112         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
26113           Fixes behaviour when the Text property of the box is String.Empty
26114
26115 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
26116
26117         * XplatUIX11.cs: Only send mouseleave for our client windows, not
26118           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
26119           a window)
26120
26121 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
26122
26123         * FileDialog.cs: Visual enhancement for the popup buttons in 
26124           PopupButtonPanel
26125
26126 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
26127
26128         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
26129           code
26130
26131 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
26132
26133         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
26134           highlighted menu items to match ms
26135
26136 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
26137
26138         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
26139
26140 2006-03-30  Mike Kestner  <mkestner@novell.com>
26141
26142         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
26143         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
26144         go active to account for HotLight to Selected transition.
26145         * MenuItem.cs: add internal Selected prop. Fill out the Status
26146         property by calculating it from item info. Add HotLight,
26147         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
26148
26149 2006-03-30  Mike Kestner  <mkestner@novell.com>
26150
26151         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
26152
26153 2006-03-29  Jackson Harper  <jackson@ximian.com>
26154
26155         * Form.cs: Implement TODO.
26156
26157 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
26158
26159         * PrintPreviewDialog.cs: Implemented missing methods and events; still
26160           missing proper dialog setup in the constructor
26161
26162 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
26163
26164         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
26165         * Control.cs:
26166           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
26167           - Fixed ResetBindings and removed TODO
26168           - Added check for cross-thread calls to get_Handle()
26169           - Added Marshaller attribute for set_Font to satisfy class status
26170         * FontDialog.cs: Removed TODOs that seemed implemented
26171         * UpDownBase.cs: Removed unneeded TODO and Fixme
26172         * MessageBox.cs: Implemented support for Default button and removed TODO
26173         * FileDialog.cs: Removed obsolete TODO
26174         * DomainUpDown.cs: Removed obsolete TODO
26175         * ButtonBase.cs: Removed obsolete TODO
26176         * XplatUIWin32.cs: Removed obsolete TODO
26177         * Form.cs:
26178           - Removed obsolete TODO
26179           - Calling CheckAcceptButton when the acceptbutton is changed to allow
26180             internal status updates
26181           - Making sure the active control is selected when the control is created
26182         * CurrencyManager.cs: Removed obsolete TODO
26183
26184 2006-03-29  Mike Kestner  <mkestner@novell.com>
26185
26186         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
26187         of PrintPreviewDialog and RichTextBox.
26188
26189 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
26190
26191         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
26192           DarkDark, Light and LightLight colors for a specific color
26193         * ThemeWin32Classic.cs:
26194           - Use Button drawing code to draw RadioButtons and CheckBoxes with
26195             Appearance = Button 
26196           - Make use of the new ResPool helper CPColor
26197           - Draw ProgressBar and StatusBar with correct 3D borders
26198
26199 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
26200
26201         * ColorDialog.cs: Return selected color. Fixes bug #77940.
26202
26203 2006-03-28  Mike Kestner  <mkestner@novell.com>
26204
26205         * ListView.cs: fix Icon layout to plan for scrollbar widths when
26206         calculating col/row counts.
26207
26208 2006-03-28  Mike Kestner  <mkestner@novell.com>
26209
26210         * ColumnHeader.cs:
26211         * ListView.cs:
26212         * ListViewItem.cs:
26213         * Menu.cs: 
26214         switch to explicit interface method implementation for some methods
26215         corcompare identifies as inconsistent with MS.
26216
26217 2006-03-28  Mike Kestner  <mkestner@novell.com>
26218
26219         * MainMenu.cs: 
26220         * Menu.cs:
26221         add a few missing methods from the class status output.
26222
26223 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
26224
26225         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
26226           correct.
26227
26228 2006-03-28  Mike Kestner  <mkestner@novell.com>
26229
26230         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
26231
26232 2006-03-27  Mike Kestner  <mkestner@novell.com>
26233
26234         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
26235         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
26236
26237 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
26238
26239         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
26240
26241 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
26242
26243         * ThemeWin32Classic.cs:
26244           - GroupBox: Inserted a little gap between the text and the lines
26245             on the right side
26246           - Made the code in CPDrawBorder3D more readable
26247           - Corrected the drawing location of the up and down arrows in 
26248             CPDrawScrollButton
26249
26250 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
26251
26252         * ControlPaint.cs: Corrected line widths in DrawBorder for
26253           ButtonBorderStyle Inset and Outset
26254
26255 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
26256
26257         * ThemeWin32Classic.cs:
26258           - Rewrote the totally broken CPDrawBorder3D method. That was
26259             one of the main problems for the terrific ThemeWin32Classic
26260             look
26261           - Updated and corrected Button drawing
26262           - Correct the dimensions of the SizeGrip to match ms ones
26263           - Removed a small drawing glitch in DrawComboBoxEditDecorations
26264         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
26265           Border3DStyle.Sunken to match ms.
26266
26267 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
26268
26269         * ThemeWin32Classic.cs: First small part of the "de-uglify
26270           ThemeWin32Classic" effort, SizeGrip
26271
26272 2006-03-24  Jackson Harper  <jackson@ximian.com>
26273
26274         * XplatUIX11.cs: Give a max idle time of one second, this matches
26275         MS and forces an Idle event every second when there are no other
26276         events in the queue.
26277
26278 2006-03-24  Mike Kestner  <mkestner@novell.com>
26279
26280         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
26281         * ListView.Item.cs: fix layout issues with null image lists and images
26282         smaller than checkbox size.
26283         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
26284         mode like MS does.  It's weird, but consistent.  ;-)
26285         Fixes #77890.
26286
26287 2006-03-24  Mike Kestner  <mkestner@novell.com>
26288
26289         * ListView.cs: Scroll wheel support for the item control.  Fixes
26290         #77839.
26291
26292 2006-03-23  Jackson Harper  <jackson@ximian.com>
26293
26294         * ScrollableControl.cs: Special case negative sized areas, not
26295         zero.
26296         * MonthCalendar.cs: Save the rect of the clicked date so we can
26297         use it for invalidation.
26298         - Try to cut down on the number of invalidates
26299         - Invalidate the rect the mouse is over and was over when moving
26300         the mouse, so we get the focus box following the cursor.
26301
26302 2006-03-23  Mike Kestner  <mkestner@novell.com>
26303
26304         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
26305         focus rectangle drawing. Fixes #77835.
26306
26307 2006-03-23  Mike Kestner  <mkestner@novell.com>
26308
26309         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
26310         the if and else if and reverting back to the original == check on the
26311         None conditional.
26312
26313 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
26314
26315         * FontDialog.cs: Update the example panel if the selected index of
26316           the fontListBox changes.
26317
26318 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
26319
26320         * FileDialog.cs: Make FileDialog remember which directory it was in
26321           last in the same execution.
26322
26323 2006-03-22  Mike Kestner  <mkestner@novell.com>
26324
26325         * FileDialog.cs: make the DropDownMenu on the toolbar display
26326         RadioChecks since they are mutually exclusive and that's what MS does.
26327
26328 2006-03-22  Mike Kestner  <mkestner@novell.com>
26329
26330         * Theme.cs: add Color param to CPDrawMenuGlyph.
26331         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
26332         checks and radio marks and arrows are visible on highlighted items.
26333         * ControlPaint.cs: update to use new Theme signature.
26334
26335 2006-03-22  Mike Kestner  <mkestner@novell.com>
26336
26337         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
26338         is active. Fixes #77870.
26339
26340 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
26341
26342         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
26343           to be focused/selected after startup
26344
26345 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
26346
26347         * ColorDialog.cs: 
26348           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
26349             CustomColors and ShowHelp properties
26350           - Some internal rewrites to get better results when using the
26351             ColorMatrix
26352
26353 2006-03-22  Mike Kestner  <mkestner@novell.com>
26354
26355         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
26356         HoverSelection.  Fixes #77836.
26357
26358 2006-03-22  Mike Kestner  <mkestner@novell.com>
26359
26360         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
26361         ToggleButtons.  (De)Sensitize the Back button around a stack count of
26362         1, not 0.  Update ButtonSize based on a pixel count of the win32
26363         control.  Adjust the toolbar size/location for new button size.
26364
26365 2006-03-22  Jackson Harper  <jackson@ximian.com>
26366
26367         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
26368         true.
26369         * ScrollBar.cs: When doing increments and decrements we need to
26370         set the Value property so that ValueChanged gets raised. A
26371         possible optimization here would be to make an internal SetValue
26372         that doesn't invalidate immediately.
26373         * ToolTip.cs: Tooltips get added to their container (when
26374         supplied) so they get disposed when the container is disposed.
26375         - Don't create tooltips for String.Empty. This prevents all these
26376         little 2-3 pixel windows from showing up when running nunit-gui
26377         and driving me mad.
26378         * Form.cs: Don't set topmost when setting the owner if the handles
26379         haven't been created yet.  The topmost set will happen when the
26380         handles are created.
26381
26382 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
26383
26384         * XplatUIX11.cs:
26385           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
26386           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
26387             visible (to allow them to recalculate their sizes)
26388
26389 2006-03-21  Mike Kestner  <mkestner@novell.com>
26390
26391         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
26392         methods. Removed a ton of redundant code.  Still not really happy with
26393         the border rendering, but I think that's mainly because of the
26394         ControlDarkDark being black instead of a dark grey. Depending on how 
26395         close we want to be, we might want to revisit those color choices.
26396         Among the new features added during the refactor were DropDownArrow
26397         pressed rendering, Disabled image rendering.  Proper flat appearance
26398         boundary rendering.  Removed the Divider and Wrapping dividers since I
26399         can't figure out any combination of themes and conditions to make the
26400         MS control draw a horizontal line on a toolbar despite what the
26401         Divider property docs indicate.
26402         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
26403         conditions and incorrect layout.  Updated to coding standard.
26404         * ToolBarButton.cs: refactored layout and positioning code from
26405         ToolBar to here.  Invalidate wherever possible instead of forcing
26406         redraws of the whole toolbar. 
26407         (Known remaining issues: explicit ButtonSize smaller than provided
26408         images.)
26409
26410 2006-03-21  Mike Kestner  <mkestner@novell.com>
26411
26412         * ContextMenu.cs (Show): use the position parameter instead of just
26413         showing at the MousePosition.
26414
26415 2006-03-21  Jackson Harper  <jackson@ximian.com>
26416
26417         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
26418         control handle this.
26419         * TreeNodeCollection.cs: If we are clearing the root node we need
26420         to reset top_node so calcs can still happen.
26421         * ThemeWin32Classic.cs: This is a Flags so we need to check
26422         properly.
26423         
26424 2006-03-21  Jackson Harper  <jackson@ximian.com>
26425
26426         * DataGrid.cs: Create columns when the binding context has been
26427         changed.
26428         * X11Structs.cs: Keysyms are uints.
26429         - Add size to fix build.
26430
26431 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
26432
26433         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
26434           XplatUIOSX.cs: 
26435           - Added ResetMouseHover method to allow controls to retrigger
26436             hovering if they need it more than once
26437           - Implemented MouseHoverTime and MouseHoverSize properties
26438         * Timer.cs: Start() must reset the interval
26439         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
26440           properties
26441
26442 2006-03-21  Jackson Harper  <jackson@ximian.com>
26443
26444         * X11Keyboard.cs: improved layout detection. Move the nonchar
26445         tables into this file.
26446         * KeyboardLayouts.cs: Move the tables into resource files.
26447
26448 2006-03-21  Mike Kestner  <mkestner@novell.com>
26449
26450         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
26451
26452 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
26453
26454         * Mime.cs: Various speed optimizations. Looking up mime types
26455           is now 2 times faster than before
26456
26457 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
26458
26459         * CreateParams.cs: Added internal menu field
26460         * Control.cs: 
26461           - Switched call order for UpdateBounds; now we always call
26462             the one that also takes ClientSize, and we're calculating the 
26463             client size via driver method in the others. The previous
26464             method of tracking client size by difference wasn't working
26465             for forms where even the starting client size wouldn't match
26466             the overall form size (due to borders) (Part of fix for #77729)
26467           - CreateParams(): Do not use parent.Handle unless the handle is
26468             already created. Causes havoc with Nexxia and throws off our
26469             creation of controls
26470         * XplatUIX11.cs:
26471           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
26472           - Switched handling of ConfigureNotify over to new PerformNCCalc 
26473             method (consolidates code)
26474           - Changed RequestNCRecalc to use new PerformNCCalc method
26475           - Added calls to RequestNCRecalc when menus and borders are changed
26476             to allow app to set NC size. (Part of fix for #77729) This matches
26477             when MS send a WM_NCRECALC on Win32 windows.
26478           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
26479             (Part of fix for #77729). This matches what MS does, they also
26480             send that message when the form is made visible.
26481           - XException.GetMessage: Improved usability of X errors by including
26482             a translation of the window into Hwnd and Control class
26483           - Improved debug info for window creation, reparenting and destruction
26484           - Created helper method WindowIsMapped() [Currently not used]
26485         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
26486         * Form.cs:
26487           - CreateParams: Now setting our menu on the new internal menu field
26488           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
26489             avoid calculating the same property twice
26490         * Hwnd.cs:
26491           - Improved usability of ToString() for debugging purposes
26492           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
26493             determine the height of the menu, instead of just the font. This
26494             required to also create a graphics context and to keep a bmp 
26495             around (for performance reasons)
26496
26497 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
26498
26499         * MenuAPI.cs: Added OnMouseUp method
26500         * Form.cs:
26501           - Now remembering the requested client size, avoids size errors
26502           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
26503             instead of base if the menu is active. This is required due to
26504             control now capturing and releasing on down/up and it would
26505             prematurely release our menu capture
26506
26507 2006-03-17  Jackson Harper  <jackson@ximian.com>
26508
26509         * KeyboardLayouts.cs: Add the czech layouts.
26510
26511 2006-03-16  Jackson Harper  <jackson@ximian.com>
26512
26513         * Control.cs: Use the viewport space when sizing not the controls
26514         client size, so things like ScrollableControl that effect the
26515         viewport size (when scrollbars are added) are computed correctly.
26516         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
26517         of ManagerEntrys.
26518         - Handle creating BindingManagers for null data sources.
26519         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
26520         source, otherwise when rows are added they are added to the 'fake'
26521         datasource and we will crash when trying to set the position in
26522         those rows.
26523         - Use Implicit scrollbars on the datagrid so they arent
26524         selectable.
26525         
26526 2006-03-16  Jackson Harper  <jackson@ximian.com>
26527
26528         * Binding.cs:
26529         * InternalWindowManager.cs:
26530         * MdiWindowManager.cs:
26531         * X11Keyboard.cs: I really want Mike to love me again (fix
26532         compiler warnings).
26533
26534 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
26535
26536         * DataGrid.cs:
26537           - OnMouseDown: Switch to editing mode when clicking on the cell
26538                          even if we're clicking on the cell that's currently 
26539                          selected
26540           - ProcessGridKey: Left/Right now wrap like MS.Net does
26541           - ProcessGridKey: Tab now knows to add a new row when tab is
26542                             pressed in the cell of the last column of the 
26543                             last row
26544           - ProcessGridKey: Enter now adds another row  if pressed in the last
26545                             row and selectes the new row, same column cell
26546           - ProcessGridKey: Home/End navigate columns, not rows, like 
26547                             originally implemented
26548           - Broke ProcessKeyPreview code out into an extra Internal method
26549             so it can be called from the edit code
26550         * DataGridTextBox.cs (ProcessKeyMessage):
26551           - Switched to accept Tab keypresses
26552           - Added F2 handling to allow jumping to the end of the edited cell
26553           - Added logic to allow moving caret left/right inside edited cell
26554             and making the edited cell jump when the caret hits cell borders
26555           - Tab and Enter are now passed to the datagrid after being handled
26556         * TextBoxBase.cs:
26557           - Removed capture code now that Control handles it
26558           - set_SelectionStart now ensures caret is visible
26559
26560 2006-03-16  Jackson Harper  <jackson@ximian.com>
26561
26562         * TrackBar.cs: Debackwards the increment/decrement for handling
26563         mouse clicks on the bar with vertical trackbars.
26564         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
26565         bottom to match MS.
26566
26567 2006-03-16  Mike Kestner  <mkestner@novell.com>
26568
26569         * ListView.cs: make shift/ctrl keyboard and mouse selection 
26570         consistent with the MS control. Fix a bug in
26571         SelectedListViewItemCollection.Clear that was pissing me off for the
26572         better part of a day because the collection was being altered
26573         underneath us as we walked the list.
26574
26575 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
26576
26577         * Control.cs: Not sure how we could miss this so long, but it seems
26578           that MS.Net has Capture set all the way from before calling 
26579           OnMouseDown through sending the mouse events until after
26580           OnMouseUp. This will fix DataGrid's selection being set to end
26581           at the location of the MouseUp.
26582
26583 2006-03-15  Jackson Harper  <jackson@ximian.com>
26584
26585         * BindingContext.cs: Check the binding after its added so that it
26586           can initialize the binding managers and hookup to events.
26587         * Binding.cs: Data members seem to sometimes include rows/cols in
26588           the format Row.Column we now take this into account.
26589           - Hookup to the position changed event so we can update the
26590           control when the position has changed in the data set.
26591         * CurrencyManager.cs: Take into account the row/col naming
26592           convention when creating dataset tables.
26593         * BindingContext.cs: Using a newer better way of storing
26594           datasource/datamember pairs.  Hopefully this better matches MS for
26595           looking up binding managers.
26596
26597
26598 2006-03-15  Jackson Harper  <jackson@ximian.com>
26599
26600         * BindingContext.cs: The currency manager needs the data member
26601         name, if the member is a data set we use the name to find the
26602         correct table.
26603         * CurrencyManager.cs: When creating the list prefer an IList over
26604         an IListSource.
26605         - Attempt to create a DataTable from a DataSet (TODO: might need
26606         some better error checking here, although MS doesn't seem to have much)
26607         - If we have a DataTable create a view and use it as our list.
26608
26609 2006-03-15  Mike Kestner  <mkestner@novell.com>
26610
26611         * ListView.cs: keep a matrix of the icon mode layout to facilitate
26612         keyboard navigation. Support Up/Down/Left/Right selection correctly
26613         for all 4 View modes.
26614         * ListViewItem.cs: add internal row/col fields for icon layouts.
26615
26616 2006-03-15  Jackson Harper  <jackson@ximian.com>
26617
26618         * TabControl.cs: Redraw the tabs when we resize so their newly
26619         calculated sizes are drawn on screen.
26620         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
26621         composite characters.
26622         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
26623         - filter events so that composite characters can be created
26624         patches by peter
26625         * X11Structs.cs: Add XIMProperties enum.
26626
26627 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
26628
26629         * Control.cs (BringToFront, SendToBack): Don't use window or handle
26630           unless it's created
26631
26632 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
26633
26634         * Control.cs (PerformLayout): We don't need to consider visiblity
26635           for anchoring, only for docking. This fixes 'whacky' alignment
26636           in listbox and other controls that use implicit scrollbars after
26637           the previous PerformLayout patch
26638         * ListBox.cs: Switched to use implicit scrollbars
26639           
26640 2006-03-14  Mike Kestner  <mkestner@novell.com>
26641
26642         * ToolBar.cs: 
26643         * VScrollBar.cs:
26644         - chain up the "new event" overrides to base and use
26645         OnEvent to raise them.  Part of fix for bug #76509.
26646
26647 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
26648
26649         * FileDialog.cs: Do not select an item in the parent directory
26650           on backspace
26651
26652 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
26653
26654         * Control.cs (PerformLayout): It would seem that we considered
26655           invisible windows for our layout. Not quite the right thing
26656           to do. Now we don't any longer, thereby fixing bug #76889.
26657
26658 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
26659
26660         * Control.cs (CanFocus): I goofed. A control can have focus 
26661           even though it's not selectable. Made it match MS docs.
26662
26663 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
26664
26665         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
26666           center by default (fixes #76895)
26667         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
26668           all uses of Border3DSides.All with the explicit ORd together
26669           Left|Right|Top|Bottom because I assume that nobody was aware 
26670           that All also implies a center fill. Most places I checked had
26671           a fill right above.
26672         * ProgressBarStyle.cs: Added
26673
26674 2006-03-13  Mike Kestner  <mkestner@novell.com>
26675
26676         * ListView.cs: fix breakage in drag shadow header positioning 
26677         from Peter's csc compilation fix.
26678
26679 2006-03-13  Mike Kestner  <mkestner@novell.com>
26680
26681         * ListView.cs: fix NRE produced by backspacing twice in a focused
26682         FileDialog.
26683
26684 2006-03-13  Mike Kestner  <mkestner@novell.com>
26685
26686         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
26687
26688 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
26689
26690         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
26691           be changed
26692         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
26693           the allowed size before making programmatic size changes
26694
26695 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
26696
26697         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
26698           set, metacity is broken and will still use the emty sizes in 
26699           the struct. (Fix for #77089)
26700
26701 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
26702
26703         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
26704           WindowExStyles and marked both enums as Flags
26705         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
26706           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
26707           to match WindowStyles split
26708         * XplatUIX11.cs:
26709           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
26710           - Updated to match WindowStyles split
26711         * XplatUIWin32.cs:
26712           - Fixed FosterParent creation, was using ExStyle on the Style field
26713             (This should help with Popup focus issues)
26714           - Updated to match WindowStyles split
26715
26716 2006-03-13  Jackson Harper  <jackson@ximian.com>
26717
26718         * MdiWindowManager.cs: Use the system menu height. Fixes some
26719         strange sizing issues.
26720
26721 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
26722
26723         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
26724         * TextBoxBase.cs:
26725           - Scroll to caret after inserting text (#77672)
26726           - Make scroll range one pixel higher, fixes off-by-one error (and
26727             makes underlines visible on the last line)
26728
26729 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
26730
26731         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
26732           the keyboard state from being stuck with keys in 'pressed' state when
26733           focus is switched away via keyboard
26734         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
26735           reset the keyboard if no X11 KeyUp events are expected to come
26736         * X11Structs.cs: Switched type of Visible to bool to match driver
26737
26738 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
26739
26740         * TextControl.cs:
26741           - Switched caret to be just 1 pixel wide, matches MS and looks less
26742             clunky
26743           - Moved caret display 1 pixel down from the top of the control
26744             to improve view
26745           - InsertCharAtCharet: Update the selection start if moving the caret
26746             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
26747           - No longer always creating the caret when the caret methods are
26748             called. Only the actual ShowCaret/HideCaret will do that now
26749           - Only setting caret visible if the owner control has focus
26750           - UpdateView: Added invalidation-shortcut logic for center and right 
26751             aligned text. Previously we'd update all according to the left
26752             logic which caused drawing errors. Also fixed height of invalidated
26753             areas, now properly invalidating the whole area (was off-by-one)
26754           - owner_HandleCreated: Always generate the document when the
26755             handle is created; this ensures that 
26756         * TextBoxBase.cs:
26757           - Fixed situation where caret would disappear under the right
26758             window border, also improved scrolling behaviour on left-
26759             aligned textboxes
26760           - Fixed right-aligned textboxes to have a border to the
26761             right instead of the caret being under the right border
26762         * XplatUIX11.cs:
26763           - Switched from 'nested' to simple visible/not visible tracking 
26764             for caret (part of fix for #77671)
26765           - No longer passing through translated FocusIn/FocusOut messages
26766             since we were notifying too often and the wrong windows. Instead
26767             we just notify our focussed window of receiving or loosing focus
26768         * XplatUIWin32.cs: Switched from 'nested' show/hide 
26769           counting for caret to simple visible yes/no behaviour (part of 
26770           fix for #77671)
26771
26772 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
26773
26774         * Mime.cs: Remove debug code...
26775
26776 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
26777
26778         * MimeGenerated.cs: Removed
26779         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
26780           and subclasses) from /usr/(local/)share/mime and
26781           $HOME/.local/share/mime.
26782
26783 2006-03-10  Jackson Harper  <jackson@ximian.com>
26784
26785         * MdiWindowManager.cs: Recalc the NC area when a window is
26786         maximized/restored so that the menu area is drawn on forms that
26787         don't have a menu.
26788
26789 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
26790
26791         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
26792           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
26793           us to force a WM_NCCALCRESIZE message being sent. This is needed
26794           for MDI maximizing.
26795
26796 2006-03-10  Jackson Harper  <jackson@ximian.com>
26797
26798         * Form.cs: We need to use the ActiveMenu when calculating menu
26799         height.
26800         - Fix nullref when the window manager hasn't been created yet.
26801         * Control.cs: Fix nullref when we try to bring a control to the
26802         front that has no parent.
26803         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
26804         height.
26805         - Add a dummy item to the maximized menu so it always has the
26806         correct height. Otherwise when there are no menus we don't get our
26807         icon and buttons.
26808         
26809
26810 2006-03-10  Jackson Harper  <jackson@ximian.com>
26811
26812         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
26813         stuff.
26814         * Form.cs: Make the window_state internal so the window managers
26815         can track it.
26816         - When an MDI child is maximized let its window manager create the
26817         main menu (so it can add its icon).
26818         - Notify the window managers of state changes
26819         - Let the window manager paint its buttons and handle button
26820         clicks on the menu when it is maximized.
26821         * InternalWindowManager.cs: Move the prev_bounds into the mdi
26822         window manager, since tool windows don't use it, only mdi windows.
26823         - Tell the main form that we don't want it to handle NCPAINT
26824         itself to avoid extra painting.
26825         - Handle clicks on a maximized windows menu.
26826         - Handle window state changes
26827         - Handle minimize/maximize clicks correctly by setting the window state.
26828         * MdiWindowManager.cs: Add an icon menu that (the menu you get
26829         when clicking on the forms icon).
26830         - New method to create a forms maximized menu. This is its normal
26831         menu + an icon.
26832         - Handle window state changes.
26833         - Handle sizing of maximized windows.  Maximized windows are just
26834         drawn bigger then the parent visible area. All controls are still
26835         there, they are just outside the visible area (this matches windows).
26836         * MdiClient.cs: No scrollbars when a child window is maximized.
26837         - Let the children windows figure out how big they should be when
26838         sizing maximized windows.
26839         - Implement a version of ArrangeIconicWindows somewhat similar to
26840         Windows version.  There are some little differences, but I don't
26841         think any app will rely on the layout of minimized mdi windows.
26842
26843 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
26844
26845         * Padding.cs: Several fixes to allow compiling with csc 2.0
26846
26847 2006-03-09  Jackson Harper  <jackson@ximian.com>
26848
26849         * Menu.cs:
26850         * MenuItem.cs: Cheap hack so we can add items to the list without
26851         the events being raised.  This allows adding mdi items during
26852         drawing. TODO: Should probably find a better time to add the items.
26853
26854 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
26855
26856         * ThemeWin32Classic.cs:
26857           - CheckBox_DrawText: Added logic to not wrap if not enough space
26858             is available (Fix for bug #77727)
26859           - RadioButton_DrawText: Added logic not to wrap if not enough
26860             space is available (Fix for bug #77727). Also removed some
26861             duplicate code, DrawString always drawing the regular text
26862             before hitting the if statement.
26863
26864 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
26865
26866         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
26867
26868 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
26869
26870         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
26871         * ContainerControl.cs: Partial implementation of some 2.0 scaling
26872           methods. Moved the new 2.0 properties into alphabetical order with
26873           other properties and added MonoTODO tags
26874
26875 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
26876
26877         * AutoScaleMode.cs: Added. Fix build.
26878
26879 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
26880
26881         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
26882           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
26883           and was requiring premature handle creation for calls from above
26884         * Form.cs, Control.cs: Removed handle arguments from calls to
26885           CalculateClientRect()
26886
26887 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
26888
26889         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
26890           drag_column.column_rect is MarshalByRef and can't be used that way
26891
26892 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
26893
26894         * AxHost.cs: Added deserialization constructor for 
26895           AxHost+State (fixes 77743)
26896
26897 2006-03-09  Mike Kestner  <mkestner@novell.com>
26898
26899         * ListView.cs: 
26900         - Added column drag reordering for details view.
26901         - fixed behavior when mouse is dragged off column and
26902         AllowColumnReorder is false.
26903         * ColumnHeader.cs: clone the format too in Clone.
26904         * Theme.cs: add DrawListViewHeaderDragDetails method.
26905         * ThemeWin32Classic.cs:
26906         - impl new method for drawing drag column shadows and targets.
26907         - support column offset for details mode in DrawListViewItem.
26908
26909 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
26910
26911         * TextControl.cs: Reset the char_count when the document is cleared
26912           (Fixes bug reported on mono-winforms mailing list)
26913
26914 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
26915
26916         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
26917           of calling base we simply process the key ourselves, since both
26918           DefWindowProc and the handled method would set m.Result. 
26919           (Fixes #77732)
26920
26921 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
26922
26923         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
26924           method also moves the window; instead implemented a copy of
26925           Control.ScaleCore (Part of fix for #77456)
26926         * TextBoxBase.cs: 
26927           - Created new CreateGraphicsInternal method to allow providing
26928             a graphics context when no handle is created without triggering
26929             handle creation. (Part of fix for #77456)
26930           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
26931         * TextControl.cs: 
26932           - Switched Constructor to require TextBoxBase instead of Control (to
26933             allow uncast access to CreateGraphicsInternal)
26934           - Safeguarded use of owner.Handle property. No longer accessing it
26935             unless the handle is already created.
26936           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
26937           - Now triggering a recalc when owning control becomes visible
26938         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
26939           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
26940           premature handle creation (Part of fix for #77456)
26941         * Control.cs:
26942           - We now only destroy our double-buffering buffers when the
26943             control is resized or disposed, but not when visibility
26944             changes. (The code even re-created them twice every time)
26945           - Now requiring a redraw of the buffer on visibility changes
26946             (fixes bug 77654 part 2)
26947           - Not passing OnParentVisibleChanged up unless the control
26948             is visible
26949           - CanFocus: Fixed to match MS documentation
26950           - Focus: Fixed to return actual focus state and to check if
26951             setting focus is legal before setting it
26952
26953 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
26954
26955         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
26956           when to draw focus rectangle by looking at parent focus and
26957           selected state instead. This fixes TabPages on Linux sometimes
26958           having none or multiple focus rectangles.
26959         * XplatUIX11.cs (SetFocus): 
26960           - Don't set the focus if the same window already has focus
26961           - Use SendMessage instead of PostMessage (like it's Win32
26962             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
26963             to match MS behaviour
26964         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
26965           are not selectable.
26966
26967 2006-03-07  Jackson Harper  <jackson@ximian.com>
26968
26969         * PictureBox.cs: Revert line I accidently committed last week.
26970
26971 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
26972
26973         * Control.cs: 
26974           - Added new IsRecreating and ParentIsRecreating properties to
26975             allow testing if RecreateHandle has been called on ourselves
26976             or one of our parents
26977           - WndProc(WM_DESTROY): If our control handle is being recreated
26978             we immediately need to create the handle when receiving the
26979             destroy, that way our child windows find a valid parent handle
26980             when they themselves are being recreated upon WM_DESTROY receipt
26981             (fix for bug #77654 part 1)
26982         * XplatUIX11.cs:
26983           - DestroyWindow: WM_DESTROY must be sent to our own window before
26984             notifying any child windows. MS documents that child windows
26985             are still valid when WM_DESTROY is received. (Control now relies on
26986             this behaviour)
26987           - Added some fine-grain debug options
26988
26989 2006-03-06  Jackson Harper  <jackson@ximian.com>
26990
26991         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
26992         box and base calculations off this.
26993         * MdiChildContext.cs:
26994         * MdiWindowManager.cs: Don't need to ensure scrollbars here
26995         anymore.
26996         
26997 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
26998
26999         * Splitter.cs: In situations where the affected control is added
27000           to the parent's control list after the splitter, we would not
27001           populate affected. Now we try populating it on mousedown, if
27002           it's not already set, and force it to be re-set whenever our
27003           parent changes.
27004
27005 2006-03-03  Matt Hargett  <matt@use.net>
27006
27007         * Control.cs: implement Control.Padding
27008         * Padding.cs: -Padding.All returns -1 when constructing with the
27009         implicit default ctor
27010         -Padding.ToString() matches MS.NET
27011         * ContainerControl.cs: implement
27012         ContainerControl.AutoScaleDimensions
27013         * ListControl.cs: implement ListControl.FormattingEnabled
27014         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
27015         * ButtonBase.cs:
27016         * TabPage.cs: Implement UseVisualStyleBackColor.
27017         * PictureBox.cs: Implement PictureBox.InitialImage.
27018
27019 2006-03-03  Mike Kestner  <mkestner@novell.com>
27020
27021         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
27022         event declarations to proxy to base event.
27023         * ListViewItem.cs: update to use ItemControl.
27024         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
27025         * ThemeWin32Classic.cs: update to new ListView theme API and fix
27026         column header label rendering for 0 width columns.
27027
27028 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
27029
27030         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
27031           that causes the control to be created. Fixes #77476.
27032
27033 2006-03-02  Jackson Harper  <jackson@ximian.com>
27034
27035         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
27036         expose_pending.
27037
27038 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
27039
27040         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
27041           passed in for the EventArgs (fixes #77690)
27042
27043 2006-03-01  Jackson Harper  <jackson@ximian.com>
27044
27045         * ScrollBar.cs: Refresh afterbeing resized.
27046
27047 2006-02-28  Mike Kestner  <mkestner@novell.com>
27048
27049         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
27050         Clean up a tracker compile warning.
27051         * MenuItem.cs: add internal PerformPopup method.
27052         [Fixes #77457]
27053
27054 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
27055
27056         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
27057           implicit expose) when the text is set to null
27058
27059 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
27060
27061         * RichTextBox.cs (FlushText): When newline is true, we always
27062           need to split the line, even if no text is on it and we may
27063           never eat newlines. (Fixes #77669)
27064
27065 2006-02-28  Mike Kestner  <mkestner@novell.com>
27066
27067         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
27068         and set Selected instead.
27069         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
27070         collections.
27071
27072 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
27073
27074         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
27075
27076 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
27077
27078         * FontDialog.cs:
27079           - Got rid of the panel. All controls are now directly added to
27080             the dialog form
27081           - It is now possible to set a font with the Font property
27082           - MinSize and MaxSize property do now what they should
27083           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
27084           - Searching and selecting a font with the font textbox works now,
27085             the same applies to the style and size textbox
27086           - Draw the correct 3D border in the example panel
27087           - Fixed a little mem leak (unused fonts didn't get disposed)
27088           - Many other internal updates/rewrites...
27089           - Fix typo
27090
27091 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
27092
27093         * TextControl.cs: 
27094           - InsertRTFFromStream: Added 'number of characters inserted' argument
27095           - set_SelectedRTF: Now using the number of characters to calculate
27096             the new location for the selection and cursor (x/y cannot be used
27097             due to potentially already wrapped text)
27098
27099 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
27100
27101         * TextControl.cs: Added property and implemented means to allow 
27102           disabling recalculation of a document (can be used to speed up
27103           multiple inserts and is needed to make RTF inserts predictable, see
27104           bug #77659)
27105         * RichTextBox.cs: Using the new NoRecalc property of Document to
27106           keep x/y insert locations predictable. Also makes it faster inserting
27107           large chunks of RTF
27108
27109 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
27110
27111         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
27112           it's easier for a child control to handle the other messages without
27113           having to duplicate the special functionality
27114         * TextBoxBase.cs
27115           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
27116             code to handle processing the key ourselves, in order to get 
27117             access to the result of KeyEventArgs.Handled. We now only call 
27118             ProcessKey if they key hasn't been handled already. Fixes #77526.
27119           - set_Text: If null or empty string is given, just clear the 
27120             document. Fixes part of #77526
27121
27122 2006-02-27  Jackson Harper  <jackson@ximian.com>
27123
27124         * SizeGrip.cs: Paint the background color before painting the grip
27125         so things look right.
27126         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
27127
27128 2006-02-27  Mike Kestner  <mkestner@novell.com>
27129
27130         * ListView.cs:
27131           - Restructure layout and invalidation model to remove a ton of
27132           flicker from the control and speed up performance in general.
27133           - Add manual column resize, flickers like crazy, but I already have
27134           some ideas on how I'll fix that. (#76822)
27135           - Merge the three Icon-based views into a single layout method.
27136           - Move item selection interaction logic from the item since 
27137           interaction with the collections is more appropriate to the view.
27138           - Deselection on non-item clicks.
27139         * ListViewItem.cs:
27140           - Encapsulate most of the layout. Add some internal props to trigger
27141           layout.  Move to a model where Items invalidate themselves instead
27142           of just invalidating the whole control every time something changes.
27143           - Invalidate on Text/Caption changes.
27144           - switch to an offset based layout model to avoid having to absolute
27145           position every element on item moves.
27146           - correct checkbox layout to conform to MS layout.
27147         * ThemeWin32Classic.cs:
27148           - refactor some column header drawing code.
27149           - fix string justification for column headers (#76821)
27150           - make SmallIcon labels top justified for compat with MS impl.
27151         * ThemeClearlooks.cs:
27152           - adjust to new ListViewItem internal checkbox bounds api.
27153
27154 2006-02-27  Jackson Harper  <jackson@ximian.com>
27155
27156         * Control.cs:  Change where implicit controls fall in the zorder.
27157         They are now on top of all children.
27158         - Synced AddImplicit code with Add
27159         - Removed unused enumerator.
27160         * SizeGrip.cs: Remove the TODO as its been TODONE.
27161
27162 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
27163
27164         * TextControl.cs(Insert): Combine the last lines unless the insertion
27165           string ends with \n\n, otherwise we leave one line too many (Fixes
27166           something I noticed with the testapp for #77526; the bug itself was
27167           already fixed in the previous checkin)
27168
27169 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
27170
27171         * RichTextBox.cs:
27172           - SelectionColor and SelectionFont methods no longer set absolute
27173             styles. Instead, the keep font or color respectively (This 
27174             resolves a long-standing FIXME in the code)
27175           - When flushing RTF text, the insert code now considers text trailing
27176             behind the insertion point (Fixes the bug where when replacing
27177             the selected text via SelectedRTF the remainder of the line behind 
27178             the selection would stay on the first insertion line)
27179         * TextBoxBase.cs:
27180           - AppendText now updates the selection points after inserting text
27181           - AppendText now ensures that the last tag (sometimes 0-length) of
27182             the document is used for the style information (Fixes part of 
27183             bug #77220)
27184         * TextControl.cs:
27185           - Created new FontDefiniton class to allow describing partial style
27186             changes
27187           - StreamLine() now takes a lines argument, to allow it to decide
27188             whether an encountered zero-length tag is the last in the document
27189             (which must be kept to not loose the font/color contained in it,
27190             for later appends)
27191           - Created Combine() and Split() methods for Marker structs, to 
27192             support marker updates due to reformatted documents (soft line
27193             wraps)
27194           - Implemented Document.CaretTag setter
27195           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
27196             of the last line (Not the cause, but also exposed by bug #77220)
27197           - Added LineTag argument to InsertString method, to allow callers
27198             to force a certain tag to be used (required to force use of the
27199             trailing zero-length tag of a document)
27200           - Now updating markers in Combine(), to avoid stale tag markers
27201           - Added some method descriptions to aid maintenance
27202           - Implemented new FormatText concept, allowing additive/subtractive
27203             formatting by only specifying the components that are to be 
27204             changed. This was needed for resolving the RTB.SelectedColor/
27205             RTB.SelectedFont fixmes
27206           - Added Break() support method to allow breaking up linetags (used
27207             for partial formatting)
27208           - Added GenerateTextFormat() method. It is used for partial 
27209             formatting and allows to generate a full font/color from given
27210             attributes and an existing tag.
27211
27212 2006-02-26  Jackson Harper  <jackson@ximian.com>
27213
27214         * XplatUIX11.cs:  Use the correct caption height.
27215         - Translate hittest coordinates to screen coords to match MS.
27216         * XplatUIWin32.cs: When we create MDI windows we need to reset
27217         some of the style flags, so we get a nice blank window, and can
27218         draw all the decorations ourselves.
27219         - Set a clipping rectangle on the non client paint event, the
27220         window manager drawing code needs one.
27221         * Form.cs: The window manager needs to know when the window state
27222         has been updated.
27223         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
27224         don't need to factor in border and title sizes in these
27225         methods. TODO: Remove the args and fix the call points.
27226         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
27227         properly.
27228         - Let the driver set the cursors.
27229         - Improve active window handling
27230         - Correct sizes for title bars and buttons.
27231         - Match MS drawing better
27232         * MdiWindowManager.cs: We don't need to handle border style
27233         updates specially anymore.
27234         - Check for scrollbars when windows are done moving
27235         - Handle Active properly.
27236         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
27237         correctly. I am spewing the exception though, so we don't hide the
27238         bugs.
27239         
27240 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
27241
27242         * DataGridViewRowPostPaintEventArgs.cs,
27243           DataGridViewCellPaintingEventArgs.cs,
27244           DataGridViewRowCollection.cs,
27245           DataGridViewRowPrePaintEventArgs.cs,
27246           DataGridViewCell.cs: Clear a few warnings and implement a few
27247           exceptions that should be thrown.
27248
27249 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
27250
27251         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
27252           'inheriting' our parent's (non-default) cursor. (Part of
27253            the fix for #77479)
27254
27255 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
27256
27257         * XplatUIX11.cs: Fixed cast to make csc happy
27258
27259 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
27260
27261         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
27262           it's for the client area (part of fix for #77479 and needed
27263           for MDI window cursor handling)
27264         * XplatUIX11.cs
27265           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
27266             the appropriate default cursors and also passing the message
27267             up the parent chain 
27268           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
27269             for non-client areas
27270
27271 2006-02-15  Jackson Harper  <jackson@ximian.com>
27272
27273         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
27274         is a real MDI window
27275
27276 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
27277
27278         * X11DesktopColors.cs: Instead of checking the desktop session
27279           string for "KDE" check if it starts with "KDE"
27280
27281 2006-02-10  Jackson Harper  <jackson@ximian.com>
27282
27283         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
27284         systems).
27285
27286 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
27287
27288         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
27289           errors
27290         * ColorDialog.cs:
27291           - Got rid of the panel. All controls are now directly added to
27292             the dialog form
27293           - Changed to mono coding style
27294
27295 2006-02-10  Jackson Harper  <jackson@ximian.com>
27296
27297         * InternalWindowManager.cs: We don't need the set visibility to
27298         false hack anymore now that peter has written beautiful shutdown
27299         code.
27300
27301 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
27302
27303         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
27304           where already explicitly destroyed
27305
27306 2006-02-10  Jackson Harper  <jackson@ximian.com>
27307
27308         * MdiClient.cs: Handle the case where windows are too high or to
27309         the left and we need scrollbars.
27310
27311 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
27312
27313         * MimeIcon.cs: Added some icons
27314         * FileDialog.cs:
27315           - Fixed bug #77477
27316           - Got rid of the panel. All controls are now directly added to
27317             the dialog form
27318           - Changed to mono coding style
27319           - On Linux "My Computer" and "My Network" will now show some
27320             more usefull information. A new class, MasterMount, gathers
27321             this information from /proc/mount. Updated MWFFileView to make
27322             use of this information
27323           - Fixed a bug that caused FileDialog to crash when
27324             ".recently_used" file had a zero size
27325           - FilterIndex does now what it should
27326           - Some Refactoring
27327         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
27328             FileDialog changes
27329
27330 2006-02-09  Jackson Harper  <jackson@ximian.com>
27331
27332         * ComboBox.cs: Don't touch if null.
27333
27334 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
27335
27336         * Cursor.cs: 64bit safeness fix
27337         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
27338
27339 2006-02-09  Jackson Harper  <jackson@ximian.com>
27340
27341         * Form.cs: If a form is made into an MDI form update the styles so
27342         all the props can get set correctly.
27343         - Kill the mdi_container when we dont need it anymore.
27344         * InternalWindowManager.cs: Add missing NOT
27345
27346 2006-02-08  Jackson Harper  <jackson@ximian.com>
27347
27348         * InternalWindowManager.cs: Respek clipping when drawing MDi
27349         decorations.
27350
27351 2006-02-08  Jackson Harper  <jackson@ximian.com>
27352
27353         * Hwnd.cs: Add bits to track non client expose events.
27354         * XplatUIX11.cs: Track non client expose events on the hwnd. This
27355         gives us a proper invalid rect and will allow for some nice
27356         optimizations with NC client drawing
27357         - MDI windows are children windows, so move their style handling
27358         into the child window block.
27359         * InternalWindowManager.cs: Remove a state reset that was
27360         getting invoked at the wrong time. Fixes managed windows getting
27361         into a 'stuck' captured state.
27362
27363 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
27364
27365         * TextControl.cs (Document.ctor): Now initializing 
27366           selection_anchor. Fixes #77493
27367
27368 2006-02-07  Jackson Harper  <jackson@ximian.com>
27369
27370         * TrackBar.cs: The increment/decrements were backwards.
27371
27372 2006-02-07  Mike Kestner  <mkestner@novell.com>
27373
27374         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
27375         to the instance itself.
27376
27377 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
27378
27379         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
27380           on ulongs and pointers, the size differs between 32bit and 64bit
27381           systems. 
27382
27383 2006-02-07  Mike Kestner  <mkestner@novell.com>
27384
27385         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
27386         for 64 bit platforms to work around a metacity bug. 
27387
27388 2006-02-07  Jackson Harper  <jackson@ximian.com>
27389
27390         * TrackBar.cs: Process the input keys we need, and hookup to
27391         KeyDown instead of using WndProc, so we get key messages.
27392
27393 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
27394
27395         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
27396           machine we're on. 
27397         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
27398           we need to translate the XdndVersion atoms array before sending it
27399
27400 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
27401
27402         * XplatUIX11.cs: 
27403           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
27404             number of bits for the property, not the number of bytes. The
27405             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
27406             but would not crash since it specified 8 bits instead of 4 bits)
27407           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
27408             defined as XID -> long in the C headers)
27409           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
27410             references since those are now IntPtr to begin with
27411           - Switched all Atom.XXX 'int' casts to IntPtr casts
27412           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
27413           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
27414           - Added XChangeActivePointerGrab DllImport (for X11DnD)
27415         * X11Structs.cs:
27416           - Changed 'int' type for Atoms in XEvent structures to IntPtr
27417           - Changed atom in HoverStruct to be IntPtr
27418         * X11DnD.cs:
27419           - Removed local DllImports, switched code to use those from XplatUIX11
27420           - Removed/fixed casts related to the switch of Atom to be a IntPtr
27421
27422 2006-02-06  Mike Kestner  <mkestner@novell.com>
27423
27424         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
27425         method signatures in the import region.  There may still be some
27426         lingering struct marshaling issues, as I didn't drill down into those.
27427         Yet.
27428
27429 2006-02-06  Jackson Harper  <jackson@ximian.com>
27430
27431         * ComboBox.cs: Dont manually set the top_item, this is computed
27432         when the scrollbar position is set.
27433
27434 2006-02-06  Mike Kestner  <mkestner@novell.com>
27435
27436         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
27437         startup crashes on amd64.  There's other fixes needed.  All pinvoke
27438         usage of Atom needs to be mapped to IntPtr for example.  And there are
27439         likely other int/long issues to be addressed.
27440
27441 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
27442
27443         * FileDialog.cs: One more...
27444
27445 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
27446
27447         * FileDialog.cs: Next try
27448
27449 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
27450
27451         * FileDialog.cs: First part of fix for #77464
27452
27453 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
27454
27455         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
27456           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
27457           AcceptButton border drawing.
27458
27459 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
27460
27461         * Form.cs: Moved positioning of form after auto scaling is applied,
27462           otherwise it would possibly use wrong form size.
27463
27464 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
27465
27466         * Control.cs (RecreateHandle): No need to re-create any child
27467           controls, the child windows will get destroyed automatically by
27468           the windowing system or driver, and re-created when the handle
27469           is being accessed the first time. Fixes #77456
27470         * Form.cs: No longer setting the form to closing if the handle is 
27471           being recreated. This seems like the right thing to do, don't
27472           have a bug or testcase for this, though.
27473
27474 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
27475
27476         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
27477           controls to avoid unwanted side effects
27478
27479 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
27480
27481         * Control.cs: 
27482           - ScaleCore needs to scale the bounds, not the ClientSize of the 
27483             control. Fixes #77416.
27484           - DefaultSize is 0,0 for control
27485         * TextBoxBase.cs: 
27486           - DefaultSize is 100, 20
27487           - SetBoundsCore: Now enforcing the height, no matter if the provided
27488             height is more or less than the preferred one, as long as AutoSize
27489             is on
27490         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
27491
27492 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
27493
27494         * Control.cs:
27495           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
27496             call unless both performLayout is true *and* we have a pending
27497             layout change
27498           - ResumeLayout: MS does not completely nest Suspend and Resume,
27499             they bottom out at 0, fixed our code to match that.
27500           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
27501             SetBoundsCore, we were updating even when we shouldn't. This fixes
27502             swf-anchors mis-anchoring when resizing the app fast and lots.
27503           - UpdateDistances: Now only setting the left and top distance if 
27504             we have a parent and are not suspended, this is based on
27505             a suggestion by Don Edvaldson in bug #77355.
27506           - OnVisibleChanged: Fixed logic when to create the control. We may
27507             not create the control if we have no parent or if it's not visible;
27508             switched to using Visible property instead of is_visible field 
27509             since the property also considers parent states. This fixes a bug
27510             when starting Paint.Net
27511
27512 2006-02-02  Jackson Harper  <jackson@ximian.com>
27513
27514         * Form.cs: If the forms handle hasn't been created yet don't call
27515         into xplatui to make it top most, just set the topmost flag on the
27516         form in CreateParams
27517         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
27518
27519 2006-02-01  Jackson Harper  <jackson@ximian.com>
27520
27521         * ScrollableControl.cs: Refactored the Recalculate method a
27522         little, this wasn't handling all the variants of bottom and right
27523         bars needed to be added and added/removed based on their
27524         counterparts being added/removed (which changes the drawable
27525         size). Also we special case client widths and heights of 0 and
27526         don't add the scrollbar for those.
27527
27528 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
27529
27530         * XplatUIX11.cs: 
27531           - Added method to get AbsoluteGeometry(); currently unused, but might
27532             be used in the future, if we try again to figure out toplevel
27533             coordinates with some more crappy window managers
27534           - Added FrameExtents() method to retrieve the WM set decoration size
27535           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
27536             to deal with at least KDE, FVWM and metacity (Fixes #77092)
27537         * Hwnd.cs: 
27538           - Added whacky_wm tracking var for metacity
27539           - Added logic to have default menu height if the actual menu height
27540             has not yet been calculated (part of fix for #77426)
27541         * Form.cs: Keep track whether client size has been set and re-set 
27542           it if a menu is added/removed afterwards (Fixes #77426)
27543
27544 2006-01-31  Jackson Harper  <jackson@ximian.com>
27545
27546         * Control.cs: When a new Site is set on the component attempt to
27547         pull the AmbientProperties from it.
27548
27549 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
27550
27551         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
27552           in the background of the owning form. Fixes #77332
27553
27554 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
27555
27556         * MimeIcon.cs: Fix for #77409
27557
27558 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
27559
27560         * XplatUIX11GTK.cs: Initial import
27561
27562 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
27563
27564         * FixedSizeTextBox: fixes class signature
27565
27566 2006-01-30  Jackson Harper  <jackson@ximian.com>
27567
27568         * FixedSizeTextBox.cs: New internal class that represents a
27569         textBox that will not be scaled.
27570         * TreeView.cs:
27571         * ComboBox.cs:
27572         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
27573         standard TextBox.
27574                 
27575 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
27576
27577         * XplatUIX11.cs: Retrieve default screen number instead of
27578           assuming 0. Attempted fix for #77318
27579
27580 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
27581
27582         * XplatUIWin32.cs: 
27583           - GetWindowPos: When a window is parented by FosterParent, use 
27584             the desktop instead of FosterParent as the base to get coordinates
27585           - CreateWindow: Don't make FosterParent the parent window for Popups
27586             if we don't want a taskbar entry, Popups automatically don't get one
27587         * Hwnd.cs: Need to call remove to actually remove the key from the
27588           hash table
27589
27590 2006-01-30  Mike Kestner  <mkestner@novell.com>
27591
27592         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
27593
27594 2006-01-30  Jackson Harper  <jackson@ximian.com>
27595
27596         * TreeView.cs:
27597         * TreeNode.cs: Raise events no matter how the treenode is
27598         checked. Patch by Don Edvalson.
27599
27600 2006-01-30  Jackson Harper  <jackson@ximian.com>
27601
27602         * TreeNode.cs: Signature fix.
27603
27604 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
27605
27606         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
27607
27608 2006-01-20  Mike Kestner  <mkestner@novell.com>
27609
27610         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
27611         event forwarding when menus are active.
27612         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
27613         Most of the patch is pdb's with a little rework.
27614
27615 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
27616
27617         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
27618           Removed GetMenuDC and ReleaseMenuDC methods; replaced
27619           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
27620         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
27621         * InternalWindowManager.cs: Added use of PaintEventStart/End to
27622           handling of WM_NCPAINT message, now passing the PaintEventArgs to
27623           the PaintWindowDecorations method
27624         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
27625         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
27626         * MenuAPI.cs: Made tracker window invisible
27627         * XplatUIWin32.cs:
27628           - Removed GetMenuDC and ReleaseMenuDC methods
27629           - Implemented the client=false path for PaintEventStart and
27630             PaintEventEnd
27631
27632 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
27633
27634         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
27635         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
27636           styles
27637         * Form.cs: 
27638           - MaximizeBox, MinimizeBox: Recreate the handle when setting
27639             the style
27640           - CreateParams: Reworked the styles to match MS look'n'feel,
27641             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
27642             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
27643
27644 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
27645
27646         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
27647           window is not mapped, since otherwise every form that's being 
27648           created is considered minimized, which is wrong.
27649         * Form.cs: Catching the exception and returning our internal value
27650           instead
27651
27652 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
27653
27654         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
27655           SetWindowMinMax() to have means to tell the driver about the minimum,
27656           maximum and maximized state window sizes. (Part of the fix for #76485)
27657         * Form.cs:
27658           - Implemented tracking of minimum and maximum window size, now calling
27659             new SetWindowMinMax() driver method to tell the driver (Part of the
27660             fix for #76485)
27661           - Finished handling of WM_GETMINMAXINFO method, now setting all values
27662             (Completes fix for #76485)
27663           - Calling new SetWindowMinMax driver method when the handle for a 
27664             form is created, to make sure the driver knows about it even if
27665             the values have been set before the window was created
27666           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
27667             to avoid messing up our anchoring calculations (partial fix
27668             for #77355)
27669         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
27670         * XplatUIX11.cs:
27671           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
27672           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
27673             (and presumably other freedesktop.org compliant WMs). Left the
27674             assumption unmapped=minimized, needed for SetVisible to work.
27675           - Now setting the window state when creating windows
27676           - Fixed SetVisible to consider/set the window state when mapping
27677             a Form. We cannot set the state before it's mapped, and we cannot
27678             use Form.WindowState once it's mapped (since it would ask the
27679             driver and get 'normal'. Therefore, we grab the state before
27680             mapping, map, and then set state.
27681           - Implmemented SetWindowMinMax method; Metacity does not seem to
27682             honor the ZoomHints, though.
27683         * XplatUIWin32.cs:
27684           - Removed MINMAXINFO (moved to XplatUIStructs)
27685           - Added SetWindowMinMax stub (on Win32 the only way to set that
27686             information is in response to the WM_GETMINMAXINFO message, which
27687             is handled in Form.cs)
27688           - Added logic to SetVisible to set the proper window state when a 
27689             form is made visible (fixes #75720)
27690
27691 2006-01-26  Jackson Harper  <jackson@ximian.com>
27692
27693         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
27694         same way we handle them with Invoke.
27695
27696 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
27697
27698         * Form.cs:
27699           - Added tracking of window state so CreateParams can return
27700             the appropriate style
27701           - Moved setting of WS_CAPTION style in CreateParams to allow
27702             styles without caption
27703         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
27704           control if the TextBox property is accessed. Fixes #77345
27705         * Control.cs:
27706           - get_Created: now uses is_disposed and is_created to determine
27707             return value (suggested by Jackson)
27708           - CreateHandle: No longer exits if the handle is being recreated
27709           - RecreateHandle: If the handle is not yet created call the 
27710             appropriate method to create either control or handle. If the
27711             control is already created CreateHandle will simply exit instead
27712             of just creating the handle
27713         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
27714           now SendMessage WM_DESTROY directly to the control when DestroyWindow
27715           is called.
27716         * XplatUIX11.cs: 
27717           - When DestroyWindow is called, instead of waiting for the 
27718             DestroyNotification from X11, we directly post it to the WndProc
27719             and immediately dispose the hwnd object.
27720             Same applies to DestroyChildWindows, and this obsoletes the
27721             expose_pending tracking. Contrary to Win32 behaviour we destroy our
27722             child windows before our own, to avoid X11 errors.
27723           - Removed the direct sending of WM_PAINT on UpdateWindow
27724         * XplatUIWin32.cs:
27725           - Reworked DoEvents and GetMessage to allow access to internal queue
27726             even when trying non-blocking access to the queue.  Fixes #77335. 
27727             Based on a patch suggestion by Don Edvalson. The new private
27728             GetMessage can now also be used as a backend for a PeekMessage
27729             frontend version.
27730         * XplatUI.cs: Improved debug output for CreateWindow
27731
27732 2006-01-25  Jackson Harper  <jackson@ximian.com>
27733
27734         * Help.cs: Allow param to be null. Patch by Don Edvalson.
27735
27736 2006-01-24  Jackson Harper  <jackson@ximian.com>
27737
27738         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
27739         when we have a MaxDropItems lower then the selected index.
27740
27741 2006-01-24  Jackson Harper  <jackson@ximian.com>
27742
27743         * Control.cs: Don't allow selection of non visible controls, allow
27744         selection of controls without parents.
27745
27746 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
27747
27748         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
27749         * DataGridDrawingLogic.cs: Add editing row only when is necessary
27750
27751 2006-01-23  Jackson Harper  <jackson@ximian.com>
27752
27753         * UpDownBase.cs: Make the textbox handle all the selection and
27754         tabbing. This fixes tabing to updown controls.
27755
27756 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
27757
27758         * TextBoxBase.cs: fixes exception thown the object was null
27759
27760 2006-01-23  Jackson Harper  <jackson@ximian.com>
27761
27762         * ButtonBase.cs: Just use the base CreateParams. They set
27763         visibility and enabled correctly.
27764         * ComboBox.cs:
27765         * TrackBar.cs:
27766         * MonthCalendar.cs: Lets let the base set as much of the
27767         createparams as possible so we don't have duplicate code all over
27768         the place.
27769
27770 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
27771
27772         * ThemeGtk.cs: Added TrackBar and some experimental code to
27773           get double buffering back
27774
27775 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
27776
27777         * DataGrid.cs: Allows row number set internally higher than the last
27778         when creating a new row. Restores the editing functionality.
27779
27780 2006-01-20  Mike Kestner  <mkestner@novell.com>
27781
27782         * MimeIcon.cs: delay Image creation until the icons are accessed
27783         instead of creating 190 scaled images on GnomeHandler startup.
27784
27785 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
27786
27787         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
27788           first call base before processing the event. Fixes #77279
27789
27790 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
27791
27792         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
27793           that the stride for the GDI bitmap would match the stride of
27794           a DIB or a Cursor.
27795
27796 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
27797
27798         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
27799
27800 2006-01-19  Jackson Harper  <jackson@ximian.com>
27801
27802         * ComboBox.cs: Hookup the text controls keydown event so we get
27803         those when the text control has the focus.
27804
27805 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
27806
27807         * Label.cs: Now using the base events instead of defining new ones;
27808           this allows us to just call the base properties without having to
27809           duplicate all base property logic 
27810
27811 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
27812
27813         * Label.cs: A label by default is not a tabstop (Fixes one of our
27814           failing nunit tests)
27815
27816 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
27817
27818         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
27819         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
27820
27821 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
27822
27823         * Cursor.cs: Reimplemented creating cursor bitmaps without using
27824           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
27825           This fixes #77218
27826         * XplatUIWin32.cs: 
27827           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
27828             constructor creates images that can't be saved. Part of the fix
27829             for #76103
27830           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
27831           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
27832             bug fix for handling window state in forms properly)
27833
27834 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
27835
27836         * ThemeGtk.cs: Simplify ScrollBar drawing
27837
27838 2006-01-18  Jackson Harper  <jackson@ximian.com>
27839
27840         * Splitter.cs: Set the default dock style for the splitter control
27841         in the constructor.
27842
27843 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
27844
27845         * ThemeGtk.cs: Corrected StateType and ShadowType for
27846           gtk_paint_box
27847
27848 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
27849
27850         * Control.cs: Make use of Theme.DoubleBufferingSupported
27851         * ThemeGtk.cs:
27852           - Added drawing for flat style buttons
27853           - Added ScrollBar drawing
27854
27855 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
27856
27857         * ThemeClearlooks.cs: Removed some unneeded code.
27858         * ThemeGtk.cs: First part of ThemeGtk enhancements.
27859
27860 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
27861
27862         * LinkLabel.cs: We need to update the hover drawing when
27863           leaving the control as well.
27864
27865 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
27866
27867         * DataGrid.cs: Clicking on non empty areas in the columns
27868            area was giving an exception
27869
27870 2006-01-17  Jackson Harper  <jackson@ximian.com>
27871
27872         * ThemeWin32Classic.cs:
27873         * ListView.cs: Do not draw/clip the headers when the header style
27874         is None.
27875
27876 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
27877
27878         * DataGrid.cs: Fixes 77260
27879         
27880 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
27881
27882         * DataGrid.cs: Clicking on a column on a empty grid was giving
27883           an exception
27884
27885 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
27886
27887         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
27888           or any keypress will crash the grid.
27889
27890 2006-01-17  Mike Kestner  <mkestner@novell.com>
27891
27892         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
27893         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
27894         invisible/previously-visible items.
27895         [Fixes #76909]
27896
27897 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
27898
27899         * ThemeClearlooks.cs:
27900         - Added CL_Draw_Button method; now other theme controls that are 
27901           not derived from button or do not have a button can draw buttons
27902           too
27903         - Updated ComboBox drawing
27904         - Beautified RadioButton drawing
27905         - Corrected drawing of bottom and left tabs
27906         - Beautified DateTimePicker and MonthCalendar
27907         - Added CPDrawButton and CPDrawRadioButton
27908
27909 2006-01-16  Jackson Harper  <jackson@ximian.com>
27910
27911         * ComboBox.cs: Set the initial value of the scrollbar to the
27912         current index. Reduce the numbers of refreshs and IndexOfs called.
27913
27914 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
27915
27916         * FileDialog.cs: When the file listview is focused hitting the
27917           backspace key moves the fileview to the parent directory
27918
27919 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
27920
27921         * Form.cs: 
27922           - Added RecreateHandle call when changing taskbar visibility to 
27923             trigger reparenting in Win32 driver (Fixes #75719)
27924           - If a window has minimize or maximize buttons, it cannot have
27925             a help button
27926         * XplatUIWin32.cs:
27927           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
27928             the toplevel form with FosterParent (A toolwindow not on the
27929             taskbar) (Fixes #75719)
27930           - Made FosterParent a toolwindow
27931
27932 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
27933
27934         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
27935
27936 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
27937
27938         * ToolTip.cs: If SetToolTip is called from a control and the mouse
27939           is currently over that control, make sure that tooltip_window.Text
27940           gets updated
27941
27942 2006-01-13  Mike Kestner  <mkestner@novell.com>
27943
27944         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
27945
27946 2006-01-13  Jackson Harper  <jackson@ximian.com>
27947
27948         * TreeView.cs: On MS GetNodeAt never actually factors in the X
27949         value passed.  Also redraw the selected node when we recieve
27950         focus, so tabbing between trees works correctly.
27951
27952 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
27953
27954         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
27955           ~/.gconf/%gconf-tree.xml, so use
27956           .gconf/desktop/gnome/interface/%gconf.xml
27957
27958 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
27959
27960         * TextControl.cs: Draw text in gray if control is disabled
27961
27962 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
27963
27964         * TreeView.cs: Draw the focus rectangle outside the highlight, to
27965           make sure it's always visible. Fixes #76680.
27966
27967 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
27968
27969         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
27970
27971 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
27972
27973         * PageSetupDialog.cs: Added.
27974         * PrintDialog.cs: Attributes.
27975         * PrintPreviewControl.cs: Updates.
27976         * PrintPreviewDialog.cs: Updates.
27977         
27978 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
27979
27980         * Control.cs: Undid my selection check fix, since it's not needed
27981         * TextBoxBase.cs:
27982           - Now considering the presence of hscroll/vscroll when sizing
27983             vscroll/hscroll respectively. Fixed bug #77077
27984           - Added Left/Up/Down/Right to IsInputKey list to prevent
27985             ContainerControl from stealing them. This fixes what I broke
27986             with my last checkin.
27987
27988 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
27989
27990         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
27991           I finally understand how the property can be set without a setter :-)
27992
27993 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
27994
27995         * Application.cs:
27996           - Switched RunLoop to use static Message.Create to create a 
27997             Message object
27998           - Added PreProcessMessage call in runloop for keyboard events; this
27999             is part of the fix for #77219, I overlooked this originally in the
28000             MSDN doc for PreProcessMessage
28001         * Control.cs:
28002           - Removed call to PreProcessMessage from handling of keyboard 
28003             messages; it's supposed to be done in the message pump
28004           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
28005             per MSDN documentation.
28006           - IsInputChar: All chars are input chars by default; removed the 
28007             parent calling chain, MS does not document that
28008           - PreProcessMessage: If IsInputChar is true, we want to return false
28009             to allow dispatching of the message
28010           - When selecting the next control, now also check that we're not
28011             selecting ourselves again and therefore return a false positive.
28012         * TextBoxBase.cs:
28013           - Tried to match return values for IsInputKey and ProcessDialogKey
28014             to what MS returns; moved processing of our special keys outside
28015             ProcessDialogKey since MS does not seem to return true on those.
28016           - Moved code that previously was in ProcessDialogKey into new private
28017             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
28018           - Reworked handling of WM_CHAR to not have to duplicate code from
28019             Control.cs anymore, instead we simply call down to base.
28020            
28021 2006-01-12  Jackson Harper  <jackson@ximian.com>
28022
28023         * ComboBox.cs: We always need to refresh the text area when
28024         EndUpdate is called. Fixes the combobox in the file dialog.
28025         * Control.cs: Don't create the creator_thread until the controls
28026         handle is created.  Also in InvokeRequired we check if the
28027         creator_thread is null. This gives the effect of InvokeRequired
28028         returning true if the controls handle is not created yet, and
28029         matches MS.
28030
28031 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28032
28033         * XplatUI.cs:
28034           - Added StartLoop() driver method. This is used to allow drivers to
28035             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
28036             loop for a particular thread
28037           - Added EndLoop() driver method. This is called once the message
28038             pump for the thread is shut down
28039           - Added SupportsTransparency method to allow the driver to indicate
28040             opacity support for windows
28041         * Form.cs:
28042           - Removed TODO attribute, completed AllowTransparency property
28043           - Added documented logic to Opacity
28044         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
28045           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
28046           versions of CompatibleTextRendering
28047         * X11Structs.cs: Added opacity atom to our atom enumeration
28048         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
28049           of a form might be set before it's reparented by the WM, and we need
28050           the opacity value without calling up to Form)
28051         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
28052           SupportsTransparency() driver methods
28053         * Application.cs: Now calling StartLoop and EndLoop driver methods
28054         * XplatUIX11.cs:
28055           - Added opacity atom registration
28056           - Added StartLoop()/EndLoop() methods. They're empty right now but
28057             will need to get implemented when we switch to a per-thread queue
28058           - Implemented SupportsTransparency() method
28059           - Implemented SetWindowTransparency() method
28060           - Added support for setting the opacity value when a window is
28061             reparented (since the opacity needs to be set on the WM frame)
28062         * XplatUIOSX.cs, XplatUIWin32.cs:
28063           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
28064
28065 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
28066
28067         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
28068
28069 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
28070
28071         * FileDialog.cs: Added ToolTip for MWFFileView
28072         * MimeIcon.cs: Rewrote GnomeHandler.
28073           - Get currently used gnome icon theme from
28074             ($HOME)/.gconf/%gconf-tree.xml
28075           - Make use of inherited icon themes
28076           - Support SVG icon themes like Tango via librsvg
28077
28078 2006-01-12  Miguel de Icaza  <miguel@novell.com>
28079
28080         Revert's Jackson's revert which broke 2.0 builds.   Fix both
28081         builds. 
28082         
28083         * Application.cs: Move the use_compatible_text_rendering outside
28084         the NET_2_0 define.  If we ever need to use the
28085         use_compatible_text_rendering on the individual controls they will
28086         access the variable from the common shared code paths.
28087
28088 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
28089
28090         * XplatUI.cs:
28091           - Added more granular debug options
28092           - Added method to print both window text and id
28093           - Switched debug output to use new Window() debug method
28094           - Added IsEnabled() driver method
28095           - Added EnableWindow() driver method
28096         * Form.cs:
28097           - Removed end_modal; no longer needed, new loop handles termination
28098             via 'closing' variable
28099           - If form is modal, setting DialogResult will now initiate loop
28100             termination via 'closing' variable
28101           - Added support for is_enabled/WS_DISABLED to CreateParams
28102           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
28103             does all the work
28104           - Removed code that's now in RunLoop from ShowDialog()
28105           - Added various documented sanity checks to ShowDialog()
28106           - Added handling of WM_DESTROY message; we set 'closing' on getting
28107             the message to indicate the message pump to terminate
28108           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
28109             send by the Application.ExitThread method. (We send the message
28110             to destroy the window after all other events have been
28111             processed through the queue, instead of destroying the handle 
28112             directly)
28113           - Moved code from Close() method to WM_CLOSE handler; added logic
28114             to only send close-related events if the form is not displayed
28115             modal
28116         * Splitter.cs (..ctor): Fixed typo in resource name
28117         * Control.cs:
28118           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
28119             brush now
28120           - set_Cursor: Now only setting calling into XplatUI if the handle for
28121             the control is already created; this avoids implict handle creation
28122             or crashes if it's not created
28123           - set_Enabled: Now setting the enabled state via the new driver method
28124             instead of just tracking it
28125           - CreateParams: Added logic to set WS_DISABLED based on enabled state
28126           - CreateControl: Reordered event firing and method calls to more
28127             closely fire events in the order MS does. Now setting the
28128             enabled state in the driver when creating the control.
28129           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
28130             match MS order
28131         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
28132           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
28133         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
28134         * Hwnd.cs:
28135           - Added tracking of window enabled state (get_Enabled/set_Enabled)
28136           - Added EnabledHwnd property to easily allow a driver to find the
28137             handle of the first enabled window in the parent chain (this is
28138             used by drivers to pass up input events of disabled windows)
28139         * XplatUIDriver.cs: Added IsEnabled() method
28140         * Application.cs:
28141           - Removed crude and obsolete exiting tracking variable
28142           - Removed internal ModalRun(); replaced by RunLoop()
28143           - Implemented private CloseForms() method to allow closing all 
28144             windows owned by a particular (or all) threads
28145           - Exit() now properly closes all windows without forcing the message
28146             pump to quit
28147           - Removed obsolete InternalExit() method
28148           - Changed Run() methods to use new RunLoop() message pump
28149           - Implemented new RunLoop() method for both modal and non-modal forms
28150         * CommonDialog.cs:
28151           - get_CreateParams: Added setting of WS_DISABLED
28152           - Simplified ShowDialog(); now all the work is done in RunLoop(),
28153             invoked via Form.ShowDialog()
28154         * NativeWindow.cs: We don't remove the window from the collection when
28155           the handle is destroyed; there might still be messages for it in the
28156           queue (mainly the resulting WM_DESTROY); instead it will be removed
28157           when Control calls InvalidateHandle in the WM_DESTROY handler
28158         * XplatUIX11.cs:
28159           - CreateWindow: Added logic to handle the WS_DISABLED window style
28160           - EnableWindow: Implemented based on Hwnd.Enabled
28161           - GetMessage: Reset PostQuitState so the method can be called again
28162           - Implemented support for disabled windows (passing messages to the
28163             first enabled parent) in handling all input messages
28164           - Added optimizations for handling Expose events
28165           - Implemeted new driver method IsEnabled()
28166           - Now always resetting paint pending tracking vars when we start paint
28167           - Re-implemented UpdateWindow via just sending a WM_PAINT message
28168         * XplatUIOSX.cs: Added IsEnabled method stub
28169         * XplatUIWin32.cs: Implemented new IsEnabled() method
28170
28171 2006-01-11  Jackson Harper  <jackson@ximian.com>
28172
28173         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28174         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
28175         variables a little.
28176         * ColorDialog.cs: Clear out the old form before adding the new
28177         panel.  
28178
28179 2006-01-11  Jackson Harper  <jackson@ximian.com>
28180
28181         * X11Dnd.cs: Make sure to add all the text formats when adding
28182         strings to the data object.
28183         * TreeNodeCollection.cs: When adding to a sorted tree we need to
28184         do some redrawing too.  Also change the UpdateNode to an
28185         UpdateBelow so the newly added node gets painted.
28186         
28187 2006-01-11  Miguel de Icaza  <miguel@novell.com>
28188
28189         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28190         LinkLabel.cs, PropertyGrid.cs: Implement the
28191         UseCompatibleTextRendering property for 2.x
28192
28193         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
28194
28195 2006-01-11  Jackson Harper  <jackson@ximian.com>
28196
28197         * TreeView.cs: Use the property for setting the selected node so
28198         the correct events get raised.
28199         * TreeNode.cs: Update the tree when the fore/back colours of a
28200         node are set.
28201
28202 2006-01-10  Jackson Harper  <jackson@ximian.com>
28203
28204         * TreeView.cs: Allow setting SelectedNode to null.
28205
28206 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28207
28208         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
28209
28210 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28211
28212         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
28213
28214 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28215
28216         * PrintDialog.cs: Added attributes and set default property values.
28217
28218 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28219
28220         * PrintControllerWithStatusDialog.cs: 
28221         Added PrintControllerWithStatusDialog.
28222
28223 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28224
28225         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
28226         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
28227
28228 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28229
28230         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
28231
28232 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
28233
28234         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
28235         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
28236
28237 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
28238
28239         * MimeIcon.cs: Added internal class SVGUtil.
28240
28241 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
28242
28243         * FileDialog.cs: Don't crash if there are two files with the
28244           same name but different locations.
28245
28246 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
28247
28248         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
28249         dates across multiple month grids. Used to not highlight entire 
28250         month, but does now.
28251         
28252 2006-01-06  Jackson Harper  <jackson@ximian.com>
28253
28254         * MonthCalendar.cs: Removed DoEvents call to prevent a running
28255         message loop. Change timer intervals to numbers that seem more
28256         natural.
28257
28258 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
28259
28260         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
28261           object for location info since screen object is now implemented.
28262
28263 2006-01-05  Jackson Harper  <jackson@ximian.com>
28264
28265         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
28266         * AsyncMethodResult.cs: We no longer use a WeakReference for the
28267         AsyncMethodResult, this is because we ALWAYS want the
28268         ManualResetEvent to get set.
28269         * Control.cs: When disposing use an async invoke to call shutdown
28270         code, so that thigns don't block on the finalizer thread.  Also
28271         check if we even have a message loop before trying to send
28272         messages, if we don't then don't bother sending messages.
28273         - No more weak references for async methods
28274         * XplatUIDriver.cs: No more weak references for async methods.
28275
28276 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
28277
28278         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
28279           returns two FontFamily with the same name
28280
28281 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
28282
28283         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
28284           drawing disabled text. Instead using the ColorGrayText color
28285
28286 2006-01-04  Jackson Harper  <jackson@ximian.com>
28287
28288         * TreeNode.cs: redraw the node when its image index is changed.
28289
28290 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
28291
28292         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
28293           time I checked there are no others like it.
28294
28295 2006-01-04  Jackson Harper  <jackson@ximian.com>
28296
28297         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
28298         this gives the behavoir I was looking for.
28299         * Control.cs: Special case Invoking EventHandlers, this matches MS
28300         and fixes part of bug #76326.
28301
28302 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
28303
28304         * ThemeClearlooks.cs, FileDialog.cs:
28305           - Reflect the latest Theme class changes
28306           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
28307             with DateTime
28308             
28309 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
28310
28311         * Theme.cs: Cache UI resource images and resize them if needed
28312
28313 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
28314
28315         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
28316           is called. This fixes the crash in Nexxia when setting the font
28317           attributes in the chat. [However, RTF needs a look-over to make sure
28318           that all SelectionXXX methods handle the special case that selection
28319           is empty and therefore the change must be applied to all text starting
28320           at the cursor/selection start]
28321
28322 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
28323
28324         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28325           XplatUIOSX.cs: Added SendMessage and PostMessage methods
28326         * X11Keyboard.cs: Switched to new way of calling PostMessage
28327
28328 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
28329
28330         * Theme.cs: Added theme interface for images to allow the theme to
28331           control what images are used for things like FileDialog, MessageBox
28332           icons, etc.
28333         * MessageBox.cs: Now uses the new Theme icon/image interfaces
28334
28335 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
28336
28337         * FileDialog.cs:
28338           - Removed some dead code
28339           - Opening a recently used file does work now
28340           - Small UI enhancements
28341           - Refactoring
28342
28343 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
28344
28345         * FileDialog.cs: Forgot too add __MonoCS__
28346
28347 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
28348
28349         * FileDialog.cs: We are able to read recently used files now let's
28350           go on and write them.
28351
28352 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
28353
28354         * FileDialog.cs: Breathe some life into "last open"/"recently used"
28355           button
28356         * MimeIcon.cs: Do a check for the top level media type also
28357
28358 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
28359
28360         * ThemeClearlooks.cs:
28361           - Added CPDrawStringDisabled
28362           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
28363             some chars if the text doesn't fit into text_rect
28364           - DrawListViewItem: If View = View.LargeIcon center the image;
28365             rewrote the drawing of ListViewItem.Text if View = 
28366             View.LargeIcon
28367
28368 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
28369
28370         * MimeIcon.cs: Use default KDE icon theme if there is no
28371           "48x48" directory for the current icon theme, fixes #77114
28372         * Mime.cs: Disable not working and actually not used code. 
28373         * ThemeWin32Classic.cs:
28374           - Replace "new SolidBrush" in GetControlBackBrush and
28375             GetControlForeBrush with ResPool.GetSolidBrush
28376           - Changed DrawListViewItem from private to protected virtual
28377         * FileDialog.cs:
28378           - Added form.MaximizeBox = true
28379           - Don't throw an exception if there is a broken symbolic link
28380
28381 2005-12-23  Jackson Harper  <jackson@ximian.com>
28382
28383         * TabControl.cs: Give the panels focus, keyboard navigation is
28384         fixed so this works correctly now.
28385         - We need these key events also.
28386         * ToolBar.cs: Remove some of the poor mans double buffering.
28387         
28388 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
28389
28390         * ComboBox.cs: The internal TextBox now returns the focus.
28391
28392 2005-12-23  Jackson Harper  <jackson@ximian.com>
28393
28394         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
28395
28396 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
28397
28398         * Control.cs: Removed debug code
28399         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
28400           implicit children
28401
28402 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
28403
28404         * Control.cs: When creating the control, update the Z-order after
28405           all it's children are created, too. (Fixes nexxia not showing
28406           picturebox bug)
28407
28408 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
28409
28410         * Control.cs: Do not update the anchoring distances if layout is
28411           suspended, instead do it once layout is resumed
28412
28413 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
28414
28415         * Control.cs: 
28416           - After many hours of debugging, for both Jackson and
28417             myself, it turns out that it helps to set the parent of a control
28418             if you want to actually see it onscreen. In the spirit of that
28419             discovery, we're now setting the parent of the control and
28420             it's children when the control's handle is created. This fix
28421             will make Lutz Roeder's Reflector run happily. 
28422           - now just creating the handle instead of the whole control when
28423             getting a graphics context for the control.
28424
28425 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
28426
28427         * ScrollableControl.cs: When calculating the canvas, don't consider
28428           the scrollbar widths. Instead, predict if horizontal scrollbar
28429           will affect canvas when deciding on vertical display and vice versa.
28430
28431 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
28432
28433         * RichTextBox.cs: Set default RTF font for documents that don't
28434           have a font table (Fixes #77076)
28435
28436 2005-12-22  Jackson Harper  <jackson@ximian.com>
28437
28438         * TextBoxBase.cs: It's difficult to do, but you can have an empty
28439         clipboard. This prevents a NullRef in that case.
28440         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
28441         clipboard. PRIMARY is for the currently selected text only. (We
28442         should implement PRIMARY at some point.
28443
28444 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
28445
28446         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
28447           a Unicode function with a structure that was defined in Ansi way.
28448           This fixes #76942.
28449
28450 2005-12-21  Jackson Harper  <jackson@ximian.com>
28451
28452         * StatusBar.cs: Statusbar handles its fore/back colours on it's
28453         on. Because thats how it rolls. (and this avoids it using ambient
28454         colours).
28455         * ThemeWin32Classic.cs: Use the proper back color for filling.
28456         * Menu.cs: Use the system menu bar color for drawing menu
28457         bars. Using the window back color will bring ambient colours into
28458         the picture.
28459
28460 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
28461
28462         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
28463           Bitmaps were created and not disposed.
28464
28465 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
28466
28467         * Control.cs (CreateControl): Don't do anything if the control is
28468           already created, otherwise we'd fire the OnCreated event more than
28469           once
28470
28471 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
28472
28473         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
28474           will always match. Instead return -1. Fixes #76464.
28475
28476 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
28477
28478         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
28479           neither the beginning nor the end of the line (Fixes bug #76479)
28480
28481 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
28482
28483         * Control.cs:
28484           - ControlNativeWindow.ControlFromHandle(): Now handling situation
28485             where handle is invalid
28486           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
28487             instead of slower linear search
28488         * NativeWindow.cs: Don't remove the window from the hashtable until
28489           after the driver has destroyed it (since the driver might use
28490           Control.FromHandle to lookup the control object
28491         * Hwnd.cs: Added DestroyPending property to track if a window is 
28492           already destroyed as far as the driver is concerned and only hasn't
28493           yet notified the control
28494         * XplatUIX11.cs:
28495           - Activate(): Check if the window is still valid before using the 
28496             handle
28497           - Implemented DestroyChildWindow() method to mark child windows as
28498             destroyed when a window is destroyed. This prevents situations 
28499             where we might call an X method based on queued events for a
28500             window that already has been destroyed but we haven't yet pulled
28501             the destroy method from the queue.
28502           - Added a call to the new DestroyChildWindow() method to the drivers
28503             DestroyWindow code. Also now marking the destroyed window itself
28504             as pending
28505
28506 2005-12-20  Jackson Harper  <jackson@ximian.com>
28507
28508         * StatusBar.cs:
28509         * StatusBarPanel.cs: Don't calculate panel sizes on draw
28510         anymore. Just do them when needed, also track the rects of panels
28511         so that we can optimize refreshing more in the future.
28512
28513 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
28514
28515         * ColorDialog.cs: Fixed focus drawing in small color controls
28516
28517 2005-12-19  Jackson Harper  <jackson@ximian.com>
28518
28519         * InternalWindowManager.cs:
28520         * MdiWindowManager.cs: Cleanup some coordinate system changes so
28521         moving windows works properly.
28522
28523 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
28524
28525         * Control.cs: 
28526           - Removed call to InitLayout() from SetBoundsCore(); doc says
28527             it's only called when a control is added to a container
28528           - Split InitLayout logic, moved to separate UpdateDistances() method
28529             since we need to perform those calculations more often than just
28530             when adding the control to a container. (Needed to fix #77022)
28531           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
28532           - Reduced the OnBindingContextChanged events count, don't send them
28533             unless the control is created, we still aren't totally matching
28534             MS, but I can't quite figure out some of their rules
28535
28536 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
28537
28538         * ThemeClearlooks.cs: Corrected distance between ProgressBar
28539           stripes
28540
28541 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
28542
28543         * ThemeClearlooks.cs:
28544           - Updated ProgressBar drawing
28545           - Corrected drawing of ScrollBars and scroll buttons
28546           - Some temporary fixes for minor pixel artefacts
28547
28548 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
28549
28550         * Control.cs:
28551           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
28552             cause events to be sent in the same order as MS does.
28553           - Added ChangeParent() method to trigger various OnXXXChanged events
28554             that need to be fired when a parent changes (This is a reworking
28555             of the patch from r54254, with the X11 errors fixed)
28556           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
28557             since on MS we get OnLayoutChanged events when calling Clear()
28558           - Changed Enabled property to consider parent state as well, if a
28559             parent is not enabled, the control will not be either
28560           - Changed Parent property to simply call Controls.Add() since that
28561             now does all the work required, this way we avoid code duplication
28562           - Threw in a few OnBindingsContextChanged calls to try and match
28563             when MS sends them. We seem to send a few too many, though.
28564           - Added call to CreateControl when adding the control to a parent.
28565             We were never calling CreateControl. Still needs some work, in
28566             some places we treat HandleCreated and ControlCreated as equal, 
28567             which is wrong
28568           - Removed obsolete commented out code from UpdateZOrder()
28569
28570 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
28571
28572         * ThemeClearlooks.cs: Updated TrackBar drawing.
28573
28574 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
28575
28576         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
28577
28578 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
28579
28580         * FileDialog.cs: Add the Help button and the open readonly
28581           checkbox only if needed
28582
28583 2005-12-16  Jackson Harper  <jackson@ximian.com>
28584
28585         * Control.cs: Make sure we have an active menu before trying to
28586         process commands on it. Prevents menu-less forms from crashing
28587         when Alt is pressed.
28588         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
28589         Dieter Bremes.
28590         * RichTextBox.cs: Expand statement to help out gmcs and fix the
28591         2.0 build.
28592
28593 2005-12-16  Jackson Harper  <jackson@ximian.com>
28594
28595         * InternalWindowManager.cs: Don't translate tool windows screen
28596         coordinates. This fixes windows 'bouncing' around when being moved.
28597
28598 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
28599
28600         * TextBoxBase.cs:
28601           - MaxLength now treats 2^31-1 equal to unlimited length (this is
28602             not quite MS compatible, MS uses that number only for single line
28603             and 2^32-1 for multi-line, but I figure it won't hurt keeping
28604             the limit at 2GB)
28605           - Now enforcing the MaxLength limit when entering characters
28606           - Added argument to internal Paste() method to track if it's called
28607             from programatically or via keyboard, since keyboard driven pastes
28608             need to enforce max-length
28609           - Added logic to Paste to only paste as many chars as MaxLength 
28610             allows
28611         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
28612         * TextControl.cs:
28613           - Added Length property to return number of characters in document
28614           - Added private CharCount property which only tracks actual chars
28615             in the document (no linefeeds) and fires event when CharCount
28616             changes
28617           - Added tracking of character count to all methods that alter it
28618           - Added LengthChanged event to allow applications to subscribe
28619             to any changes to the document
28620
28621 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
28622
28623         * TextBox.cs: 
28624           - Removed local password_char field (moved to TextBoxBase)
28625           - Now setting the document's password var when password is
28626             set
28627         * TextBoxBase.cs:
28628           - Added password_char field (needed here so MultiLine can
28629             access it)
28630           - Added logic to MultiLine property setter to set the document's
28631             variable when password display is allowed
28632           - Removed debug code and made some debug code conditional
28633         * TextControl.cs:
28634           - Added RecalculatePasswordLine() method to handle special password
28635             char only lines
28636           - Added PasswordChar property, also added related tracking vars
28637           - Draw() method now uses local text var for grabbing text to draw,
28638             this var is set to line.text unless we're doing password display,
28639             then it is set to the pre-generated all-password-chars line
28640           - Added calling RecalculatePasswordLine() method for password lines
28641
28642 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
28643
28644         * Hwnd.cs: 
28645           - Added Reparented property to allow tracking of Window Manager
28646             reparenting actions (which affect X/Y calculations of toplevel 
28647             windows)
28648           - Made ToString() print window handles in hex
28649         * XplatUIX11.cs:
28650           - AddConfigureNotify(): Now uses reparented state off Hwnd to
28651             determine if X/Y needs offsetting
28652           - AddConfigureNotify(): Fixed offset calculations
28653           - Now adds ReparentNotify messages into the queue
28654           - Now processes ReparentNotify messages and causes a 
28655             WM_WINDOWPOSCHANGED message to be sent upstream if a window
28656             is reparented (as most likely it's X/Y coordinates are changed
28657             due to that)
28658
28659 2005-12-14  Jackson Harper  <jackson@ximian.com>
28660
28661         * XplatUIX11.cs: Tool windows still need to respek focus.
28662
28663 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
28664
28665         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
28666           have a working release
28667
28668 2005-12-13  Jackson Harper  <jackson@ximian.com>
28669
28670         * Form.cs: Update styles after setting the border style regardless
28671         of whether or not the window is using a window manager.
28672
28673 2005-12-13  Jackson Harper  <jackson@ximian.com>
28674
28675         * Form.cs: We now hook into an internal window manager instead of just an
28676         MDI subsystem, this is so we can have properly behaving tool windows.
28677         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
28678         * InternalWindowManager.cs: New internal class that acts as a
28679         window manager for tool windows and as a base for mdi windows.
28680         * MdiWindowManager.cs: New class that acts as a window manager for
28681         mdi windows.
28682
28683 2005-12-12  Jackson Harper  <jackson@ximian.com>
28684
28685         * Control.cs: Updates so we match behavoir for for implicit
28686         controls. Fixes explosions in MDI.
28687
28688 2005-12-12  Jackson Harper  <jackson@ximian.com>
28689
28690         * Control.cs: Implement Invalidate (Region).
28691
28692 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
28693
28694         * Control.cs: 
28695           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
28696             the same events as MS does. MS fires events for each property 
28697             except, for unknown reasons, Cursor, when the control is reparented. 
28698             I can't seem to totally match add/remove since MS also fires some 
28699             VisibleChanged events, which makes no sense. Consolidated the
28700             parenting code into a separate method so it can be called from
28701             both Add and Remove. set_Parent no longer needs any special logic
28702             as it calls the parent's add method which implicitly fires
28703             all events
28704           - Removed some obsolete code and debug output
28705           - Enabled state is inherited from parents, if this is enabled
28706
28707 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
28708
28709         * Form.cs: Removed commented out code
28710
28711 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
28712
28713         * Control.cs:
28714           - Added internal version of Invoke, with additional argument 
28715             indicating if we're calling it from a Dispose() handler. That
28716             way we can avoid BeginInvoke throwing an exception if we're
28717             calling for an already destroyed window.
28718           - Added a dispose argument to BeginInvokeInternal, and made the
28719             check if a valid window handle chain exists conditional on
28720             it not being a dispose call
28721           - Removed code in DestroyHandle to destroy our children. Since we
28722             now handle the WM_DESTROY message we will catch all our children
28723             being destroyed.
28724           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
28725         * Form.cs:
28726           - Added a field to track the application context of the form.
28727           - No need to set closing variable as response to WM_CLOSE, instead
28728             we destroy the window. We also call PostQuitMessage if the form
28729             has an application context (which makes it the main app form,
28730             which, when closed terminates the app)
28731         * XplatUI.cs:
28732           - Dropped Exit() method, it's naming was confusing
28733           - Added PostQuitMessage() which causes GetMessage to return false
28734             once the message queue is empty
28735         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
28736           PostQuitMessage()
28737         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
28738           no longer a valid XplatUI method, but left it in since it's used
28739           internally. Added empty PostQuitMessage() method.
28740         * MenuAPI.cs: Replaced call to Exit() with call to
28741           PostQuitMessage, even though this is probably no longer needed.
28742         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
28743         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
28744         * Application.cs:
28745           - Replaced call to XplatUI.Exit() with PostQuitMessage()
28746           - Removed old debug code that would call XplatUI for exception
28747             display, enabled standard exception handling (Still not enabled
28748             though, until NativeWindow's ExternalExceptionHandler define
28749             is removed
28750         * NativeWindow.cs:
28751           - Added internal method to allow control to update NativeWindow
28752             after a window has been destroyed
28753           - Added handling of already destroyed windows when calling i
28754             DestroyWindow
28755           - Added removal of handle from list on ReleaseHandle
28756         * XplatUIX11.cs:
28757           - Dropped GetMessageResult var and related code
28758           - Added PostQuitState to field to track if PostQuitMessage has been
28759             called
28760           - Dropped Exit() method
28761           - Added PostQuitMessage() method
28762           - GetMessage now will return false if PostQuitState is set and no
28763             more messages are in the queue.
28764           - Expose handler will no longer generate WM_PAINT messages if we are
28765             in PostQuitState since it's very likely any windows have already
28766             been destroyed, and since Hwnd won't get updated until we have
28767             processed the DestroyNotify we'd be causing X errors.
28768         
28769 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
28770
28771         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
28772           Thanks to Mike for pointing out the err of my ways.
28773
28774 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
28775
28776         * Control.cs(PreProcessMessage): Moved menu handling back, but
28777           after all other key handling, to match MS (who handles Menu in
28778           DefWndProc)
28779         * Menu.cs (WndProc): Removed my brainfart
28780
28781 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
28782
28783         * Control.cs(PreProcessMessage): Removed special menu handling 
28784         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
28785
28786 2005-12-07  Mike Kestner  <mkestner@novell.com>
28787
28788         * Control.cs : special case SYSKEYUP so that we can adjust keynav
28789         state according in tracker.
28790         * Menu.cs : promote tracker field to base class and provide a tracker
28791         lookup capability.  Add/Remove shortcuts dynamically if the top menu
28792         has a tracker. Unparent items that are removed from the collection.
28793         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
28794         * Theme*.cs: add always_show_hotkeys field to support configurability
28795         of mnemonic display.  win32 doesn't show mnemonics until Alt is
28796         pressed.
28797
28798 2005-12-07  Jackson Harper  <jackson@ximian.com>
28799
28800         * MdiChildContext.cs: Use Control.ResetCursor.
28801         * Control.cs: ResetCursor needs to set the property so that the
28802         correct XplatUI call gets made.
28803
28804 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
28805
28806         * Control.cs: More fixes to make our key events match MS. We
28807           were not setting the modifier state on KeyData, and we were
28808           not generating any events when Alt was pressed with a key
28809           since handling of WM_SYSxxx was missing for the OnKey methods.
28810
28811 2005-12-07  Jackson Harper  <jackson@ximian.com>
28812
28813         * MdiChildContext.cs: reenable the sizing code.
28814         - When the mouse leaves a window reset its cursor.
28815
28816 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
28817
28818         * ThemeClearlooks.cs: Reflect latest Hwnd changes
28819
28820 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
28821
28822         * Hwnd.cs: Now using the theme 3d bordersize to calculate
28823           widths of Fixed3D borders
28824
28825 2005-12-07  Jackson Harper  <jackson@ximian.com>
28826
28827         * MdiClient.cs: Fix warnings. Earn Mike's love.
28828
28829 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
28830
28831         * ThemeClearlooks.cs:
28832           - Adjusted mouse over button color
28833           - Added first parts of CheckBox drawing
28834           - Added correct color for selected text background
28835           - Fixed ComboBox drawing
28836           - Added CPDrawBorder3D and CPDrawBorder
28837
28838 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
28839
28840         * XplatUIX11.cs: Added call to XBell for AudibleAlert
28841
28842 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
28843
28844         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28845           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
28846           alert users via sound. We could add an enum arg with different
28847           types of alerts in the future
28848
28849 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
28850
28851         * Control.cs: Fix behaviour problems pointed out by Mike
28852
28853 2005-12-05  Mike Kestner  <mkestner@novell.com>
28854
28855         * StatusBarPanel.cs: add Invalidate method and hook it into all the
28856         prop setters.  Calls parent.Refresh for now, but could be maybe be
28857         optimized with an internal method on StatusBar at some point.
28858         [Fixes #76513]
28859
28860 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
28861
28862         * RichTextBox.cs: Implemented get_SelectionColor
28863
28864 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
28865
28866         * ThemeClearlooks.cs:
28867           - Removed dead code
28868           - Draw black button border only if button is Form.AcceptButton
28869           - Draw correct button color for pressed RadioButton if the mouse 
28870             has entered the button
28871           - Updated ProgressBar drawing!
28872           - Updated CPDrawSizeGrip drawing
28873           - Updated StatusBarPanel drawing
28874
28875 2005-12-05  Mike Kestner  <mkestner@novell.com>
28876
28877         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
28878         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
28879
28880 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
28881
28882         * ThemeClearlooks.cs: Initial check-in, activate with
28883           export MONO_THEME=clearlooks
28884         * ThemeEngine.cs: Added ThemeClearlooks
28885
28886 2005-12-03  Mike Kestner  <mkestner@novell.com>
28887
28888         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
28889         [Fixes #76897]
28890
28891 2005-12-02  Jackson Harper  <jackson@ximian.com>
28892
28893         * Form.cs: If the child form has no menu the default main menu is
28894         used as the active menu.
28895
28896 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
28897
28898         * ListBox.cs: Check if any items exist before trying to resolve 
28899           coordinates into items
28900
28901 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
28902
28903         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
28904           as the second color for the background hatch
28905
28906 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
28907
28908         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
28909         * RichTextBox.cs: FormatText position arguments are 1-based, now making
28910           sure that what we pass to FormatText is always 1-based. Fixes #76885
28911
28912 2005-11-29  Miguel de Icaza  <miguel@novell.com>
28913
28914         * NumericUpDown.cs (EndInit): When we are done initializing,
28915         reflect any updates on the UI.
28916
28917 2005-12-02  Jackson Harper  <jackson@ximian.com>
28918
28919         * ImplicitHScrollBar.cs:
28920         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
28921         their container controls.
28922         * TreeView.cs: Use the new implicit scrollbars.
28923
28924 2005-12-02  Jackson Harper  <jackson@ximian.com>
28925
28926         * TreeView.cs: Make top_node internal so the TreeNodeCollections
28927         can play with it.
28928         * TreeNodeCollection.cs: If we remove the topnode we need to
28929         update topnode to the next node in line.
28930         - When clearing nodes go through the same process as removing
28931         them, so they get depareneted and checked if they are top node.
28932
28933 2005-12-01  Jackson Harper  <jackson@ximian.com>
28934
28935         * TreeView.cs: When imagelists are used the image area is
28936         selectable as well as the text.
28937         - If there are no selected nodes select the first one.
28938         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
28939         so don't do it more then we need to.
28940
28941 2005-12-01  Jackson Harper  <jackson@ximian.com>
28942
28943         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
28944         that arrows can be scaled.
28945
28946 2005-12-01  Jackson Harper  <jackson@ximian.com>
28947
28948         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
28949         fail. Patch by Dieter Bremes
28950
28951 2005-11-30  Jackson Harper  <jackson@ximian.com>
28952
28953         * Form.cs: Property is 2.0 only
28954         * PrintDialog.cs: Signature fix.
28955
28956 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
28957
28958         * TextControl.cs: 
28959           - No longer artificially moves text 2 pixels down (now that we have
28960             borders this is no longer needed)
28961           - Added calcs for left, hanging and right indent
28962
28963 2005-11-23  Mike Kestner  <mkestner@novell.com>
28964
28965         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
28966
28967 2005-11-30  Jackson Harper  <jackson@ximian.com>
28968
28969         * MdiChildContext.cs: Set the cloned menus forms, as these don't
28970         get cloned as part of CloneMenu ().
28971         * Menu.cs: Make sure the parent of the items get set correctly
28972         when they are added.  And the owners are notified of the changes.
28973         * Form.cs: Create an ActiveMenu property, so that when MDI is used
28974         we can change the menu being displayed/handled by the form without
28975         changing the menu assosciated with the form.
28976         - Don't let Mdi children draw/handle menus.
28977         
28978 2005-11-30  Jackson Harper  <jackson@ximian.com>
28979
28980         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
28981         a MenuChanged event. Just to make the API a little more
28982         consistent.
28983         * MainMenu.cs:
28984         * MenuItem.cs: Use the new OnMenuChanged
28985         * MdiChildContext.cs: Handle menu merging.
28986         * Form.cs: Implement MergedMenu.
28987         
28988 2005-11-30  Jackson Harper  <jackson@ximian.com>
28989
28990         * Menu.cs: We were misusing Add. Add goes behind the specified
28991         index according to the docs, and does not replace the specified
28992         index. So I added an Insert method.
28993
28994 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
28995
28996         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
28997           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
28998           is for Jackson
28999         * RichTextBox.cs: Added calls to base for DnD events
29000
29001 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
29002
29003         * TextControl.cs:
29004           - Fixed drag-selection related crash; style fixes
29005           - Implemented undo class
29006             o Implemented method to capture document state for specified
29007               range in document tree
29008             o Implemented method to restore captured document state
29009             o Implemented cursor tracking
29010             o Implemented basic undo stack
29011           - Added undo cursor tracking to methods altering cursor location
29012           - Added undo tracking to selection deletion (still missing
29013             other text-altering hookups)
29014         * RichTextBox.cs:
29015           - Added SelectionLength property
29016           - Implemented CanPaste()
29017           - Implemented Paste()
29018           - Added missing protected methods
29019           - Fixed RTF->Document conversion; now uses font index 0 and color 
29020             index 0 as the default font for the parsed text
29021           - Fixed RTF<->Document font size translation
29022           - Fixed RTF generation, now properly handles cross-tag boundaries
29023             for single line selection
29024           - No longer always appends blank line to generated RTF
29025           - Removed TODOs
29026           - Added missing attributes
29027           - Hooked up undo-related methods
29028         * TextBoxBase.cs:
29029           - Implemented Copy()
29030           - Implemented Paste()
29031           - Implemented Cut()
29032           - Fixed caret mis-behaviour on backspace across line-boundaries
29033
29034 2005-11-29  Jackson Harper  <jackson@ximian.com>
29035
29036         * MdiClient.cs: Add a method for activating mdi children. Very
29037         basic right now. I imagine someday it might need more girth.
29038         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
29039         children windows names are added to the menu item.
29040         * ThemeWin32Classic.cs: Draw the arrow if the item is an
29041         mdilist. This happens regardless of whether or not there are any
29042         mdi windows to see in the list, and according to my tests happens
29043         before the items are even added. Also happens if there isn't even
29044         an mdi client to get windows from.
29045
29046 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
29047
29048         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
29049         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
29050
29051 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
29052
29053         * DataGridTableStyle.cs:
29054           - Create always the styles for the missing columns even if they are
29055             provided by the user (not default table style)
29056         * DataGrid.cs:
29057           - Fixes bug 76770
29058           - Fixes SetDataBinding (always re-attach source)
29059           - Fixes SetNewDataSource (only clear styles if they are not for 
29060             this source)
29061          -  Expands OnTableStylesCollectionChanged to handle style refresh 
29062             and remove properly
29063
29064 2005-11-29  Jackson Harper  <jackson@ximian.com>
29065
29066         * FileDialog.cs: Implement missing bits, remove some dead
29067         code.
29068         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
29069         creation of the panel so that the options set on the dialog are
29070         seen when the panel is created.
29071         * TreeView.cs: raise a click when items are clicked.
29072         
29073 2005-11-29  Jackson Harper  <jackson@ximian.com>
29074
29075         * MdiClient.cs: Pass some signature methods through to base.
29076
29077 2005-11-28  Jackson Harper  <jackson@ximian.com>
29078
29079         * ListView.cs: Raise the click event when items are clicked.
29080
29081 2005-11-28  Jackson Harper  <jackson@ximian.com>
29082
29083         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
29084         a nullref.
29085
29086 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
29087
29088         * ThemeNice.cs: - Removed 1 pixel bitmaps
29089           - Use SmoothingMode.AntiAlias where it makes sense
29090             (ScrollButton arrow for example)
29091           - Enhanced Button focus drawing
29092           - Fixed ComboBox drawing (no artefacts anymore, focus
29093             rectangle is back again, reduced size of ComboButton, etc.)
29094           - Fixed RadioButton focus drawing for Appearence.Button
29095           - Slight ScrollButton redesign
29096           - Some LinearGradientBrush size fixes
29097           - GroupBoxes have now rounded edges
29098           - Fixed StatusBar drawing
29099
29100 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
29101
29102         * ThemeNice.cs: - Remove dead code
29103           - use correct background colors for menus, etc.
29104           - Fake pixel drawing with 1 pixel bitmaps
29105
29106 2005-11-24  Jackson Harper  <jackson@ximian.com>
29107
29108         * MdiClient.cs: Size the scrollbars when resizing the window.
29109         - Resize the maximized windows when the client is resized
29110         * Form.cs: Make the child context available
29111         
29112 2005-11-23  Jackson Harper  <jackson@ximian.com>
29113
29114         * MdiChildContext.cs: Don't size windows if they are maximized.
29115
29116 2005-11-23  Mike Kestner  <mkestner@novell.com>
29117
29118         * ContextMenu.cs: use MenuTracker.
29119         * Control.cs: remove menu handle usage.
29120         * Form.cs: remove menu handle usage.
29121         * Hwnd.cs: remove menu handle usage.
29122         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
29123         motion and clicks to the new Tracker handlers.
29124         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
29125         and handle usage.
29126         * MenuAPI.cs: refactored to combine popup and menubar event handling.
29127         Killed the MENU and MENUITEM data types and associated collections
29128         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
29129         MenuTracker class that exposes the leftovers from the old MenuAPI
29130         static methods. Restructured Capture handling so that only one grab is
29131         done for the entire menu hierarchy instead of handing off grabs to
29132         submenus. Tracker now has an invisible control to Capture when active.
29133         * MenuItem.cs: add sizing accessors, kill Create
29134         and handle usage.
29135         * Theme.cs: remove menu handle and MENU(ITEM) usage.
29136         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
29137         MENU(ITEM). remove menu handle usage, use Menu directly.
29138         * XplatUIDriver.cs: remove menu handle usage.
29139         * XplatUIOSX.cs: remove menu handle usage.
29140         * XplatUIWin32.cs: remove menu handle usage.
29141         * XplatUIX11.cs: remove menu handle usage.
29142
29143 2005-11-22  Jackson Harper  <jackson@ximian.com>
29144
29145         * Hwnd.cs: Don't compute the menu size for
29146         DefaultClientRectangle.
29147         - Reenable menu sizes being computed for GetClienRectangle.
29148         * Form.cs: Remove comment of trechery
29149         
29150 2005-11-22  Jackson Harper  <jackson@ximian.com>
29151
29152         * Hwnd.cs: The adjustments for the menu bar are made when it is
29153         attached to the form.
29154
29155 2005-11-19  Jackson Harper  <jackson@ximian.com>
29156
29157         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
29158         (just like on windows).
29159
29160 2005-11-19  Jackson Harper  <jackson@ximian.com>
29161
29162         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
29163         use real buttons anymore because they are in non client area. The
29164         one TODO here is that I need to somehow invalidate a section of
29165         the non client area.
29166
29167 2005-11-18  Jackson Harper  <jackson@ximian.com>
29168
29169         * Control.cs: Put the enum check back in now that MDI doesnt have
29170         to use this to set border styles.
29171         * Form.cs: Only set mdi child windows borders if the handle has
29172         been created.
29173         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
29174         this directly on to the driver.
29175         - Get the move start position before adjusting for the titlebar
29176         height, this fixes the windows "skipping" when they are first
29177         moved.
29178
29179 2005-11-18  Jackson Harper  <jackson@ximian.com>
29180
29181         * XplatUIX11.cs: Just compute the mdi borders separately as they
29182         don't totally match up with normal form borders.
29183
29184 2005-11-18  Jackson Harper  <jackson@ximian.com>
29185
29186         * Control.cs: Set WS_ styles for borders, so that the driver does
29187         not have to retrieve the control instance to figure out what kind
29188         of borders it should have.
29189         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
29190         driver can know its an mdi child easily.
29191         * XplatUIX11.cs: Get the border styles and whether the window is
29192         MDI from the Styles and ExStyles params instead of having to get a
29193         control. This prevents a chicken and egg problem.       
29194
29195 2005-11-18  Jackson Harper  <jackson@ximian.com>
29196
29197         * MdiClient.cs: Fix typo so scrollbars show up correctly.
29198
29199 2005-11-18  Jackson Harper  <jackson@ximian.com>
29200
29201         * MdiClient.cs: Calculate when to add and remove scrollbars
29202         correctly.
29203         * MdiChildContext.cs: Adjust the y position to take the titlebar
29204         into account.
29205         - No height for FormBorderStyle.None
29206
29207 2005-11-18  Jackson Harper  <jackson@ximian.com>
29208
29209         * Control.cs: Allow non enum values to be used for
29210         InternalBorderStyle.  MDI does this to set a special border style.
29211         - New utility methods for converting points to/from client coords
29212         - Add the newly created control to the Controls collection before
29213         updating its style. This way UpdateStyle can walk the control
29214         heirarchy to find the control if needed.
29215         so I don't need to create a new Point object all the time.
29216         * Form.cs: Let MDI windows handle their border styles.
29217         - Set styles on MDI windows so the correct title style is derived.
29218         * MdiChildContext.cs: Move all the painting and window handling
29219         into the non client area.
29220         - Use correct sizing and put correct buttons on frames based on
29221         the FormBorderStyle.
29222         - Notify the mdi client about scrolling
29223         - Need to handle the buttons ourselves now, because they are all
29224         in non client areas and we can't add controls there.
29225         * MdiClient.cs: Halfway to scrolling, this implementation is
29226         somewhat broken though, we need to check to make sure other
29227         windows aren't causing scrolling before removing the bars. Also
29228         the bars need to be drawn on top, maybe I can switch implicit
29229         controls to be on top.
29230         * Hwnd.cs: caption_height and tool_caption_height are now
29231         properties of an hwnd, this way they can be set by the driver
29232         based on the type of window they are.  In X11 the window manager
29233         handles the decorations so caption_height is zero unless its an
29234         MDI window.
29235         - Add 3 pixel borders for MDI windows (0xFFFF).
29236         - Get rid of some code duplication, have DefaultClientRectanle
29237         just call GetClientRectangle.
29238         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
29239         Hwnd now.
29240         - Set border styles differently for mdi windows.
29241         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
29242         Hwnd now.
29243         
29244 2005-11-15  Mike Kestner  <mkestner@novell.com>
29245
29246         * Menu.cs: when adding an item to the collection, if item is already 
29247         parented, remove it from the parent.
29248
29249 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
29250
29251         * X11DesktopColors.cs: Added KDE support
29252
29253 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
29254
29255         * XplatUIWin32.cs: 
29256           - Clipboard methods now can translate Rtf format
29257           - No longer removes clipboard contents whenever a new format is added
29258             to allow placing multiple formats on the clipboard
29259         * Clipboard.cs: Clipboard now supports getting a IDataObject and
29260           will place all formats contained in it onto the clipboard. Also
29261           now cleans the clipboard before placing a new object onto it
29262         * RichTextBox.cs:
29263           - Implemented set_Rtf
29264           - Implemented set_SelectedRtf
29265           - Created InsertRTFFromStream() method to allow single code base
29266             for all properties and methods that insert RTF into document
29267           - Removed debug output
29268         * TextControl.cs:
29269           - Fixed Delete(int) to fix up line numbers
29270           - Fixed ReplaceSelection to combine start and end line
29271           - Fixed serious DeleteChars bug that would leave the document tree
29272             broken
29273           - Improved DumpTree with several logic checks to detect broken
29274             document trees
29275           - Removed debug lines
29276           - Fixed Caret.WordForward/WordBack moving code, now always also 
29277             updates caret.tag (fixes crash when word-selecting across tag
29278             boundaries via keyboard)
29279           - Added Insert() method for inserting multiline text into documents
29280           - Fixed DeleteChars() calculation errors that would cause a broken
29281             tag chain with multiple tag lines
29282           - DeleteChars() no longer crashes on multi-tag lines if not all tags
29283           - Split() no longer moves caret if split is at caret location
29284           - ReplaceSelection() now updates the cursor and re-displays it
29285           - ReplaceSelection() now uses new Insert() method to avoid code
29286             duplication
29287           - FormatText() can now handle formatting partial lines
29288         * TextBoxBase.cs:
29289           - Append now uses new TextControl.Insert() method (this avoids 
29290             duplicate code)
29291           - Implemented Ctrl-X (Cut) (
29292           - Implemented Ctrl-C (Copy)
29293           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
29294             regeneration when pasting text; roundtripping Copy&Paste within
29295             edit control still fails due to some calculation bugs in GenerateRTF)
29296           - The Delete key will now remove the current selection if it is visible
29297         * TextBox.cs: Removed debug lines
29298         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
29299           driver to be initialized and can't therefore be done via a static ctor)
29300
29301 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
29302
29303         * TextControl.cs: Added backend code for finding char arrays and strings
29304         * TextBoxBase.cs:
29305           - Added mouse wheel scroll support
29306           - Added support for VScroll and HScroll events
29307         * RichTextBox.cs:
29308           - Implemented all seven Find() variants
29309           - Implemented GetCharFromPosition()
29310           - Implemented GetCharIndexFromPosition()
29311           - Implemented GetLineFromIndex()
29312           - Implemented GetPositionFromCharIndex();
29313           - Implemented SaveFile for PlainText and UnicodeText
29314           - Fixed set_Font, now setting a new font applies that font to
29315             the whole document
29316           - Implemented generic Document to RTF converter
29317           - Implemented SaveFile for RichText format (still missing unicode
29318             conversion for non-ansi chars)
29319           - Implemented get_Rtf
29320           - Implemented get_SelectedRtf
29321
29322 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
29323
29324         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
29325           to allow any captures to be released before triggering OnClick. This
29326           way a click handler may capture the mouse without interference.
29327         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
29328           This way we send them even though X may not allow a grab (if the window
29329           isn't visible, for example)
29330
29331 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
29332
29333         * DataGridViewRowEventArgs.cs: DataGridView implementation
29334         * DataGridViewElement.cs: DataGridView implementation
29335         * DataGridViewComboBoxCell.cs: DataGridView implementation
29336         * DataGridViewDataErrorContexts.cs: DataGridView implementation
29337         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
29338         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
29339         * ImageLayout.cs: DataGridView implementation
29340         * DataGridViewComboBoxColumn.cs: DataGridView implementation
29341         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
29342         * DataGridViewSelectionMode.cs: DataGridView implementation
29343         * IDataGridViewEditingControl.cs: DataGridView implementation
29344         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
29345         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
29346         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
29347         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
29348         * DataGridViewColumnSortMode.cs: DataGridView implementation
29349         * DataGridView.cs: DataGridView implementation
29350         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
29351         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
29352         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
29353         * Padding.cs: DataGridView implementation
29354         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
29355         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
29356         * DataGridViewRowEventHandler.cs: DataGridView implementation
29357         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
29358         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
29359         * DataGridViewButtonCell.cs: DataGridView implementation
29360         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
29361         * DataGridViewEditMode.cs: DataGridView implementation
29362         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
29363         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
29364         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
29365         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
29366         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
29367         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
29368         * DataGridViewCellEventHandler.cs: DataGridView implementation
29369         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
29370         * DataGridViewCellStyleConverter.cs: DataGridView implementation
29371         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
29372         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
29373         * DataGridViewColumnEventArgs.cs: DataGridView implementation
29374         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
29375         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
29376         * QuestionEventArgs.cs: DataGridView implementation
29377         * IDataGridViewEditingCell.cs: DataGridView implementation
29378         * DataGridViewTriState.cs: DataGridView implementation
29379         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
29380         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
29381         * DataGridViewColumnCollection.cs: DataGridView implementation
29382         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
29383         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
29384         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
29385         * DataGridViewColumn.cs: DataGridView implementation
29386         * DataGridViewCellBorderStyle.cs: DataGridView implementation
29387         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
29388         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
29389         * DataGridViewRow.cs: DataGridView implementation
29390         * DataGridViewImageCellLayout.cs: DataGridView implementation
29391         * DataGridViewImageCell.cs: DataGridView implementation
29392         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
29393         * DataGridViewCheckBoxCell.cs: DataGridView implementation
29394         * DataGridViewHeaderCell.cs: DataGridView implementation
29395         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
29396         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
29397         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
29398         * DataGridViewTextBoxColumn.cs: DataGridView implementation
29399         * QuestionEventHandler.cs: DataGridView implementation
29400         * DataGridViewCellStyleScopes.cs: DataGridView implementation
29401         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
29402         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
29403         * DataGridViewCell.cs: DataGridView implementation
29404         * DataGridViewCellEventArgs.cs: DataGridView implementation
29405         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
29406         * DataGridViewCellStyle.cs: DataGridView implementation
29407         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
29408         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
29409         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
29410         * TextFormatFlags.cs: DataGridView implementation
29411         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
29412         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
29413         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
29414         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
29415         * DataGridViewButtonColumn.cs: DataGridView implementation
29416         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
29417         * HandledMouseEventArgs.cs: DataGridView implementation
29418         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
29419         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
29420         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
29421         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
29422         * DataGridViewRowCollection.cs: DataGridView implementation
29423         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
29424         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
29425         * DataGridViewHitTestType.cs: DataGridView implementation
29426         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
29427         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
29428         * DataGridViewColumnEventHandler.cs: DataGridView implementation
29429         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
29430         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
29431         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
29432         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
29433         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
29434         * DataGridViewContentAlignment.cs: DataGridView implementation
29435         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
29436         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
29437         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
29438         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
29439         * DataGridViewPaintParts.cs: DataGridView implementation
29440         * DataGridViewCellCollection.cs: DataGridView implementation
29441         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
29442         * DataGridViewImageColumn.cs: DataGridView implementation
29443         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
29444         * DataGridViewElementStates.cs: DataGridView implementation
29445         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
29446         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
29447         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
29448         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
29449         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
29450         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
29451         * DataGridViewRowHeaderCell.cs: DataGridView implementation
29452         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
29453         * DataGridViewTextBoxCell.cs: DataGridView implementation
29454         * DataGridViewBand.cs: DataGridView implementation
29455         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
29456         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
29457         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
29458         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
29459         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
29460         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
29461         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
29462         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
29463         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
29464         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
29465         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
29466
29467 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
29468
29469         * ThemeWin32Classic.cs: 
29470           - Draw the outside focus rectangle around buttons
29471           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
29472             doesn't use end caps for every dash of a line anymore. This
29473             workaround ignores the forecolor.
29474
29475 2005-11-08  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
29476
29477         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
29478           endian safe.
29479
29480 2005-11-07  Jackson Harper  <jackson@ximian.com>
29481
29482         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
29483
29484 2005-11-07  Jackson Harper  <jackson@ximian.com>
29485
29486         * ScrollableControl.cs: Calculate the maximum and change vars
29487         (more) correctly so that scrollbars appear as a sensible size.
29488
29489 2005-11-04  Jackson Harper  <jackson@ximian.com>
29490
29491         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
29492         collection.
29493         * TreeView.cs: When the tree is sorted null out the top_node so
29494         that it is recalculated.
29495         - Use dotted lines instead of dashed lines to match MS better.
29496
29497 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
29498
29499         * ListView.cs: 
29500           - Implements key search for items. Useful when browsing files with FileDialog
29501           - When changing view mode or when clear the items reset scrollbar positions
29502
29503 2005-11-04  Jackson Harper  <jackson@ximian.com>
29504
29505         * CurrencyManager.cs: Implement the MetaDataChanged event, the
29506         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
29507         as to what the method may do as there is no real way of creating a
29508         derived CurrencyManager and calling the method. 
29509
29510 2005-11-03  Jackson Harper  <jackson@ximian.com>
29511
29512         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
29513         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
29514         method which seems to just be used internally to refresh the tabs.
29515
29516 2005-11-03  Jackson Harper  <jackson@ximian.com>
29517
29518         * TabControl.cs: Implement the remove method. Fix some broken
29519         comments.
29520
29521 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
29522
29523         * DateTimePicker.cs:
29524           - Added missing DateTimePickerAccessibleObject class
29525           - Added missing events
29526           - Added OnFontChanged method
29527         * Form.cs: Added missing attributes
29528         * TreeView.cs: Added missing attributes
29529
29530 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
29531
29532         * GridItemCollection.cs: Fix signatures
29533
29534 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
29535
29536         * XplatUI.cs: Updated build rev/date
29537         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
29538           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
29539         * Application.cs: Trigger context-specific ExitThread events
29540
29541 2005-11-03  Jackson Harper  <jackson@ximian.com>
29542
29543         * Menu.cs:
29544         * MainMenu.cs:
29545         * GridTableStylesCollection.cs:
29546         * Timer.cs:
29547         * TabPage.cs:
29548         * HelpProvider.cs:
29549         * StatusBar.cs:
29550         * MonthCalendar.cs: Signature fixes
29551
29552 2005-11-03  Jackson Harper  <jackson@ximian.com>
29553
29554         * TreeNodeCollection.cs: Remove should not be virtual.
29555         * TreeView.cs: Implement the last of the missing methods.
29556
29557 2005-11-03  Jackson Harper  <jackson@ximian.com>
29558
29559         * TreeNodeConverter.cs: Implement to get off my class-status back.
29560
29561 2005-11-03  Jackson Harper  <jackson@ximian.com>
29562
29563         * TreeView.cs: Hookup the bits for drag and drop.
29564         * TreeNode.cs: Don't cache the tree_view or index anymore, now
29565         that nodes can be moved from tree to tree easily this just causes
29566         all sorts of problems.
29567         * TreeNodeCollection: Don't need to give treenodes an index and
29568         treeview anymore when they are added, these are computed on the
29569         fly. Also make sure to remove a node before its added.
29570
29571 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
29572
29573         * TextControl.cs:
29574           - Added CaretSelection enum
29575           - Added comparison methods to Marker struct, makes selection code
29576             more readable
29577           - Added SelectionStart and SelectionEnd as 'moveable' location for
29578             the CaretDirection enum and handler
29579           - Added selection_prev variable to track optimized invalidation for
29580             word and line selection
29581           - Added SelectionVisible property (returns true if there is a valid 
29582             selection)
29583           - Switched CaretHasFocus to only display the caret if there is no
29584             visible selection
29585           - Avoiding StringBuilder.ToString to retrieve a single char, instead
29586             using the direct character index; should be much faster
29587           - Added various conditional debug statements
29588           - Fixed invalidation calculation for selection ranges
29589           - Added ExpandSelection() method to support word and line selection
29590           - Switched SetSelectionToCaret to use new Marker compare overloads
29591           - Added central IsWordSeparator() method to determine word 
29592             separators/whitespace and FindWordSeparator() to streamline common
29593             usage of IsWordSeparator()
29594         * TextBoxBase.cs:
29595           - Removed unneeded grabbed variable, it was just mirroring
29596             Control.Capture
29597           - No longer firing OnTextChanged event when Text setter is called,
29598             since the base will fire the event for us
29599           - Added handling of Ctrl-Up/Down selection
29600           - Added handling of Shift-Cursorkey selection
29601           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
29602             words
29603           - Added handling of Shift and Ctrl-Shift-Home/End selection
29604           - Removed some debug output
29605           - Added handling for single/double/tripple-click to place caret/
29606             select word/select line respectively (Fixes bug #76031)
29607           - Added support for drag expansion of word/line selection
29608         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
29609           current selection
29610
29611 2005-11-02  Jackson Harper  <jackson@ximian.com>
29612
29613         * X11Dnd.cs: If the drag is going to and from a MWF window just
29614         copy the data instead of sending it out through the X Selection
29615         mechanism.
29616
29617 2005-11-02  Jackson Harper  <jackson@ximian.com>
29618
29619         * X11Dnd.cs:
29620         * XplatUIX11.cs: When in a drag we don't want motion notify
29621         messages to get passed on to the other controls. This prevents
29622         mouse move messages from showing up in the drag source.
29623
29624 2005-11-02  Jackson Harper  <jackson@ximian.com>
29625
29626         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
29627         the correct button is release to end a drag.
29628         * XplatUIX11.cs: Make the button state internal so the drag system
29629         can access it.  Dragging needs to know about all button releases,
29630         not just left button.
29631
29632 2005-11-02  Miguel de Icaza  <miguel@novell.com>
29633
29634         * Form.cs (Icon): If the icon is null, reset the icon to the
29635         default value. 
29636
29637         * Cursor.cs: When writing the AND-mask bitmap do not include the
29638         number of colors, but hardcode those to two (black and white),
29639         fixes the loading of color cursors (Paint Dot Net).
29640
29641         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
29642         turn off autoscaling.
29643
29644         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
29645
29646 2005-11-02  Jackson Harper  <jackson@ximian.com>
29647
29648         * X11Dnd.cs: Make sure to send a status message if the pointer
29649         enters a control that can not accept a drop, otherwise the cursor
29650         isn't updated correctly. Also tried to compress the lines of code
29651         a bit.
29652
29653 2005-11-02  Jackson Harper  <jackson@ximian.com>
29654
29655         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
29656         set actions correctly.  This isn't perfect as XDND and win32 have
29657         some differences on how you allow actions. I'll clear this up by
29658         adding a path for drag from MWF to MWF windows.
29659         * XplatUIX11.cs: Hook into the dnd system.
29660
29661 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
29662
29663         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
29664         previously shown but they are no longer need it. Very obvious when 
29665         browsing files with FileDialog.
29666
29667 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
29668
29669         * Control.cs: We always need to call OnPaintBackground. We pretty much
29670           ignore AllPaintingInWmPaint and always do the painting there, whether 
29671           it's set or not, since we always ignore the WM_ERASEBKGND message 
29672           (which we don't generate on X11). This fixes #76616.
29673         * Panel.cs: Removed unneeded background painting. This happens properly
29674           in Control.cs already
29675
29676 2005-10-31  Mike Kestner  <mkestner@novell.com>
29677
29678         * Menu.cs: Add items to collection before setting their index.
29679         * MenuItem.cs : add range checking with ArgumentException like MS.
29680         [Fixes #76510]
29681
29682 2005-10-31  Jackson Harper  <jackson@ximian.com>
29683
29684         * ListBox.cs: Invalidate if the area is visible at all not just
29685         contained in the visible rect. Fixes unselection of semi visible
29686         items.
29687
29688 2005-10-31  Jackson Harper  <jackson@ximian.com>
29689
29690         * Control.cs: Consistently name the dnd methods. Make them
29691         internal so we can override them to match some MS behavoir
29692         internally.
29693         * Win32DnD.cs: Use the new consistent names.
29694
29695 2005-10-31  Jackson Harper  <jackson@ximian.com>
29696
29697         * TreeView.cs: Don't draw the selected node when we lose focus.
29698
29699 2005-10-31  Jackson Harper  <jackson@ximian.com>
29700
29701         * X11Dnd.cs: We still need to reset the state even though a full
29702         reset isn't being done, otherwise status's still get sent all over
29703         the place.
29704
29705 2005-10-31  Jackson Harper  <jackson@ximian.com>
29706
29707         * Control.cs: Make the dnd_aware flag internal so the dnd
29708         subsystem can check it. Catch exceptions thrown in dnd handlers to
29709         match MS behavoir.
29710         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
29711         * X11Dnd.cs: Handle null data in the converters. Set the XDND
29712         version when sending a XdndEnter. Use the control/hwnd dnd_aware
29713         flags to reduce the number of dnd enters/status's sent.
29714
29715 2005-10-31  Jackson Harper  <jackson@ximian.com>
29716
29717         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
29718
29719 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
29720
29721         * PictureBox.cs: Fixes 76512
29722
29723 2005-10-28  Jackson Harper  <jackson@ximian.com>
29724
29725         * X11Dnd.cs: Early implementation to support winforms being a drag
29726         source for data on X11. Also restructured the converters so they
29727         can go both ways now.
29728         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
29729         
29730 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
29731
29732         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
29733           clipboard requests
29734
29735 2005-10-27  Jackson Harper  <jackson@ximian.com>
29736
29737         * TreeNode.cs: Implement serialization so my DnD examples will work.
29738
29739 2005-10-24  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
29740
29741         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
29742           TreeView.cs: Don't dispose objects that are not owned.
29743           
29744 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
29745
29746         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
29747           should retrieve the current cursor and report that, but XplatUI
29748           doesn't (yet) have an interface for that (and I'm not sure I even
29749           can, on X11)
29750         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
29751           until any message loop processing is done (and the WM_SETCURSOR
29752           replaces the cursor to the proper one)
29753         * XplatUIX11.cs: 
29754           - Fixed override behaviour, we can't set the cursor globally on X11, 
29755             just for our windows.
29756           - Invalidating the System.Drawing X11 display handle when we are
29757             shutting down
29758         * Control.cs: Fix to make csc happy
29759
29760 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
29761
29762         * TextBoxBase.cs: 
29763           - get_Text: Add last line (without trailing newline) to returned
29764             value (Fixes 76212)
29765           - get_TextLength: Count last line in returned length
29766           - ToString: Call Text property instead of duplicating code
29767
29768 2005-10-23  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
29769
29770         * ImageList.cs: Dispose ImageAttributes objects.
29771
29772 2005-10-22  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
29773
29774         * ImageList.cs: Use attribute constructors with less arguments where
29775           possible.
29776
29777 2005-10-22  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
29778
29779         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
29780           Use typeof instead of strings when assembly is referenced. Added
29781           some more comments.
29782
29783 2005-10-21  Jackson Harper  <jackson@ximian.com>
29784
29785         * ListView.cs: Raise a double click event. Also tried to somewhat
29786         fix when the selectedindexchanged event is raised. Its still
29787         broken though.
29788
29789 2005-10-21  Jackson Harper  <jackson@ximian.com>
29790
29791         * TreeView.cs: New method to invalidate the plus minus area of a
29792         node without invalidating the whole node (maybe this can be used
29793         in some more places).
29794         * TreeNodeCollection.cs: When adding to an empty node we need to
29795         invalidate its plus minus area so the little block shows up.
29796         
29797 2005-10-21  Jackson Harper  <jackson@ximian.com>
29798
29799         * TreeView.cs: Make sure that when we invalidate a node the bounds
29800         are big enough to cover the selected box and the focus
29801         rectangle. Use a different colour for the lines connecting nodes
29802         so they show up with all themes.
29803
29804 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
29805
29806         * NativeWindow.cs: Don't call anything that could call into the driver,
29807           we might be on a different thread.
29808
29809 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
29810
29811         * Control.cs(Dispose): Since Dispose might run on a different thread,
29812           make sure that we call methods that could call into the driver via
29813           invoke, to avoid thread issues
29814
29815 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
29816
29817         * XplatUI.cs: Removed finalizer
29818         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
29819           not allowing to be called on the finalizer thread.
29820
29821 2005-10-21  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
29822
29823         * ImageList.cs:
29824           - Reverted r51889 and r51891.
29825           - Added ImageListItem class that stores unmodified image items and image
29826             properties required to create list images until handle is created.
29827           - Added AddItem and moved image creation logic to AddItemInternal.
29828           - Added CreateHandle method that creates images based on unmodified items.
29829           - Added DestroyHandle that changes state to store unmodified items.
29830           - Add and AddStrip methods no more create handle.
29831           - ReduceColorDepth has no return value.
29832           - Dispose destroys handle.
29833           - Modified other methods to reflect the above changes.
29834           - Implemented key support.
29835           - Added profile 2.0 members and attributes.
29836           - Added private Reset and ShouldSerialize methods that provide the same
29837             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
29838             them as they are private.
29839           - Added some more comments about implementation details.
29840
29841 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
29842
29843         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
29844
29845 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
29846
29847         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
29848
29849 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
29850
29851         * DataGridDrawingLogic.cs: Fixes column hit calcultation
29852         * DataGridColumnStyle.cs: Remove debug message
29853
29854 2005-10-20  Jackson Harper  <jackson@ximian.com>
29855
29856         * TreeView.cs: We can always get input keys regardless of whether
29857         or not editing is enabled. They are used for navigation.
29858
29859 2005-10-20  Jackson Harper  <jackson@ximian.com>
29860
29861         * TreeNode.cs: Use the viewport rect for determining if a node
29862         needs to be moved for visibility. Don't use Begin/End edit. This
29863         calls a full refresh when its done.
29864         * TreeView.cs: New SetBottom works correctly.  Make the viewport
29865         rect property internal so the treenodes can see it. When clicking
29866         on a node we need to ensure that its visible because it might just
29867         be partly visible when clicked.
29868
29869 2005-10-20  Jackson Harper  <jackson@ximian.com>
29870
29871         * TreeNodeCollection.cs: Remove debug code.
29872
29873 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
29874
29875         * Datagrid.cs: Implements column sorting in Datagrid
29876         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
29877
29878 2005-10-20  Jackson Harper  <jackson@ximian.com>
29879
29880         * TreeNodeCollection.cs: Remove items properly. Update the correct
29881         area after removing them.
29882
29883 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
29884
29885         * Datagrid.cs: Should not call base.OnPaintBackground
29886
29887 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
29888
29889         * XplatUIX11.cs (GetMessage):
29890           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
29891             window instead of client window
29892           - Now properly calculates NC_xBUTTONUP message coordinates
29893           - ScreenToMenu now properly calculates it's coordinates of whole 
29894             window, since menus are in the whole window, not in the client
29895             window
29896           - Added WholeToScreen coordinate translation method
29897
29898 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
29899
29900         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
29901           want to return a message, loop back to the beginning of the function
29902           and grab the next real message to process instead.
29903
29904 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
29905
29906         * Splitter.cs: Properly set limits if no filler control is used
29907
29908 2005-10-19  Jackson Harper  <jackson@ximian.com>
29909
29910         * ColorDialog.cs: Don't show the help button if it is not enabled
29911         instead of disabling it (this is what MS does). Don't create the
29912         panel until the dialog is run, otherwise the vars (such as
29913         ShowHelp) are not set yet.
29914
29915 2005-10-19  Jackson Harper  <jackson@ximian.com>
29916
29917         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
29918         are reduced when adding nodes.
29919         * TreeNode.cs:
29920         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
29921         tree.
29922         
29923 2005-10-19  Jackson Harper  <jackson@ximian.com>
29924
29925         * FolderBrowserDialog.cs: End editing our treeview so the window
29926         actually gets refreshed.
29927
29928 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
29929
29930         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
29931           Obsoleted handling of WM_ERASEBKGND, now always draws our background
29932           inside of WM_PAINT
29933
29934 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
29935
29936         * MenuAPI.cs: Returns after Hidding window
29937         * XplatUIX11.cs: Added TODO found while debugging menu issues
29938
29939 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
29940
29941         * XplatUIX11.cs: Do not re-map the whole window when it's size
29942           becomes non-zero unless it's supposed to be actually visible
29943
29944 2005-10-18  Jackson Harper  <jackson@ximian.com>
29945
29946         * TreeView.cs: We don't need to keep a count anymore.
29947         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
29948         use the Grow method.
29949
29950 2005-10-18  Jackson Harper  <jackson@ximian.com>
29951
29952         * TreeNodeCollection.cs: Insert is not supported on arrays, so
29953         implement it manually here.
29954
29955 2005-10-18  Jackson Harper  <jackson@ximian.com>
29956
29957         * ImageList.cs: Dont kill the list when the colour depth is
29958         changed, just change the colour depth of all the images.
29959         - Same goes for setting the image size. Just resize them all
29960         instead of killing the list softly.
29961
29962 2005-10-18  Jackson Harper  <jackson@ximian.com>
29963
29964         * Control.cs: Don't invalidate empty rectangles.
29965
29966 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
29967
29968         * ListViewItem.cs:
29969           - Adds checked item to the Checked/Item lists (where empty before)
29970           - Do not add items to the Selected lists if they are already present
29971         * ListView.cs:
29972           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
29973           - When deleting items make sure that we delete them for the Selected
29974           and Checked list also.
29975
29976 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
29977
29978         * Label.cs: Dispose objects no longer used
29979         * ThemeWin32Classic.cs: Dispose objects no longer used
29980
29981 2005-10-18  Jackson Harper  <jackson@ximian.com>
29982
29983         * TabControl.cs: Don't refresh the whole control when the tabs are
29984         scrolled, we just need to refresh the tab area.
29985
29986 2005-10-17  Jackson Harper  <jackson@ximian.com>
29987
29988         * XplatUIX11.cs: Compress code a little bit. Only calculate the
29989         after handle when we need it.
29990
29991 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
29992
29993         * Control.cs: When the parent size changes, recalculate anchor 
29994           positions. Partial fix for #76462
29995
29996 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
29997
29998         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
29999           drawn. Fixes #76462
30000
30001 2005-10-17  Jackson Harper  <jackson@ximian.com>
30002
30003         * MonthCalendar.cs: Don't create the numeric up down until our
30004         handle is created. Otherwise our handle is created in the
30005         constructor and we don't know if we are a WS_CHILD or WS_POPUP
30006         yet.
30007
30008 2005-10-17  Jackson Harper  <jackson@ximian.com>
30009
30010         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
30011         correctly.
30012
30013 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
30014         * TreeNode.cs : small logical fix (was using local var instead of field)
30015         
30016 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
30017
30018         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
30019
30020 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
30021
30022         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
30023
30024 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
30025
30026         * Control.cs: 
30027           - Re-implemented anchoring code. My first version was really broken.
30028             This fixes bug #76033. Unlike the previous implementation we will
30029             no longer have round errors since all numbers are calculated from
30030             scratch every time. Removed various anchor-related obsolete vars.
30031           - InitLayout no longer causes layout event firing and layout to be 
30032             performed
30033
30034 2005-10-16  Jackson Harper  <jackson@ximian.com>
30035
30036         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
30037         which was broken).
30038
30039 2005-10-16  Jackson Harper  <jackson@ximian.com>
30040
30041         * TabControl.cs: Remove debug code.
30042
30043 2005-10-16  Jackson Harper  <jackson@ximian.com>
30044
30045         * XEventQueue.cs: Increase the default queue size (very simple
30046         apps needed to grow the queue).
30047         * Hwnd.cs: No finalizer so we don't need to suppress
30048         finalization. Compute the invalid area manually so a new rectangle
30049         does not newto be created.
30050         * ScrollableControl.cs: Don't set any params (otherwise visibility
30051         isn't set correctly).
30052         * MdiChildContext.cs: New constructor takes the mdi parent so it
30053         doesn't have to be computed and avoids a crash on windows. Draw
30054         the window icon properly, and allow the text to be seen.
30055         * Form.cs: Use new MdiChildContext constructor. Make sure the
30056         child context isn't null in wndproc.
30057         * TabControl.cs: Don't set focus, this is muddling keyboard
30058         behavoir. Expand the tab rows when a window size increase will
30059         allow extra tabs to be seen. Don't allow tabs smaller than the
30060         width of a window to be scrolled out of view.
30061         * TreeNode.cs:
30062         * TreeView.cs: Use measure string to calculate a nodes width, the
30063         width is cached and only updated when the text or the font is
30064         changed. Don't check for expand/collapse clicks on the first level
30065         nodes if root lines are disabled.
30066         
30067 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
30068
30069         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
30070
30071 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
30072
30073         * DataGridBoolColumn.cs: fixes warning
30074
30075 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
30076
30077         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
30078         to match more to match more precisely the MS Net behavior
30079
30080 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
30081
30082         * Hwnd.cs: Added field to track if window is mapped
30083         * XplatUIX11.cs: 
30084           - Unmap windows if they become 0-size, re-map when 
30085             they are >0 again; fixes #76035
30086           - Re-set our error handler after initializing X11Desktop
30087             to override any error handlers Gtk or whatever was called
30088             may have set.
30089
30090 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
30091
30092         * CheckedListBox.cs: Removed unused vars
30093         * ListView.cs: Fixed signatures
30094         * RichTextBox.cs: Removed unused vars
30095         * TextBoxBase.cs: Removed unused vars
30096         * XplatUIWin32.cs: Removed unused vars
30097         * XplatUIX11.cs: Removed unused vars
30098         * XplatUI.cs: Updated version and date to latest published
30099
30100 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
30101
30102         * Cursor.cs: Added private .ctor to work around a bug in
30103           resourceset (Thanks to Geoff Norton for the help on this)
30104         * SplitterEventArgs.cs: Made fields accessible so we don't
30105           waste boatloads of objects and can reuse the same one
30106           in Splitter
30107         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
30108           any captions and borders when generating screen coordinates
30109         * Splitter.cs: Reimplemented control, now fully complete, uses
30110           rubberband drawing, supports and obeys all properties, has
30111           proper cursors
30112
30113 2005-10-13  Miguel de Icaza  <miguel@novell.com>
30114
30115         * Form.cs (Form): Setup default values for autoscale and
30116         autoscale_base_size;  Make these instance variables, not static
30117         variables. 
30118
30119         (OnLoad): on the first load, adjust the size of the form.
30120
30121 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
30122
30123         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
30124           width argument to DrawReversibleRectangle()
30125         * XplatUIWin32.cs, XplatUIX11.cs: 
30126           - Implemented width for DrawReversibleRectangle()
30127           - Added logic to DrawReversibleRectangle that recognizes a zero
30128             width or height and only draws a line in that situation
30129         
30130 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
30131
30132         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
30133         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
30134         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
30135           method (it uses our FosterParent window to get a graphics context)
30136
30137 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
30138
30139         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
30140           and SetWindowBackground methods
30141         * Control.cs:
30142           - Setting proper ControlStyles
30143           - We no longer call XplatUI.SetWindowBackground and XplatUI.
30144             EraseWindowBackground, instead we draw the window background
30145             ourselves in PaintControlBackground. This behaviour is
30146             required to match MS, where, when OnPaintBackground is not
30147             called, the background is not drawn.
30148           - Removed unneeded Refresh() in set_Text
30149         * Hwnd.cs: Dropped the ErasePending support. No longer needed
30150         * XplatUIX11.cs:
30151           - Created DeriveStyles method to translate from CreateParams to
30152             FormBorderStyle and TitleStyle, also handles BorderStyle (which
30153             matches FormBorderStyle enum values)
30154           - Consolidated SetHwndStyles and CalculateWindowRect border/title
30155             style calculations into single DeriveStyles method
30156           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
30157             from redrawing the whole window on any resize or expose.
30158           - Fixed CreateWindow usage of SetWindowValuemask. Before not
30159             all styles were applied to our whole/client window appropriately
30160           - Removed EraseWindowBackground() and SetWindowBackground() methods
30161           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
30162             no longer clear/redraw the background through X
30163           - Removed handling of erase_pending bit, we have no use for it (or
30164             so it seems)
30165         * XplatUIOSX.cs:
30166           - Removed generation and handling of WM_ERASEBKGND message
30167           - Removed EraseWindowBackground() and SetWindowBackground() methods
30168           - Removed handling of hwnd.ErasePending flag
30169         * XplatUIWin32.cs:
30170           - Removed EraseWindowBackground() and SetWindowBackground() methods
30171           - We no longer call EraseWindowBackground on PaintEventStart, we 
30172             ignore the fErase flag, erasing is handled in Control in the
30173             background handler
30174         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
30175           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
30176           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
30177           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
30178           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
30179           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
30180           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
30181
30182 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
30183
30184         * PropertyGrids.cs: Get sub properties
30185         * PropertyGridView.cs: Fix drawing code
30186
30187 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
30188
30189         * ListBox.cs: Fixes 76383
30190
30191 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
30192
30193         * DataGridTextBoxColumn.cs: Sets location and size before attachment
30194         * ThemeWin32Classic.cs: Fixes border drawing and calculations
30195         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
30196
30197
30198 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
30199
30200         * ComboBox.cs: Fixes border drawing
30201
30202 2005-10-10  Miguel de Icaza  <miguel@novell.com>
30203
30204         * MimeIcon.cs: Ignore errors if the file can not be read.
30205
30206 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
30207
30208         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
30209          - Fixed border calculations
30210          - Fixed horizontal scrolling in single column listboxes
30211          - Fixed drawing issues
30212
30213 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
30214
30215         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
30216           FormBorderStyle enum
30217         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
30218           code to determine FormBorderStyles from CreateParams
30219         * Form.cs:
30220           - Fixed bug where we'd set the wrong window styles if we were
30221             not creating an MDI window
30222           - Added call to XplatUI.SetBorderStyle when form borders are set
30223         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
30224         * Hwnd.cs:
30225           - Removed obsolete edge style
30226           - Switched from BorderStyle to FormBorderStyle
30227         
30228 2005-10-10  Jackson Harper  <jackson@ximian.com>
30229
30230         * Form.cs: Use the property to get the window handle instead of
30231         accessing it directly. Prevents a null reference exception.
30232
30233 2005-10-10  Jackson Harper  <jackson@ximian.com>
30234
30235         * TreeView.cs: Don't adjust the rect given to DrawString now that
30236         our libgdiplus draws correctly.
30237
30238 2005-10-08  Jackson Harper  <jackson@ximian.com>
30239
30240         * TreeView.cs: Don't try to find the clicked on node if there are
30241         no nodes in the tree.
30242
30243 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
30244
30245         * RichTextBox.cs:
30246
30247           restore
30248
30249 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
30250
30251         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
30252           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
30253           ErrorProvider.cs:
30254           Use ResPool for brushes and dispose System.Drawing objects that
30255           are not used anymore.
30256
30257 2005-10-07  Jackson Harper  <jackson@ximian.com>
30258
30259         * MdiChildContext.cs: Use the new borders instead of drawing them
30260         ourselves.
30261
30262 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
30263
30264         * Calling UpdateBounds after changing the window's BorderStyle 
30265         since the style can change the ClientSize
30266
30267 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30268
30269         * Control.cs: Made PaintControlBackground virtual
30270         * Panel.cs: Overriding PaintControlBackground instead of using paint
30271           event; paint event method was interfering with 'real' users of the
30272           event.
30273
30274 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
30275
30276         * ThemeWin32Classic.cs: remove border drawing since it is handled
30277         by the base control class now and was causing double border drawing.
30278
30279 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30280
30281         * Panel.cs: Redraw our background on paint. Not a pretty solution,
30282           but it does seem to match MS behaviour. This fixes bug #75324
30283
30284 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30285
30286         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
30287           somewhat hackish looking
30288
30289 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
30290
30291         * TextBoxBase.cs:
30292           - We now accept Enter even if AcceptEnter is false, if the containing
30293             form does not have an AcceptButton configured (fixes bug #76355)
30294           - Calculations are now fixed to no longer use Width/Height, but
30295             ClientSize.Width/Height, since we now support borders (this was
30296             a result of fixing borders and therefore bug #76166)
30297           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
30298             true (fixes bug #76354)
30299         
30300 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30301
30302         * Control.cs: 
30303           - Defaulting BorderStyle and setting it in XplatUI when our window 
30304             is created
30305           - Added enum check to InternalBorderStyle setter
30306         * XplatUIX11.cs: 
30307           - Added drawing of window borders
30308           - Now properly calculates WM decorations offset for toplevel 
30309             windows (fixes bug #74763)
30310         * XplatUIWin32.cs: 
30311           - Implemented BorderStyles for windows (we're letting win32 draw 
30312             the border for us)
30313           - Fixed the signature for SetWindowLong
30314         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
30315           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
30316           setting borders
30317         * UpDownBase.cs: Remove drawing of borders, this is handled by
30318           the driver, outside the client area
30319         * ListView.cs: Removed bogus border calculations. The control should
30320           be oblivious to borders, since those are not part of the client
30321           area. 
30322         * X11DesktopColors.cs: Commented out (currently) unneeded variables
30323         * ThemeWin32Classic.cs: Removed border calculations from ListView 
30324           drawing code
30325
30326 2005-10-06  Jackson Harper  <jackson@ximian.com>
30327
30328         * MdiChildContext.cs: Clear out the old virtual position remove
30329         all the unneeded calls to CreateGraphics.
30330
30331 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
30332
30333         * TextControl.cs: Use proper color for highlighted text; fixes #76350
30334
30335 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
30336
30337         * Form.cs: 
30338           - Added loading and setting of our new default icon
30339           - Only set icon if window is already created
30340
30341 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30342
30343         * Label.cs:
30344           - Do not explicitly set the foreground and background colors, to
30345             allow inheriting from parents (fixes #76302)
30346           - Use Control's InternalBorderStyle property to deal with borders
30347
30348 2005-10-06  Jackson Harper  <jackson@ximian.com>
30349
30350         * MdiChildContext.cs: Use the new xplatui function to draw a
30351         reversible rect.
30352
30353 2005-10-06  Jackson Harper  <jackson@ximian.com>
30354
30355         * Form.cs: Add the parent before creating the child context cause
30356         we need the parent when setting up the child.
30357
30358 2005-10-06  Jackson Harper  <jackson@ximian.com>
30359
30360         * FolderBrowserDialog.cs: redo the tree population code so a
30361         second thread isn't used. Should be a lot faster and more stable
30362         now.
30363
30364 2005-10-05  Jackson Harper  <jackson@ximian.com>
30365
30366         * TreeView.cs: There are no expand/collapse boxes if the node has
30367         no children.
30368
30369 2005-10-05  Jackson Harper  <jackson@ximian.com>
30370
30371         * X11DesktopColors.cs: Get menu colours for the gtk theme.
30372
30373 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
30374
30375         * FileDialog.cs: Fix InitialDirectory
30376
30377 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
30378
30379         * ComboBox.cs:
30380                 - Fixes changing between styles
30381                 - Fixes simple mode
30382                 - Fixes last item crashing when navigating with keyboard
30383
30384 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
30385
30386         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
30387
30388 2005-10-05  Jackson Harper  <jackson@ximian.com>
30389
30390         * TreeView.cs: If updating the root node do a full refresh.
30391         * TreeNode.cs: The root node should be expanded by default. Also
30392         added a utility prop to tell if we are the root node.
30393         * TreeNodeCollection.cs: Only refresh if the node we are being
30394         added to is expanded. Also added a comment on a potential
30395         optimization.
30396         
30397 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
30398
30399         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
30400           in dispose method. Fixes #76330
30401
30402 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
30403
30404         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
30405
30406                 - Implements vertical and horizontal scrolling using XplatUI
30407                 - Fixes keyboard navagation
30408                 - Fixes EnsureVisible
30409                 - Drawing fixes
30410                 - Handles and draws focus properly
30411
30412
30413 2005-10-04  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30414
30415         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
30416           Create handle. NET_2_0: Destroy handle when value is null.
30417
30418 2005-10-03  Jackson Harper  <jackson@ximian.com>
30419
30420         * ScrollBar.cs: My last scrollbar patch was broken. This is a
30421         revert and a new patch to prevent the thumb from refreshing so
30422         much.
30423
30424 2005-10-02  Jackson Harper  <jackson@ximian.com>
30425
30426         * ScrollBar.cs: Don't update position if it hasn't actually
30427         changed. This occurs when you hold down the increment/decrement
30428         buttons and the thumb gets to the max/min.
30429
30430 2005-10-01  Jackson Harper  <jackson@ximian.com>
30431
30432         * Form.cs:
30433         * MdiChildContext.cs:
30434         * MdiClient.cs: Implement ActiveMdiChild in Form.
30435
30436 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
30437
30438         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
30439
30440 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
30441
30442         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
30443           be found
30444
30445 2005-09-30  Jackson Harper  <jackson@ximian.com>
30446
30447         * ListBox.cs: Don't do a full refresh unless some data has
30448         actually changed.
30449
30450 2005-09-30  Jackson Harper  <jackson@ximian.com>
30451
30452         * TreeView.cs: Make sure that the checkboxes size is factored in
30453         even when not visible.
30454
30455 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
30456
30457         * FileDialog.cs: Fix Jordi's build break
30458
30459 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
30460
30461         * FileDialog.cs: 
30462                 - Use standard the Windows colours for the combobox as espected
30463                 - Dispose objects that use resouces when no longer need them
30464
30465 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
30466
30467         * X11DesktopColors.cs: Initial incomplete implementation
30468         * XplatUIX11.cs: Added call to initialize X11DesktopColors
30469
30470 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
30471
30472         * Theme.cs: 
30473           - Switched Theme color names to match the names defined in 
30474             System.Drawing.KnownColors. Life's hard enough, no need to make 
30475             it harder.
30476           - Added setters to all theme color properties so themes can set
30477             their color schemes. The setters also propagate the color changes
30478             to System.Drawing.KnownColors via reflection
30479         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
30480           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
30481           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
30482           use the new, more logical theme color names
30483         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
30484           post-NT colors
30485         * ThemeWin32Classic.cs:
30486           - Removed code to set the old classic Windows colors. Instead it
30487             now relies on the colors returned by System.Drawing.KnownColors
30488             which will be either modern static colors (Unix) or colors
30489             read from the user's configuration (Win32)
30490           - Updated to use the new, more logical theme color names
30491           - Switched DataGrid drawing code to use only Theme colors instead of
30492             a mix of System.Drawing.KnownColors and Theme colors
30493           - DrawFrameControl(): Removed code that fills the button area, the
30494             fill would overwrite any previous fill done by a control. This
30495             fixes bug #75338 
30496           - Added DrawReversibleRectangle() stub
30497         * ScrollableControl.cs: Set visible state to false when scrollbars
30498           are removed (pdn fix)
30499         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
30500           DrawReversibleRectangle() method to allow drawing primitive 
30501           'rubber bands'
30502         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
30503
30504 2005-09-30  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30505
30506         * ImageList.cs: Add(Icon): Create handle.
30507
30508 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
30509
30510         * ListView.cs:
30511         * ThemeWin32Classic.cs:
30512                 - Fixes detail mode
30513                 - Sets clippings
30514                 - Issues with drawing
30515
30516 2005-09-30  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30517
30518         * ImageList.cs: Moved RecreateHandle back to ImageList as event
30519           source has to be the ImageList.
30520
30521 2005-09-30  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30522
30523         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
30524
30525 2005-09-30  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30526
30527         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
30528
30529 2005-09-30  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30530
30531         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
30532
30533 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
30534         * GridItem.cs: Fixed TODOs
30535         * GridItemCollection.cs: Added ICollection interface
30536
30537 2005-09-30  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30538
30539         * ImageList.cs: Resize icons when needed.
30540
30541 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
30542
30543         * ListViewItem.cs
30544                 - Fixes GetBounds and returns on screen rects
30545         * ListView.cs:
30546                 - Fixes vertical and horzintal scrolling of items
30547         * ThemeWin32Classic.cs:
30548                 - Fixes drawing
30549                 
30550 2005-09-29  Raja R Harinath  <harinath@gmail.com>
30551
30552         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
30553
30554 2005-09-29  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30555
30556         * ImageList.cs: Added comments about handle creation. Moved Handle,
30557           HandleCreated and OnRecreateHandle implementations to ImageCollection.
30558           Handle is created in Add methods.
30559
30560 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
30561          
30562         * DataGridDrawingLogic.cs: 
30563                 - Takes rows into account on Colum calculations
30564                 - Returns the column when clickig
30565         * DataGrid.cs:
30566                 - Fixes default HitTestInfo values
30567                 - Fixes HitTestInfo.ToString
30568                 - Fixes ResetBackColor          
30569         
30570 2005-09-28  Jackson Harper  <jackson@ximian.com>
30571
30572         * MdiChildContext.cs: Obey rules for fixed sized windows (no
30573         sizing or cursor changes). Also added some temp code to draw the
30574         titlebars text (Makes dev a little easier).
30575
30576 2005-09-28  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30577
30578         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
30579
30580 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
30581          
30582         * ListBox.cs: Fixes bug 76253
30583
30584 2005-09-28  KornĂ©l PĂ¡l  <kornelpal@hotmail.com>
30585
30586         * ImageList.cs: Added comments about the current implementation. Added
30587           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
30588           Format32bppArgb to preserve transparency and can use Graphics.FromImage
30589           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
30590           with Bitmap.LockBits for better performance. Revised the whole file to
30591           match MS.NET behaviour and provide better performance. Non-public
30592           interface members are calling public members even when they throw
30593           NotSupportedException for better maintainability. Moved ColorDepth,
30594           ImageSize, ImageStream and TransparentColor implementations to
30595           ImageCollection for better performance as these properties are not used
30596           by ImageList.
30597         * ImageListStreamer.cs: Added a new internal constructor that takes an
30598           ImageList.ImageCollection and serializes Images based on
30599           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
30600           match ImageList property name.
30601
30602 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
30603
30604         * ListBox.cs: Fixes IndexFromPoint for last item
30605
30606 2005-09-27  Jackson Harper  <jackson@ximian.com>
30607
30608         * Form.cs: Set the position of new mdi children correctly.
30609
30610 2005-09-27  Jackson Harper  <jackson@ximian.com>
30611
30612         * MdiClient.cs: New mdi children need to be added to the back of
30613         the controls collection so the zorder is set correctly. Also add a
30614         count of all the child windows that have been created.
30615
30616 2005-09-27  Jackson Harper  <jackson@ximian.com>
30617
30618         * Form.cs (CreateParams): Setup MDI forms correctly.
30619
30620 2005-09-27  Jackson Harper  <jackson@ximian.com>
30621
30622         * MdiChildContext.cs:
30623         * MonthCalendar.cs:
30624         * UpDownBase.cs:
30625         * ListBox.cs:
30626         * ListView.cs:
30627         * TextBoxBase.cs:
30628         * TreeView.cs:
30629         * ScrollableControl.cs:
30630         * ComboBox.cs: Add implicit controls using the new implict control
30631         functionality in ControlCollection. Also try to block multiple
30632         control add in a suspend/resume layout to save some cycles.
30633         
30634 2005-09-27  Jackson Harper  <jackson@ximian.com>
30635
30636         * Control.cs: Add functionality to the controls collection to add
30637         'implicit controls' these are controls that are created by the
30638         containing control but should not be exposed to the user. Such as
30639         scrollbars in the treeview.
30640         * Form.cs: The list var of the ControlsCollection is no longer
30641         available because of the potential of implicit controls getting
30642         ignored by someone accessing the list directly.
30643
30644 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
30645
30646         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
30647           loose it's parent. (Fixed bug introduced in r49103 when we added
30648           setting the child parent to null on Remove)
30649
30650 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
30651
30652         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
30653         * Splitter.cs: Added missing attributes for BorderStyle property.
30654         * TextBoxBase.cs: Marked Calculate* methods internal.
30655         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
30656         MS.NET.
30657
30658 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
30659          
30660         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
30661
30662 2005-09-25  Jackson Harper  <jackson@ximian.com>
30663
30664         * TreeView.cs: Update the node bounds correctly regardless of
30665         whether the node is visible.
30666
30667 2005-09-25  Jackson Harper  <jackson@ximian.com>
30668
30669         * ImageList.cs: Don't dispose the image after it is added to the
30670         image list. Only reformat images that need to be resized.
30671
30672 2005-09-25  Jackson Harper  <jackson@ximian.com>
30673
30674         * ImageList.cs: Don't set the format when changing the image.
30675
30676 2005-09-25  Jackson Harper  <jackson@ximian.com>
30677
30678         * TreeView.cs: We can't just assume the node has a font. Use the
30679         treeviews font if no node font is available.
30680
30681 2005-09-25  Jackson Harper  <jackson@ximian.com>
30682
30683         * TreeView.cs: Allow the scrollbars to be reset with negative
30684         values.
30685         - Don't add scrollbars to negative sized windows.
30686
30687 2005-09-23  Jackson Harper  <jackson@ximian.com>
30688
30689         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
30690         old Mono.Posix. Also remove some stray code that shouldn't have
30691         been committed.
30692
30693 2005-09-23  Jackson Harper  <jackson@ximian.com>
30694
30695         * TreeView.cs: Attempt at proper sizing of the horizontal
30696         scrollbar. Also don't resize the scrollbars unless they are
30697         visible.
30698
30699 2005-09-23  Jackson Harper  <jackson@ximian.com>
30700
30701         * TreeView.cs: We don't need to expand the invalid area when the
30702         selection changes, as this is all drawn in the node's bounding
30703         box. The area needs to be expanded (previous typo was contracting
30704         it) when the focus rect moves.
30705
30706 2005-09-23  Jackson Harper  <jackson@ximian.com>
30707
30708         * TreeView.cs: Display the selection box under the correct
30709         circumstances. We were rendering white text with no selection box
30710         before.
30711
30712 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
30713
30714         * TextControl.cs(Split): Now updates selection start/end if it points 
30715           into a line that's being split. Fixes a FIXME and bug #75258
30716
30717 2005-09-23  Jackson Harper  <jackson@ximian.com>
30718
30719         * Binding.cs:
30720         * ListControl.cs: Don't use the path when retrieving binding
30721         managers from the binding context. My bat sense tells me that the
30722         path is only used on insertion.
30723
30724 2005-09-22  Jackson Harper  <jackson@ximian.com>
30725
30726         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
30727
30728 2005-09-22  Jackson Harper  <jackson@ximian.com>
30729
30730         * Splitter.cs: There are special cursors used for splitting.
30731         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
30732
30733 2005-09-22  Jackson Harper  <jackson@ximian.com>
30734
30735         * Splitter.cs: Change the cursor appropriately when the splitter
30736         is moused over, so the user actually knows there is a splitter
30737         there.
30738
30739 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
30740
30741        * Label.cs : Fix ToString method to give same output as MS.NET
30742
30743 2005-09-22  Jackson Harper  <jackson@ximian.com>
30744
30745         * TreeView.cs: Create the scrollbars when the handle is created
30746         and add them right away, just make them invisble. Also account for
30747         the window being shrunk vertically to the point that the vert
30748         scrollbar needs to be added.
30749         - Remove some 0.5 adjustments to get around anti aliasing issues.
30750         
30751 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
30752          
30753         * MainMenu.cs: Fixes default value
30754         * MenuItem.cs: Fixes default value
30755
30756 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
30757
30758         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
30759
30760 2005-09-21  Jackson Harper  <jackson@ximian.com>
30761
30762         * Control.cs: Don't try to set the border style on the window if
30763         it hasn't been created. When the window is created the border
30764         style will be used.
30765
30766 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
30767
30768         * Control.cs (Update): Don't call XplatUI if we don't have a
30769           window handle yet
30770
30771 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
30772
30773         * ContainerControl.cs: Instead of throwing an exception, print
30774           a one-time warning about Validate not being implemented
30775         * XplatUIWin32.cs: Removed debug output
30776
30777 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
30778
30779         * Control.cs: Only set XplatUI background if we expect the windowing
30780           system to handle the background. This stops controls that draw their
30781           own background from flickering
30782
30783         * XplatUIX11.cs: Support custom visuals and colormaps for window 
30784           creation. This allows, amongst other things, using MWF X11 windows 
30785           with OpenGL.
30786
30787 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
30788
30789         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
30790           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
30791           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
30792           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
30793           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
30794           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
30795           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
30796           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
30797           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
30798           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
30799           GridColumnStylesCollection.cs, 
30800           IDataGridColumnStyleEditingNotificationService.cs,
30801           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
30802           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
30803           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
30804           TreeNodeCollection.cs, AmbientProperties.cs, 
30805           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
30806           DataObject.cs, ErrorProvider.cs, Splitter.cs,
30807           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
30808           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
30809           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
30810           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
30811           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
30812           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
30813           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
30814           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
30815           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
30816           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
30817           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
30818           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
30819           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
30820           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
30821           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
30822           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
30823           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
30824           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
30825           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
30826           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
30827           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
30828           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
30829           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
30830           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
30831           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
30832           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
30833           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
30834           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
30835           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
30836           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
30837           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
30838           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
30839           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
30840           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
30841           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
30842
30843 2005-09-21  Jackson Harper  <jackson@ximian.com>
30844
30845         * TreeNode.cs: Call Before/After Expand not Collapse when
30846         expanding.
30847
30848 2005-09-20  Jackson Harper  <jackson@ximian.com>
30849         
30850         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
30851
30852 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
30853          
30854         * ListViewItem.cs:
30855                 - Fixes bug 76120
30856                 - Fixes proper storing of subitems
30857                 - Fixes not updated items
30858
30859 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
30860
30861         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
30862           things if our window handle isn't created yet. Also disabled 
30863           debug for TextBoxBase
30864
30865 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
30866
30867         * MenuAPI.cs: Remove filtering of events to allow menu usage
30868
30869 2005-09-20  Miguel de Icaza  <miguel@novell.com>
30870
30871         * Cursor.cs: Allow null to be passed to Cursor.Current.
30872
30873 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
30874
30875         * ThemeWin32Classic.cs:
30876           - Change some private methods/fields to protected virtual so that 
30877             they can be accessed and overriden in derived classes
30878           - First refactoring of some methods. Derived themes now don't 
30879             need to duplicate the complete code from ThemeWin32Classic
30880         * ThemeNice.cs:
30881           - Added nice StatusBar
30882           - Derive from ThemeWin32Classic and not Theme
30883           - Removed duplicate ThemeWin32Classic code
30884
30885 2005-09-20  Miguel de Icaza  <miguel@novell.com>
30886
30887         * Control.cs (ControlCollection.Add): If the value null is passed
30888         the control is ignored. 
30889
30890         Optimize this loop.
30891
30892 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
30893
30894         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
30895           PostQuitMessage state.
30896         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
30897
30898 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
30899
30900         * Application.cs: Our constructor will never get called, move 
30901           initialization to fields; fixes bug #75933
30902
30903 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
30904
30905         * FileDialog.cs :
30906                 - Allow files to be selected properly using file name
30907                 combo box.
30908                 - Add ability to change diretory (absolute / relative)
30909                 using file name combo box.
30910
30911 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
30912          
30913         * ListBox.cs: 
30914                 - Fixes Multicolumn listboxes item wrong calculations
30915                 - Allows to click when only one item is in the listbox
30916                 - Fixes crash when no items using keyboard navigation
30917
30918 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
30919
30920         * ComboBox.cs: Reverted almost everything from the latest patch which
30921           broke ComboBox
30922
30923 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
30924         
30925         * ToolTip.cs:
30926                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
30927         * ComboBox.cs:
30928                 - When DropDownStyle is Simple, it does not show scrollbar 
30929                 to the last item of the list.
30930                 - When DropDownStyle is Simple, it crashed when the list was 
30931                 scrolled down with the down cursor key.
30932                 - Fixed a bug that when DropDownStyle is DropDownList, the 
30933                 selected item was not shown.
30934                 - The position of the selected item was not preserved when 
30935                 the next dropdown happened.
30936         * ThemeWin32Classic.cs:
30937                 - Items were wrapped at the right end.
30938         * CheckedListBox.cs:
30939                 - Fixed Add method
30940         * ListBox.cs:
30941                 - Items should be fully shown.
30942                 - When resizing and vertical scrollbar disappeared, the item 
30943                 of index 0 should be on the top of the list.
30944                 - GetItemRectangle should consider the size of ver. scrollbar
30945         * StatusBar.cs:
30946                 - SizingGrip area should not be allocated when it is not 
30947                 displayed.
30948                 - Now it reflects MinWidth of the containing panel and 
30949                 fixed a crash that happens when its width becomes so small.
30950
30951 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
30952
30953         * CheckedListBox.cs: Fixes bug 76028
30954         * ListBox.cs: Fixes bug 76028
30955
30956 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
30957
30958         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
30959         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
30960
30961 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
30962
30963         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
30964
30965 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
30966
30967         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
30968
30969 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
30970
30971         * IRootGridEntry.cs: Added
30972         * PropertyGridCommands.cs: Added
30973         * PropertiesTab.cs: Added missing methods and property
30974         * PropertyGridView.cs: Made class internal
30975         * PropertyGridTextBox.cs: Made class internal
30976
30977 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
30978
30979         * MimeIcon.cs: Try to check some other environment variables
30980           if "DESKTOP_SESSION" returns "default"
30981
30982 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
30983
30984         * ThemeNice.cs: Corrected background colors (e.g. menus)
30985         * ColorDialog.cs: Use correct background colors for controls
30986
30987 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
30988
30989         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
30990
30991 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
30992
30993         * RichTextBox.cs: Added initial implementation
30994         * lang.cs: Removed. Was accidentally checked in long time ago
30995         * TODO: Removed. Contents were obsolete
30996
30997 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
30998                                                                                 
30999         * PropertiesTab.cs : Added
31000
31001 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
31002                                                                                 
31003         * PropertyGrid.cs : Update
31004         * PropertyGridView.cs : Update
31005         * System.Windows.Forms.resx : Added images and strings
31006
31007 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
31008
31009         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
31010  
31011 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
31012
31013         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
31014           a busy loop right after the Ungrab the X11 display is otherwise 
31015           blocked
31016
31017 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
31018
31019         * ThemeWin32Classic.cs: Optimise the use of clipping
31020
31021 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
31022
31023         * DataGrid.cs: fixes recursion bug
31024
31025 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
31026
31027         * ThemeNice.cs: 
31028           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
31029           - Cleanup
31030
31031 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
31032
31033         * ThemeNice.cs: Draw nice ProgressBars
31034
31035 2005-09-01  Miguel de Icaza  <miguel@novell.com>
31036
31037         * VScrollBar.cs: Another buglet found by Aaron's tool. 
31038
31039         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
31040         bug finder.
31041
31042 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
31043
31044         * ThemeNice.cs:
31045           - Added nicer menu drawing
31046           - Updated DrawTab
31047           - some refactoring
31048
31049 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
31050
31051         * CreateParams.cs (ToString): Made output match MS
31052         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
31053             handle is already created (to avoid forcing window creation)
31054         * XplatUIX11.cs: Set window text to caption after creating window,
31055           in case Text was set before window was created
31056         * Form.cs: Use this.Text instead of a static string as caption
31057
31058 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
31059
31060         * NotifyIcon.cs: Don't set the window to visible; this screws
31061           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
31062           OnPaint without a bitmap)
31063         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
31064           happen very often anyway; we could add the check to the WM_PAINT 
31065           event generation code
31066
31067 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
31068
31069         * NotifyIcon.cs: Fill the icon area with a background color, to 
31070           avoid 'residue' when transparent icons are drawn
31071         * XplatUIX11.cs:
31072           - Handle whole_window == client_window when destroying windows
31073           - SystrayAdd(): Set client_window to whole_window value to
31074             get mouse and other events passed to NotifyIcon
31075
31076 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
31077
31078         * Form.cs: Set proper default for Opacity property
31079         * NotifyIcon.cs:
31080           - ShowSystray(): Don't bother creating telling the OS
31081             about the systray item if no icon is provided
31082           - Now handles WM_NCPAINT message to deal with whole/client window
31083             split
31084           - Create window as visible to not get caught by Expose optimization
31085         * Hwnd.cs: Removed debug message
31086         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
31087           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
31088             PaintEventStart/End to use new client argument
31089         * TextBoxBase.cs:
31090           - Commented out debug messages
31091           - Switched PaintEventStart/End to use new client argument
31092         * XplatUI.cs: Added client window bool to PaintEventStart()/
31093           PaintEventEnd() calls, to support drawing in non-client areas
31094         * XplatUIDriver.cs: 
31095           - Added client window bool to PaintEventStart()/PaintEventEnd() 
31096             calls, to support drawing in non-client areas
31097           - Added conditional compile to allow using MWF BeginInvoke 
31098             on MS runtime
31099         * XplatUIX11.cs:
31100           - Added some conditional debug output
31101           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
31102             whole/client window split
31103           - Implemented handling of client argument to PaintEventStart()/End()
31104         * Control.cs:
31105           - Throw exception if BeginInvoke() is called and the window handle
31106             or one of the window's parent handles is not created
31107           - Added conditional compile to allow using MWF BeginInvoke on
31108             MS runtime
31109           - get_Parent(): Only sets parent if handle is created. This avoids
31110             forcing window handle creation when parent is set.
31111           - Now fires Layout and Parent changed events in proper order
31112           - Switched to use Handle instead of window.Handle for Z-Order setting,
31113             the get_Parent() patch above causes us to possibly get null for 'window'
31114           - Implemented handling of client argument to PaintEventStart()/End()
31115           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
31116             default handling)
31117           - Now sends a Refresh() to all child windows when Refresh() is called
31118
31119 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
31120
31121         * Form.cs: Added (non-functional) Opacity property
31122         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
31123
31124 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
31125         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
31126           use export MONO_THEME=nice to activate it.
31127           Currently supported controls:
31128           - Button
31129           - ComboBox
31130           - ScrollBar
31131           - TabControl (TabAlignment.Top only, other will follow)
31132         * ThemeEngine.cs: Add theme nice
31133         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
31134           if enabled
31135
31136 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
31137
31138         * Splitter.cs: Resize docked control and its neighbor.
31139
31140 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
31141         -- Making Windows with Menus layout correctly --
31142         * Form.cs : The first leg of the fix
31143                 Menu setter - adjust Client Size as needed to make space for the menu
31144                 SetClientSizeCore - doesn't call base version to be able to pass the 
31145                         menu handle to XplatUI.CalculateWindowRect
31146         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
31147         * XplatUIX11.cs: The critical second leg of the fix
31148                 GetWindowPos needs to use a recalculated client_rect
31149                 so that resizing the window doesn't break layout of child controls. 
31150                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
31151                 Lots of \t\n killed
31152
31153 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
31154
31155         * Label.cs: Now properly recalculates width and height on Font and Text
31156           changes if AutoSize is set
31157
31158 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
31159         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
31160
31161 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
31162
31163         * ImageList.cs: Makes ToString method compatible with MS
31164
31165 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
31166
31167         * MenuAPI.cs: fixes bug 75716
31168
31169 2005-08-11 Umadevi S <sumadevi@novell.com>
31170         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
31171
31172 2005-08-11 Umadevi S <sumadevi@novell.com>
31173         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
31174
31175 2005-08-10  Umadevi S <sumadevi@novell.com>
31176         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
31177
31178 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
31179
31180         * Menu.cs: fixes bug 75700
31181         * MenuAPI.cs: fixes navigation issues
31182
31183 2005-08-09  Umadevi S <sumadevi@novell.com>
31184         * CheckedListBox.cs - simple fix for GetItemChecked.
31185
31186 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
31187
31188         * ComboBox.cs: Serveral fixes
31189         * ListBox.cs: Serveral fixes
31190
31191 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
31192
31193         * ComboBox.cs: Fixes FindString methods and GetItemHeight
31194         * ListBox.cs: Fixes FindString methods
31195
31196 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
31197
31198         * DataGrid.cs: fixes bugs exposed by new tests
31199
31200 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
31201
31202         * Mime.cs: Compile Mono assembly references only if compiling
31203           with Mono (Allows to build with VS.Net again)
31204
31205 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
31206
31207         * Control.cs (PaintControlBackground): Draw background image
31208         corrrectly.
31209         (CheckForIllegalCrossThreadCalls): Stubbed.
31210         
31211         * Form.cs (OnCreateControl): Center when should be centered.
31212         
31213         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
31214
31215 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
31216
31217         * Binding.cs: Binding to properties should be case unsensitive
31218
31219 2005-07-18 vlindos@nucleusys.com
31220
31221         * DataGrid.cs: fixes setmember order
31222
31223 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
31224
31225         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
31226         * FileDialog.cs: FileDialog is now resizable and uses the new
31227           MimeIconEngine
31228
31229 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
31230
31231         * DataGridTextBoxColumn.cs: default value
31232         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
31233         * GridTableStylesCollection.cs: fixes checking MappingName
31234         * DataGridDrawingLogic.cs: fixes drawing logic issues
31235         * DataSourceHelper.cs: rewritten to make compatible with more data sources
31236         * DataGrid.cs: fixes    
31237
31238 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
31239
31240         * MimeGenerated.cs: Use case sensitive comparer for
31241           NameValueCollections
31242
31243 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
31244
31245         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
31246         * ThemeWin32Classic.cs: bug fixes, code refactoring
31247         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
31248         * DataGrid.cs: bug fixes, code refactoring
31249         * DataGridTextBox.cs: bug fixes, code refactoring
31250         * DataGridColumnStyle.cs:  bug fixes, code refactoring
31251         * Theme.cs:  bug fixes, code refactoring
31252
31253 2005-07-01  Peter Bartok  <pbartok@novell.com> 
31254
31255         * TextControl.cs: Quick fix for the reported crash on ColorDialog
31256           and other text box usage
31257
31258 2005-07-01  Jackson Harper  <jackson@ximian.com>
31259
31260         * TabControl.cs: Make sure the bottom of the tab covers the pages
31261         border.
31262
31263 2005-06-30  Peter Bartok  <pbartok@novell.com> 
31264
31265         * Form.cs (ShowDialog): Assign owner of the dialog
31266         * TextBoxBase.cs: Always refresh caret size when deleting, caret
31267           might have been moved to a tag with different height
31268
31269 2005-06-30  Jackson Harper  <jackson@ximian.com>
31270
31271         * Form.cs: Don't create an infinite loop when setting focus
31272         * MenuItem.cs: Don't dirty the parents if we don't have any
31273
31274 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
31275
31276         * LibSupport.cs: Rename
31277
31278 2005-06-29  Peter Bartok  <pbartok@novell.com>
31279
31280         * TextBoxBase.cs: Re-align caret after deleting a character
31281         * TextControl.cs:
31282           - DeleteChars(): Ensure that tag covers the provided position
31283           - StreamLine(): Drop reference for dropped tag
31284
31285 2005-06-29  Peter Bartok  <pbartok@novell.com> 
31286
31287         * TextControl.cs: 
31288           - Selections now work properly, anchoring at the initial location
31289             and properly extending in either direction (SetSelectionToCaret(),
31290             SetSelectionStart() and SetSelectionEnd())
31291           - No longer redraws the whole control on selection change, now
31292             calculates delta between previous and new selection and only
31293             invalidates/redraws that area
31294           - Fixed FindPos() math off-by-one errors
31295           - Changed DeleteChars() to verify the provided tag covers the
31296             provided position, selections may have a tag that doesn't cover
31297             the position if the selection is at a tag border
31298           - Fixed off-by-one errors in DeleteChars()
31299           - Added missing streamlining check in DeleteChars() to remove
31300             zero-length tags
31301           - Implemented Invalidate() method, now properly calculates exposures
31302             between two given lines/positions
31303           - Implemented SetSelection()
31304           - Obsoleted and removed FixupSelection()
31305           - Improved RecalculateDocument() logic, removing code duplication
31306
31307 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31308
31309         * LibSupport.cs: changes to match different input/output arguments.
31310
31311 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31312
31313         * LibSupport.cs: added libsupport.so init routine.
31314
31315 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
31316         
31317         * ControlBindingsCollection.cs
31318                 - Throws an exception on null datasource when adding
31319                 - Checks for duplicated bindings when adding
31320
31321 2005-06-28  Jackson Harper  <jackson@ximian.com>
31322
31323         * TreeView.cs (OnKeyDown): Support left and right properly
31324         (navigates as well as expanding and collapsing.
31325         - Add support for Multiply, this expands all the selected nodes
31326         children.
31327         - Fix some tabbing.
31328
31329 2005-06-28  Jackson Harper  <jackson@ximian.com>
31330
31331         * TreeView.cs: Implement keyboard navigation, currently supports,
31332         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
31333         support for toggling checkboxes with the space bar.
31334
31335 2005-06-28  Jackson Harper  <jackson@ximian.com>
31336
31337         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
31338         tree.
31339
31340 2005-06-28  Jackson Harper  <jackson@ximian.com>
31341
31342         * TreeView.cs: Add missing event.
31343
31344 2005-06-27  Peter Bartok  <pbartok@novell.com> 
31345
31346         * TextControl.cs:
31347           - Made line ending size configurable (now allows for counting 
31348             lineendings as \n or \r\n)
31349           - Added margin to viewport to keep caret visible on right side
31350           - Fixed translation routines for line/pos to documentpos to consider
31351             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
31352           - Fixed some line-endings to be unix style
31353           - Fixed Document.FormatText to perform it's calculations 1-based
31354           - Added descriptions for a few methods that might otherwise get 
31355             used wrong
31356           - Added NOTE section with some basic conventions to remember at 
31357             the top of the file
31358           - Major fixup for RichTextBox selection drawing:
31359             * Fixed crashes when multiple tags on a single line were selected
31360             * fixed selection box drawing not overlaying text
31361             * fixed bogus offset calculation for tags not starting at index 1
31362             * Switched behaviour from using multiple Substrings of a 
31363               StringBuilder.ToString() to using multiple 
31364               StringBuilder.ToString(start, length) statements, hoping this is
31365               faster (kept original version commented out in the code, in case
31366               original version was faster)
31367         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
31368           alignment != Left
31369         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
31370           call it as well
31371
31372 2005-06-27  Jackson Harper  <jackson@ximian.com>
31373
31374         * TabControl.cs: Move to the left and right with the arrow
31375         keys. These keys don't cycle beyond first and last like
31376         tab. Refresh all the tabs when scrolling them to the left or
31377         right.
31378
31379 2005-06-27  Jackson Harper  <jackson@ximian.com>
31380
31381         * TabControl.cs:
31382           - ToString: Added method
31383           - CreateParams: Remove TODO and comment
31384           - OnKeyDown: Cycle through bounds properly.
31385           - SelectedIndex: Scroll to the right or left if we need to
31386           display the newly selected tab.
31387
31388 2005-06-23  Jackson Harper  <jackson@ximian.com>
31389
31390         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
31391         set.
31392
31393 2005-06-23  Jackson Harper  <jackson@ximian.com>
31394
31395         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
31396         CTRL-SHIFT-TAB, and HOME, END are there any others?
31397
31398 2005-06-23  Jackson Harper  <jackson@ximian.com>
31399
31400         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
31401
31402 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
31403         
31404         * DataGridTextBoxColumn.cs: fixes and enhancements
31405         * ThemeWin32Classic.cs: fixes and enhancements
31406         * DataGridBoolColumn.cs:  fixes and enhancements
31407         * DataGridDrawingLogic.cs:  fixes and enhancements
31408         * CurrencyManager.cs: fixes and enhancements
31409         * DataGrid.cs: fixes and enhancements
31410         * DataGridColumnStyle.cs:  fixes and enhancements
31411
31412 2005-06-22  Jackson Harper  <jackson@ximian.com>
31413
31414         * TabControl.cs: Add some missing methods that just call into the
31415         base. Make the TabPageCollection's IList interface behave in the
31416         same manner as the MS implementation.
31417
31418 2005-06-22  Peter Bartok  <pbartok@novell.com> 
31419
31420         * TextControl.cs: Added sanity check
31421         * TextBoxBase.cs: 
31422           - Fixed wrapping behaviour, don't set wrap on single line controls
31423             (this fixes the breakage of colordialog introduced in an earlier
31424              checkin)
31425           - Added rudimentary support for autoscrolling right-aligned controls
31426             (still needs fixing, also, center alignment scroll is missing)
31427
31428 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
31429         
31430         * ScrollBar.cs: Fixes thumbpos on Maximum values
31431
31432 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
31433         
31434         * PropertyGridView.cs: Pass context information to UITypeEditors 
31435
31436 2005-06-21  Peter Bartok  <pbartok@novell.com> 
31437
31438         * TextBoxBase.cs:
31439           - Now calling PositionCaret with absolute space coordinates
31440           - Enabled vertical scrolling
31441           - Better tracking of scrollbar changes, tied into WidthChange
31442             event
31443           - Improved cursor tracking
31444           - Removed debug output
31445         * TextControl.cs:
31446           - PositionCaret coordinates are now works in absolute space, not 
31447             the canvas
31448           - Improved tracking of document size
31449           - Added events for width and height changes
31450
31451 2005-06-21  Peter Bartok  <pbartok@novell.com>
31452
31453         * Form.cs: Set focus to active control when form is activated
31454         * TextControl.cs: 
31455           - Added word-wrap functionality to RecalculateLine() 
31456           - Added some short function descriptions for VS.Net to aid in
31457             writing dependent controls
31458           - Added Caret property, returning the current coords of the caret
31459           - Added ViewPortWidth and ViewPortHeight properties
31460           - Added Wrap property
31461           - Added CaretMoved event
31462           - Removed some old debug code
31463           - Split() can now create soft splits
31464           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
31465           - Added method to format existing text
31466           - Fixed size/alignment calculations to use viewport
31467           - RecalculateDocument now can handle changing line-numbers while
31468             calculating lines
31469
31470         * TextBox.cs:
31471           - Added some wrap logic, we don't wrap if alignment is not left
31472           - Added casts for scrollbar var, base class switched types to
31473             also support RichTextBoxA
31474           - Implemented handling of scrollbar visibility flags
31475
31476         * TextBoxBase.cs:
31477           - Switched scrollbars type to RichTextBoxScrollBars to support
31478             RichTextBox
31479           - Added tracking of canvas width/height
31480           - Switched scrollbars to be not selectable (to keep focus on text)
31481           - Added central CalculateDocument() method to handle all redraw
31482             requirements
31483           - Added ReadOnly support
31484           - Added WordWrap support
31485           - Fixed handling of Enter key (we now treat it as a DialogKey)
31486           - Fixed caret positioning when h or v scroll is not zero
31487           - Fixed placing/generation of vertical scrollbar
31488           - Added CalculateScrollBars() method to allow updating scrollbar
31489             limits and visibility
31490           - Fixed handling of horizontal scroll
31491           - Added handling of vertical scroll
31492           - Implemented auto-'jump' when caret moves to close to a left or
31493             right border and there is text to be scrolled into view (currently
31494             there's the potential for a stack overflow, until a bug in
31495             scrollbar is fixed)
31496
31497 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
31498         
31499         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
31500
31501 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
31502
31503         * Mime.cs:
31504         - added inodes.
31505         - return application/x-zerosize for files with size zero
31506           (if no extension pattern matches).
31507         - check matches collection for strings too.
31508         - return only the first mime type if the name value
31509           collection has more than one mime type.
31510
31511 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
31512         
31513         * PropertyGrid.cs: Cleaned up some TODOs
31514         * PropertyGridView.cs: Added support for UITypeEditors
31515
31516 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
31517         
31518         * DataGrid.cs: clears cached value
31519
31520 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
31521
31522         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
31523         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
31524         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
31525         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
31526         
31527 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
31528
31529         * ThemeWin32Classic.cs: fixes colour
31530
31531 2005-06-15  Peter Bartok  <pbartok@novell.com>
31532
31533         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
31534         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
31535         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
31536         * Control.cs: Added some MWFCategory and MWFDescription attributes
31537         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
31538
31539 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
31540
31541         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
31542         usage
31543
31544 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
31545
31546         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
31547         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
31548         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
31549         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
31550         * DataGrid.cs: default datagrid settings for Default Styles, fixes
31551         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
31552
31553 2005-06-13  Jackson Harper  <jackson@ximian.com>
31554
31555         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
31556         isn't printed when the user enables dropping. (X11 does accept
31557         drops).
31558         
31559 2005-06-13  Jackson Harper  <jackson@ximian.com>
31560
31561         * TreeView.cs: Remove some TODOS.
31562
31563 2005-06-13  Jackson Harper  <jackson@ximian.com>
31564
31565         * Form.cs: Hook into the mdi framework.
31566         * MdiClient.cs: Use the base control collections add method so
31567         parents get setup correctly. Set the default back colour and dock
31568         style.
31569         * MdiChildContext.cs: New class, this bad actor handles an
31570         instance of an MDI window. Right now there is only basic
31571         support. You can drag, close, and resize windows. Minimize and
31572         Maximize are partially implemented.
31573
31574 2005-06-13  Jackson Harper  <jackson@ximian.com>
31575
31576         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
31577         freaky when both vals are negative. NOTE: There are probably other
31578         places in XplatUIX11 that this needs to be done.
31579
31580 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
31581
31582         * DataGrid.cs: implement missing methods, move KeyboardNavigation
31583         * DataGridColumnStyle.cs: fixes signature
31584
31585 2005-06-12  Jackson Harper  <jackson@ximian.com>
31586
31587         * XplatUIX11.cs: Use sizing cursors similar to the ones on
31588         windows.
31589
31590 2005-06-11  Jackson Harper  <jackson@ximian.com>
31591
31592         * StatusBarPanel.cs: Signature cleanups. Implement
31593         BeginInit/EndInit.
31594
31595 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
31596
31597         * DataGridTextBoxColumn.cs: Honors aligment
31598         * GridColumnStylesCollection.cs: Contains is case unsensitive
31599         * GridTableStylesCollection.cs: several fixes
31600         * DataGridTableStyle.cs: default column creation
31601         * DataGridDrawingLogic.cs: fixes
31602         * CurrencyManager.cs: ListName property
31603         * DataGrid.cs: multiple styles support
31604         * DataGridColumnStyle.cs: fixes
31605         
31606
31607 2005-06-10  Peter Bartok  <pbartok@novell.com>
31608
31609         * Control.cs(Select): Moved SetFocus call to avoid potential
31610           loops if controls change the active control when getting focus
31611         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
31612           the up/down buttons
31613
31614 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
31615
31616         * ImageListConverter.cs: Implemented
31617
31618 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
31619
31620         * MonthCalendar.cs: Wired in NumericUpDown control for year
31621
31622 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
31623
31624         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
31625           DoubleClick events, since they are not meant to be fired.
31626
31627 2005-06-09  Peter Bartok  <pbartok@novell.com>
31628
31629         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
31630           Jonathan's standalone controls into MWF, implemented missing
31631           events, attributes and methods; added xxxAccessible classes
31632         * AccessibleObject.cs: Made fields internal so other classes
31633           can change them if needed
31634
31635 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
31636
31637         * UpDownBase.cs: Complete implementation
31638         * NumericUpDown.cs: Complete implementation
31639         * DomainUpDown.cs: Complete implementation
31640
31641 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
31642
31643         * DataGridTextBoxColumn.cs: drawing fixes
31644         * DataGridCell.cs: fixes ToString method to match MSNet
31645         * DataGridTableStyle.cs: fixes
31646         * DataGridBoolColumn.cs: fixes, drawing
31647         * DataGridDrawingLogic.cs: fixes, new methods
31648         * DataGridTextBox.cs: Keyboard and fixes
31649         * DataGrid.cs:
31650                 - Keyboard navigation
31651                 - Scrolling fixes
31652                 - Row selection (single, multiple, deletion, etc)
31653                 - Lots of fixes
31654         
31655 2005-06-07  Jackson Harper  <jackson@ximian.com>
31656
31657         * ThemeWin32Classic.cs: Clear the background area when drawing
31658         buttons.
31659
31660 2005-06-06  Peter Bartok  <pbartok@novell.com>
31661
31662         * ImageListStreamer.cs: Fixed signature for GetData
31663         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
31664         * ComboBox.cs:
31665           - Added missing ChildAccessibleObject class
31666           - Added missing OnXXXFocus overrides, switched to using those
31667             instead of the event handler
31668         * Control.cs:
31669           - Added Parent property for ControlAccessibleObject
31670           - Fixed signatures
31671           - Fixed attributes
31672           - Added ResetBindings()
31673         * ListBindingConverter.cs: Implemented some methods
31674         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
31675         * ImageList.cs: Implemented basic handle scheme, removed TODOs
31676         * ContainerControl.cs: Fixed signature, now subscribing to the
31677           ControlRemoved event instead of overriding the handler, LAMESPEC
31678         * CurrencyManager.cs: Added missing attribute
31679         * MonthCalendar.cs: Added missing properties
31680
31681 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
31682
31683         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
31684         
31685 2005-06-06  Gaurav Vaish and Ankit Jain
31686
31687         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
31688         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
31689         
31690 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
31691
31692         * Control.cs: fixes CreateParams Width / Height.
31693
31694 2005-06-05  Peter Bartok  <pbartok@novell.com>
31695
31696         * Win32DnD.cs: Removed compilation warnings
31697
31698 2005-06-05  Peter Bartok  <pbartok@novell.com>
31699
31700         * Control.cs (CreateParams): Since we don't know if one of the
31701           properties we use is overridden, lets make sure if we fail accessing
31702           we continue with a backup plan
31703
31704 2005-06-05  Peter Bartok  <pbartok@novell.com>
31705
31706         * Win32DnD.cs:
31707           - Removed debug output
31708           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
31709             struct
31710           - Plugged resource leak
31711         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
31712           MS size
31713
31714 2005-06-05  Peter Bartok  <pbartok@novell.com>
31715
31716         * XplatUIWin32.cs: Removed DnD code
31717         * Win32DnD.cs: Implemented drop source and drop target functionality
31718
31719 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31720
31721         * UpDownBase.cs: remove duplicate addition of event, enable some code
31722         that was commented out.
31723         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
31724         Validate input when a key is pressed. It works fine now for every
31725         combination of Hexadecimal. Only missing some drawing love when sharing
31726         space with other controls.
31727
31728 2005-06-04  Peter Bartok  <pbartok@novell.com>
31729
31730         * Control.cs:
31731           - We need to pass a window for DragDrop, so enable callback events
31732           - Added DnD callback events when being a DragSource
31733         * XplatUI.cs (StartDrag): Added window handle argument
31734         * XplatUIDriver.cs (StartDrag): Added window handle argument
31735         * QueryContinueDragEventArgs: Made fields internally accessible so
31736           drivers can set them
31737         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
31738           can set them
31739
31740 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
31741
31742         * DataGridTextBoxColumn.cs: column text editing
31743         * DataGridTableStyle.cs: Respect columns styles created by the user
31744         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
31745         * DataGridBoolColumn.cs: bool column editing
31746         * DataGrid.cs: fixes to scrolling, properties, etc
31747         * DataGridTextBox.cs: handle keyboard
31748         * DataGridColumnStyle.cs: fixes
31749
31750 2005-06-02  Jackson Harper  <jackson@ximian.com>
31751
31752         * ImageListStreamer.cs: Somewhat broken implementation of
31753         GetObjectData. The RLE needs some work to match MS properly.
31754
31755 2005-06-02  Jackson Harper  <jackson@ximian.com>
31756
31757         * X11Dnd.cs: Attempting to keep at least one file in MWF
31758         monostyled.
31759
31760 2005-06-02  Peter Bartok  <pbartok@novell.com>
31761
31762         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
31763           that way
31764
31765 2005-06-02  Peter Bartok  <pbartok@novell.com>
31766
31767         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
31768         * XplatUI.cs: Added DoDragDrop() method
31769         * XplatUIDriver.cs: Added DoDragDrop() method
31770
31771 2005-06-02  Jackson Harper  <jackson@ximian.com>
31772
31773         * Splitter.cs: Implement BorderStyle.
31774
31775 2005-06-02  Jackson Harper  <jackson@ximian.com>
31776
31777         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
31778         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
31779         X11 using XDND.
31780
31781 2005-06-02  Peter Bartok  <pbartok@novell.com>
31782
31783         * DataObject.cs:
31784           - Added Data setter
31785           - Fixed broken insertion code for SetData, now also
31786             overwrites any existing entry of the same format name
31787         * Hwnd.cs: Added list of pointers that automatically gets
31788           freed when the window is disposed
31789         * XplatUI.cs: Call driver initialization method when loading
31790           a driver
31791         * Control.cs:
31792           - OnDragLeave takes EventArgs, not DragEventArgs
31793           - Added setting of WS_EX_ACCEPTFILES style when dropping is
31794             supported
31795           - Forces style update when drop state changes
31796         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
31797           not perfect since we cannot (yet) call the IDataObject.GetData()
31798           method, we keep getting 0x80004005 error, dunno why)
31799
31800 2005-06-02  Peter Bartok  <pbartok@novell.com>
31801
31802         * DragEventArgs.cs: Make fields internal so we can cache the
31803           object and re-set the fields from XplatUI
31804
31805 2005-06-02  Jackson Harper  <jackson@ximian.com>
31806
31807         * Control.cs: Add some internal methods so the DnD subsystem can
31808         raise DnD events. Also call into the driver when AllowDrop is set.
31809         * XplatUI.cs:
31810         * XplatUIDriver.cs: New method for setting whether or not a window
31811         is allowed to accept drag and drop messages.
31812                 
31813 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
31814         
31815         * ScrollBar.cs: Make sure that values sent in Scroll events
31816         are always between Maximum and Minimum.
31817
31818 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
31819
31820         * Menu.cs: Call MenuChanged when menuitem visibility has been
31821         changed.
31822         * MenuItem.cs: Rebuild menu when item is (not) visible.
31823         * MainMenu.cs: MainMenu has special MenuChanged.
31824         * Theme.cs: Caption and FrameBorderSize are not fixed.
31825         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
31826         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
31827         * XplatUIX11.cs,
31828         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
31829         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
31830
31831 2005-05-30  Jackson Harper  <jackson@ximian.com>
31832
31833         * DataFormat.cs: We can't statically initialize this stuff because
31834         it calls into the xplatui and could create a loop. So we lazy init
31835         it.
31836
31837 2005-05-28  Jackson Harper  <jackson@ximian.com>
31838
31839         * Control.cs: Proper implementation of Product(Name/Version).
31840
31841 2005-05-27  Jackson Harper  <jackson@ximian.com>
31842
31843         * DataObject.cs: Dont crash if no data is found.
31844
31845 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
31846         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
31847                 as per status page, guessing it should be set to true
31848
31849 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
31850
31851         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
31852         * DataGridTableStyle.cs: set proper formatting text, def header text
31853         * ThemeWin32Classic.cs: new themable paramaters
31854         * DataGridBoolColumn.cs: paint check box, get data, fixes
31855         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
31856         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
31857         * DataGridColumnStyle.cs: fixes
31858         * Theme.cs: new themable paramaters
31859                 
31860 2005-05-26  Peter Bartok  <pbartok@novell.com>
31861
31862         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
31863
31864 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31865         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
31866
31867 2005-05-24  Peter Bartok  <pbartok@novell.com>
31868
31869         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
31870           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
31871           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
31872           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
31873           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
31874           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
31875           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
31876           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
31877           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
31878           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
31879           missing attributes, etc
31880         * DataGridPreferredColumnWidthTypeConverter.cs: Added
31881
31882 2005-05-24  Peter Bartok  <pbartok@novell.com>
31883
31884         * Help.cs: Added, implemented trivial functions, throws up MessageBox
31885           when user tries to get help
31886         * DataObject.cs, DataFormats.cs, LinkArea.cs,
31887           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
31888           to suppress warnings
31889         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
31890           avoid unreachable code warning
31891
31892 2005-05-20  Peter Bartok  <pbartok@novell.com>
31893
31894         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
31895
31896 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
31897
31898         * DataGridTextBoxColumn.cs: Basic painting methods
31899         * DataGridTableStyle.cs: Set table style in the column
31900         * ThemeWin32Classic.cs: Use Theme for colors
31901         * DataGridDrawingLogic.cs: Implement more drawing
31902         * DataGrid.cs: drawing, theming, enhacements, fixes
31903         * DataGridColumnStyle.cs: fixes, drawing
31904         * Theme.cs: theming for Datagrid
31905
31906 2005-05-20  Peter Bartok  <pbartok@novell.com>
31907
31908         * Cursor.cs: Implemented GetObjectData() method
31909
31910 2005-05-20  Peter Bartok  <pbartok@novell.com>
31911
31912         * Cursors.cs: Added setting of cursor name
31913         * Cursor.cs:
31914           - Implemented constructors
31915           - Implemented Draw and DrawStretched
31916           - Implemented Current property
31917           - Implemented == and != operators
31918           - Implemented Dispose()
31919           - Implemented ToString
31920           - Added missing attributes
31921         * XplatUIX11.cs:
31922           - Added missing reset for OverrideCursor when DoEvents is called
31923           - Fixed creation of cursor, logic was wrong
31924         * XplatUIWin32.cs:
31925           - Added missing reset for OverrideCursor when DoEvents is called
31926           - Fixed creation of cursor, bit arrays were swapped
31927         * Clipboard.cs: Removed obsolete MonoTODO attribute
31928
31929 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
31930
31931         * ComboBox.cs: fixes OnSelectedItemChanged
31932         * ControlBindingsCollection.cs: fixes item range check
31933
31934 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
31935
31936         * UpDownBase.cs:
31937                 - Calc preferred height properly
31938                 - Implement missing properties
31939                 
31940         * NumericUpDown.cs: Implement missing events
31941
31942 2005-05-19  Jackson Harper  <jackson@ximian.com>
31943
31944         * TabControl.cs: New method that resizes the tab pages before
31945         redrawing them. This as needed as the control is double buffered
31946         and sizing will not be recalculated unless ResizeTabPages is
31947         called.
31948         * TabPage.cs: Set base.Text instead of Text in the constructor so
31949         that UpdateOwner does not get called. Use the new Redraw method of
31950         TabControl instead of Refresh so the sizing is recalculated.
31951         * ThemeWin32Classic.cs: Draw the text for button tabs.
31952
31953 2005-05-19  Jackson Harper  <jackson@ximian.com>
31954
31955         * Control.cs: Paint control background images. Fix typo where
31956         PaintControlBackground was not getting called correctly.
31957
31958 2005-05-19  Peter Bartok  <pbartok@novell.com>
31959
31960         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
31961           I can investigate, apparently I broke FileDialog
31962
31963 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
31964
31965         * AxHost.cs: Some simple properties.
31966         * Control.cs: window must be accessible after ctor.
31967         * Form.cs: Added TransparencyKey property.
31968         * TextBoxBase.cs: Implemented Clear. Text property can be null.
31969         * XplatUIWin32.cs: SetBorderStyle implemented.
31970
31971 2005-05-18  Peter Bartok  <pbartok@novell.com>
31972
31973         * DataObject.cs: Entries are not global but particular to the
31974           DataObject, now it behaves that way
31975         * XplatUIWin32.cs: Implemented Clipboard methods
31976         * Clipboard.cs: Implemented
31977         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
31978         * XplatUIOSX.cs: Updated to final clipboard prototypes
31979         * XplatUIX11.cs: Implemented Clipboard methods
31980         * XplatUIDriver.cs: Updated to final clipboard prototypes
31981         * XplatUIStructs.cs:
31982           - Added BITMAPINFOHEADER struct
31983           - Added ClipboardFormats enum
31984         * X11Structs.cs:
31985           - Added ClipboardStruct
31986           - Added Atom enum items for clipboard types
31987           - Fixed atom types for Selection event structures
31988         * DataFormats.cs:
31989           - Added internal properties and methods for drivers to enumerate
31990             all known formats
31991           - Switched initialization method to allow drivers to assign their
31992             own IDs even for the MS predefined clipboard IDs
31993         * XplatUI.cs: Updated to final clipboard interface
31994
31995 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31996         * PropertyGridView.cs: Fixed compiler warnings.
31997
31998 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31999         * PropertyGrid.cs: Added some event calls
32000         * PropertyGridView.cs: Change drawing code to use double buffering
32001         * PropertyGridTextBox.cs: Changed Text property name
32002         * GridItem.cs: Added Bounds property.
32003         * GridEntry.cs: Added Bounds property.
32004
32005 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
32006
32007         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
32008         since GetType() may not return the correct type if the object is
32009         a remoting proxy.
32010
32011 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
32012
32013         * TreeNodeCollection.cs: fixes get/set item ranges
32014         
32015 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
32016
32017         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
32018                 
32019 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
32020
32021         * ComboBox.cs: Fix item range comparation
32022         * ListView.cs: Fix item range comparation
32023
32024 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
32025
32026         * FontDialog.cs:
32027           - Clear example panel when OnPaint is called
32028           - Better solution for displaying the example panel text
32029           - Select default indexes in the ListBoxes
32030
32031 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
32032
32033         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
32034
32035 2005-05-11  Peter Bartok  <pbartok@novell.com>
32036
32037         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
32038         * SelectionRangeConverter.cs: Implemented
32039         * PropertyGrid.cs: Fixed attribute value
32040         * Control.cs:
32041           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
32042           - Added Sebastien Pouliot's CAS Stack Propagation fixes
32043         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
32044           that's common to all drivers. First methods to go there are
32045           Sebastien Pouliot's CAS Stack Propagation helper methods
32046         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
32047           Sebastien Pouliot for CAS Stack Propagation
32048
32049 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
32050
32051         * OSXStructs.cs:
32052           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
32053
32054 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
32055
32056         * DataGridTextBoxColumn.cs: fixed some members
32057         * GridColumnStylesCollection.cs: indexed column is case insensitive
32058         * DataGridTableStyle.cs: fixes
32059         * ThemeWin32Classic.cs: add new theme parameter
32060         * Theme.cs: add new theme parameter
32061         * DataGridDrawingLogic.cs: Datagrid's drawing logic
32062         * DataGrid.cs: fixes, new internal properties, etc.
32063         * DataGridColumnStyle.cs: allows to set grid value
32064         *
32065
32066 2005-05-10  Peter Bartok  <pbartok@novell.com>
32067
32068         * AccessibleObject.cs:
32069           - Removed MonoTODO attribute on help, method is correct
32070           - Fixed Bounds property
32071         * AxHost.cs: Moved MonoTODO
32072         * ButtonBase.cs: Now setting AccessibleObject properties
32073         * RadioButton.cs: Setting proper AccessibleObject role
32074         * CheckBox.cs: Setting proper AccessibleObject role
32075         * ControlBindingsCollection.cs: Added properties, methods and attributes
32076         * DataFormats.cs: Fixed awkward internal API, and changed to enable
32077           userdefined DataFormats.Format items as well
32078         * ListControl.cs: Removed data_member from the public eye
32079         * OpenFileDialog.cs:
32080           - Made class sealed
32081           - Added missing attributes
32082         * SaveFileDialog.cs: Added missing attributes
32083         * ImageListStreamer.cs: Fixed code that caused warnings
32084         * LinkLabel.cs: Removed unreachable code
32085         * TreeView.cs: Fixed code that caused warnings
32086         * PropertyGridView.cs: Fixed code that caused warnings
32087         * GridColumnStylesCollection.cs: Added missing attributes
32088         * GridTableStylesCollection: Added missing attribute
32089         * PropertyManager: Added .ctor
32090         * SecurityIDType: Added
32091         * DataObject.cs: Implemented class
32092         * LinkArea.cs: Added missing attribute
32093
32094 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
32095
32096         * RadioButton.cs: call base method to allow to fire OnClick event
32097         * UpDownBase.cs: OnMouseUp call base method
32098         * CheckedListBox.cs: call base method before returning
32099         * TrackBar.cs: call base method before returning
32100         
32101
32102 2005-05-10  Peter Bartok  <pbartok@novell.com>
32103
32104         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
32105           for messages
32106
32107 2005-05-10  Peter Bartok  <pbartok@novell.com>
32108
32109         * DataFormats.cs: Implemented
32110         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
32111           XplatUIX11.cs: Added Clipboard APIs
32112         * XplatUIWin32.cs: Implemented Clipboard APIs
32113         * FolderBrowserDialog.cs: Added missing event, attributes
32114
32115 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
32116
32117         * CheckBox.cs: call base method to allow to fire OnClick event
32118
32119 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
32120
32121         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
32122
32123 2005-05-06  Peter Bartok  <pbartok@novell.com>
32124
32125         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
32126         * Screen.cs: Implemented
32127         * HelpNavigator.cs: Added
32128         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
32129           property
32130         * HelpProvider.cs: Implemented all we can do until we have a CHM
32131           help library (which means that "What's This" does work now)
32132
32133 2005-05-06  Jackson Harper  <jackson@ximian.com>
32134
32135         * XplatUIX11.cs: Fix waking up the main loop.
32136                 
32137 2005-05-05  Peter Bartok  <pbartok@novell.com>
32138
32139         * XplatUI.cs: Updated revision
32140         * Form.cs: Removed enless loop
32141         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
32142         * Label.cs (OnPaint): Added call to base.OnPaint()
32143         * ToolTip.cs: Made ToolTipWindow reusable for other controls
32144         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
32145         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
32146         * AxHost.cs: Added
32147         * ButtonBase.cs: Moved base.OnPaint() call to end of method
32148         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
32149           to ToolTip.ToolTipWindow for drawing and size methods; this allows
32150           reuse of ToolTipWindow by other controls
32151         * SizeGrip.cs: Moved base.OnPaint() call to end of method
32152         * XplatUIX11.cs: Now clipping drawing area (experimental)
32153         * PictureBox.cs: Moved base.OnPaint() call to end of method
32154         * Theme.cs: Fixed ToolTip abstracts to match new format
32155         * ErrorProvider.cs: Implemented
32156
32157 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
32158
32159         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
32160         * LinkLabel.cs:
32161                 - Adds cursors
32162                 - Handles focus
32163                 - Implements LinkBehavior
32164                 - Fixes many issues
32165
32166 2005-05-03  Jackson Harper  <jackson@ximian.com>
32167
32168         * ListView.cs: Calculate the scrollbar positioning on resize and
32169         paint, so they get put in the correct place.
32170
32171 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
32172
32173         * ColorDialogs.cs: The small color panels are now handled by
32174           SmallColorControl. This fixes drawing of the focus rectangle
32175           and adds a 3D border.
32176
32177 2005-05-03  Peter Bartok  <pbartok@novell.com>
32178
32179         * Control.cs: Modified version of Jonathan Chamber's fix for
32180           double-buffering
32181
32182 2005-05-03  Jackson Harper  <jackson@ximian.com>
32183
32184         * ListView.cs: Remove redraw variable. Control now handles whether
32185         or not a redraw needs to be done, and will only raise the paint
32186         event if redrawing is needed.
32187
32188 2005-05-03  Jackson Harper  <jackson@ximian.com>
32189
32190         * Splitter.cs: No decorations for the splitter form. Cache the
32191         hatch brush.
32192
32193 2005-05-03  Jackson Harper  <jackson@ximian.com>
32194
32195         * TreeView.cs: Use dashed lines to connect nodes. Use the
32196         ControlPaint method for drawing the focus rect instead of doing
32197         that in treeview.
32198
32199 2005-05-02  Peter Bartok  <pbartok@novell.com>
32200
32201         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
32202
32203 2005-04-29  Jackson Harper  <jackson@ximian.com>
32204
32205         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
32206         entire image buffer. Just clear the clipping rectangle.
32207
32208 2005-04-29  Jackson Harper  <jackson@ximian.com>
32209
32210         * ThemeWin32Classic.cs: Don't draw list view items that are
32211         outside the clipping rectangle.
32212
32213 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
32214
32215         * ListBox.cs: added horizontal item scroll
32216
32217 2005-04-29  Jackson Harper  <jackson@ximian.com>
32218
32219         * ThemeWin32Classic.cs: Remove some old debug code that was
32220         causing flicker with the new double buffering code.
32221
32222 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
32223
32224         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
32225         behave like combobox and comboboxlist (still not sure if this is
32226         correct though).
32227
32228 2005-04-28  Jackson Harper  <jackson@ximian.com>
32229
32230         * ThemeWin32Classic.cs: Don't fill the middle of progress
32231         bars. This fills areas outside of the clip bounds that don't need
32232         to be filled.
32233
32234 2005-04-28  Jackson Harper  <jackson@ximian.com>
32235
32236         * Control.cs: Don't expose functionality to touch the image buffers.
32237         * ProgressBar.cs:
32238         * ListView.cs: We do not need to (and no longer can) manipulate
32239         the image buffers directly. All of this is handled by Control.
32240
32241 2005-04-28  Peter Bartok  <pbartok@novell.com>
32242
32243         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32244           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
32245           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
32246
32247 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
32248
32249         * Combobox:
32250                 - Adjust control's height for non-simple comboboxes (bug fix)
32251                 - Remove dead code
32252         * MenuAPI.cs: remove unused var
32253         * ScrollBar.cs: remove unsed var
32254                  
32255         * ListBox.cs: unselect items when clearing
32256
32257 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
32258
32259         * ListControl.cs: honors OnPositionChanged and default Selected Item
32260         * ListBox.cs: unselect items when clearing
32261
32262 2005-04-27  Jackson Harper  <jackson@ximian.com>
32263
32264         * X11Keyboard.cs: Initialize a default keyboard and give a warning
32265         if a "correct" keyboard is not found. This will make us not crash,
32266         but might give some users bad keyboard layouts...seems to be the
32267         same thing rewind does.
32268
32269 2005-04-27  Jackson Harper  <jackson@ximian.com>
32270
32271         * BindingManagerBase.cs: Attach the current/position changed
32272         handlers to their respective events.
32273
32274 2005-04-27  Jackson Harper  <jackson@ximian.com>
32275
32276         * Control.cs: Make sure that the first WM_PAINT does a full draw,
32277         not just a blit.
32278         * ThemeWin32Classic.cs: Don't fill the background for picture
32279         boxes. This could overright user drawing.
32280         * ComboBox.cs: Just fill the clipping rect not the entire client
32281         rect when drawing the background. This prevents pieces of the
32282         image buffer from getting overwritten and is theoretically faster.
32283
32284 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
32285
32286         * ComboBox.cs: Databinding support fixes, fire missing events
32287         * ListControl.cs: implement missing methods and properties, fixes
32288         * ThemeWin32Classic.cs: Databiding support on Drawing
32289         * CheckedListBox.cs: Databinding support fixes, fire missing events
32290         * ListBox.cs: Databinding support fixes, fire missing events
32291         
32292 2005-04-25  Peter Bartok  <pbartok@novell.com>
32293
32294         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
32295
32296 2005-04-25  Jackson Harper  <jackson@ximian.com>
32297
32298         * TreeView.cs: Use the horizontal scrollbars height not width when
32299         determining how much of the client area is available.
32300
32301 2005-04-25  Jackson Harper  <jackson@ximian.com>
32302
32303         * Control.cs: Double buffering is handled differently now. As per
32304         the spec, the extra buffer is created in the WM_PAINT message and
32305         passed down to the control's drawing code.
32306         * GroupBox.cs:
32307         * Label.cs:
32308         * CheckBox.cs:
32309         * ProgressBar.cs:
32310         * RadioButton.cs:
32311         * ColorDialog.cs:
32312         * ComboBox.cs:
32313         * PropertyGridView.cs:
32314         * UpDownBase.cs:
32315         * MessageBox.cs:
32316         * MenuAPI.cs:
32317         * ListView.cs:
32318         * ButtonBase.cs:
32319         * SizeGrip.cs:
32320         * ScrollBar.cs:
32321         * ListBox.cs:
32322         * TrackBar.cs:
32323         * ToolBar.cs:
32324         * PictureBox.cs:
32325         * DateTimePicker.cs:
32326         * StatusBar.cs:
32327         * TreeView.cs: Update to new double buffering system.
32328         * MonthCalendar.cs: Uncomment block, as Capture is now
32329         working. Update to new double buffering
32330         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
32331         * PaintEventArgs.cs: New internal method allows us to set the
32332         graphics object. This is used for double buffering.
32333         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
32334         rectangle. The internal paint_area var has been removed from
32335         StatusBar. The clipping rect should be used instead.
32336         * Theme.cs: Give the PictureBox drawing method a clipping rect.
32337         * TabPage.cs: The RefreshTabs method was removed, so just call the
32338         tab controls Refresh method now.
32339         * TabControl.cs: Update to new double buffering. Make sure the
32340         handle is created before sizing the tab pages, otherwise we will
32341         get stuck in a loop.
32342
32343 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
32344
32345         * LinkLabel.cs: Fix typo, bug #74719; patch
32346           from Borja Sanchez Zamorano
32347
32348 2005-04-22  Jackson Harper  <jackson@ximian.com>
32349
32350         * TreeNode.cs: Implement Handle stuff.
32351         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
32352
32353 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
32354
32355         * DataGridTextBoxColumn.cs: call base constructors, fixes
32356         * GridColumnStylesCollection.cs: missing events, methods, and functionality
32357         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
32358         * DataGridTableStyle.cs: implements create default column styles
32359         * DataGridBoolColumn.cs: which types can handle
32360         * DataGrid.cs: missing methods, fixes, new functionality
32361         * DataGridColumnStyle.cs: fixes
32362
32363 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
32364         * FolderBrowserDialog.cs:
32365         - Use a thread to fill the TreeView
32366         - Adjusted some sizes
32367
32368 2005-04-19  Peter Bartok  <pbartok@novell.com>
32369
32370         * LinkLabel.cs: (Re-)create the pieces when setting the Text
32371           property. Fixes #74360.
32372
32373 2005-04-19  Jackson Harper  <jackson@ximian.com>
32374
32375         * XEventQueue.cs: Lock when getting the lockqueue size.
32376         * PictureBox.cs: Call base OnPaint
32377         
32378 2005-04-19  Peter Bartok  <pbartok@novell.com>
32379
32380         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
32381           messages were no longer being processed (this broke BeginInvoke)
32382
32383           
32384 2005-04-18  Jackson Harper  <jackson@ximian.com>
32385
32386         * TreeView.cs: buglet that caused node images to get drawn
32387         regardless of whether or not they were in the clipping rectangle.
32388
32389 2005-04-18  Jackson Harper  <jackson@ximian.com>
32390
32391         * CurrencyManager.cs: There are four rules for GetItemProperties:
32392         - If the type is an array use the element type of the array
32393         - If the type is a typed list, use the type
32394         - If the list contains an Item property that is not an object, use
32395         that property
32396         - use the first element of the list if there are any elements in
32397         the list.
32398         
32399 2005-04-17  Jackson Harper  <jackson@ximian.oom>
32400
32401         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
32402         click. This handles offsets for scrolling properly and reduces
32403         memory. Also fixed GetNode to not offset now that TopNode works
32404         properly.
32405         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
32406         
32407 2005-04-17  Jackson Harper  <jackson@ximian.com>
32408
32409         * CursorConverter.cs: Initial implementation.
32410
32411 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
32412
32413         * ListControl.cs: work towards complex data binding support on ListControl
32414         * CurrencyManager.cs: work towards complex data binding support on ListControl
32415         * ListBox.cs: work towards complex data binding support on ListControl
32416
32417
32418 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
32419
32420         * GridTableStylesCollection.cs: fixes name and constructor
32421         * DataGridTableStyle.cs: fixes
32422         * DataGridBoolColumn.cs: fixes names and constructors
32423         * DataGrid.cs: define methods and properties. Some init implementations
32424         * DataGridCell.cs: define methods and properties. Some init implementations
32425         * GridTablesFactory.cs: Define methods and properties
32426
32427 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
32428
32429         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
32430         graphics port changes.  We still want the coordinates in global screen
32431         coordinates.
32432
32433 2005-04-14  Jackson Harper  <jackson@ximian.com>
32434
32435         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
32436         check plus minus or checkbox clicks unless those features are enabled.
32437
32438 2005-04-14  Jackson Harper  <jackson@ximian.com>
32439
32440         * TreeView.cs: Add methods for setting the top and bottom visible
32441         nodes. TreeNode::EnsureVisible uses these methods.
32442         * TreeNode.cs: Implement EnsureVisible
32443
32444 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
32445
32446         * Form.cs: Pospone menu assignation if the window has not been created yet
32447         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
32448         size and position
32449
32450 2005-04-12  Jackson Harper  <jackson@ximian.com>
32451
32452         * TreeView.cs: Set the TopNode properly when scrolling
32453         occurs. This has the added benifit of reducing the amount of
32454         walking that needs to be done when drawing. Also removed an old
32455         misleading TODO.
32456         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
32457         
32458 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
32459
32460         * Timer.cs: fixes interval setting when the timer is already enabled
32461         
32462 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
32463
32464         * FolderBrowserDialog.cs: First approach
32465
32466 2005-04-09  Peter Bartok  <pbartok@novell.com>
32467
32468         * FolderBrowserDialog: Added
32469
32470 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
32471
32472         * LinkLabel.cs: move drawing code into the theme
32473         * ThemeWin32Classic.cs: drawing code and painting background bugfix
32474         * Theme.cs: define DrawLinkLabel method
32475
32476 2005-04-05  Jackson Harper  <jackson@ximian.com>
32477
32478         * BindingContext.cs: Use weak references so these bad actors don't
32479         stay alive longer then they need to.
32480
32481 2005-04-05  Jackson Harper  <jackson@ximian.com>
32482
32483         * ListControl.cs: Basic implementation of complex databinding.
32484         * ComboBox.cs:
32485         * ListBox.cs: Add calls to ListControl databinding methods.
32486
32487 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
32488
32489         * FileDialog.cs:
32490           - Don't change PopupButtonState to Normal when the
32491             PopupButton gets pressed several times.
32492           - Renamed ButtonPanel to PopupButtonPanel
32493
32494 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
32495
32496         * ColorDialog.cs: Use cached objects instead of creating them
32497         * LinkLabel.cs: Use cached objects instead of creating them
32498         * Splitter.cs: Use cached objects instead of creating them
32499         * FontDialog.cs: Use cached objects instead of creating them
32500         * PropertyGridView.cs: Use cached objects instead of creating them
32501         * MessageBox.cs: Use cached objects instead of creating them
32502         * FileDialog.cs: Use cached objects instead of creating them
32503         * ThemeWin32Classic.cs: Use cached objects instead of creating them
32504         * TreeView.cs: Use cached objects instead of creating them
32505         
32506 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
32507
32508         * Control.cs: use Equals to compare the font since no == op
32509         * ScrollBar.cs: use Equals to compare the font since no == op
32510
32511 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
32512
32513         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
32514
32515 2005-04-01  Jackson Harper  <jackson@ximian.com>
32516
32517         * Binding.cs: Implement IsBinding.
32518         * BindingManagerBase.cs:
32519         * PropertyManager.cs:
32520         * CurrencyManager.cs: Add IsSuspended property.
32521
32522 2005-04-01  Jackson Harper  <jackson@ximian.com>
32523
32524         * Binding.cs: Had some IsAssignableFrom calls backwards.
32525
32526 2005-04-01  Jackson Harper  <jackson@ximian.com>
32527
32528         * Binding.cs: Handle null data members when pulling data.
32529         * PropertyManager.cs: Handle the data member being a property that
32530         does not exist.
32531
32532 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
32533
32534         * DataGridTextBoxColumn.cs: fixes signature
32535         * DataGrid.cs: calls right constructor
32536
32537 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
32538
32539         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
32540         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
32541         * GridTableStylesCollection.cs: implements GridTableStylesCollection
32542         * DataGridTableStyle.cs: implements DataGridTableStyle
32543         * DataGridBoolColumn.cs: implements DataGridBoolColumn
32544         * DataGridTextBox.cs: implements DataGridTextBox
32545         * DataGridColumnStyle.cs: implements DataGridColumnStyle
32546
32547 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
32548
32549         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
32550
32551 2005-03-29  Peter Bartok  <pbartok@novell.com>
32552
32553         * Application.cs:
32554           - Properly implemented CompanyName property
32555           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
32556             returns a path that includes CompanyName, ProductName and
32557             Version (fixes bug #70330)
32558
32559 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
32560
32561         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
32562           fixes bug #72588.
32563
32564 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
32565
32566         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
32567         
32568           - Added ReadOnly CheckBox
32569           - Further refactoring: moved some code from Open-/SaveFileDialog
32570             to FileDialog
32571
32572 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
32573
32574         * OpenFileDialog.cs: Fixed CheckFileExists
32575         * FileDialog.cs:
32576           Moved FileView and DirComboBox outside FileDialog class.
32577           They can now be used outside FileDialog
32578
32579 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
32580
32581         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
32582         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
32583
32584 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
32585
32586         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32587           - Added missing CreatePrompt property in SaveDialog
32588           - Overall SaveDialog handling should be better now
32589           - Added non standard ShowHiddenFiles property
32590           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
32591           - Added InitialDirectory and RestoreDirectory support
32592
32593 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
32594
32595         * FileDialog.cs: Made dirComboBox usable
32596
32597 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
32598
32599         * FileDialog.cs: Added Filter support (case sensitiv)
32600
32601 2005-03-24  Jackson Harper  <jackson@ximian.com>
32602
32603         * TabControl.cs: Need a couple more pixels for the lines.
32604
32605 2005-03-23  Jackson Harper  <jackson@ximian.com>
32606
32607         * TabControl.cs: Give the tab page focus when it is selected.
32608
32609 2005-03-23  Jackson Harper  <jackson@ximian.com>
32610
32611         * TabControl.cs: Account for the drawing of tabs borders when
32612         invalidating. If the slider was clicked dont do click detection on
32613         the tabs.
32614
32615 2005-03-23  Jackson Harper  <jackson@ximian.com>
32616
32617         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
32618
32619 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
32620
32621         * CategoryGridEntry.cs: Added
32622         * GridItem.cs: Added helper properties
32623         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
32624         * GridEntry.cs: Updated code for collection
32625         * PropertyGrid.cs: Cleaned up some formatting
32626         * PropertyGridView.cs: Added drop down functionality for enums.
32627         * GridItemCollection.cs: Added enumerator logic
32628         * PropertyGridEntry.cs: Added
32629
32630 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
32631
32632         * FileDialog.cs:
32633           - Removed unnecessary commented code
32634           - Fixed handling for entering the filename manually in the combobox
32635
32636 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
32637
32638         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
32639
32640 2005-03-18  Peter Bartok  <pbartok@novell.com>
32641
32642         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
32643           them being touching the border
32644
32645 2005-03-18  Peter Bartok  <pbartok@novell.com>
32646
32647         * TextControl.cs: Quick hack to center text better
32648
32649 2005-03-18  Peter Bartok  <pbartok@novell.com>
32650
32651         * ControlPaint.cs:
32652           - Don't throw NotImplemented exceptions, just print a notice once
32653             instead (requested by Miguel). This makes running existing SWF
32654             apps a bit easier
32655         * Control.cs:
32656           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
32657           - Added context menu trigger on right click
32658         * Panel.cs: Trigger invalidate on resize
32659         * StatusBar.cs:
32660           - Removed old double-buffer drawing
32661           - Added ResizeRedraw style to force proper update of statusbar
32662         * ListView.cs:
32663           - Removed debug output
32664         * ThemeWin32Classic.cs:
32665           - Fixed drawing of status bar, now draws Text property if there
32666             are no defined panels
32667
32668 2005-03-18  Jackson Harper  <jackson@ximian.com>
32669
32670         * ImageList.cs: When the image stream is set pull all the images
32671         from it.
32672         * ImageListStreamer.cs: Implement reading image list streams.
32673
32674 2005-03-18  Peter Bartok  <pbartok@novell.com>
32675
32676         * ThemeWin32Classic.cs (DrawPictureBox):
32677           - Fixed calculations for centered drawing
32678           - Fixed drawing for normal mode, not scaling the image on normal
32679
32680 2005-03-18  Peter Bartok  <pbartok@novell.com>
32681
32682         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
32683           textbox
32684         * FileDialog.cs:
32685           - Made Open/Save button the accept button for FileDialog
32686           - Tied the cancel button to the IButtonControl cancel button
32687           - Save/Open now properly builds the pathname
32688           - Now handles user-entered text
32689           - Preventing crash on right-click if no item is selected
32690           - Fixed Text property, now uses contents of textbox
32691           - Fixed SelectedText property, now just returns the text part that
32692             is selected in the text box
32693
32694 2005-03-18  Jackson Harper  <jackson@ximian.com>
32695
32696         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
32697         rect, make sure to de-adjust the interior rect after drawing the
32698         tab text.
32699
32700 2005-03-18  Peter Bartok  <pbartok@novell.com>
32701
32702         * MenuAPI.cs: Remove menu *before* executing selected action to
32703           prevent the menu from 'hanging around'
32704           
32705 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
32706
32707         * XplatUIOSX.cs: Implemented WorkingArea property
32708
32709 2005-03-17  Peter Bartok  <pbartok@novell.com>
32710
32711         * XplatUIX11.cs: Fixed menu coord calculations
32712         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
32713           for calculating offsets
32714
32715 2005-03-17  Peter Bartok  <pbartok@novell.com>
32716
32717         * Hwnd.cs: Do not consider menu presence for default client
32718           rectangle location/size
32719         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
32720           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
32721           translation functions
32722         * FileDialog.cs: Fixed (what I presume is a) typo
32723
32724 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
32725
32726         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
32727           X access (avoids X-Async errors)
32728
32729 2005-03-16  Jackson Harper  <jackson@ximian.com>
32730
32731         * TabControl.cs: Raise the SelectedIndexChanged event.
32732
32733 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
32734
32735         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32736           - Removed vertical ToolBar and replaced it with a custom panel
32737             (desktop and home button already work)
32738           - Added Help button (some controls get resized or relocated then)
32739           - Draw correct text depending on Open or Save.
32740           - Fixed some typos...
32741
32742 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
32743
32744         * ScrollBar.cs:
32745           - Only change Maximum and Minimum when need it (bug fix)
32746
32747 2005-03-15  Peter Bartok  <pbartok@novell.com>
32748
32749         * Form.cs: Use Handle for icon, to trigger creation if
32750           the window does not yet exist
32751         * Control.cs:
32752           - CanSelect: Slight performance improvement
32753           - Focus(): Preventing possible recursion
32754           - Invalidate(): Removed ControlStyle based clear flag setting
32755           - WM_PAINT: fixed logic for calling OnPaintBackground
32756           - WM_ERASEBKGND: Fixed logic, added call to new driver method
32757             EraseWindowBackground if the control doesn't paint background
32758         * XplatUIWin32.cs:
32759           - Moved EraseWindowBackground() method to internal methods
32760           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
32761             is sent via SendMessage on BeginPaint call on Win32
32762         * XplatUIX11.cs:
32763           - Added EraseWindowBackground() method
32764           - No longer sends WM_ERASEBKGND on .Expose, but on call to
32765             PaintEventStart, which more closely matches Win32 behaviour
32766           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
32767           - Fixed SetFocus() to properly deal with client and whole windows
32768         * Hwnd.cs: Added ErasePending property
32769         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
32770         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
32771
32772 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
32773
32774         * XplatUIOSX.cs:
32775           - Fix hard loop when timers exist.
32776           - Fix bugs with middle and right click for 3 button mice.
32777
32778 2005-03-11  Peter Bartok  <pbartok@novell.com>
32779
32780         * XplatUIX11.cs:
32781           - get_WorkingArea: Need to call X directly, GetWindowPos only
32782             returns cached data now
32783           - Added sanity check to GetWindowPos hwnd usage
32784
32785 2005-03-11  Jackson Harper  <jackson@ximian.com>
32786
32787         * BindingManagerBase.cs: This method isn't used anymore as
32788         PullData now updates the data in the control.
32789
32790 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
32791
32792         * Form.cs: fixes menu drawing on X11
32793         * MenuAPI.cs:  fixes menu drawing on X11
32794
32795 2005-03-11  Peter Bartok  <pbartok@novell.com>
32796
32797         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
32798           from Jonathan Gilbert; should fix bug #73606
32799         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
32800           in Screen coordinates. Thanks, Jordi.
32801         * Form.cs: Added missing attribute
32802
32803 2005-03-11  Peter Bartok  <pbartok@novell.com>
32804
32805         * Form.cs:
32806           - Rudimentary Mdi support
32807           - Removed outdated FormParent code
32808           - Implemented lots of missing properties and methods, still missing
32809             transparency support
32810           - Added missing attributes
32811           - Implemented support for MaximumBounds
32812           - Added firing of various events
32813         * XplatUI.cs: Added SetIcon() method
32814         * XplatUIDriver.cs: Added SetIcon() abstract
32815         * XplatUIOSX.cs: Stubbed out SetIcon() method
32816         * XplatUIX11.cs:
32817           - Implemented SetIcon() support
32818           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
32819           - Switched to unix line endings
32820         * XplatUIWin32.cs:
32821           - Made POINT internal so for can access it as part of MINMAX
32822           - Implemented SetIcon() support
32823           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
32824             native Mdi support again, might have to go managed)
32825         * Control.cs: Now fires the StyleChanged event
32826         * MdiClient.cs: Added; still mostly empty
32827
32828 2005-03-10  Peter Bartok  <pbartok@novell.com>
32829
32830         * SaveFileDialog.cs: Added emtpy file
32831
32832 2005-03-08  Peter Bartok  <pbartok@novell.com>
32833
32834         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
32835           in turn triggers OnCreateContro) when creating a handle for the
32836           first time.
32837         * TextControl.cs: Fixed endless loop in certain cases when
32838           replacing the current selection
32839
32840 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
32841
32842         * ScrollBar.cs:
32843           - Honors NewValue changes in Scroll events allowing apps to change it
32844           - Adds First and Last Scroll events
32845           - Fixes Thumb events
32846
32847 2005-03-07  Peter Bartok  <pbartok@novell.com>
32848
32849         * Hwnd.cs: Added DefaultClientRectangle property
32850         * XplatUI.cs: Now using the X11 driver Where() method, which provides
32851           more detailed debug information
32852         * XplatUIX11.cs:
32853           - Fixed size-change feedback loop, where we would pull an old size
32854             off the queue and mistakenly change our window's size to an
32855             earlier value
32856           - Now compressing ConfigureNotify events, to reduce looping and
32857             redraw issues
32858         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
32859           is called
32860
32861 2005-03-07  Jackson Harper  <jackson@ximian.com>
32862
32863         * Binding.cs: Push data pushes from data -> property. Check if the
32864         property is readonly when attempting to set it.
32865
32866 2005-03-07  Jackson Harper  <jackson@ximian.com>
32867
32868         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
32869         instead of IsSubclassOf. Pulling data now sets the value on the
32870         control.
32871         * PropertyManager.cs:
32872         * CurrencyManager.cs: Just need to pull data when updating now,
32873         because PullData will set the value on the control.
32874
32875 2005-03-04  Jackson Harper  <jackson@ximian.com>
32876
32877         * Binding.cs: Implement data type parsing and converting on pulled
32878         data. TODO: Are there more ways the data can be converted?
32879
32880 2005-03-04  Jackson Harper  <jackson@ximian.com>
32881
32882         * Binding.cs: Support <Property>IsNull checks. Also bind to the
32883         controls Validating method so we can repull the data when the
32884         control loses focus.
32885
32886 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
32887
32888         * ColumnHeader.cs:
32889           - Fixes null string format
32890           
32891         * ListView.cs:
32892           - Adds enum type checks
32893           - Fixes redrawing and recalc need after changing some properties
32894           - Fixes on focus_item set after the event
32895           - Fixes adding columns after the control has been created
32896           
32897         * ThemeWin32Classic.cs:
32898           - Fixes CheckBox focus rectangle
32899           - Fixes ColumnHeader drawing
32900
32901
32902 2005-03-03  Jackson Harper  <jackson@ximian.com>
32903
32904         * Binding.cs: Bind to <Property>Changed events so we can detect
32905         when properties are changed and update the data.
32906
32907 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
32908
32909         * ImageList.cs:
32910           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
32911           - Fixes ImageList constructor with ImageList container
32912           - Fixes image scaling (wrong parameters at DrawImage)
32913
32914 2005-02-02  Jackson Harper  <jackson@ximian.com>
32915
32916         * Binding.cs: Make property searches case-insensitive. Eliminate
32917         some duplicated code.
32918
32919 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
32920
32921         * ComboBox.cs:
32922                 - Handle focus event
32923                 - Fix scrollbar events
32924                 - Discard highlighted item if remove it
32925                 - Fixes SelectedItem with strings
32926
32927 2005-03-01  Peter Bartok  <pbartok@novell.com>
32928
32929         * Control.cs:
32930           - Fixed Visible property, now follows (once again) parent chain
32931             to return false if any control in the chain is visible=false
32932           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
32933           - Fixed several places where is_visible instead of Visible was used
32934           - Implemented FIXME related to focus selection when setting focused
32935             control to be invisible
32936
32937         * XplatUIWin32.cs: Now using proper method to find out if window is
32938           visible. Thanks to Jordi for pointing it out
32939
32940 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
32941
32942         * ComboBox.cs: show/hide scrollbar instead of creating it
32943
32944 2005-02-27  Jackson Harper  <jackson@ximian.com>
32945
32946         * CurrencyManager.cs: Add PositionChanged stuff.
32947
32948 2005-02-27  Peter Bartok  <pbartok@novell.com>
32949
32950         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
32951         * XplatUIOSX.cs: Added GetMenuOrigin() stub
32952         * XplatUIWin32.cs: Implemented GetMenuOrigin()
32953         * XplatUIX11.cs:
32954           - Implemented GetMenuDC()
32955           - Implemented GetMenuOrigin()
32956           - Implemented ReleaseMenuDC()
32957           - Implemented generation of WM_NCPAINT message
32958           - Implemented generation and handling of WM_NCCALCSIZE message
32959         * Form.cs: Added debug helper message for Jordi's menu work
32960         * Hwnd.cs:
32961           - Modified ClientRect property; added setter, fixed getter to handle
32962             setting of ClientRect
32963           - Added MenuOrigin property
32964
32965 2005-02-26  Peter Bartok  <pbartok@novell.com>
32966
32967         * XplatUIX11.cs:
32968           - Destroys the caret if a window that's being destroyed contains it
32969           - Ignores expose events coming from the X11 queue for windows that
32970             already are destroyed
32971           - Now uses the proper variable for handling DestroyNotify, before we
32972             marked the wrong window as destroyed
32973           - Improved/added some debug output
32974
32975 2005-02-26  Peter Bartok  <pbartok@novell.com>
32976
32977         * X11Keyboard.cs: Fixes to work on 64bit systems
32978
32979 2005-02-26  Peter Bartok  <pbartok@novell.com>
32980
32981         * Control.cs:
32982           - Now calling OnHandleDestroyed from DestroyHandle()
32983             instead of Dispose()
32984           - Removed bogus call to controls.Remove() from DestroyHandle()
32985
32986 2005-02-26  Peter Bartok  <pbartok@novell.com>
32987
32988         * Control.cs: Properly destroy child windows when our handle is
32989           destroyed
32990
32991 2005-02-25  Peter Bartok  <pbartok@novell.com>
32992
32993         * XplatUI.cs:
32994           - Added 'DriverDebug' define to allow tracing XplatUI API calls
32995           - Alphabetized Static Methods and Subclasses
32996
32997         * XplatUIX11.cs:
32998           - Added XException class to allow custom handling of X11 exceptions
32999           - Created custom X11 error handler, tied into XException class
33000           - Added support for MONO_XEXCEPTIONS env var to allow the user
33001             to either throw an exception on X errors or continue running
33002             after displaying the error
33003           - Added handling of DestroyNotify message
33004           - Added handler for CreateNotify message (still disabled)
33005           - Improved (tried to at least) Where method to provide file and lineno
33006         * X11Structs.cs:
33007           - Added XErrorHandler delegate
33008           - Added XRequest enumeration (to suppor translation of errors)
33009
33010 2005-02-25  Jackson Harper  <jackson@ximian.com>
33011
33012         * PropertyManager.cs: Implement editing features
33013         * CurrencyManager.cs:
33014         * Binding.cs: First attempt at UpdateIsBinding
33015         * BindingManagerBase.cs: Call UpdateIsBinding before
33016         pushing/pulling data.
33017
33018 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
33019
33020         * MenuAPI.cs: Respect disabled items
33021         * ThemeWin32Classic.cs
33022                 - Caches ImageAttributes creation for DrawImageDisabled
33023                 - Fixes vertical menu line drawing
33024                 - Draws disabled arrows in disable menu items
33025
33026 2005-02-24  Peter Bartok  <pbartok@novell.com>
33027
33028         * Hwnd.cs:
33029           - Added UserData property to allow associating arbitrary objects
33030             with the handle
33031           - Fixed leak; now removing Hwnd references from static windows array
33032         * XplatUIWin32.cs:
33033           - Fixed Graphics leak in PaintEventEnd
33034           - Removed usage of HandleData, switched over to Hwnd class
33035         * HandleData.cs: Removed, obsoleted by Hwnd.cs
33036
33037 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
33038
33039         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
33040         * ScrollBar.cs: Fixes bug
33041         * TrackBar.cs: removes death code, clipping, mimize refreshes,
33042          keyboard navigation enhancements
33043
33044 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
33045
33046         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
33047         * GroupBox.cs: Add control styles
33048         * Label.cs: Add control styles
33049         * UpDownBase.cs: Add control styles
33050         * ListBox.cs: Add control styles
33051         * XplatUIWin32.cs: Fixes wrong parameter order
33052
33053
33054 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
33055
33056         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
33057
33058 2005-02-23  Jackson Harper  <jackson@ximian.com>
33059
33060         * PropertyManager.cs: Implement property binding. This doesn't
33061         seem to work yet though as (I think) there are some bugs in
33062         System.ComponentModel.PropertyDescriptor.
33063         * BindingContext.cs: Use new PropertyManager constructor.
33064
33065 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
33066
33067         * ProgressBar.cs: use clip region in ProgressBar
33068         * ThemeWin32Classic.cs: use clip region in ProgressBar
33069
33070 2004-02-22  Jackson Harper  <jackson@ximian.com>
33071
33072         * BindingsCollection.cs: Remove some debug code.
33073
33074 2005-02-22  Jackson Harper  <jackson@ximian.com>
33075
33076         * BindingContext.cs:
33077         * ControlBindingsCollection.cs:
33078         * CurrencyManager.cs:
33079         * Binding.cs:
33080         * BindingManagerBase.cs: Initial implementation
33081         * BindingsCollection.cs: Add an internal contains method that the
33082         BindingManagerBase uses to ensure bindings aren't added twice to
33083         the collection.
33084         * PropertyManager.cs: Stubbed out.
33085         * Control.cs:
33086         * ContainerControl.cs: Hook up databinding
33087         
33088 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
33089
33090         * XplatUIOSX.cs:
33091           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
33092           Fixed Invalidate/Update chain.
33093           Fixed tons of other minor bugs (this is almost a complete rewrite).
33094
33095 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
33096
33097         * ComboBox.cs: do subcontrol creation when the control is created
33098
33099 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
33100
33101         * Label.cs: fixes image drawing (image and imagelist)
33102         * ThemeWin32Classic.cs: cache brushes
33103         
33104 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
33105
33106         * Form.cs: Move menu drawing code to Theme class
33107         * ComboBox.cs: Move ComboBox drawing code to Theme class
33108         * MenuItem.cs: Move menu drawing code to Theme class
33109         * MenuAPI.cs: Move menu drawing code to Theme class
33110         * ThemeWin32Classic.cs: New methods
33111         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
33112         * ListBox.cs: Move Listbox drawing code to Theme class
33113         * Theme.cs: New methods
33114
33115 2005-02-20  Peter Bartok  <pbartok@novell.com>
33116
33117         * Control.cs:
33118           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
33119             only process mnemonics on those)
33120           - Fixed event sequence for key handling; first calling
33121             ProcessKeyEventArgs now
33122         * TextBoxBase.cs:
33123           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
33124             for processing non-character keys
33125           - Fixed WM_CHAR to generate proper event sequence before processing
33126         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
33127           generation
33128
33129 2005-02-19  Peter Bartok  <pbartok@novell.com>
33130
33131         * UserControl.cs: Added TextChanged event; added attributes
33132         * SizeGrip.cs: Implemented resizing and optional display of grip
33133         * Form.cs: Fixed attribute
33134         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
33135           Changed meaning of ScrollWindow bool argument; instead of the
33136           clear attribute (which will be true usually anyway), it gives the
33137           option of moving child controls as well.
33138         * XplatUIX11.cs:
33139           - Changed to match new ScrollWindow argument
33140           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
33141             now handles the implicit parent window a WM puts around us
33142         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
33143           to work)
33144         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
33145         * TreeView.cs: Adjusted to new ScrollWindow arguments
33146
33147 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
33148
33149         * Form.cs: Menu integration with non-client area
33150         * MenuItem.cs: Menu integration with non-client area
33151         * MenuAPI.cs: Menu integration with non-client area
33152
33153 2005-02-18  Peter Bartok  <pbartok@novell.com>
33154
33155         * MethodInvoker.cs: Added
33156         * MdiLayout.cs: Added
33157         * SendKeys.cs: Started implementation
33158         * ErrorIconAlignment.cs: Added
33159
33160 2005-02-18  Peter Bartok  <pbartok@novell.com>
33161
33162         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
33163         * Form.cs: Added handling for Menu-related Non-client messages
33164
33165 2005-02-17  Peter Bartok  <pbartok@novell.com>
33166
33167         * UpDownBase.cs: Fixed typo, compilation errors
33168         * DomainUpDown.cs: Fixed attribute value
33169
33170 2005-02-16  Miguel de Icaza  <miguel@novell.com>
33171
33172         * UpDownBase.cs: Attach entry events.
33173         Propagate events.
33174         Add ForeColor property, Focused, InterceptArrowKeys (interception
33175         does not work yet).
33176
33177 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
33178
33179         * Form.cs:
33180                 - Redraw non client are on Setmenu
33181                 - Calc proper menu starting point
33182
33183 2005-02-17  Peter Bartok  <pbartok@novell.com>
33184
33185         * Application.cs: Fixed message_filter check
33186
33187 2005-02-17  Peter Bartok  <pbartok@novell.com>
33188
33189         * Application.cs: Now calls registered message filters
33190         * DockStyle.cs: Fixed attribute
33191         * Form.cs: Fixed attribute
33192         * Menu.cs: Fixed attribute
33193         * ToolTip.cs: Fixed attribute
33194         * TreeNode.cs: Added missing attributes and arranged in regions
33195         * PropertyGrid.cs: Fixed signatures
33196         * TreeNodeCollection.cs: Added attributes
33197         * Splitter.cs: Added missing attributes; arranged into regions
33198         * TabPage.cs: Added missing attributes; arranged into regions
33199         * TextBoxBase.cs: Added missing attributes
33200         * TextBox.cs: Added missing attributes
33201         * ArrangeDirection.cs: Added missing attributes
33202         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
33203         * ToolBarButton.cs: Fixed attributes
33204         * AnchorStyles.cs: Fixed attribute
33205         * TrackBar.cs: Fixed attributes
33206         * TabControl.cs: Added missing attributes and arranged into regions
33207         * ToolBar.cs: Fixed attribute
33208         * StatusBar.cs: Fixed signature, organized into regions and added
33209           attributes
33210         * StatusBarPanel.cs: Fixed attributes
33211         * ContentsResizedEventArgs.cs: Implemented
33212         * ContentsResizedEventHandler.cs: Implemented
33213         * DateBoldEventArgs.cs: Implemented
33214         * DateBoldEventHandler.cs: Implemented
33215         * UpDownEventArgs.cs: Implemented
33216         * UpDownEventHandler.cs: Implemented
33217         
33218 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
33219
33220         * Form.cs: first Menu NC refactoring
33221         * MenuAPI.cs: first Menu NC refactoring
33222         
33223 2005-02-16  Peter Bartok  <pbartok@novell.com>
33224
33225         * ImeMode.cs: Added missing attributes
33226         * Menu.cs: Fixed attribute
33227         * GroupBox.cs: Fixed attribute
33228         * Label.cs: Fixed attribute
33229         * ColorDialog.cs (RunDialog): Removed TODO attribute
33230         * ComboBox.cs: Fixed attributes
33231         * ListControl.cs: Added missing attributes
33232         * PropertyGrid.cs: Fixed attributes
33233         * Control.cs: Fixed attributes
33234         * ListViewItem.cs: Added TypeConverter attribute
33235         * NotifyIcon.cs: Fixed attributes
33236         * ListView.cs: Fixed attributes
33237         * ButtonBase.cs: Fixed attribute
33238         * ImageList.cs: Added missing attributes
33239         * ContainerControl.cs: Fixed signature
33240         * CheckedListBox.cs: Fixed attribute; added missing attributes
33241         * Panel.cs: Fixed attributes
33242         * PropertyTabChangedEventArgs.cs: Added missing attribute
33243         * PropertyValueChangedEventArgs.cs: Added missing attribute
33244         * Binding.cs: Fixed attribute
33245         * ListViewItemConverter: Implemented ListViewSubItemConverter class
33246         * ListBox.cs: Fixed attribute; added missing attributes;
33247         * ScrollableControl.cs: Added missing attributes
33248         * PictureBox.cs: Added missing attributes; implemented missing property
33249         * DateTimePicker.cs: Added missing attributes
33250         * Theme.cs (ToolWindowCaptionHeight): Fixed type
33251         * MonthCalendar.cs: Fixed attributes
33252         * StatusBarPanel.cs: Added missing attributes
33253         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
33254
33255 2005-02-16  Peter Bartok  <pbartok@novell.com>
33256
33257         * TextBoxBase.cs: The previous method to enforce height yet remember
33258           the requested high was less than ideal, this is an attempt to do
33259           it better.
33260         * Control.cs: Added comment about possible problem
33261         * Copyright: Updated format
33262         * GridItemType.cs: Fixed swapped values
33263
33264 2005-02-15  Jackson Harper  <jackson@ximian.com>
33265
33266         * BaseCollection.cs: Use property so we never access an
33267         uninitialized list. Also initialize the list in the property.
33268
33269 2005-02-15  Peter Bartok  <pbartok@novell.com>
33270
33271         * GroupBox.cs (ProcessMnemonic): Implemented
33272         * Label.cs (ProcessMnemonic): Implemented
33273         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
33274           hotkeys
33275
33276 2005-02-15  Peter Bartok  <pbartok@novell.com>
33277
33278         * RadioButton.cs (ProcessMnemonic): Implemented
33279         * CheckBox.cs (ProcessMnemonic): Implemented
33280         * Control.cs:
33281           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
33282             handling
33283           - Added internal method to allow calling ProcessMnemonic from other
33284             controls
33285         * ContainerControl.cs:
33286           - Started support for handling validation chain handling
33287           - Implemented ProcessMnemonic support
33288           - Added Select() call to Active, to make sure the active control
33289             receives focus
33290         * Form.cs: Setting toplevel flag for Forms (this was lost in the
33291           FormParent rewrite)
33292         * ThemeWin32Classic.cs:
33293           - DrawCheckBox(): Fixed stringformat to show hotkeys
33294           - DrawRadioButton(): Fixed stringformat to show hotkeys
33295         * CommonDialog.cs: Removed WndProc override, not needed
33296
33297 2005-02-14  Peter Bartok  <pbartok@novell.com>
33298
33299         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
33300           missed those in the rewrite
33301
33302 2005-02-14  Miguel de Icaza  <miguel@novell.com>
33303
33304         * NumericUpDown.cs (Increment, ToString): Add.
33305         (DecimalPlaces): implement.
33306         
33307         Add attributes.
33308         
33309         * UpDownBase.cs: Add the designer attributes.
33310
33311 2005-02-13  Peter Bartok  <pbartok@novell.com>
33312
33313         * Panel.cs: Removed border_style, now in Control
33314         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
33315           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
33316
33317 2005-02-13  Peter Bartok  <pbartok@novell.com>
33318
33319         * MouseButtons.cs: Added missing attributes
33320         * XplatUIStructs.cs: Added enumeration for title styles
33321         * LeftRightAlignment.cs: Added missing attributes
33322         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
33323           it compatible with Graphics.FromHwnd()
33324         * SelectedGridItemChangedEventArgs.cs: Fixed property type
33325         * Keys.cs: Added missing attributes
33326         * SelectionRange.cs: Added missing attributes
33327         * SelectionRangeConverter.cs: Added
33328         * XplatUI.cs:
33329           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
33330             ReleaseMenuDC methods
33331           - Renamed ReleaseWindow to UngrabWindow
33332           - Added proper startup notice to allow version identification
33333         * Form.cs:
33334           - Added missing attributes
33335           - Removed FormParent concept
33336         * Label.cs: Removed border_style field, now in Control
33337         * RadioButton.cs: Now properly selects RadioButton when focus is
33338           received
33339         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
33340         * Control.cs:
33341           - Added missing attributes
33342           - Added borderstyle handling
33343           - Removed FormParent concept support
33344           - Fixed calls to XplatUI to match changed APIs
33345           - Fixed bug that would case us to use disposed Graphics objects
33346           - Removed unneeded internal methods
33347           - PerformLayout(): Fixed to handle DockStyle.Fill properly
33348           - SelectNextControl(): Fixed to properly check common parents
33349         * TextBoxBase.cs: Removed border_style field (now in Control)
33350         * MessageBox.cs:
33351           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
33352             fixed calculations for form size
33353           - Added support for localized strings and icons
33354           - Improved form size calculations, added border
33355         * ListView.cs: Removed border_style field (now in Control)
33356         * X11Structs.cs: Moved several structs from X11 driver here
33357         * X11Keyboard.cs: Changed debug message
33358         * Application.cs: Removed FormParent concept support
33359         * CommonDialog.cs:
33360           - Resetting end_modal flag
33361           - Removed FormParent concept support
33362         * NativeWindow.cs: Removed FormParent concept support
33363         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
33364           Client area and Non-Client whole window to allow support for WM_NC
33365           messages
33366         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
33367           prevent using it until it supports Hwnd as per Geoff Norton's request
33368         * ToolBar.cs: Fixed drawing, was not doing proper drawing
33369         * PictureBox.cs: Removed border_style field, now in Control
33370         * XplatUIWin32.cs: Added new driver methods
33371
33372 2005-02-12  Peter Bartok  <pbartok@novell.com>
33373
33374         * OpacityConverter.cs: Implemented
33375         * Hwnd.cs: Internal class to support drivers that need to emulate
33376           client area/non-client area window behaviour
33377
33378 2005-02-11  Peter Bartok  <pbartok@novell.com>
33379
33380         * KeysConverter.cs: Implemented
33381
33382 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
33383
33384         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
33385         * LinkLabel: Added missing attributes
33386         * MainMenu.cs: fixes ToString
33387         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
33388         * ListBox.cs: fixes event position
33389         * TrackBar.cs: adds missing attributes and events
33390         
33391 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
33392
33393         * MenuItem.cs: Use SystemInformation and bug fixes
33394         * MenuAPI.cs: Use SystemInformation and bug fixes
33395
33396 2005-02-09  Jackson Harper  <jackson@ximian.com>
33397
33398         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
33399         their keystate otherwise things like VK_MENU get stuck "on".
33400
33401 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
33402
33403         * ListBox.cs: Fixes AddRange bug
33404         
33405 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
33406
33407         * ProgressBar.cs
33408                 - Add missing attributes
33409                 - Add missing method
33410                 
33411         * CheckedListBox.cs: Added missing attributes
33412                 - Add missing attributes
33413                 - Remove extra method
33414         
33415         * ComboBox.cs: Added missing attributes
33416         * VScrollBar.cs: Added missing attributes
33417         * ScrollBar.cs:  Added missing attributes
33418         * ListBox.cs: Fixes signature, add missing consts
33419         * LinkArea.cs:   Added missing attributes
33420         
33421
33422 2005-02-08  Peter Bartok  <pbartok@novell.com>
33423
33424         * Menu.cs: Added missing attributes
33425         * MainMenu.cs: Added missing attributes
33426         * GroupBox.cs: Added missing attributes
33427         * Label.cs: Added missing attributes
33428         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
33429         * ColorDialog.cs:
33430           - Added Instance and Options properties
33431           - Added missing attributes
33432         * Cursor.cs: Made Serializable
33433         * NotifyIcon: Added missing attributes
33434         * MenuItem.cs: Added missing attributes
33435         * TextBoxBase.cs: Implemented AppendText() and Select() methods
33436         * Panel.cs: Added Missing attributes
33437         * MonthCalendar.cs: Fixed CreateParams
33438
33439 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
33440         
33441         * LinkLabel.cs:
33442                 - Fixes signature
33443                 - Fixes issues with links
33444                 - Adds the class attributes
33445
33446 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
33447         
33448         * ComboBox.cs:
33449                 - Fixes button when no items available in dropdown
33450                 - Fixes repainting problems
33451                 - Adds the class attributes
33452                 
33453 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
33454
33455         * XplatUIOSX.cs: Detect the menu bar and title bar height from
33456         the current theme.  Cache these on startup.
33457
33458 2005-02-07  Jackson Harper  <jackson@ximian.com>
33459
33460         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
33461         the scrollbar buttons when they are depressed.
33462
33463 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
33464
33465         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
33466         Get the display size from the main displayid.  We currently dont
33467         support multiple display configurations.
33468
33469 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
33470
33471         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
33472
33473 2005-02-07  Miguel de Icaza  <miguel@novell.com>
33474
33475         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
33476
33477 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
33478
33479         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
33480
33481 2005-02-04  Jackson Harper  <jackson@ximian.com>
33482
33483         * ThemeWin32Classic.cs: Respect the clipping rect when
33484         drawing. Only fill the intersection of clips and rects so there
33485         isn't a lot of large fills.
33486         * ScrollBar.cs: Pass the correct clipping rect to the theme
33487         engine. Remove some debug code.
33488
33489 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
33490         
33491         * DateTimePicker.cs:
33492                 - Fixed crash on DateTime.Parse, use Constructor instead
33493
33494 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
33495         
33496         * MenuItem.cs:
33497         * MenuAPI.cs:
33498                 - Owner draw support (MeasureItem and DrawItem)
33499
33500 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
33501         
33502         *  Menu.cs:
33503                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
33504                 - Fixes MenuItems.Add range
33505         * MenuItem.cs:
33506                 - MergeMenu and Clone and CloneMenu functions
33507
33508 2005-02-03  Jackson Harper  <jackson@ximian.com>
33509
33510         * ScrollBar.cs: Make abstract
33511         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
33512         is abstract.
33513
33514 2005-02-03  Jackson Harper  <jackson@ximian.com>
33515
33516         * ScrollBar.cs: First part of my scrollbar fixups. This removes
33517         all the unneeded refreshes and uses invalidates with properly
33518         computed rects.
33519
33520 2005-02-03  Peter Bartok  <pbartok@novell.com>
33521
33522         * ComponentModel.cs: Added
33523         * IDataGridEditingService.cs: Added
33524         * Timer.cs: Added missing attributes
33525         * ToolTip.cs: Added missing attributes
33526
33527 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
33528
33529         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
33530
33531 2005-02-03  Peter Bartok  <pbartok@novell.com>
33532
33533         * ListBox.cs: Added missing attributes
33534
33535 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
33536         
33537         * ListBox.cs:
33538                 - Fixes font height after font change
33539                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
33540                 
33541 2005-02-02  Peter Bartok  <pbartok@novell.com>
33542
33543         * HandleData.cs: Introduced static methods to allow class
33544           to be more self-contained and track it's own HandleData objects
33545         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
33546           HandleData to use new static methods
33547
33548 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
33549
33550         * Combobox.cs:
33551                 - Fixes default size and PreferredHeight
33552                 - Missing events
33553                 - ObjectCollection.Insert implementation
33554                 
33555         * ListControl.cs
33556                 - Fixes signature
33557         * ListBox.cs:
33558                 - Several fixes
33559                 - ObjectCollection.Insert implementation
33560                 - No selection after clean
33561                 - Small fixes
33562
33563 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
33564
33565         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
33566
33567 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
33568
33569         * Combobox.cs:
33570                 - Caches ItemHeight calculation for OwnerDrawVariable
33571                 - Handles dropdown properly
33572                 - Fixes several minor bugs
33573
33574 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
33575
33576         * ListBox.cs:
33577                 - Fixes 71946 and 71950
33578                 - Fixes changing Multicolumn on the fly
33579                 - Fixes keyboard navigation on Multicolumn listboxes
33580
33581 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
33582         
33583         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
33584         crash reporter log.
33585
33586 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
33587
33588         * XplatUIOSX.cs: Allow applications to actually exit.
33589
33590 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
33591
33592         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
33593         their parent at creation time rather than lazily later.  Fixes a major
33594         regression we were experiencing.
33595
33596 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
33597
33598         * ThemeWin32Classic.cs: more date time picker painting fixes
33599         * DateTimePicker.cs: more monthcalendar drop down fixes
33600         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
33601
33602 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
33603
33604         * ScrollBar.cs:
33605                 - When moving the thumb going outside the control should stop the moving
33606                 - Adds the firing of missing events
33607                 - Fixes no button show if Size is not specified
33608                 - End / Home keys for keyboard navigation
33609
33610 2005-01-30  Peter Bartok  <pbartok@novell.com>
33611
33612         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
33613           sanity check to prevent theoretical loop
33614         * XplatUIWin32.cs (SetVisible): Removed debug output
33615         * XplatUIX11.cs (SystrayChange): Added sanity check
33616         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
33617         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
33618           behaviour, valid until the X11 client window rewrite is done
33619         * TextBox.cs (ctor): Setting proper default foreground and background
33620           colors
33621
33622 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
33623
33624         * Theme: Added DrawDateTimePicker to interface
33625         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
33626         * DateTimePicker.cs: Created (still needs keys and painting code)
33627         * DateTimePickerFormat.cs: added
33628         * MonthCalendar.cs: fixed CreateParams for popup window mode
33629           
33630 2005-01-29  Peter Bartok  <pbartok@novell.com>
33631
33632         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
33633           this should also the calculations for ligher/darker
33634         * Theme.cs: Fixed defaults for ScrollBar widths/heights
33635
33636 2005-01-29  Peter Bartok  <pbartok@novell.com>
33637
33638         * ArrangeDirection.cs: Added
33639         * ArrangeStartingPositon.cs: Added
33640         * SystemInformation.cs: Implemented
33641         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33642           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
33643           used by SystemInformation class
33644         * X11Strucs.cs: Added XSizeHints structure
33645         * MenuAPI.cs:
33646           - Fixed CreateParams to make sure the menu window is always visible
33647           - TrackPopupMenu: Added check to make sure we don't draw the
33648             menu offscreen
33649
33650 2005-01-29  Peter Bartok  <pbartok@novell.com>
33651
33652         * HandleData.cs: Added method for altering invalid area
33653         * TextBoxBase.cs: Implemented TextLength
33654
33655 2005-01-28  Peter Bartok  <pbartok@novell.com>
33656
33657         * XplatUIX11.cs: Improvement over last patch, not sending
33658           the WM_PAINT directly anymore, instead we scroll any pending
33659           exposed areas and let the system pick out the WM_PAINT later
33660
33661 2005-01-28  Peter Bartok  <pbartok@novell.com>
33662
33663         * SWF.csproj: Deleted, no longer used. Instead,
33664           Managed.Windows.Forms/SWF.csproj should be used
33665         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
33666           directly, to avoid a potential race condition with the next
33667           scroll
33668
33669 2005-01-28  Peter Bartok  <pbartok@novell.com>
33670
33671         * XplatUI.cs: Made class internal
33672
33673 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
33674
33675         * CheckedListBox.cs:
33676                 - Draw focus
33677                 - Fixed Drawing
33678                 - Missing methods and events
33679
33680 2005-01-27  Peter Bartok  <pbartok@novell.com>
33681
33682         * Application.cs (Run): Don't use form if we don't have one
33683
33684 2005-01-27  Peter Bartok  <pbartok@novell.com>
33685
33686         * TextBoxBase.cs (get_Lines): Fixed index off by one error
33687
33688 2005-01-27  Peter Bartok  <pbartok@novell.com>
33689
33690         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
33691         * GridItem.cs: Added; Patch by Jonathan S. Chambers
33692         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
33693         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
33694         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
33695         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
33696         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33697         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33698         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33699         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33700         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33701         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33702
33703 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
33704
33705         * Combobox.cs:
33706                 - Draw focus on Simple Combobox
33707                 - Fixes drawing issues
33708                 - fixes 71834
33709
33710 2005-01-27  Peter Bartok  <pbartok@novell.com>
33711
33712         * Form.cs:
33713           - Place window in default location, instead of hardcoded 0/0
33714           - Send initial LocationChanged event
33715         * Control.cs:
33716           - UpdateBounds after creation to find out where the WM placed us
33717           - Make sure that if the ParentForm changes location the Form
33718             is notified
33719         * XplatUIX11.cs: XGetGeometry will not return the coords relative
33720             to the root, but to whatever the WM placed around us.
33721             Translate to root coordinates before returning toplevel
33722             coordinates
33723         * XplatUIWin32.cs: Removed debug output
33724         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
33725           flag to GetWindowPos, to allow translation of coordinates on X11
33726
33727 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
33728
33729         * ListBox.cs: connect LostFocus Event
33730
33731 2005-01-27  Peter Bartok  <pbartok@novell.com>
33732
33733         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
33734           XplatUIX11.cs: Extended the Systray API
33735         * Form.cs: Removed debug output
33736         * Application.cs: Fixed focus assignment, always need to call
33737           XplatUI.Activate() since Form.Activate() has rules that may
33738           prevent activation
33739         * NotifyIcon.cs: Should be complete now
33740         * ToolTip.cs: Worked around possible timer bug
33741
33742 2005-01-27  Jackson Harper  <jackson@ximian.com>
33743
33744         * TabControl.cs:
33745         - Only invalidate the effected tabs when the
33746         selected index changes. This reduces drawing and gets rid of some
33747         flicker.
33748         - Only refresh if the tabs need to be shifted, otherwise only
33749         invalidate the slider button.
33750         - On windows the tabs are not filled to right if the slider is
33751         visible.
33752         
33753 2005-01-27  Jackson Harper  <jackson@ximian.com>
33754
33755         * TabControl.cs: Only refresh on mouseup if we are showing the
33756         slider. Also only invalidate the button whose state has changed.
33757
33758 2005-01-26  Peter Bartok  <pbartok@novell.com>
33759
33760         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
33761         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
33762           and SystrayRemove() methods
33763         * XplatUIOSX.cs: Stubbed Systray methods
33764         * XplatUIX11.cs:
33765           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
33766             methods
33767           - Fixed broken XChangeProperty calls (marshalling messed up things)
33768         * X11Structs.cs: Added enums and structs required for Size hinting
33769         * NotifyIcon.cs: Added & implemented
33770
33771 2005-01-26  Jackson Harper  <jackson@ximian.com>
33772
33773         * TabControl.cs: Space vertically layed out tabs properly.
33774
33775 2005-01-26  Peter Bartok  <pbartok@novell.com>
33776
33777         * Form.cs (CreateClientParams): Always set the location to 0,0
33778           since we're a child window.
33779
33780         * Control.cs (SetVisibleCore): Always explicitly setting the location
33781           of a toplevel window, apparently X11 doesn't like to move windows
33782           while they're not mapped.
33783
33784 2005-01-26  Jackson Harper  <jackson@ximian.com>
33785
33786         * TabControl.cs: Implement FillToRight size mode with vertically
33787         rendered tabs.
33788
33789 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
33790
33791         * ControlPaint.cs, ThemeWin32Classic.cs
33792                 - Fixes DrawFocusRectangle
33793
33794 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
33795
33796         * MenuAPI.cs:
33797                 - MenuBar tracking only starts when item is first clicked
33798                 - Fixes menu hidding for multiple subitems
33799                 - Unselect item in MenuBar when item Executed
33800                 - Fixes bug 71495
33801
33802 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
33803
33804         * ListControl.cs:
33805                 - IsInputKey for ListBox
33806         * ListBox.cs:
33807                 - Focus item
33808                 - Shift and Control item selection
33809                 - Implement SelectionMode.MultiExtended
33810                 - Fixes RightToLeft
33811         * ComboBox.cs:
33812                 - IsInputKey implemented
33813                 - Do not generate OnTextChangedEdit on internal txt changes
33814                 
33815 2005-01-23  Peter Bartok  <pbartok@novell.com>
33816
33817         * AccessibleObject.cs: Partially implemented Select()
33818         * MonthCalendar.cs: Added missing attributes and events
33819         * Form.cs: Fixed CreateParams behaviour, now controls derived from
33820           form can properly override CreateParams.
33821         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33822           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
33823           Control performs Invalidate & Update
33824         * NativeWindow (CreateHandle): Added special handling for Form
33825           and Form.FormParent classes to allow overriding of From.CreateParams
33826         * Control.cs:
33827           - ControlNativeWindow: Renamed 'control' variable to more intuitive
33828             name 'owner'
33829           - ControlNativeWindow: Added Owner property
33830           - Removed usage of Refresh() on property changes, changed into
33831             Invalidate(), we need to wait until the queue is processed for
33832             updates, direct calls might cause problems if not all vars for
33833             Paint are initialized
33834           - Added call to UpdateStyles() when creating the window, to set any
33835             styles that CreateWindow might have ignored.
33836           - Added support for Form CreateParent overrides to UpdateStyles()
33837         * MessageBox.cs: Removed no longer needed FormParent override stuff,
33838           CreateParams are now properly overridable
33839         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
33840           CreateParams are now properly overridable
33841
33842 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
33843
33844         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
33845         OnTextBoxChanged.
33846
33847         Capture LostFocus and OnTextBoxChanged.  The later introduces a
33848         recursive invocation that I have not figured out yet.
33849
33850         Reset the timer when not using (it was accumulating).
33851
33852
33853         (OnTextBoxChanged): Set UserEdit to true here to track whether the
33854         user has made changes that require validation.
33855
33856         Reset changing to avoid loops.
33857
33858 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
33859
33860         * NumericUpDown.cs: Display value at startup.
33861
33862         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
33863         ValidateEditText.
33864
33865         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
33866         filled in.  Added some basic parsing of text.
33867
33868         Still missing the OnXXX method overrides, and figuring out the
33869         events that must be emitted.
33870
33871         * UpDownBase.cs: Handle UserEdit on the Text property.
33872         
33873 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
33874
33875         * ComboBox.cs:
33876           - Fixes IntegralHeight
33877           - ToString method
33878
33879 2005-01-21  Jackson Harper  <jackson@ximian.com>
33880
33881         * TabControl.cs: Set the SelectedIndex property when SelectedTab
33882         is set so that the page visibility is updated and the tabs are
33883         sized correctly.
33884
33885 2005-01-21  Jackson Harper  <jackson@ximian.com>
33886
33887         * TabControl.cs: Use cliping rectangle for blitting. Give the
33888         theme the clipping rect so we can do clipping while
33889         drawing. Remove some debug code.
33890
33891 2005-01-21  Jackson Harper  <jackson@ximian.com>
33892
33893         * TabPage.cs: Add a new method so tab pages can force the tab
33894         control to recalculate the tab page sizes.
33895         * TabControl.cs: UpdateOwner needs to make the tab control recalc
33896         sizes.
33897
33898 2005-01-20  Jackson Harper  <jackson@ximian.com>
33899
33900         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
33901
33902 2005-01-20  Jackson Harper  <jackson@ximian.com>
33903
33904         * TreeView.cs: Set the bounds for nodes properly. They were
33905         getting screwed up when checkboxes were not enabled, but images
33906         were.
33907
33908 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
33909
33910         * ListBox.cs:
33911                 - Owner draw support
33912                 - Fixes
33913                 
33914 2005-01-20  Jackson Harper  <jackson@ximian.com>
33915
33916         * XplatUIStructs.cs: More misc keys
33917         * X11Keyboard.cs: Ignore some control keys.
33918
33919 2005-01-20  Jackson Harper  <jackson@ximian.com>
33920
33921         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
33922         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
33923
33924 2005-01-19  Peter Bartok  <pbartok@novell.com>
33925
33926         * Control.cs: Un-selecting the control when it is loosing focus
33927
33928 2005-01-19  Jackson Harper  <jackson@ximian.com>
33929
33930         * TreeView.cs: Hook up to the text controls leave event so we can
33931         end editing when the users clicks outside the text box.
33932         
33933 2005-01-19  Jackson Harper  <jackson@ximian.com>
33934
33935         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
33936         get set in the conversion array.
33937
33938 2005-01-19  Peter Bartok  <pbartok@novell.com>
33939
33940         * Application.cs (ModalRun): Added a call to CreateControl to ensure
33941           focus is properly set
33942         * Button.cs:
33943           - Added missing attributes
33944           - removed styles, those are already set in the base class
33945         * ButtonBase.cs:
33946           - Added missing attributes
33947           - Added clip window styles
33948         * CheckBox.cs: Added missing attributes
33949         * CommonDialog.cs:
33950           - FormParentWindow.CreateParams: Added required clip styles
33951         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
33952           also filters modifier keys
33953         * MessageBox.cs:
33954           - Added assignment of Accept and Cancel button to enable Enter
33955             and Esc keys in MessageBox dialogs
33956           - FormParentWindow.CreateParams: Added required clip styles
33957         * RadioButton.cs: Added missing attributes
33958         * TextControl.cs: No longer draws selection if control does not
33959           have focus
33960         * TextBoxBase.cs:
33961           - Now draws simple rectangle around test area to make it obvious
33962             there's a control. This is a hack until we properly support borders
33963           - A few simple fixes to support selections better, now erases selected
33964             text when typing, and resets selection when using movement keys
33965
33966 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
33967
33968         * UpDownBase.cs: Added some new properties.
33969
33970         * DomainUpDown.cs: Implement a lot to get my test working.
33971
33972 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
33973
33974         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
33975
33976 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
33977
33978         * OSXStructs (WindowAttributes): Fixed csc complaints
33979
33980 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
33981
33982         * XplayUIOSX.cs:
33983           OSXStructs.cs: Initial refactor to move enums and consts into
33984           OSXStructs and use them in the driver for greater readability.
33985
33986 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
33987
33988         * XplatUIOSX.cs: Initial support for Standard Cursors.
33989         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
33990
33991 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
33992
33993         * ComboBox.cs: ability to change style when the ctrl is already
33994         created, missing methods and events, bug fixes, signature fixes
33995
33996 2005-01-19  Peter Bartok  <pbartok@novell.com>
33997
33998         * Cursors.cs (ctor): Added ctor to fix signature
33999
34000 2005-01-18  Peter Bartok  <pbartok@novell.com>
34001
34002         * Button.cs: Implemented DoubleClick event
34003         * ButtonBase.cs:
34004           - Fixed keyboard handling to behave like MS, where the press of
34005             Spacebar is equivalent to a mousedown, and the key release is
34006             equivalent to mouseup. Now a spacebar push will give the same
34007             visual feedback like a mouse click.
34008           - Added missing attributes
34009           - Added ImeModeChanged event
34010           - Added support for generating DoubleClick event for derived classes
34011         * CheckBox.cs:
34012           - Implemented DoubleClick event
34013           - Added missing attributes
34014         * CommonDialog.cs: Added missing attribute
34015         * ContextMenu.cs: Added missing attributes
34016         * RadioButton.cs:
34017           - AutoChecked buttons do not allow to be unselected when clicked
34018             (otherwise we might end up with no selected buttons in a group)
34019           - Added missing attributes
34020           - Implemented DoubleClickEvent
34021         * ThreadExceptionDialog.cs: Enabled TextBox code
34022
34023 2005-01-18  Peter Bartok  <pbartok@novell.com>
34024
34025         * Form.cs: Removed debug output
34026         * Button.cs: Added support for DoubleClick method
34027
34028 2005-01-18  Peter Bartok  <pbartok@novell.com>
34029
34030         * Form.cs:
34031           - Added method to parent window that allows triggering size
34032             calculations when a menu is added/removed
34033           - set_Menu: Cleaned up mess from early days of Form and Control,
34034             now properly triggers a recalc when a menu is added/removed
34035           - Added case to select form itself as focused form if no child
34036             controls exist
34037           - Added PerformLayout call when showing dialog, to ensure properly
34038             placed controls
34039         * Control.cs:
34040           - Select(): Made internal so Form can access it
34041           - Focus(): Only call Xplat layer if required (avoids loop), and sets
34042             status
34043         * Application.cs (Run): Removed hack and calls PerformLayout instead
34044           to trigger calculation when Form becomes visible
34045
34046 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
34047
34048         * ComboBox.cs: fixes for ownerdraw
34049
34050 2005-01-18  Peter Bartok  <pbartok@novell.com>
34051
34052         * TextControl.cs:
34053           - Sentinel is no longer static, each Document gets it's own, this
34054             avoids locking or alternatively overwrite problems when more
34055             than one text control is used simultaneously.
34056           - Switched to use Hilight and HilightText brushes for text selection
34057
34058         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
34059
34060 2005-01-18  Peter Bartok  <pbartok@novell.com>
34061
34062         * Control.cs:
34063           - Hooked up the following events:
34064                 o ControlAdded
34065                 o ControlRemoved
34066                 o HandleDestroyed
34067                 o ImeModeChanged
34068                 o ParentChanged
34069                 o TabStopChanged
34070                 o Invalidated
34071                 o SystemColorsChanged
34072                 o ParentFontChanged
34073                 o Move
34074           - Removed debug output
34075           - Added a call to the current theme's ResetDefaults when a color change
34076             is detected
34077         * Form.cs: Now setting the proper ImeMode
34078         * Theme.cs: Defined a method to force recreation of cached resources
34079           and rereading of system defaults (ResetDefaults())
34080         * ThemeWin32Classic.cs: Added ResetDefaults() stub
34081
34082 2005-01-17  Peter Bartok  <pbartok@novell.com>
34083
34084         * Control.cs: Added missing attributes
34085
34086 2005-01-17  Jackson Harper  <jackson@ximian.com>
34087
34088         * TreeNode.cs: Implement editing. Add missing properties selected
34089         and visible.
34090         * TreeView.cs: Implement node editing. Also some fixes to use
34091         Invalidate (invalid area) instead of Refresh when selecting.
34092
34093 2005-01-17  Peter Bartok  <pbartok@novell.com>
34094
34095         * Control.cs:
34096           - Implemented InvokeGotFocus() method
34097           - Implemented InvokeLostFocus() method
34098           - Implemented InvokePaint() method
34099           - Implemented InvokePaintBackground() method
34100           - Implemented InvokeClick() method
34101           - Implemented FindForm() method
34102           - Implemented RectangleToClient() method
34103           - Implemented ClientToRectangle() method
34104           - Implemented ResetBackColor() method
34105           - Implemented ResetCursor() method
34106           - Implemented ResetFont() method
34107           - Implemented ResteForeColor() method
34108           - Implemented ResetImeMode() method
34109           - Implemented ResetLeftToRight() method
34110           - Implemented ResetText() method
34111           - Implemented Scale() methods
34112           - Implemented ScaleCore() method
34113           - Implemented Update() method
34114           - Removed unused variables
34115           - Stubbed AccessibilityNotifyClients and
34116             ControlAccessibleObject.NotifyClients() methods (dunno what to do
34117             with those yet)
34118           - Now setting proper default for RightToLeft property
34119           - Fixed bug in SetClientSizeCore that would cause windows to get
34120             really big
34121           - Now sending Click/DoubleClick events
34122           - Now selecting controls when left mouse button is clicked on
34123             selectable control
34124         * AccessibleEvents.cs: Added
34125         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
34126         * XplatUIOSX.cs: Stubbed UpdateWindow() method
34127         * XplatUIWin32.cs: Implemented UpdateWindow() method
34128         * XplatUIX11.cs: Implemented UpdateWindow() method
34129         * Form.cs: Removed stray semicolon causing CS0162 warning
34130         * ThemeWin32Classic.cs: Fixed unused variable warnings
34131         * ScrollableControl.cs: Now calls base method for ScaleCore
34132         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
34133           style to avoid interference with internal click handler (which is
34134           different than standard Control click handling)
34135         * RadioButton.cs:
34136           - Now unchecks all sibling radio buttons when control is
34137             selected (Fixes #68756)
34138           - Removed internal tabstop variable, using the one inherited from
34139             Control
34140
34141 2005-01-17  Jackson Harper  <jackson@ximian.com>
34142
34143         * NavigateEventArgs.cs: Fix base type.
34144         * LinkLabel.cs: Sig fix
34145         
34146 2005-01-17  Jackson Harper  <jackson@ximian.com>
34147
34148         * TreeView.cs: Only invalidate the effected nodes bounds when
34149         selecting nodes.
34150
34151 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
34152
34153         * XplatUIWin32.cs: fixes Win32 marshaling
34154         * XplatUIX11.cs: fixes method signature
34155
34156 2005-01-17  Peter Bartok  <pbartok@novell.com>
34157
34158         * XplatUIX11.cs: Clean up resources when we no longer need them
34159
34160 2005-01-17  Peter Bartok  <pbartok@novell.com>
34161
34162         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
34163           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
34164           and DestroyCursor() methods.
34165         * Cursor.cs: Partially implemented, now supports standard cursors;
34166           still contains some debug code
34167         * Cursors.cs: Implemented class
34168         * Control.cs:
34169           - WndProc(): Added handling of WM_SETCURSOR message, setting the
34170             appropriate cursor
34171           - Implemented Cursor property
34172           - Replaced break; with return; more straightforwar and possibly
34173             faster
34174           - Now properly setting the result for WM_HELP
34175         * X11Structs.cs: Added CursorFontShape enum
34176         * XplatUIStructs.cs:
34177           - Added StdCursor enum (to support DefineStdCursor() method)
34178           - Added HitTest enum (to support sending WM_SETCURSOR message)
34179         * XplatUIX11.cs:
34180           - Now sends the WM_SETCURSOR message
34181           - Implemented new cursor methods
34182         * XplatUIOSX.cs: Stubbed new cursor methods
34183         * XplatUIWin32.cs:
34184           - Implemented new cursor methods
34185           - Added GetSystemMetrics function and associated enumeration
34186
34187 2005-01-15  Peter Bartok  <pbartok@novell.com>
34188
34189         * Control.cs:
34190           - WndProc(): Now handles EnableNotifyMessage
34191           - SelectNextControl(): Fixed bug where if no child or sibling
34192             controls exist we looped endlessly
34193
34194 2005-01-14  Jackson Harper  <jackson@ximian.com>
34195
34196         * TreeView.cs: Recalculate the tab pages when a new one is added
34197         so that the proper bounding rects are created.
34198
34199 2005-01-14  Jackson Harper  <jackson@ximian.com>
34200
34201         * TreeView.cs: Draw a gray box instead of a grip in the lower
34202         right hand corner when there are both horizontal and vertical
34203         scroll bars.
34204
34205 2005-01-14  Jackson Harper  <jackson@ximian.com>
34206
34207         * Control.cs: When erasing backgrounds use FromHwnd instead of
34208         FromHdc when there is a NULL wparam. This occurs on the X driver.
34209         * XplatUIX11.cs: Set the wparam to NULL.
34210
34211 2005-01-13  Jackson Harper  <jackson@ximian.com>
34212
34213         * PictureBox.cs: Implement missing methods (except ToString, need
34214         to test that on windows) and events. When visibility is changed we
34215         need to redraw the image because the buffers are killed. When size
34216         is changed refresh if the sizemode needs it.
34217
34218 2005-01-13  Peter Bartok  <pbartok@novell.com>
34219
34220         * Control.cs (SelectNextControl): Was using wrong method to select
34221           a control
34222
34223 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
34224
34225         * ComboBox.cs: fixes dropstyle
34226
34227 2005-01-13  Peter Bartok  <pbartok@novell.com>
34228
34229         * Form.cs:
34230           - Implemented Select() override
34231           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
34232           - Now sets keyboard focus on startup
34233         * Control.cs (SelectNextControl): Now properly handles directed=true
34234         * TextBoxBase.cs:
34235           - WndProc: Now passes tab key on to base if AcceptTabChar=false
34236           - Added (really bad) focus rectangle (mostly for testing)
34237         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
34238           to enforce redraw on focus changes
34239         * ContainerControl.cs:
34240           - Fixed detection of Shift-Tab key presses
34241           - Fixed traversal with arrow keys
34242         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
34243           gonna keep this or if it's complete yet
34244         
34245 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
34246
34247         * ComboBox.cs: missing properties, fixes
34248
34249 2005-01-13  Peter Bartok  <pbartok@novell.com>
34250
34251         * Panel.cs (ctor): Setting Selectable window style to off
34252         * Splitter.cs (ctor): Setting Selectable window style to off
34253         * GroupBox.cs (ctor): Setting Selectable window style to off
34254         * Label.cs (ctor): Setting Selectable window style to off
34255
34256 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
34257
34258         * UpDownBase.cs (InitTimer): If the timer has been already
34259         created, enable it.
34260
34261         Use a TextBox instead of a Label.
34262
34263 2005-01-12  Jackson Harper  <jackson@ximian.com>
34264
34265         * TreeView.cs: Refresh the tree after sorting the nodes. Always
34266         draw the connecting node lines (when ShowLines is true).
34267         * TreeNode.cs: The nodes index can now be updated. This is used
34268         when a node collection is sorted.
34269         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
34270         insert or an existing unsorted node collection can be sorted.
34271         
34272 2005-01-12  Peter Bartok  <pbartok@novell.com>
34273
34274         * ContainerControl.cs: Implemented ProcessDialogKeys()
34275
34276 2005-01-12  Peter Bartok  <pbartok@novell.com>
34277
34278         * Control.cs:
34279           - Implemented SelectNextControl() method
34280           - Several focus related bug fixes
34281           - Fixed Docking calculations to match MS documentation and
34282             behaviour
34283
34284 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
34285
34286         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
34287         bug fixes
34288
34289 2005-01-12  Peter Bartok  <pbartok@novell.com>
34290
34291         * Control.cs:
34292           - Fixed broken Contains() method
34293           - Implemented GetNextControl() method. Finally. This is the pre-
34294             requisite for focus handling.
34295
34296 2005-01-12  Peter Bartok  <pbartok@novell.com>
34297
34298         * OSXStrucs.cs: Added
34299
34300 2005-01-12  Peter Bartok  <pbartok@novell.com>
34301
34302         * XplatUIWin32.cs:
34303           - Removed PeekMessageFlags
34304           - Implemented SetWindowStyle() method
34305         * XplatUIStructs.cs: Added PeekMessageFlags
34306         * X11Structs: Added missing border_width field to XWindowChanges struct
34307         * XplatUIX11.cs:
34308           - PeekMessage: Now throws exception if flags which are not yet
34309             supported are passed
34310           - Implemented SetWindowStyle() method
34311           - Fixed SetZOrder to handle AfterHwnd properly
34312         * XplatUI.cs: Added SetWindowStyle() method
34313         * XplatUIDriver.cs: Added SetWindowStyle() abstract
34314         * Control.cs:
34315           - Implemented UpdateStyles() method
34316           - Implemented UpdateZOrder() method
34317         * XplatUIOSX.cs: Added SetWindowStyle() stub
34318
34319 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
34320
34321         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
34322         button mouse).
34323
34324
34325 2005-01-11  Jackson Harper  <jackson@ximian.com>
34326
34327         * TreeView.cs: Still need to draw lines to siblings even if out of
34328         the current node is out of the clip.
34329
34330 2005-01-11  Jackson Harper  <jackson@ximian.com>
34331
34332         * TreeView.cs: When setting the hbar/vbar/grip position use
34333         SetBounds so that perform layout is only called once. Also suspend
34334         and resume layout so layout is only done once for all controls.
34335         - Removed some debug fluff
34336         * SizeGrip.cs: Call base implmentation in overriding methods.
34337         - When visibility is changed the drawing buffers are killed so we
34338         need to redraw.
34339
34340 2005-01-11  Jackson Harper  <jackson@ximian.com>
34341
34342         * TreeView.cs: Calculate the open node count while drawing. This
34343         saves us an entire tree traversal for every paint operation. Use
34344         a member var for the open node count so less vars are passed around.
34345
34346 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
34347
34348         * MonthCalendar.cs:
34349         - fixed selection to use mousemove, not mouse polling on timer
34350         * ThemeWin32Classic.cs
34351         - removed redundant unused variable "no_more_content"
34352         
34353 2005-01-11  Peter Bartok  <pbartok@novell.com>
34354
34355         * XplatUIX11.cs (DoEvents): Needs to return when no more events
34356           are pending, so it now calls PeekMessage instead of GetMessage;
34357           implemented a incomplete version of PeekMessage
34358         
34359 2005-01-11  Peter Bartok  <pbartok@novell.com>
34360
34361         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
34362           I18n issues
34363         * TextBoxBase.cs: Added sending of TextChanged event
34364
34365 2005-01-10  Jackson Harper  <jackson@ximian.com>
34366
34367         * TreeView.cs: Try not to draw outside the clipping rectangle on
34368         each node element.
34369
34370 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
34371
34372         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
34373
34374 2005-01-10  Jackson Harper  <jackson@ximian.com>
34375
34376         * TreeView.cs:
34377         - Implement fast scrolling. Now only the newly
34378         exposed nodes are drawn and the old image is moved using the
34379         XplatUI::ScrollWindow method.
34380         - Factor in height of nodes when calculating whether or not the
34381         node is in the clipping rect.
34382
34383 2005-01-10  Jackson Harper  <jackson@ximian.com>
34384
34385         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
34386
34387 2005-01-10  Peter Bartok  <pbartok@novell.com>
34388
34389         * Application.cs: Added temporary hack to resolve all our resize
34390           required issues on startup. This will get fixed properly at
34391           some point in the future
34392
34393 2005-01-10  Jackson Harper  <jackson@ximian.com>
34394
34395         * SizeGrip.cs: New internal class that is used as a sizing
34396         grip control...hence the name.
34397
34398 2005-01-10  Peter Bartok  <pbartok@novell.com>
34399
34400         * Control.cs: Implemented proper TabIndex handling, now assigning
34401           a tabindex when a control is added to a container
34402         * GroupBox.cs (ctor): Now sets the Container style bit, required
34403           for Control.GetNextControl()
34404
34405 2005-01-09  Jackson Harper  <jackson@ximian.com>
34406
34407         * TextBoxBase.cs: Clear window when scrolling (fixes build).
34408
34409 2005-01-09  Peter Bartok <pbartok@novell.com>
34410
34411         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
34412           XplatUIX11.cs: Added ability to control ScrollWindow expose and
34413           an overload for ScrollWindow to allow only scrolling a rectangle
34414
34415 2005-01-09  Peter Bartok <pbartok@novell.com>
34416
34417         * Form.cs:
34418           - Implemented SetDesktopBounds method
34419           - Implemented SetDesktopLocation method
34420
34421 2005-01-08  Jackson Harper  <jackson@ximian.com>
34422
34423         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
34424         the node count has changed, this removes to VScroll::Refresh calls
34425         when drawing.
34426
34427 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
34428
34429         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
34430
34431 2005-01-07  Jackson Harper  <jackson@ximian.com>
34432
34433         * TreeNode.cs: Just update the single node when it is
34434         checked. Don't refresh after toggling, the Expand/Collapse already
34435         handles this.
34436         * TreeView.cs: Respect clipping a little more when drawing. Try
34437         not to redraw things that don't need to be redrawn. Just hide the
34438         scrollbars when they are no longer needed instead of removing
34439         them, so they don't have to be created again and again.
34440         
34441 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
34442
34443         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
34444         coordinates to window space to place the caret properly, FIXED.
34445         Implement GetWindowState & SetWindowState
34446
34447 2005-01-06  Peter Bartok <pbartok@novell.com>
34448
34449         * Form.cs:
34450           - Implemented ClientSize property
34451           - Implemented DesktopBounds property
34452           - Implemented DesktopLocation property
34453           - Implemented IsRestrictedWindow property
34454           - Implemented Size property
34455           - Implemented TopLevel property
34456           - Implemented FormWindowState property
34457         * Control.cs:
34458           - Implemented GetTopLevel() method
34459           - Implemented SetTopLevel() method
34460         * X11Structs.cs (Atom):
34461           - Added AnyPropertyType definition
34462           - Added MapState definiton and updated XWindowAttribute struct
34463         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
34464         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
34465         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
34466         * XplatUIWin32.cs:
34467           - Implemented GetWindowState() and SetWindowState() methods
34468           - Fixed Win32GetWindowLong return type
34469         * XplatUIX11.cs:
34470           - Introduced central function for sending NET_WM messages
34471           - Implemented GetWindowState() and SetWindowState() methods
34472         * TextBoxBase.cs (set_Lines):
34473           - Now uses Foreground color for text added via Text property (Duh!)
34474           - Added code to remember programmatically requested size (fixes
34475             behaviour when Multiline is set after Size)
34476           - Added AutoSize logic
34477
34478 2005-01-06  Jackson Harper  <jackson@ximian.com>
34479
34480         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
34481
34482 2005-01-06  Jackson Harper  <jackson@ximian.com>
34483
34484         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
34485         set to less then 0.
34486
34487 2005-01-06  Jackson Harper  <jackson@ximian.com>
34488
34489         * ScrollableControl.cs: Lazy init the scrollbars.
34490         
34491 2005-01-06  Jackson Harper  <jackson@ximian.com>
34492
34493         * Theme.cs: Speed up getting pens and solid brushes, by using
34494         their ARGB as a hash instead of tostring and not calling Contains.
34495
34496 2005-01-06  Peter Bartok <pbartok@novell.com>
34497
34498         * Form.cs:
34499           - Implemented OnActivated and OnDeactivate event trigger
34500           - Implemented Activate() method
34501           - Fixed ShowDialog() to activate the form that was active before
34502             the dialog was shown
34503         * XplatUIX11.cs:
34504           - Added global active_window var that tracks the currently active
34505             X11 window
34506           - Now always grabs Property changes from the root window to always
34507             catch changes on the active window property
34508           - Added code to PropertyNotify handler to send Active/Inactive
34509             messages when state changes. This puts X11 and Win32 en par on
34510             WM_ACTIVATE notifications (except for double notifications when
34511             the user clicks away from our modal window to another one of our
34512             windows)
34513
34514 2005-01-05  Jackson Harper  <jackson@ximian.com>
34515
34516         * ImageList.cs: Implment ctor
34517
34518 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
34519
34520         * XplatUIOSX.cs: Implement Activate/SetTopmost
34521
34522 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
34523
34524         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
34525
34526 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
34527
34528         * XplatUIOSX.cs: Implement GetActive/SetFocus.
34529
34530 2005-01-05  Peter Bartok <pbartok@novell.com>
34531
34532         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
34533           XplatUIOSX.cs: Added GetActive method to return the currently
34534           active window for the application (or null, if none is active)
34535         * Form.cs:
34536           - Implemented ActiveForm
34537           - Commented out owner assignment for modal dialogs (causes problems
34538             on Win32, since the owner will be disabled)
34539           - Reworked some Active/Focus handling (still incomplete)
34540         * CommonDialog.cs: Commented out owner assignment for modal dialogs
34541           (causes problems on Win32, since the owner will be disabled)
34542         * IWin32Window: Added ComVisible attribute
34543
34544 2005-01-05  Peter Bartok <pbartok@novell.com>
34545
34546         * ToolTip.cs (WndProc): Enable setting focus now that we have the
34547           required XplatUI functions.
34548
34549 2005-01-05  Peter Bartok <pbartok@novell.com>
34550
34551         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
34552           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
34553           to implement focus and activation handling; still incomplete and
34554           with debug output
34555
34556 2005-01-04  Peter Bartok <pbartok@novell.com>
34557
34558         * TextBoxBase.cs: Changed access level for Document property to
34559           match switch to internal for TextControl
34560
34561 2005-01-04  Peter Bartok <pbartok@novell.com>
34562
34563         * AccessibleObject: Added ComVisible attribute
34564
34565 2005-01-04  Jackson Harper  <jackson@ximian.com>
34566
34567         * X11Keyboard.cs: Remove unneeded var.
34568
34569 2005-01-04  Jackson Harper  <jackson@ximian.com>
34570
34571         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
34572         but PAINT.
34573         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
34574         ClientMessage. This makes apps exit cleanly (more often).
34575         
34576 2005-01-04  Jackson Harper  <jackson@ximian.com>
34577
34578         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
34579         handling focus, return correct colors and fonts,
34580         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
34581         handle selection, horizontal scrolling, and mouse interaction.
34582
34583 2005-01-04  Peter Bartok <pbartok@novell.com>
34584
34585         * ICommandExecutor.cs: Added
34586         * IDataGridColumnStyleEditingNotificationService.cs: Added
34587         * IFeatureSupport.cs: Added
34588         * IFileReaderService.cs: Added
34589         * IDataObject.cs: Added ComVisible attribute
34590         * AmbientProperties.cs: Added
34591         * BaseCollection.cs: Added missing attributes
34592         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
34593         * BaseCollection.cs: Added missing attributes
34594         * Binding.cs: Added TypeConverter attribute
34595         * BindingContext.cs: Added DefaultEvent attribute
34596         * BindingsCollection.cs: Added DefaultEvent attribute
34597         * Button.cs: Added DefaultValue attribute
34598         * DragEventArgs.cs: Added ComVisible attribute
34599         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
34600         * KeyEventArgs.cs: Added ComVisible attribute
34601         * KeyPressEventArgs.cs: Added ComVisible attribute
34602         * MouseEventArgs.cs: Added ComVisible attribute
34603         * NavigateEventArgs.cs: Added
34604         * NavigateEventHandler.cs: Added
34605         * FeatureSupport.cs: Added
34606         * OSFeature.cs: Added
34607         * Theme.cs: Added abstract Version property to support OSFeature
34608         * ThemeWin32Classic.cs: Added Version property to
34609           support OSFeature.Themes
34610         * ProgressBar.cs: Removed OnPaintBackground override, not required since
34611           the proper styles to avoid background drawing are set, also doesn't
34612           match MS signature
34613         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
34614         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
34615         * ScrollEventArgs.cs: Added ComVisible attribute
34616         * SplitterEventArgs.cs: Added ComVisible attribute
34617         * AccessibleSelection.cs: Added Flags attribute
34618         * Appearance.cs: Added ComVisible attribute
34619         * Border3DSide.cs: Added ComVisible attribute
34620         * Border3DStyle.cs: Added ComVisible attribute
34621         * BorderStyle.cs: Added ComVisible attribute
34622         * DragAction.cs: Added ComVisible attribute
34623         * ErrorBlinkStyle.cs: Added
34624         * ScrollEventType.cs: Added ComVisible attribute
34625         * AnchorStyles.cs: Added Editor attribute
34626         * DockStyle.cs: Added Editor attribute
34627         * HorizontalAlignment.cs: Added ComVisible attribute
34628         * HelpEventArgs.cs: Added ComVisible attribute
34629         * PaintEventArgs.cs: Added IDisposable
34630
34631 2005-01-04  Peter Bartok <pbartok@novell.com>
34632
34633         * TextControl.cs: Switched Line, LineTag and Document classes to
34634           internal
34635
34636 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
34637
34638         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
34639         Simple mode, fixes, IntegralHeight, etc.
34640
34641 2005-01-04  Peter Bartok <pbartok@novell.com>
34642
34643         * TextBoxBase.cs: Using proper font variable now
34644
34645 2005-01-04  Peter Bartok <pbartok@novell.com>
34646
34647         * Form.cs (ShowDialog): Set parent to owner, if provided
34648         * GroupBox.cs: Removed unused vars
34649         * TextControl.cs:
34650           - Added GetHashCode() for Document and LineTag classes
34651           - Removed unused variables
34652           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
34653             to allow translation between continuous char position and line/pos
34654         * CheckBox.cs: Removed vars that are provided by base class
34655         * RadioButton.cs: Removed vars that are provided by base class, added
34656           new keyword where required
34657         * LinkLabel.cs: Added new keyword where required
34658         * Control.cs (WndProc): Removed unused variable
34659         * TextBoxBase.cs:
34660           - Finished SelectionLength property
34661           - Implemented SelectionStart property
34662           - Implemented Text property
34663           - Removed unused vars
34664         * MessageBox.cs: Added new keyword where required
34665         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
34666           WndProc signature
34667         * MenuAPI.cs: Added new keyword where required
34668         * ButtonBase.cs: Removed vars that are provided by base class, added
34669           new keyword where required
34670         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
34671           argument to double, to allow compiling with csc 2.0 (Atsushi ran
34672           into this)
34673         * Application.cs (Run): Now triggers the ThreadExit event
34674         * CommonDialog.cs: Added new keyword where required; now properly sets
34675           parent (owner) for dialog
34676         * XplatUIX11.cs: Commented out unused vars
34677         * StatusBar.cs: Fixed signature for Text property
34678         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
34679
34680 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
34681
34682         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
34683         TrackBar.cs, MonthCalendar.cs: remove unused vars
34684
34685 2005-01-03  Jackson Harper  <jackson@ximian.com>
34686
34687         * ThemeWin32Classic.cs:
34688         * X11Keyboard.cs: Remove unused vars.
34689
34690 2005-01-03  Peter Bartok  <pbartok@novell.com>
34691
34692         * TextBox.cs:
34693           - set_Text: Tied into TextControl
34694           - set_TextAlignment: Tied into TextControl
34695         * TextControl.cs:
34696           - Added alignment properties and implemented alignment handling
34697             and drawing (still has a bug, not generating proper expose events)
34698           - Added new Line() constructor to allow passing the line alignment
34699           - Fixed selection setting, properly handling end<start now
34700           - Added aligment considerations to RecalculateDocument()
34701         * TextBoxBase.cs:
34702           - Now properly enforces control height for single line controls
34703           - Added support for CharacterCasing
34704           - Added IsInputKey override
34705           - Fixed Keys.Enter logic
34706           - Added SetBoundsCore override
34707           - Fixed mouse selection handling
34708
34709 2005-01-03  Jackson Harper  <jackson@ximian.com>
34710
34711         * TreeView.cs:
34712           - Collapse and uncheck all nodes when CheckBoxes is disabled.
34713           - Checkboxes are always aligned to the bottom of the node,
34714           regardless of item height.
34715           - Use the node bounds to draw the text so we can center it when
34716           the item height is greater then the font height.
34717           - Node::Bounds are only the text part of the node.
34718         * TreeNode.cs: New method to combine collapsing and unchecking all
34719           nodes recursively.
34720
34721 2005-01-02  Jackson Harper  <jackson@ximian.com>
34722
34723         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
34724         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
34725         tree when a check is changed. TODO: Only refresh the checked node.
34726
34727 2004-12-30  Jackson Harper  <jackson@ximian.com>
34728
34729         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
34730         * TreeNode.cs: When collapsing make sure to never collapse the
34731         root node.
34732
34733 2004-12-29  Jackson Harper  <jackson@ximian.com>
34734
34735         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
34736         
34737 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
34738
34739         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
34740
34741 2004-12-28  Peter Bartok  <pbartok@novell.com>
34742
34743         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
34744           not yet assigned
34745
34746 2004-12-28  Peter Bartok  <pbartok@novell.com>
34747
34748         * Control.cs (WndProc): Added WM_HELP handler, now generates
34749           HelpRequested event
34750         * Form.cs: Added HelpButton property and required support code
34751         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
34752
34753 2004-12-28  Peter Bartok  <pbartok@novell.com>
34754
34755         * CommonDialog.cs:
34756           - Made DialogForm.owner variable internal
34757           - Added check to ensure owner form is set before setting
34758             owner properties in CreateParams
34759
34760 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
34761
34762         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
34763           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
34764           GetCursorPos.  Fix major visibility issues.  Rework the windowing
34765           system to support borderless/titleless windows (implements menus).
34766           Fix GetWindowPos.  Implement initial background color support for
34767           views.
34768
34769 2004-12-28  Peter Bartok  <pbartok@novell.com>
34770
34771         * Form.cs (get_CreateParams): Make sure we have an owner before using
34772           the owner variable. Implement proper default if no owner exists
34773
34774 2004-12-28  Peter Bartok  <pbartok@novell.com>
34775
34776         * In preparation for making Managed.Windows.Forms the default build target
34777           for System.Windows.Forms, the following stubbed files were added.
34778           Dialogs are currently being implemented by contributors and are only
34779           short-term place holders.
34780         * ColorDialog.cs: Initial check-in (minmal stub)
34781         * DataGrid.cs: Initial check-in (minimal stub)
34782         * DataGridLineStyle.cs: Initial check-in (minimal stub)
34783         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
34784         * DataGridTableStyle.cs: Initial check-in (minimal stub)
34785         * FontDialog.cs: Initial check-in (minimal stub)
34786         * FileDialog.cs: Initial check-in (minimal stub)
34787         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
34788         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
34789         * OpenFileDialog: Initial check-in (minimal stub)
34790         * IComponentEditorPageSite.cs: Initial check-in
34791         * Splitter.cs: Initial check-in (for Jackson)
34792         * SplitterEventArgs.cs: Initial check-in (for Jackson)
34793         * SplitterEventHandler.cs: Initial check-in (for Jackson)
34794         * TextBox.cs: Initial check-in; still needs some wiring to
34795           TextControl backend
34796         * Form.cs: Implemented ControlBox property
34797         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
34798         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
34799         * TextControl.cs: Added selection functionality; added todo header
34800         * TextBoxBase.cs:
34801           - Implemented Lines property
34802           - Implemented TextHeight property
34803           - Implemented SelectedText property
34804           - Implemented SelectionLength property
34805           - Implemented SelectAll method
34806           - Implemented ToString method
34807           - Removed and cleaned up some debug code
34808           - Implemented (still buggy) mouse text selection
34809
34810 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
34811
34812         * ComboBox.cs: Complete DropDownList implementation, fixes.
34813
34814 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
34815
34816         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
34817         * ComboBoxStyle.cs: ComboBoxStyle enum
34818         * ComboBox.cs: Initial work on ComboBox control
34819
34820 2004-12-21  Peter Bartok  <pbartok@novell.com>
34821
34822         * Control.cs (ctor, CreateParams): Moved setting of is_visible
34823           forward so that anything that creates a window gets the default,
34824           also no longer uses Visible property in CreateParams to avoid
34825           walking up the parent chain and possibly get the wrong visible
34826           status. Fixed IsVisible to no longer walk up to the parent.
34827
34828 2004-12-21  Peter Bartok  <pbartok@novell.com>
34829
34830         * Form.cs (ShowDialog): Unset modality for the proper window
34831  
34832 2004-12-20  Peter Bartok  <pbartok@novell.com>
34833
34834         * CommonDialog.cs: Initial check-in
34835
34836 2004-12-20  Peter Bartok  <pbartok@novell.com>
34837
34838         * Control.cs (Visible): Now uses the parent window instead of the
34839           client area window for the property
34840
34841         * Form.cs
34842           - ShowDialog(): Now uses the proper window for modality
34843           - The default visibility state for the form parent is now false. This
34844             will prevent the user from seeing all the changes to the form and
34845             its controls before the application hits Application.Run()
34846           - Removed some stale commented out code
34847
34848         * NativeWindow.cs:
34849           - Added FindWindow() method to have a method to check for existence
34850             of a window handle
34851           - Added ability to override default exception handling (for example
34852             when debugging with VS.Net; to do this the ExternalExceptionHandler
34853             define must be set
34854           - Removed some useless debug output
34855
34856         * XplatUIX11.cs:
34857           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
34858             not working as expected
34859           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
34860             property to allow switching back to the modal window if focus is
34861             given to another one of our windows (Application Modal)
34862           - Now only sets override_redirect if we create a window
34863             without WS_CAPTION
34864           - Moved EventMask selection before mapping of newly created window
34865             so we can catch the map event as well
34866           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
34867           - Added various Atom related DllImports
34868           - Implemented Exit() method
34869           - .ctor() : No longer shows window if WS_VISIBLE is not defined
34870             in the CreateParams
34871
34872         * MessageBox.cs: Now properly deals with the FormParent window by
34873           providing an override the FormParent CreateParams property to
34874           set as POPUP instead of OVERLAPPED window.
34875
34876 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
34877
34878         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
34879         Minor code cleanup.
34880
34881 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
34882         
34883         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
34884
34885 2004-12-18  Peter Bartok  <pbartok@novell.com>
34886
34887         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
34888           implementing SetModal() method
34889
34890 2004-12-18  Peter Bartok  <pbartok@novell.com>
34891
34892         * X11Structs.cs (XGCValues): Fixed type of function element
34893         * XplatUI.cs: Added ScrollWindow() method
34894         * XplatUIDriver.cs: Added ScrollWindow() abstract
34895         * XplatUIWin32.cs: Implemented ScrollWindow() method
34896         * XplatUIX11.cs: Implemented ScrollWindow() method
34897         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
34898
34899 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
34900
34901         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
34902         Some more keyboard support (INCOMPLETE)
34903
34904 2004-12-17  Peter Bartok  <pbartok@novell.com>
34905
34906         * TextControl.cs:
34907         - Added color attribute to line tags.
34908         - Added color argument to all functions dealing with tags
34909         - Added color argument support to various functions
34910         - Fixed miss-calculation of baseline/shift in certain circumstances
34911
34912         * TextBoxBase.cs: Added new color option to test code
34913
34914 2004-12-17  Jackson Harper  <jackson@ximian.com>
34915
34916         * TreeNode.cs:
34917         * MonthCalendar.cs: Signature fixes
34918
34919 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
34920
34921         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
34922         keyboard event moved it.  Create a new graphics context for each paint resolves this
34923
34924 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
34925
34926         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
34927         Make caret exist and go blink blink.  Initial keyboard support.
34928         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
34929         works.
34930
34931 2004-12-17  Jackson Harper  <jackson@ximian.com>
34932
34933         * XplatUIStructs.cs: Updated set of virtual keycodes.
34934         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
34935
34936 2004-12-17  Jackson Harper  <jackson@ximian.com>
34937
34938         * XplatUIX11.cs: Prune old keyboard code.
34939
34940 2004-12-17  Jackson Harper  <jackson@ximian.com>
34941
34942         * XplatUIX11.cs: When generating mouse wparams get the modifier
34943         keys from the ModifierKeys property.
34944
34945 2004-12-17  Jackson Harper  <jackson@ximian.com>
34946
34947         * X11Keyboard.cs: Send up/down input when generating
34948         messages. Remove some unused vars.
34949
34950 2004-12-17  Jackson Harper  <jackson@ximian.com>
34951
34952         * TabControl.cs:
34953         * TreeView.cs: get rid of warnings.
34954
34955 2004-12-17  Jackson Harper  <jackson@ximian.com>
34956
34957         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
34958
34959 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
34960
34961         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
34962           CheckedListBox.cs: Implementation
34963
34964 2004-12-17  Peter Bartok  <pbartok@novell.com>
34965
34966         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
34967
34968 2004-12-16  Peter Bartok  <pbartok@novell.com>
34969
34970         * TextControl.cs:
34971           - InsertCharAtCaret(): Fixed start pos fixup
34972           - CaretLine_get: No longer derives the line from the tag, the tag
34973             could be stale if lines in the document have been added or deleted
34974           - RebalanceAfterDelete(): Fixed bug in balancing code
34975           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
34976           - Line.Streamline(): Now can also elminate leading empty tags
34977           - DumpTree(): Added a few more tests and prevented exception on
34978             uninitialized data
34979           - Added Debug section for Combining lines
34980           - Delete(): Now copies all remaining properties of a line
34981           
34982         * TextBoxBase.cs:
34983           - Left mousebutton now sets the caret (and middle button still acts
34984             as formatting tester, which must go away soon)
34985           - Added Debug section for Deleting/Combining lines
34986           - Fixed calculations for UpdateView after Combining lines
34987
34988 2004-12-16  Peter Bartok  <pbartok@novell.com>
34989
34990         * TextControl.cs: Now properly aligns text on a baseline, using the
34991           new XplatUI.GetFontMetrics() method. Simplified several calculations
34992         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
34993           defined
34994
34995 2004-12-16  Peter Bartok  <pbartok@novell.com>
34996
34997         * XplatUI.cs: Added GetFontMetrics() method
34998         * XplatUIDriver.cs: Added GetFontMetrics() abstract
34999         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
35000           into libgdiplus, our private GetFontMetrics function
35001         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
35002         * XplatUIWin32.cs: Implemented GetFontMetrics() method
35003
35004 2004-12-16  Jackson Harper  <jackson@ximain.com>
35005
35006         * XplatUIStruct.cs: Add enum for dead keys
35007         * X11Keyboard.cs: Map and unmap dead keys.
35008
35009 2004-12-16  Jackson Harper  <jackson@ximian.com>
35010
35011         * X11Keyboard.cs: Detect and use the num lock mask.
35012
35013 2004-12-16  Peter Bartok  <pbartok@novell.com>
35014
35015         * Control.cs (CreateGraphics): Added check to make sure the
35016           handle of the window exists before calling Graphics.FromHwnd()
35017
35018 2004-12-16  Peter Bartok  <pbartok@novell.com>
35019
35020         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
35021           contains a lot of code that's not supposed to be there for the
35022           real thing, but required for developing/testing the textbox
35023           backend.
35024
35025 2004-12-16  Peter Bartok  <pbartok@novell.com>
35026
35027         * TextControl.cs:
35028         - Fixed Streamline method
35029         - Added FindTag method to Line
35030         - Added DumpTree method for debugging
35031         - Added DecrementLines() method for deleting lines
35032         - Fixed UpdateView to update the cursor to end-of-line on single-line
35033           updates
35034         - Added PositionCaret() method
35035         - Fixed MoveCaret(LineDown) to move into the last line, too
35036         - Added InsertChar overload
35037         - Fixed InsertChar tag offset calculations
35038         - Added DeleteChar() method
35039         - Added Combine() method for folding lines
35040         - Fixed Delete() method, no longer allocates wasted Line object and
35041           now copies all properties when swapping nodes
35042         - Delete() method now updates document line counter
35043
35044 2004-12-15  Jackson Harper  <jackson@ximian.com>
35045
35046         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
35047         * X11Keyboard.cs: Expose the currently selected modifier keys
35048         through a property.
35049
35050 2004-12-15  Peter Bartok  <pbartok@novell.com>
35051
35052         * TextControl.cs: Initial check-in. Still incomplete
35053
35054 2004-12-15  Jackson Harper  <jackson@ximian.com>
35055
35056         * TreeNode.cs:
35057         * TreeView.cs: Fix build on csc (second time today ;-))
35058
35059 2004-12-15  Jackson Harper  <jackson@ximian.com>
35060
35061         * TreeView.cs: Store the treenodes plus/minus box bounds when it
35062         is calculated and use this for click testing.
35063         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
35064
35065 2004-12-15  Jackson Harper  <jackson@ximian.com>
35066
35067         * TreeView.cs: Pass the nodes image index to the image list when
35068         drawing that image.
35069
35070 2004-12-15  Jackson Harper  <jackson@ximian.com>
35071
35072         * X11Keyboard.cs: Set messages hwnd.
35073         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
35074         post_message calls.
35075
35076 2004-12-15  Jackson Harper  <jackson@ximian.com>
35077
35078         * X11Keyboard.cs: Fix to compile with csc.
35079         
35080 2004-12-15  Jackson Harper  <jackson@ximian.com>
35081
35082         * X11Structs.cs: Add key mask values
35083         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
35084         * X11Keyboard.cs: New file - Extrapolates and interpolates key
35085         down/up foo into WM_CHAR foo
35086         * KeyboardLayouts.cs: Common keyboard layouts
35087         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
35088         post messages into the main queue.
35089
35090 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
35091
35092         * Button.cs: implement ProcessMnemonic
35093         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
35094           brushes everytime
35095         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
35096         * ButtonBase.cs: Show HotkeyPrefix (not the &)
35097
35098 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
35099         
35100         * MonthCalendar.cs: Implemented click-hold for next/previous month
35101           and date selection
35102           
35103 2004-12-11  Peter Bartok  <pbartok@novell.com>
35104
35105         * X11Structs.cs:
35106           - Added XKeyboardState (moved from XplatUIX11.cs)
35107           - Added XCreateGC related enums and structures
35108           - Added GXFunction for XSetFunction
35109
35110         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
35111
35112         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
35113           CaretVisible() calls
35114
35115         * ToolTip.cs: Added code to prevent stealing focus from app windows
35116
35117         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
35118           DestroyCaret, SetCaretPos and CaretVisible)
35119
35120         * XplatUIX11.cs:
35121           - Added implementation for caret functions
35122           - Moved hover variables into a struct, to make it a bit easier
35123             on the eyes and to debug
35124           - Removed XKeyboardState (moved to XplatUIX11.cs)
35125           - Moved Keyboard properties into the properties region
35126
35127         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
35128           call to get a graphics context for our control
35129
35130         * XplatUIOSX.cs: Added empty overrides for the new caret functions
35131
35132         * TreeView.cs: Fixed bug. No matter what color was set it would always
35133           return SystemColors.Window
35134
35135         * XplatUIWin32.cs: Implemented caret overrides
35136
35137 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
35138
35139         * ListBox.cs: fire events, implement missing methods and properties,
35140         sorting.
35141
35142 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
35143
35144         * MonthCalendar.cs: invalidation bug fixing
35145         * ThemeWin32Classic.cs: paint fixing
35146
35147 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
35148
35149         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
35150         prepare the CGContextRef there now.
35151
35152 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
35153
35154         * MonthCalendar.cs:
35155           - optimisationL only invalidate areas that have changed
35156         * ThemeWin32Classic.cs:
35157           - only paint parts that intersect with clip_area
35158
35159 2004-12-09  Peter Bartok  <pbartok@novell.com>
35160
35161         * Application.cs: Undid changes from r37004 which cause problems
35162         on X11
35163
35164 2004-12-09  Ravindra  <rkumar@novell.com>
35165
35166         * ToolBar.cs: Added support for displaying ContextMenu
35167         attached to a button on ToolBar.
35168         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
35169         property.
35170
35171 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
35172
35173         * Label.cs: autosize works in text change and removes unnecessary
35174         invalidate
35175
35176 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
35177
35178         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
35179         remove warnings
35180
35181 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
35182
35183         * XplatUIOSX.cs: Added mouse move/click/grab support
35184         Remove some debugging WriteLines not needed anymore.
35185         Add window resizing/positioning.
35186         Fix visibility on reparenting.
35187
35188 2004-12-08  Peter Bartok  <pbartok@novell.com>
35189
35190         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
35191
35192 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
35193
35194         * XplatUIOSX.cs: Initial checkin
35195         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
35196
35197 2004-12-03  Ravindra <rkumar@novell.com>
35198
35199         * ListView.cs: Added some keybindings and fixed scrolling.
35200         ScrollBars listen to ValueChanged event instead of Scroll
35201         Event. This would let us take care of all changes being
35202         done in the scrollbars' values programmatically or manually.
35203         * ListView.cs (CanMultiselect): Added a check for shift key.
35204         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
35205         * ListViewItem.cs (Clone): Fixed. We need to make a copy
35206         of ListViewSubItemCollection as well.
35207
35208 2004-12-06  Peter Bartok <pbartok@novell.com>
35209
35210         * Control.cs (Parent): Added check and exception to prevent
35211         circular parenting
35212
35213 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
35214
35215         * ListBox.cs: implemented clipping, selection single and multiple,
35216         bug fixing
35217
35218 2004-12-03  Ravindra <rkumar@novell.com>
35219
35220         * ListView.cs (ListView_KeyDown):
35221         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
35222         when CTRL key is pressed.
35223         * ListViewItem.cs (Selected): Fixed setting the property.
35224
35225 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
35226
35227         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
35228
35229         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
35230         MinimizeBox, ShowInTaskbar, TopMost properties.
35231
35232         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
35233         will be implemented).
35234
35235 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
35236
35237         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
35238
35239         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
35240         tests.
35241         
35242         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
35243         
35244         * TreeView.cs: BackColor is Colors.Window.
35245
35246 2004-12-01  Jackson Harper  <jackson@ximian.com>
35247
35248         * TreeView.cs: When resizing the tree if the user is making it
35249         smaller we don't get expose events, so we need to handle adding
35250         the horizontal scrollbar in the size changed handler as well as
35251         the expose handler.
35252
35253 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
35254
35255         * DrawItemState.cs: fixes wrong enum values
35256
35257 2004-12-01  Jackson Harper  <jackson@ximian.com>
35258
35259         * TreeView.cs: Resize the hbar as well as the vbar on resize.
35260
35261 2004-12-01  Jackson Harper  <jackson@ximian.com>
35262
35263         * NodeLabelEditEventArgs.cs:
35264         * NodeLabelEditEventHandler.cs:
35265         * OpenTreeNodeEnumerator.cs:
35266         * TreeNode.cs:
35267         * TreeNodeCollection.cs:
35268         * TreeView.cs:
35269         * TreeViewAction.cs:
35270         * TreeViewCancelEventArgs.cs:
35271         * TreeViewCancelEventHandler.cs:
35272         * TreeViewEventArgs.cs:
35273         * TreeViewEventHandler.cs: Initial implementation.
35274
35275 2004-12-01  Ravindra <rkumar@novell.com>
35276
35277         * ListView.cs (CalculateListView): Fixed scrolling related
35278         calculations. Also, removed some debug statements from other
35279         places.
35280         * ListViewItem.cs: Changed access to 'selected' instance variable
35281         from private to internal.
35282         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
35283
35284 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
35285
35286         * ThemeWin32Classic.cs: remove cache of brush and pens for
35287         specific controls and use the global system, fixes scrollbutton
35288         bugs (for small sizes, disabled, etc)
35289         
35290         * ScrollBar.cs: does not show the thumb for very small controls
35291         (as MS) and allow smaller buttons that the regular size
35292
35293 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
35294
35295         * UpDownBase.cs: Add abstract methods for the interface.
35296         Add new virtual methods (need to be hooked up to TextEntry when it
35297         exists).
35298         Add override methods for most features.
35299         Computes the size, forces the height of the text entry.
35300
35301         * NumericUpDown.cs: Put here the current testing code.
35302
35303         * Set eol-style property on all files that do not have mixed line
35304         endings, to minimize the future problems.  There are still a few
35305         files with mixed endings, and someone should choose whether they
35306         want to move it or not.
35307
35308 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
35309
35310         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
35311         System.Colors
35312         
35313 2004-11-30  Ravindra <rkumar@novell.com>
35314
35315         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
35316         drawing and replaced use of SystemColors by theme colors.
35317         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
35318         * ListView.cs (ListViewItemCollection.Add): Throw exception when
35319         same ListViewItem is being added more than once.
35320
35321 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
35322
35323         * MonthCalendar.cs:
35324           - ControlStyles love to make the control not flicker
35325           
35326 2004-11-30  Peter Bartok  <pbartok@novell.com>
35327
35328         * CharacterCasing.cs: Added
35329
35330 2004-11-29  Peter Bartok  <pbartok@novell.com>
35331
35332         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35333           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
35334           I am removing these files as they conflict with already completed
35335           work. While it is fantastic to get contributions to MWF, I
35336           respectfully ask that everyone please coordinate their contributions
35337           through mono-winforms-list or #mono-winforms at this time. We're
35338           explicitly avoiding stubbing and don't want controls that don't have
35339           their basic functionality implemented in svn. Please also see
35340           http://www.mono-project.com/contributing/winforms.html
35341
35342
35343 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
35344
35345         * Application.cs (ModalRun): Don't hang after exit.
35346
35347         * Theme.cs: New TreeViewDefaultSize property.
35348
35349         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
35350         with less hardcoded SystemColors constant.
35351         Implemented TreeViewDefaultSize.
35352
35353         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35354         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
35355
35356
35357 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
35358
35359         * MonthCalendar.cs:
35360           - Fix NextMonthDate and PrevMonthDate click moving calendar
35361
35362 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
35363
35364         * MonthCalendar.cs:
35365           - Fix usage of ScrollChange Property when scrolling months
35366
35367 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
35368
35369         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
35370          - Fixes menu destroying
35371          - Support adding and removing items on already created menus
35372
35373 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
35374
35375         * MonthCalendar.cs:
35376           - Re-worked all bolded dates handling to match win32
35377         * ThemeWin32Classic.cs:
35378           - Fixed rendering with bolded dates
35379
35380 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
35381
35382         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
35383         - Horizontal scroolbar
35384         - Multicolumn
35385         - Fixes
35386
35387
35388 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
35389
35390         * MonthCalendar.cs:
35391           - Fix Usage of MaxSelectionCount from SelectionRange
35392           - Fixed Shift + Cursor Selection
35393           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
35394           - Fixed normal cursor selection to be compat with win32
35395           - Fixed Shift + Mouse Click selection
35396
35397 2004-11-24  Peter Bartok <pbartok@novell.com>
35398
35399         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
35400         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
35401         * XplatUIX11.cs:
35402           - CreatedKeyBoardMsg now updates keystate with Alt key
35403           - Added workaround for timer crash to CheckTimers, Jackson will
35404             develop a proper fix and check in later
35405           - Implemented DispatchMessage
35406           - Removed calling the native window proc from GetMessage (call
35407             now moved to DispatchMessage)
35408
35409         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
35410           the keydata (Fixes bug #69831)
35411
35412         * XplatUIWin32.cs:
35413           - (DispatchMessage): Switched to return IntPtr
35414           - Added DllImport for SetFocus
35415
35416 2004-11-24  Ravindra <rkumar@novell.com>
35417
35418         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
35419         background drawing.
35420         * ListViewItem.cs: Fixed various properties, calculations
35421         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
35422         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
35423         and some internal properties. Fixed MouseDown handler and Paint
35424         method.
35425
35426 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
35427
35428         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
35429
35430 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
35431
35432         * ContainerControl.cs: correct accidental check in of local changes
35433
35434 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
35435
35436         * ThemeWin32Classic.cs:
35437                 - Fixed Drawing Last month in grid (sometimes not showing)
35438         * MonthCalendar.cs:
35439                 - Fixed title width calculation bug (makeing title small)
35440
35441 2004-11-23  Peter Bartok <pbartok@novell.com>
35442
35443         * XplatUIX11.cs:
35444           - Added generation of WM_MOUSEHOVER event
35445           - Added missing assignment of async_method atom
35446           - Fixed WM_ERASEBKGND; now only redraws the exposed area
35447
35448 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
35449
35450         * ThemeWin32Classic.cs:
35451                 - Fixed Drawing of today circle when showtodaycircle not set
35452                 - fixed drawing of first and last month in the grid (gay dates)
35453         * MonthCalendar.cs:
35454                 - Fixed Drawing of today circle
35455                 - Fixed drawing of grady dates
35456                 - Fixed HitTest for today link when ShowToday set to false
35457                 - Fixed DefaultSize to obey ShowToday
35458
35459 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
35460
35461         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
35462         * System.Windows.Forms/Theme.cs
35463         * MonthCalendar.cs: added for MonthCalendar
35464         * SelectionRange.cs: added for MonthCalendar
35465         * Day.cs: added for MonthCalendar: added for MonthCalendar
35466         * DateRangeEventArgs.cs: added for MonthCalendar
35467         * DateRangeEventHandler.cs: added for MonthCalendar
35468
35469 2004-11-22  Ravindra <rkumar@novell.com>
35470
35471         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
35472         property.
35473
35474 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
35475
35476         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
35477         event handler.
35478         
35479         * NumericUpDown.cs: Added new implementation.
35480         * UpDownBase.cs: Added new implementation.
35481
35482         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
35483         implementations.
35484         
35485         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
35486         implementations.
35487
35488         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
35489         methods.
35490
35491 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
35492
35493         * Timer.cs  (Dispose): Should call the base dispose when
35494         overriding.
35495
35496 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
35497
35498         * ScrollBar.cs: updates thumb position when max, min or increment
35499         is changed
35500
35501 2004-11-21  Ravindra <rkumar@novell.com>
35502
35503         * ListView.cs: Implemented item selection, activation and
35504         column header style. Fixed properties to do a redraw, if
35505         required. Added support for MouseHover, DoubleClick, KeyDown
35506         and KeyUp event handling and some minor fixes.
35507         * ListViewItem.cs: Fixed constructor.
35508         * ThemeWin32Classic.cs: Improved drawing for ListView.
35509
35510 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
35511
35512         * ThemeWin32Classic.cs: initial listbox drawing code
35513         * DrawMode.cs: new enumerator
35514         * ListControl.cs: stubbed class
35515         * ListBox.cs: initial implementation
35516         * Theme.cs: new methods definitions
35517         * SelectionMode.cs: new enumerator
35518
35519 2004-11-17  Peter Bartok  <pbartok@novell.com>
35520
35521         * XplatUIWin32.cs: Added double-click events to the class style
35522         * Control.cs (WndProc):
35523           - Added handling of click-count to MouseDown/ MouseUp events.
35524           - Added handling of middle and right mouse buttons
35525           - Removed old debug code
35526
35527 2004-11-17  Jackson Harper  <jackson@ximian.com>
35528
35529         * XplatUIX11.cs: Use the new Mono.Unix namespace.
35530
35531 2004-11-17  Ravindra <rkumar@novell.com>
35532
35533         * ListView.cs: Added event handling for MouseMove/Up/Down.
35534         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
35535         * ThemeWin32Classic.cs: We need to clear the graphics context and
35536         draw column header in a proper state.
35537
35538
35539 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
35540
35541         *  Menu.cs: fixes signature
35542
35543 2004-11-16  Peter Bartok  <pbartok@novell.com>
35544
35545         * XplatUIX11.cs (GetMessage): Implemented generation of
35546           double click mouse messages
35547
35548 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
35549
35550         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
35551         not by menu
35552
35553 2004-11-11  Peter Bartok  <pbartok@novell.com>
35554
35555         * HandleData.cs: Added Visible property
35556         * XplatUIX11.cs (IsVisible): Now uses Visible property from
35557           HandleData
35558         * XplatUIX11.cs: Removed old debug leftovers
35559         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
35560         * Control.cs (WndProc): Removed old debug leftovers,
35561           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
35562           needed WM_SIZE handling
35563
35564 2004-11-11  Jackson Harper  <jackson@ximian.com>
35565
35566         * OwnerDrawPropertyBag.cs:
35567         * TreeViewImageIndexConverter.cs: Initial implementation
35568
35569 2004-11-10  Jackson Harper  <jackson@ximian.com>
35570
35571         * ThemeWin32Classic.cs:
35572         * TabControl.cs: instead of moving tabs by the slider pos just
35573         start drawing at the tab that is offset by the slider. This way
35574         scrolling always moves by exactly one tab.
35575
35576 2004-11-10  Jackson Harper  <jackson@ximian.com>
35577
35578         * TabControl.cs: You can only scroll left when the slider has
35579         already ben moved right.
35580         
35581 2004-11-10  Jackson Harper  <jackson@ximian.com>
35582
35583         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
35584         the clip area.
35585         
35586 2004-11-10  Jackson Harper  <jackson@ximian.com>
35587
35588         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
35589         clip area.
35590         
35591 2004-11-09  Jackson Harper  <jackson@ximian.com>
35592
35593         * TabControl.cs (CalcXPos): New helper method so we can determine
35594         the proper place to start drawing vertical tabs.
35595         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
35596         
35597 2004-11-09  Jackson Harper  <jackson@ximian.com>
35598
35599         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
35600         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
35601         and Bottom, left and right are illegal values for this and
35602         multiline is enabled when the alignment is set to left or right.
35603         (DrawTab): Each alignment block should draw the text itself now
35604         because Left requires special love. Also add rendering for Left
35605         aligned tabs.
35606         
35607 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
35608
35609         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
35610         does not destroy the windows, removes debugging messages
35611
35612 2004-11-09  jba  <jba-mono@optusnet.com.au>
35613
35614         * ThemeWin32Classic.cs
35615         (DrawButtonBase): Fix verticle text rect clipping in windows
35616         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35617         rendering and incorrect text rect clipping
35618         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35619         rendering and incorrect text rect clipping
35620         
35621 2004-11-08  Jackson Harper  <jackson@ximian.com>
35622
35623         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
35624         bottom when they are bottom aligned so the bottoms of the tabs get
35625         displayed.
35626         * TabControl.cs (DropRow): Move rows up instead of down when the
35627         tab control is bottom aligned.
35628
35629 2004-11-08 13:59  pbartok
35630
35631         * XplatUIX11.cs:
35632           - Added handling for various window styles
35633           - Added handling for popup windows
35634           - Added SetTopmost handling
35635
35636 2004-11-08 13:55  pbartok
35637
35638         * XplatUIWin32.cs:
35639           - Added argument to SetTopmost method
35640           - Fixed broken ClientToScreen function
35641
35642 2004-11-08 13:53  pbartok
35643
35644         * XplatUIStructs.cs:
35645           - Added missing WS_EX styles
35646
35647 2004-11-08 13:53  pbartok
35648
35649         * XplatUI.cs, XplatUIDriver.cs:
35650           - Added argument to SetTopmost
35651
35652 2004-11-08 13:52  pbartok
35653
35654         * X11Structs.cs:
35655           - Added XSetWindowAttributes structure
35656           - Improved XWindowAttributes structure
35657           - Added SetWindowValuemask enum
35658           - Added window creation arguments enum
35659           - Added gravity enum
35660           - Added Motif hints structure
35661           - Added various Motif flags and enums
35662           - Added PropertyMode enum for property functions
35663
35664 2004-11-08 13:50  pbartok
35665
35666         * Form.cs:
35667           - Fixed arguments for updated SetTopmost method
35668
35669 2004-11-08 13:49  pbartok
35670
35671         * ToolTip.cs:
35672           - Fixed arguments for updated SetTopmost function
35673           - Fixed usage of PointToClient
35674
35675 2004-11-08 13:44  pbartok
35676
35677         * MenuAPI.cs:
35678           - Added Clipping of children and siblings
35679
35680 2004-11-08 13:41  pbartok
35681
35682         * MainMenu.cs:
35683           - Removed SetMenuBarWindow call. We do this in Form.cs
35684
35685 2004-11-08 13:40  jackson
35686
35687         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
35688           scrolling jimmi in the correct location with bottom aligned tabs
35689
35690 2004-11-08 13:36  pbartok
35691
35692         * ContainerControl.cs:
35693           - Implemented BindingContext
35694           - Implemented ParentForm
35695
35696 2004-11-08 12:46  jackson
35697
35698         * TabControl.cs: Put bottom rendered tabs in the right location
35699
35700 2004-11-08 07:15  jordi
35701
35702         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
35703           removes dead code
35704
35705 2004-11-05 17:30  jackson
35706
35707         * TabControl.cs: When selected tabs are expanded make sure they
35708           don't go beyond the edges of the tab control
35709
35710 2004-11-05 14:57  jackson
35711
35712         * TabControl.cs: Reset show_slider so if the control is resized to
35713           a size where it is no longer needed it's not displayed anymore
35714
35715 2004-11-05 13:16  jackson
35716
35717         * TabControl.cs: Make tab pages non visible when added to the
35718           control
35719
35720 2004-11-05 12:42  jackson
35721
35722         * TabControl.cs: Implement SizeMode.FillToRight
35723
35724 2004-11-05 12:16  jackson
35725
35726         * Control.cs: Do not call CreateHandle if the handle is already
35727           created
35728
35729 2004-11-05 11:46  jackson
35730
35731         * TabControl.cs: Remove superflous call to CalcTabRows
35732
35733 2004-11-05 09:07  jackson
35734
35735         * XplatUIX11.cs: Update for Mono.Posix changes
35736
35737 2004-11-05 07:00  ravindra
35738
35739         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
35740           scrolling.
35741
35742 2004-11-04 22:47  jba
35743
35744         * ThemeWin32Classic.cs:
35745           - Fix Button rendering for FlatStyle = Flat or Popup
35746           - Fix RadioButton and CheckBox rendering when Appearance = Button
35747             (normal and flatstyle).
35748           - Correct outer rectangle color when drawing focus rectangle
35749           - Adjust button bounds to be 1 px smaller when focused
35750           - Make button not draw sunken 3d border when pushed (windows compat)
35751           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
35752           - Offset the text in RadioButton and Checkbox when being rendered as
35753           a button.
35754           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
35755           radiobuttons
35756           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
35757           - Fixed disabled text rendering for normally rendered radiobuttons
35758
35759 2004-11-04 10:26  jackson
35760
35761         * TabControl.cs: Recalculate tab rows when resizing
35762
35763 2004-11-04 07:47  jordi
35764
35765         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
35766           collection completion, drawing issues, missing features
35767
35768 2004-11-04 05:03  ravindra
35769
35770         * ScrollBar.cs:
35771                 - We need to recalculate the Thumb area when
35772                 LargeChange/maximum/minimum values are changed.
35773           - We set the 'pos' in UpdatePos() method to minimum, if it's less
35774                 than minimum. This is required to handle the case if large_change is
35775                 more than max, and use LargeChange property instead of large_change
35776                 variable.
35777           - We return max+1 when large_change is more than max, like MS does.
35778
35779 2004-11-04 04:29  ravindra
35780
35781         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
35782                 - Changed default value signatures (prefixed all with ListView).
35783                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
35784                 ListView.
35785           - Fixed calculations for ListViewItem and implemented Clone()
35786           method.
35787
35788 2004-11-04 04:26  ravindra
35789
35790         * Theme.cs, ThemeWin32Classic.cs:
35791                 - Changed default ListView values signatures (prefixed all with
35792                 ListView).
35793           - Fixed default size values for VScrollBar and HScrollBar.
35794                 - Fixed DrawListViewItem method.
35795
35796 2004-11-04 04:05  ravindra
35797
35798         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
35799
35800 2004-11-04 04:04  ravindra
35801
35802         * ImageList.cs: Implemented the missing overload for Draw method.
35803
35804 2004-11-03 19:29  jackson
35805
35806         * TabControl.cs: Handle dropping rows on selection properly
35807
35808 2004-11-03 11:59  jackson
35809
35810         * TabControl.cs: remove debug code
35811
35812 2004-11-03 11:52  jackson
35813
35814         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
35815           the scrolly widgerywoo
35816
35817 2004-11-02 13:52  jackson
35818
35819         * TabControl.cs: Resize the tab pages and tabs when the tab control
35820           is resized
35821
35822 2004-11-02 13:40  jackson
35823
35824         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
35825           selected tab to the bottom
35826
35827 2004-11-02 13:39  jackson
35828
35829         * TabPage.cs: Store the tab pages row
35830
35831 2004-11-02 12:33  jordi
35832
35833         * MenuItem.cs: fixes handle creation
35834
35835 2004-11-02 11:42  jackson
35836
35837         * TabControl.cs: signature fix
35838
35839 2004-11-02 08:56  jackson
35840
35841         * TabControl.cs: Calculate whether the tab is on an edge properly.
35842           Remove top secret debugging code
35843
35844 2004-11-01 19:57  jackson
35845
35846         * TabControl.cs: Add click handling, and proper sizing
35847
35848 2004-11-01 19:47  jackson
35849
35850         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
35851           tab controls
35852
35853 2004-11-01 19:39  jackson
35854
35855         * TabPage.cs: add internal property to store the bounds of a tab
35856           page
35857
35858 2004-10-30 04:23  ravindra
35859
35860         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
35861           values.
35862
35863 2004-10-30 04:21  ravindra
35864
35865         * ListView.cs, ListViewItem.cs: Added support for scrolling and
35866           fixed calculations.
35867
35868 2004-10-30 03:06  pbartok
35869
35870         * XplatUIX11.cs:
35871           - Removed extension of DllImported libs
35872
35873 2004-10-29 09:55  jordi
35874
35875         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
35876           navigation, itemcollection completion, menu fixes
35877
35878 2004-10-27 22:58  pbartok
35879
35880         * XplatUIX11.cs:
35881           - Now throws a nice error message when no X display could be opened
35882
35883 2004-10-26 13:51  jordi
35884
35885         * ListView.cs: removes warning
35886
35887 2004-10-26 03:55  ravindra
35888
35889         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
35890           ThemeWin32Classic.cs: Some formatting for my last checkins.
35891
35892 2004-10-26 03:36  ravindra
35893
35894         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
35895           control and default values.
35896
35897 2004-10-26 03:35  ravindra
35898
35899         * Theme.cs: Added some default values for ListView control.
35900
35901 2004-10-26 03:33  ravindra
35902
35903         * ToolBar.cs: ToolBar should use the user specified button size, if
35904           there is any. Added a size_specified flag for the same.
35905
35906 2004-10-26 03:33  ravindra
35907
35908         * ColumnHeader.cs: Added some internal members and calculations for
35909           ColumnHeader.
35910
35911 2004-10-26 03:32  ravindra
35912
35913         * ListViewItem.cs: Calculations for ListViewItem.
35914
35915 2004-10-26 03:31  ravindra
35916
35917         * ListView.cs: Added some internal members and calculations for
35918           ListView.
35919
35920 2004-10-22 13:31  jordi
35921
35922         * MenuAPI.cs: speedup menus drawing
35923
35924 2004-10-22 13:16  jackson
35925
35926         * XplatUIX11.cs: Make sure to update exposed regions when adding an
35927           expose event
35928
35929 2004-10-22 11:49  jackson
35930
35931         * Control.cs: oops
35932
35933 2004-10-22 11:41  jackson
35934
35935         * Control.cs: Check to see if the window should have its background
35936           repainted by X when drawing.
35937
35938 2004-10-22 11:31  jackson
35939
35940         * XplatUIX11.cs: When invalidating areas only use XClearArea if
35941           clear is true, this way we do not get flicker from X repainting the
35942           background
35943
35944 2004-10-22 11:28  jackson
35945
35946         * XEventQueue.cs: Queue properly
35947
35948 2004-10-21 09:38  jackson
35949
35950         * XEventQueue.cs: Fix access modifier
35951
35952 2004-10-21 09:36  jackson
35953
35954         * XEventQueue.cs: Don't loose messages
35955
35956 2004-10-21 09:22  jackson
35957
35958         * XEventQueue.cs: Don't loose messages
35959
35960 2004-10-20 04:15  jordi
35961
35962         * BootMode.cs: enum need it by SystemInfo
35963
35964 2004-10-19 21:58  pbartok
35965
35966         * XplatUIWin32.cs:
35967           - Small sanity check
35968
35969 2004-10-19 21:56  pbartok
35970
35971         * Form.cs:
35972           - Added private FormParentWindow class which acts as the container
35973             for our form and as the non-client area where menus are drawn
35974           - Added/Moved required tie-ins to Jordi's menus
35975           - Fixed/Implemented the FormStartPosition functionality
35976
35977 2004-10-19 21:52  pbartok
35978
35979         * Control.cs:
35980           - Removed unneeded locals
35981           - Added code to all size and location properties to understand and
35982             deal with the parent container of Form
35983
35984 2004-10-19 21:33  pbartok
35985
35986         * Application.cs:
35987           - Fixed to deal with new Form subclasses for menus
35988
35989 2004-10-19 17:48  jackson
35990
35991         * XEventQueue.cs: commit correct version of file
35992
35993 2004-10-19 16:50  jackson
35994
35995         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
35996
35997 2004-10-19 16:15  jordi
35998
35999         * MenuAPI.cs: MenuBarCalcSize returns the height
36000
36001 2004-10-19 08:31  pbartok
36002
36003         * Control.cs:
36004           - Added missing call to PreProcessMessage before calling OnXXXKey
36005           methods
36006
36007 2004-10-19 00:04  ravindra
36008
36009         * ToolTip.cs: Fixed constructor.
36010
36011 2004-10-18 09:31  jordi
36012
36013         * MenuAPI.cs: menuitems in menubars do not have shortcuts
36014
36015 2004-10-18 09:26  jordi
36016
36017         * MenuItem.cs: fixes MenuItem class signature
36018
36019 2004-10-18 08:56  jordi
36020
36021         * MenuAPI.cs: prevents windows from showing in the taskbar
36022
36023 2004-10-18 00:28  ravindra
36024
36025         * ToolTip.cs: Suppressed a warning message.
36026
36027 2004-10-18 00:27  ravindra
36028
36029         * Control.cs: Default value of visible property must be true.
36030
36031 2004-10-17 23:19  pbartok
36032
36033         * ToolTip.cs:
36034           - Complete implementation
36035
36036 2004-10-17 23:19  pbartok
36037
36038         * XplatUIX11.cs:
36039           - Added EnableWindow method
36040           - Added SetModal stub
36041           - Added generation of WM_ACTIVATE message (still needs testing)
36042           - Added SetTopMost stub
36043           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
36044
36045 2004-10-17 23:17  pbartok
36046
36047         * XplatUIWin32.cs:
36048           - Removed VirtualKeys to XplatUIStructs
36049           - Implemented SetTopMost method
36050           - Implemented EnableWindow method
36051           - Bugfix in ScreenToClient()
36052           - Bugfixes in ClientToScreen()
36053
36054 2004-10-17 22:51  pbartok
36055
36056         * XplatUIStructs.cs:
36057           - Added WS_EX styles to WindowStyles enumeration
36058
36059 2004-10-17 22:50  pbartok
36060
36061         * XplatUI.cs, XplatUIDriver.cs:
36062           - Added method for enabling/disabling windows
36063           - Added method for setting window modality
36064           - Added method for setting topmost window
36065
36066 2004-10-17 22:49  pbartok
36067
36068         * ThemeWin32Classic.cs:
36069           - Added ToolTip drawing code
36070
36071 2004-10-17 22:49  pbartok
36072
36073         * Theme.cs:
36074           - Added ToolTip abstracts
36075
36076 2004-10-17 22:47  pbartok
36077
36078         * Form.cs:
36079           - Fixed Form.ControlCollection to handle owner relations
36080           - Added Owner/OwnedForms handling
36081           - Implemented Z-Ordering for owned forms
36082           - Removed unneeded private overload of ShowDialog
36083           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
36084             so I hope)
36085           - Fixed Close(), had wrong default
36086           - Added firing of OnLoad event
36087           - Added some commented out debug code for Ownership handling
36088
36089 2004-10-17 22:16  pbartok
36090
36091         * Control.cs:
36092           - Fixed/implemented flat list of controls
36093
36094 2004-10-17 22:14  pbartok
36095
36096         * Application.cs:
36097           - Added code to simulate modal dialogs on Win32
36098
36099 2004-10-17 16:11  jordi
36100
36101         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
36102           mouse event
36103
36104 2004-10-17 13:39  jordi
36105
36106         * MenuAPI.cs: menu drawing fixes
36107
36108 2004-10-15 09:10  ravindra
36109
36110         * StructFormat.cs: General Enum.
36111
36112 2004-10-15 09:09  ravindra
36113
36114         * SizeGripStyle.cs: Enum for Form.
36115
36116 2004-10-15 09:08  ravindra
36117
36118         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
36119           in Theme for ListView.
36120
36121 2004-10-15 09:06  ravindra
36122
36123         * ColumnHeader.cs: Flushing some formatting changes.
36124
36125 2004-10-15 09:05  ravindra
36126
36127         * ListViewItem.cs: Implemented GetBounds method and fixed coding
36128           style.
36129
36130 2004-10-15 09:03  ravindra
36131
36132         * ListView.cs: Implemented Paint method and fixed coding style.
36133
36134 2004-10-15 07:34  jordi
36135
36136         * MenuAPI.cs: fix for X11
36137
36138 2004-10-15 07:32  ravindra
36139
36140         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
36141                 - Renamed Paint() method to Draw() for clarity. Also, moved
36142                 DrawImage() to OnPaint().
36143
36144 2004-10-15 07:25  ravindra
36145
36146         * CheckBox.cs, RadioButton.cs:
36147                 - Removed Redraw (), we get it from ButtonBase.
36148                 - Implemented Paint (), to do class specific painting.
36149
36150 2004-10-15 07:16  ravindra
36151
36152         * ButtonBase.cs:
36153                 - Redraw () is not virtual now.
36154                 - Added an internal virtual method Paint (), so that
36155                 derived classes can do their painting on their own.
36156                 - Modified OnPaint () to call Paint ().
36157
36158 2004-10-15 06:43  jordi
36159
36160         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
36161           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
36162
36163 2004-10-15 00:30  ravindra
36164
36165         * MessageBox.cs:
36166                 - MessageBox on windows does not have min/max buttons.
36167                 This change in CreateParams fixes this on Windows. We
36168                 still need to implement this windowstyle behavior in
36169                 our X11 driver.
36170
36171 2004-10-14 05:14  ravindra
36172
36173         * ToolBar.cs:
36174                 - Changed Redraw () to do a Refresh () always.
36175                 - Fixed the MouseMove event handling when mouse is pressed,
36176                 ie drag event handling.
36177                 - Replaced the usage of ToolBarButton.Pressed property to
36178                 ToolBarButton.pressed internal variable.
36179
36180 2004-10-14 05:10  ravindra
36181
36182         * ToolBarButton.cs:
36183                 - Added an internal member 'inside' to handle mouse move
36184                 with mouse pressed ie mouse drag event.
36185                 - Changed 'Pressed' property to return true only when
36186                 'inside' and 'pressed' are both true.
36187                 - Some coding style love.
36188
36189 2004-10-14 00:17  ravindra
36190
36191         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
36192           public method.
36193
36194 2004-10-14 00:15  ravindra
36195
36196         * ButtonBase.cs: Redraw () related improvements.
36197
36198 2004-10-14 00:14  ravindra
36199
36200         * MessageBox.cs: Moved InitFormSize () out of Paint method and
36201           removed unnecessary calls to Button.Show () method.
36202
36203 2004-10-13 17:50  pbartok
36204
36205         * XplatUIX11.cs:
36206           - Formatting fix
36207           - Removed destroying of window until we solve the problem of X
36208             destroying the window before us on shutdown
36209
36210 2004-10-13 16:32  pbartok
36211
36212         * ButtonBase.cs:
36213           - Now Redraws on MouseUp for FlatStyle Flat and Popup
36214
36215 2004-10-13 14:18  pbartok
36216
36217         * XplatUIX11.cs:
36218           - Added code to destroy the X window
36219
36220 2004-10-13 14:18  pbartok
36221
36222         * XplatUIWin32.cs:
36223           - Added code to destroy a window
36224
36225 2004-10-13 14:12  pbartok
36226
36227         * ButtonBase.cs:
36228           - Added the Redraw on Resize that got dropped in the last rev
36229
36230 2004-10-13 09:06  pbartok
36231
36232         * ThemeWin32Classic.cs:
36233           - Path from John BouAntoun:
36234             * Fix check rendering (centre correctly for normal style, offset
36235               correctly for FlatStyle).
36236             * Fix border color usage (use backcolor) for FlatStyle.Popup
36237             * Use checkbox.Capture instead of checkbox.is_pressed when
36238               rendering flatstyle states.
36239
36240 2004-10-12 21:48  pbartok
36241
36242         * ThemeWin32Classic.cs:
36243           - Removed all occurences of SystemColors and replaced them with the
36244             matching theme color
36245
36246 2004-10-12 21:41  pbartok
36247
36248         * ThemeWin32Classic.cs:
36249           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
36250             him using the function for flatstyle drawing
36251           - Changed functions to use the new version of CPDrawBorder3D
36252
36253 2004-10-12 21:15  pbartok
36254
36255         * ControlPaint.cs:
36256           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
36257             match MS documentation. They need to return defined colors if the
36258             passed color matches the configured control color. Thanks to John
36259             BouAntoun for pointing this out.
36260
36261 2004-10-12 20:57  pbartok
36262
36263         * Control.cs:
36264           - Fix from John BouAntoun: Raise ForeColorChanged event when text
36265             color is changed
36266
36267 2004-10-12 20:46  pbartok
36268
36269         * CheckBox.cs:
36270           - Fix from John BouAntoun: Now properly sets the Appearance property
36271
36272 2004-10-12 20:45  pbartok
36273
36274         * ThemeWin32Classic.cs:
36275           - Fixes from John BouAntoun: now handles forecolors and backcolors
36276             for flatstyle rendered controls much better; It also fixes normal
36277             checkbox rendering when pushed or disabled.
36278
36279 2004-10-08 02:50  jordi
36280
36281         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
36282           work
36283
36284 2004-10-07 08:56  jordi
36285
36286         * ThemeWin32Classic.cs: Removes deletion of cached brushes
36287
36288 2004-10-06 03:59  jordi
36289
36290         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
36291           XplatUIWin32.cs: removes warnings from compilation
36292
36293 2004-10-05 12:23  jackson
36294
36295         * RadioButton.cs: Fix ctor
36296
36297 2004-10-05 11:10  pbartok
36298
36299         * MessageBox.cs:
36300           - Partial implementation by Benjamin Dasnois
36301
36302 2004-10-05 10:15  jackson
36303
36304         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
36305           by John BouAntoun
36306
36307 2004-10-05 03:07  ravindra
36308
36309         * ToolBar.cs:
36310                 - Removed a private method, Draw ().
36311                 - Fixed the ButtonDropDown event handling.
36312                 - Fixed MouseMove event handling.
36313
36314 2004-10-05 03:04  ravindra
36315
36316         * ThemeWin32Classic.cs:
36317                 - Added DrawListView method and ListViewDefaultSize property.
36318                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
36319                 - Changed DOS style CRLF to Unix format (dos2unix).
36320
36321 2004-10-05 03:03  ravindra
36322
36323         * Theme.cs:
36324                 - Added DrawListView method and ListViewDefaultSize property.
36325
36326 2004-10-05 02:42  ravindra
36327
36328         * ToolBarButton.cs: Added an internal member dd_pressed to handle
36329           clicks on DropDown arrow.
36330
36331 2004-10-04 22:56  jackson
36332
36333         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
36334           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
36335           Control handle the buffers, derived classes should not have to
36336           CreateBuffers themselves.
36337
36338 2004-10-04 21:20  jackson
36339
36340         * StatusBar.cs: The control handles resizing the buffers now.
36341
36342 2004-10-04 21:18  jackson
36343
36344         * Control.cs: When resizing the buffers should be invalidated. This
36345           should be handled in Control not in derived classes.
36346
36347 2004-10-04 14:45  jackson
36348
36349         * TabPage.cs: oops
36350
36351 2004-10-04 02:14  pbartok
36352
36353         * LeftRightAlignment.cs:
36354           - Initial check-in
36355
36356 2004-10-04 01:09  jordi
36357
36358         * ThemeWin32Classic.cs: fixes right button position causing right
36359           button not showing on horizontal scrollbars
36360
36361 2004-10-02 13:12  pbartok
36362
36363         * XplatUIX11.cs:
36364           - Simplified the Invalidate method by using an X call instead of
36365             generating the expose ourselves
36366           - Added an expose when the window background is changed
36367           - Implemented ClientToScreen method
36368
36369 2004-10-02 13:08  pbartok
36370
36371         * XplatUIWin32.cs:
36372           - Added Win32EnableWindow method (test for implementing modal
36373           dialogs)
36374           - Added ClientToScreen method and imports
36375
36376 2004-10-02 13:07  pbartok
36377
36378         * XplatUI.cs, XplatUIDriver.cs:
36379           - Added ClientToScreen coordinate translation method
36380
36381 2004-10-02 13:06  pbartok
36382
36383         * KeyPressEventArgs.cs:
36384           - Fixed access level for constructor
36385
36386 2004-10-02 13:06  pbartok
36387
36388         * NativeWindow.cs:
36389           - Changed access level for the window_collection hash table
36390
36391 2004-10-02 13:05  pbartok
36392
36393         * Form.cs:
36394           - Added KeyPreview property
36395           - Added Menu property (still incomplete, pending Jordi's menu work)
36396           - Implemented ProcessCmdKey
36397           - Implemented ProcessDialogKey
36398           - Implemented ProcessKeyPreview
36399
36400 2004-10-02 13:02  pbartok
36401
36402         * Control.cs:
36403           - Added private method to get the Control object from the window
36404           handle
36405           - Implemented ContextMenu property
36406           - Implemented PointToScreen
36407           - Implemented PreProcessMessage
36408           - Implemented IsInputChar
36409           - Implemented IsInputKey
36410           - Implemented ProcessCmdKey
36411           - Completed ProcessKeyEventArgs
36412           - Fixed message loop to call the proper chain of functions on key
36413           events
36414           - Implemented ProcessDialogChar
36415           - Implemented ProcessDialogKey
36416           - Implemented ProcessKeyMessage
36417           - Implemented ProcessKeyPreview
36418           - Added RaiseDragEvent stub (MS internal method)
36419           - Added RaiseKeyEvent stub (MS internal method)
36420           - Added RaiseMouseEvent stub (MS Internal method)
36421           - Added RaisePaintEvent stub (MS Internal method)
36422           - Added ResetMouseEventArgs stub (MS Internal method)
36423           - Implemented RtlTranslateAlignment
36424           - Implemented RtlTranslateContent
36425           - Implemented RtlTranslateHorizontal
36426           - Implemented RtlTranslateLeftRight
36427           - Added generation of KeyPress event
36428
36429 2004-10-02 05:57  ravindra
36430
36431         * ListViewItem.cs: Added attributes.
36432
36433 2004-10-02 05:32  ravindra
36434
36435         * ListView.cs: Added attributes.
36436
36437 2004-10-01 11:53  jackson
36438
36439         * Form.cs: Implement the Close method so work on MessageBox can
36440           continue.
36441
36442 2004-09-30 14:06  pbartok
36443
36444         * XplatUIX11.cs:
36445           - Bug fixes
36446
36447 2004-09-30 11:34  jackson
36448
36449         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
36450
36451 2004-09-30 07:26  ravindra
36452
36453         * ListViewItemConverter.cs: Converter for ListViewItem.
36454
36455 2004-09-30 07:26  ravindra
36456
36457         * SortOrder.cs: Enum for ListView control.
36458
36459 2004-09-30 07:25  ravindra
36460
36461         * ColumnHeader.cs: Supporting class for ListView control.
36462
36463 2004-09-30 07:24  ravindra
36464
36465         * ListView.cs, ListViewItem.cs: Initial implementation.
36466
36467 2004-09-30 07:20  ravindra
36468
36469         * ItemActivation.cs: Enum for ListView Control.
36470
36471 2004-09-29 20:29  pbartok
36472
36473         * XplatUIX11.cs:
36474           - Added lookup of pixel value for background color; tries to get a
36475             color 'close' to the requested color, it avoids having to create a
36476             colormap.  Depending on the display this could mean the used color
36477             is slightly off the desired color. Might have to change it to a more
36478             resource intensive colormap approach, but it will work as a
36479           workaround to avoid red screens.
36480
36481 2004-09-29 14:27  jackson
36482
36483         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
36484
36485 2004-09-28 12:44  pbartok
36486
36487         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
36488           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
36489           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
36490           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
36491           TrackBar.cs, VScrollBar.cs:
36492           - Streamlined Theme interfaces:
36493             * Each DrawXXX method for a control now is passed the object for
36494               the control to be drawn in order to allow accessing any state the
36495               theme might require
36496
36497             * ControlPaint methods for the theme now have a CP prefix to avoid
36498               name clashes with the Draw methods for controls
36499
36500             * Every control now retrieves it's DefaultSize from the current
36501             theme
36502
36503 2004-09-28 12:17  jackson
36504
36505         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
36506           drawing
36507
36508 2004-09-24 14:57  jackson
36509
36510         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
36511           Gives us a nice little performance boost.
36512
36513 2004-09-24 12:02  jackson
36514
36515         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
36516           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
36517           Control and supporting classes. Initial checkin
36518
36519 2004-09-23 13:08  jackson
36520
36521         * Form.cs: Temp build fixage
36522
36523 2004-09-23 01:39  ravindra
36524
36525         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
36526           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
36527           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
36528           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
36529           EventHandlers needed by ListView Control.
36530
36531 2004-09-22 14:12  pbartok
36532
36533         * ScrollableControl.cs:
36534           - Implemented DockPadding property
36535           - Implemented AutoScroll property
36536           - Implemented AutoScrollMargin property
36537           - Implemented AutoScrollMinSize property
36538           - Implemented AutoScrollPosition property
36539           - Implemented DisplayRectangle property (still incomplete)
36540           - Implemented CreateParams property
36541           - Implemented HScroll property
36542           - Implemented VScroll property
36543           - Implemented OnVisibleChanged property
36544
36545 2004-09-22 14:09  pbartok
36546
36547         * Form.cs:
36548           - Added Form.ControllCollection class
36549           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
36550             RemoveOwnedForm (still incomplete, missing on-top and common
36551             minimize/maximize behaviour)
36552           - Added StartPosition property (still incomplete, does not use when
36553             creating the form)
36554           - Added ShowDialog() methods (still incomplete, missing forcing the
36555             dialog modal)
36556
36557 2004-09-22 14:05  pbartok
36558
36559         * Application.cs:
36560           - Added message loop for modal dialogs
36561
36562 2004-09-22 14:02  pbartok
36563
36564         * GroupBox.cs:
36565           - Fixed wrong types for events
36566
36567 2004-09-22 14:00  pbartok
36568
36569         * Shortcut.cs, FormWindowState.cs:
36570           - Fixed wrong values
36571
36572 2004-09-22 12:01  jackson
36573
36574         * Control.cs: Text is never null
36575
36576 2004-09-20 22:14  pbartok
36577
36578         * XplatUIWin32.cs:
36579           - Fixed accessibility level for Idle handler
36580
36581 2004-09-20 18:54  jackson
36582
36583         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36584           XplatUIX11.cs: New message loop that uses poll so we don't get a
36585           busy loop
36586
36587 2004-09-17 10:43  pbartok
36588
36589         * ScrollBar.cs:
36590           - Fixed behaviour of arrow buttons. Now properly behaves like
36591             Buttons (and like Microsoft's scrollbar arrow buttons)
36592
36593 2004-09-17 10:14  pbartok
36594
36595         * ScrollBar.cs:
36596           - Added missing release of keyboard/mouse capture
36597
36598 2004-09-17 06:18  jordi
36599
36600         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
36601           Theme.cs: Very early menu support
36602
36603 2004-09-16 17:45  pbartok
36604
36605         * XplatUIWin32.cs:
36606           - Fixed sending a window to the front
36607           - Added overload for SetWindowPos to avoid casting
36608
36609 2004-09-16 17:44  pbartok
36610
36611         * Control.cs:
36612           - Added SendToBack and BringToFront methods
36613
36614 2004-09-16 07:00  ravindra
36615
36616         * Copyright: Added Novell URL.
36617
36618 2004-09-16 07:00  ravindra
36619
36620         * ToolBar.cs: Invalidate should be done before redrawing.
36621
36622 2004-09-15 21:19  ravindra
36623
36624         * ColumnHeaderStyle.cs: Enum for ListView Control.
36625
36626 2004-09-15 21:18  ravindra
36627
36628         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
36629           ListView Control.
36630
36631 2004-09-13 18:26  jackson
36632
36633         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
36634           properly
36635
36636 2004-09-13 18:13  jackson
36637
36638         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
36639           a second thread and post messages into the main threads message
36640           queue. This makes timing much more consistent. Both win2K and XP
36641           have a minimum timer value of 15 milliseconds, so we now do this
36642           too.
36643
36644 2004-09-13 15:18  pbartok
36645
36646         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36647           XplatUIX11.cs:
36648           - Added Z-Ordering methods
36649
36650 2004-09-13 10:56  pbartok
36651
36652         * Form.cs:
36653           - Fixed #region names
36654           - Moved properties and methods into their proper #regions
36655
36656 2004-09-13 10:51  pbartok
36657
36658         * Form.cs:
36659           - Added Accept and CancelButton properties
36660           - Added ProcessDialogKey() method
36661
36662 2004-09-13 08:18  pbartok
36663
36664         * IWindowTarget.cs:
36665           - Initial check-in
36666
36667 2004-09-10 21:50  pbartok
36668
36669         * Control.cs:
36670           - Added DoDragDrop() [incomplete]
36671           - Properly implemented 'Visible' handling
36672           - Added SetVisibleCore()
36673           - Implemented FindChildAtPoint()
36674           - Implemented GetContainerControl()
36675           - Implemented Hide()
36676
36677 2004-09-10 19:28  pbartok
36678
36679         * Control.cs:
36680           - Moved methods into their appropriate #regions
36681           - Reordered methods within regions alphabetically
36682
36683 2004-09-10 18:57  pbartok
36684
36685         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36686           - Added method to retrieve text from window
36687
36688 2004-09-10 18:56  pbartok
36689
36690         * Control.cs:
36691           - Moved some internal functions into the internal region
36692           - Implemented FontHeight
36693           - Implemented RenderRightToLeft
36694           - Implemented ResizeRedraw
36695           - Implemented ShowFocusCues
36696           - Implemented ShowKeyboardCues
36697           - Implemented FromChildHandle
36698           - Implemented FromHandle
36699           - Implemented IsMnemonic
36700           - Implemented ReflectMessage
36701           - All public and protected Static Methods are now complete
36702
36703 2004-09-10 16:54  pbartok
36704
36705         * Control.cs:
36706           - Implemented remaining missing public instance properties
36707           - Alphabetized some out of order properties
36708
36709 2004-09-10 05:51  ravindra
36710
36711         * PictureBox.cs: Added a check for null image.
36712
36713 2004-09-10 00:59  jordi
36714
36715         * GroupBox.cs: remove cvs tag
36716
36717 2004-09-09 05:25  ravindra
36718
36719         * ToolBar.cs: Make redraw accessible from ToolBarButton.
36720
36721 2004-09-09 05:23  ravindra
36722
36723         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
36724           parent redraw.
36725
36726 2004-09-09 02:28  pbartok
36727
36728         * ThemeWin32Classic.cs:
36729           - Improve disabled string look
36730
36731 2004-09-09 01:15  jordi
36732
36733         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
36734           args and handler
36735
36736 2004-09-08 23:56  ravindra
36737
36738         * ItemBoundsPortion.cs: It's enum, not a class!
36739
36740 2004-09-08 23:47  ravindra
36741
36742         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
36743           Enums for Form.
36744
36745 2004-09-08 21:13  ravindra
36746
36747         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
36748           ListView control.
36749
36750 2004-09-08 21:03  ravindra
36751
36752         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
36753           avoid crash.
36754
36755 2004-09-08 21:01  ravindra
36756
36757         * ScrollableControl.cs: Removed unreachable code.
36758
36759 2004-09-08 06:45  jordi
36760
36761         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
36762
36763 2004-09-08 01:00  jackson
36764
36765         * XplatUIX11.cs: Only run the timers when updating the message
36766           queue. This effectively gives X messages a higher priority then
36767           timer messages. Timers still need love though
36768
36769 2004-09-07 14:01  jackson
36770
36771         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
36772           this for us and the handle is no longer valid.
36773
36774 2004-09-07 13:59  jackson
36775
36776         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
36777           loop that manages to not crash. TODO: Add poll and cleanup timers
36778
36779 2004-09-07 11:12  jordi
36780
36781         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
36782
36783 2004-09-07 03:40  jordi
36784
36785         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
36786           fixes, methods, multiple links
36787
36788 2004-09-06 06:55  jordi
36789
36790         * Control.cs: Caches ClientRectangle rectangle value
36791
36792 2004-09-05 02:03  jordi
36793
36794         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
36795           certain situations
36796
36797 2004-09-04 11:10  jordi
36798
36799         * Label.cs: Refresh when font changed
36800
36801 2004-09-02 16:24  pbartok
36802
36803         * Control.cs:
36804           - Added sanity check to creation of double buffer bitmap
36805
36806 2004-09-02 16:24  pbartok
36807
36808         * ButtonBase.cs:
36809           - Fixed selection of text color
36810           - Fixed handling of resize event; now properly recreates double
36811             buffering bitmap
36812           - Added missing assignment of TextAlignment
36813           - Added proper default for TextAlignment
36814
36815 2004-09-02 14:26  pbartok
36816
36817         * RadioButton.cs:
36818           - Added missing RadioButton.RadioButtonAccessibleObject class
36819
36820 2004-09-02 14:26  pbartok
36821
36822         * Control.cs:
36823           - Added missing Control.ControlAccessibleObject class
36824           - Started to implement Select()ion mechanisms, still very incomplete
36825
36826 2004-09-02 14:25  pbartok
36827
36828         * AccessibleObject.cs:
36829           - Added missing methods
36830
36831 2004-09-02 14:23  pbartok
36832
36833         * AccessibleNavigation.cs, AccessibleSelection.cs:
36834           - Initial check-in
36835
36836 2004-09-02 10:32  jordi
36837
36838         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
36839           pool for pens, brushes, and hatchbruses
36840
36841 2004-09-01 15:30  jackson
36842
36843         * StatusBar.cs: Fix typo
36844
36845 2004-09-01 14:44  pbartok
36846
36847         * RadioButton.cs:
36848           - Fixed state
36849
36850 2004-09-01 14:39  pbartok
36851
36852         * Button.cs, RadioButton.cs:
36853           - Functional initial check-in
36854
36855 2004-09-01 14:01  pbartok
36856
36857         * CheckBox.cs:
36858           - Added missing default
36859           - Added missing region mark
36860
36861 2004-09-01 09:10  jordi
36862
36863         * Label.cs: fixes method signatures, new methods, events, fixes
36864           autosize
36865
36866 2004-09-01 07:19  jordi
36867
36868         * Control.cs: Init string variables with an empty object
36869
36870 2004-09-01 04:20  jordi
36871
36872         * Control.cs: fires OnFontChanged event
36873
36874 2004-08-31 20:07  pbartok
36875
36876         * ButtonBase.cs:
36877           - Enabled display of strings
36878
36879 2004-08-31 20:05  pbartok
36880
36881         * Form.cs:
36882           - Added (partial) implementation of DialogResult; rest needs to be
36883             implemented when the modal loop code is done
36884
36885 2004-08-31 19:55  pbartok
36886
36887         * CheckBox.cs:
36888           - Fixed to match the removal of the needs_redraw concept
36889
36890 2004-08-31 19:55  pbartok
36891
36892         * ButtonBase.cs:
36893           - Removed the rather odd split between 'needs redraw' and redrawing
36894           - Now handles the events that require regeneration (ambient
36895             properties and size)
36896
36897 2004-08-31 19:41  pbartok
36898
36899         * Control.cs:
36900           - Added firing of BackColorChanged event
36901           - Added TopLevelControl property
36902           - Fixed handling of WM_ERASEBKGRND message
36903
36904 2004-08-31 12:49  pbartok
36905
36906         * ButtonBase.cs:
36907           - Removed debug
36908           - Minor fixes
36909
36910 2004-08-31 12:48  pbartok
36911
36912         * CheckBox.cs:
36913           - Finished (famous last words)
36914
36915 2004-08-31 04:35  jordi
36916
36917         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
36918           scrolling bugs, adds new methods
36919
36920 2004-08-30 14:42  pbartok
36921
36922         * CheckBox.cs:
36923           - Implemented CheckBox drawing code
36924
36925 2004-08-30 14:42  pbartok
36926
36927         * ButtonBase.cs:
36928           - Made Redraw() and CheckRedraw() virtual
36929           - Improved mouse up/down/move logic to properly track buttons
36930
36931 2004-08-30 09:44  pbartok
36932
36933         * CheckBox.cs:
36934           - Updated to fix broken build. Not complete yet.
36935
36936 2004-08-30 09:28  pbartok
36937
36938         * CheckState.cs:
36939           - Initial checkin
36940
36941 2004-08-30 09:17  pbartok
36942
36943         * Appearance.cs:
36944           - Initial check-in
36945
36946 2004-08-27 16:12  ravindra
36947
36948         * ToolBarButton.cs: Added TypeConverter attribute.
36949
36950 2004-08-27 16:07  ravindra
36951
36952         * ImageIndexConverter.cs: Implemented.
36953
36954 2004-08-27 14:17  pbartok
36955
36956         * Control.cs:
36957           - Removed unneeded stack vars
36958           - First attempt to fix sizing issues when layout is suspended
36959
36960 2004-08-25 15:35  jordi
36961
36962         * ScrollBar.cs: more fixes to scrollbar
36963
36964 2004-08-25 14:04  ravindra
36965
36966         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
36967           Added the missing divider code and grip for ToolBar Control.
36968
36969 2004-08-25 13:20  pbartok
36970
36971         * Control.cs:
36972           - Control now properly passes the ambient background color to child
36973             controls
36974
36975 2004-08-25 13:20  jordi
36976
36977         * ScrollBar.cs: small bug fix regarding bar position
36978
36979 2004-08-25 12:33  pbartok
36980
36981         * Timer.cs:
36982           - Now only calls SetTimer or KillTimer if the enabled state has
36983           changed
36984
36985 2004-08-25 12:33  pbartok
36986
36987         * XplatUIWin32.cs:
36988           - Fixed timer handling, now seems to work
36989           - Improved error message for window creation
36990
36991 2004-08-25 12:32  pbartok
36992
36993         * Control.cs:
36994           - Fixed generation of MouseUp message
36995
36996 2004-08-25 12:29  jordi
36997
36998         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
36999           and fixes for progressbar
37000
37001 2004-08-24 18:43  ravindra
37002
37003         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
37004           in ToolBar control.
37005
37006 2004-08-24 17:15  pbartok
37007
37008         * Panel.cs:
37009           - Added #region
37010           - Added missing events
37011           - Alphabetized
37012
37013 2004-08-24 17:14  pbartok
37014
37015         * StatusBar.cs, PictureBox.cs:
37016           - Now uses Control's CreateParams
37017
37018 2004-08-24 16:36  pbartok
37019
37020         * XplatUIX11.cs:
37021           - Fixed background color handling
37022           - Fixed sending of enter/leave events on a grab
37023
37024 2004-08-24 16:35  pbartok
37025
37026         * X11Structs.cs:
37027           - Refined definitions for CrossingEvent
37028
37029 2004-08-24 12:37  jordi
37030
37031         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
37032           formmating, methods signature, and adds missing events
37033
37034 2004-08-24 12:24  jordi
37035
37036         * Control.cs: fire OnEnabledChanged event
37037
37038 2004-08-24 11:17  pbartok
37039
37040         * XplatUIWin32.cs:
37041           - Implemented SetTimer() and KillTimer()
37042
37043 2004-08-24 11:16  pbartok
37044
37045         * XplatUIX11.cs:
37046           - Now uses Remove instead of Add to kill the timer
37047
37048 2004-08-24 10:16  jackson
37049
37050         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
37051           picture boxes in the theme now. Draw picture box borders and obey
37052           sizing modes
37053
37054 2004-08-24 05:49  jackson
37055
37056         * Timer.cs: Remove top secret debugging code
37057
37058 2004-08-24 05:34  jackson
37059
37060         * PictureBox.cs: Temp hack to make picture boxes draw their full
37061           image
37062
37063 2004-08-24 05:29  jackson
37064
37065         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37066           XplatUIX11.cs: Move timers to the driver level. On X they are
37067           queued by the driver and checked on idle.
37068
37069 2004-08-24 01:07  jackson
37070
37071         * XplatUIX11.cs: Use a queue for async messages instead of passing
37072           them as ClientMessages since that was totally broken. Also simply
37073           check for events and return an idle message if none are found. This
37074           gives us an idle handler, and prevents deadlocking when no messages
37075           are in the queue.
37076
37077 2004-08-23 18:19  ravindra
37078
37079         * XplatUIWin32.cs: Removed the unwanted destructor.
37080
37081 2004-08-23 17:27  pbartok
37082
37083         * ButtonBase.cs:
37084           - Finishing touches. Works now, just needs some optimizations.
37085
37086 2004-08-23 16:53  jordi
37087
37088         * ScrollBar.cs: small fix
37089
37090 2004-08-23 16:45  pbartok
37091
37092         * Application.cs:
37093           - Removed debug output
37094           - Simplifications
37095
37096 2004-08-23 16:43  jordi
37097
37098         * ScrollBar.cs: [no log message]
37099
37100 2004-08-23 16:10  pbartok
37101
37102         * Form.cs:
37103           - Fixed handling of WM_CLOSE message
37104           - Removed debug output
37105
37106 2004-08-23 16:09  pbartok
37107
37108         * Application.cs:
37109           - Added handling of Idle event
37110           - Added handling of form closing
37111           - Fixed reporting of MessageLoop property
37112           - Removed some unneeded code, should provide a bit of a speedup
37113
37114 2004-08-23 15:22  pbartok
37115
37116         * Control.cs:
37117           - Added InitLayout() method
37118           - Added code to properly perform layout when Anchor or Dock property
37119             is changed
37120           - Changed 'interpretation' of ResumeLayout. MS seems to have a
37121             LAMESPEC, tried to do it in a way that makes sense
37122
37123 2004-08-23 14:10  jordi
37124
37125         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
37126           properties and methods
37127
37128 2004-08-23 13:55  pbartok
37129
37130         * Control.cs:
37131           - Properly fixed Jordi's last fix
37132           - Now uses Cursor's Position property instead of calling XplatUI
37133           directly
37134
37135 2004-08-23 13:44  jordi
37136
37137         * PaintEventHandler.cs: Adding missing attribute
37138
37139 2004-08-23 13:39  pbartok
37140
37141         * Cursor.cs:
37142           - Implemented Position property
37143
37144 2004-08-23 13:39  pbartok
37145
37146         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37147           - Added method to move mouse cursor
37148
37149 2004-08-23 13:39  pbartok
37150
37151         * XplatUIX11.cs:
37152           - Fixed setting of background color
37153           - Added method to move mouse cursor
37154
37155 2004-08-23 13:16  jordi
37156
37157         * Control.cs: avoids null exception
37158
37159 2004-08-22 17:46  jackson
37160
37161         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
37162           PictureBox
37163
37164 2004-08-22 17:40  jackson
37165
37166         * XplatUIX11.cs: Add some missing locks
37167
37168 2004-08-22 15:10  pbartok
37169
37170         * Control.cs, Form.cs:
37171           - Removed OverlappedWindow style from Control, instead it's default
37172             now is child
37173           - Made form windows OverlappedWindow by default
37174
37175 2004-08-22 13:34  jackson
37176
37177         * ScrollBar.cs: Update the position through the Value property so
37178           the OnValueChanged event is raised.
37179
37180 2004-08-22 12:04  pbartok
37181
37182         * SWF.csproj:
37183           - Added Cursor.cs and UserControl.cs
37184
37185 2004-08-22 12:03  pbartok
37186
37187         * Cursor.cs:
37188           - Started implementation, not usable yet
37189
37190 2004-08-22 12:00  pbartok
37191
37192         * UserControl.cs:
37193           - Implemented UserControl (complete)
37194
37195 2004-08-21 19:20  ravindra
37196
37197         * ToolBar.cs: Correcting the formatting mess of VS.NET.
37198
37199 2004-08-21 18:49  ravindra
37200
37201         * ToolBar.cs: Probably this completes the missing attributes in
37202           toolbar control.
37203
37204 2004-08-21 18:03  ravindra
37205
37206         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
37207           Fixed toolbar control signatures.
37208
37209 2004-08-21 16:32  pbartok
37210
37211         * LinkLabel.cs:
37212           - Signature Fixes
37213
37214 2004-08-21 16:30  pbartok
37215
37216         * Label.cs:
37217           - Signature fixes
37218
37219 2004-08-21 16:19  pbartok
37220
37221         * Control.cs, Label.cs:
37222           - Signature fixes
37223
37224 2004-08-21 15:57  pbartok
37225
37226         * ButtonBase.cs:
37227           - Added loads of debug output for development
37228           - Fixed typo in method name
37229
37230 2004-08-21 15:52  pbartok
37231
37232         * ToolBarButtonClickEventArgs.cs:
37233           - Added missing base class
37234
37235 2004-08-21 14:53  pbartok
37236
37237         * Control.cs:
37238           - Updated to match new GrabWindow signature
37239
37240 2004-08-21 14:51  pbartok
37241
37242         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37243           - Added method to get default display size
37244
37245 2004-08-21 14:23  pbartok
37246
37247         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37248           - Added method to query current grab state
37249           - Added argument to allow confining a grab to a window
37250
37251 2004-08-21 14:22  pbartok
37252
37253         * Keys.cs:
37254           - Added [Flags] attribute so that modifiers can be used in bitwise
37255           ops
37256
37257 2004-08-21 14:21  pbartok
37258
37259         * TrackBar.cs, ScrollBar.cs:
37260           - Replaced direct XplatUI calls with their Control counterpart
37261
37262 2004-08-21 13:32  pbartok
37263
37264         * Control.cs:
37265           - Implemented Created property
37266
37267 2004-08-21 13:28  pbartok
37268
37269         * Control.cs:
37270           - Implemented ContainsFocus
37271
37272 2004-08-21 13:26  pbartok
37273
37274         * Control.cs:
37275           - Implemented CausesValidation
37276
37277 2004-08-21 13:21  pbartok
37278
37279         * Control.cs:
37280           - Implemented CanFocus
37281           - Implemented CanSelect
37282           - Implemented Capture
37283
37284 2004-08-21 12:35  pbartok
37285
37286         * XplatUIWin32.cs:
37287           - Fixed bug with Async message handling
37288           - Implemented getting the ModifierKeys
37289
37290 2004-08-21 12:32  jackson
37291
37292         * AsyncMethodResult.cs: Make sure we have the mutex before we
37293           release it. Fixes BeginInvoke on windows
37294
37295 2004-08-21 11:31  pbartok
37296
37297         * XplatUIWin32.cs, XplatUIX11.cs:
37298           - Drivers now return proper mouse state
37299
37300 2004-08-21 10:54  jackson
37301
37302         * Control.cs: Implement EndInvoke
37303
37304 2004-08-21 10:48  jackson
37305
37306         * Timer.cs: Remove unneeded finalizer
37307
37308 2004-08-20 19:52  ravindra
37309
37310         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
37311           in mouse event handling in the ToolBar control.
37312
37313 2004-08-20 19:50  ravindra
37314
37315         * ImageList.cs: Changed draw method to use the arguments passed in
37316           to draw the image.
37317
37318 2004-08-20 18:58  pbartok
37319
37320         * XplatUIStructs.cs:
37321           - Added private message for async communication
37322
37323 2004-08-20 17:38  ravindra
37324
37325         * Control.cs: Made RightToLeft property virtual and removed a
37326           Console.WriteLine.
37327
37328 2004-08-20 14:39  jordi
37329
37330         * ThemeGtk.cs: use style_attach
37331
37332 2004-08-20 14:39  pbartok
37333
37334         * XplatUIWin32.cs:
37335           - Added jackson's Async code from X11 to Win32
37336
37337 2004-08-20 14:09  pbartok
37338
37339         * SWF.csproj:
37340           - Added all new files
37341
37342 2004-08-20 14:09  pbartok
37343
37344         * Control.cs:
37345           - Added call to set window background color
37346
37347 2004-08-20 14:03  pbartok
37348
37349         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
37350           - Added method for setting the window background
37351
37352 2004-08-20 14:02  pbartok
37353
37354         * XplatUIWin32.cs:
37355           - Added method for setting the background color
37356           - Added handling for erasing the window background
37357
37358 2004-08-20 13:45  jordi
37359
37360         * TrackBar.cs: fixes timer, new properties and methods
37361
37362 2004-08-20 13:34  jackson
37363
37364         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
37365           correct thread
37366
37367 2004-08-20 13:22  jackson
37368
37369         * Timer.cs: Timer Tick events are now handed through Controls Async
37370           mechanism so the callbacks are executed in the same thread as X
37371
37372 2004-08-20 13:19  jackson
37373
37374         * XplatUIDriver.cs: Expose functionality to send async messages
37375           through the driver
37376
37377 2004-08-20 13:18  jackson
37378
37379         * Control.cs: Implement Begininvoke
37380
37381 2004-08-20 13:14  jackson
37382
37383         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
37384           messages through the driver
37385
37386 2004-08-20 13:12  jackson
37387
37388         * XplatUIX11.cs: Lock before all X operations. Also added Async
37389           method functionality through XSendEvent
37390
37391 2004-08-20 13:11  jackson
37392
37393         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
37394           This will screw up on 64 bit systems)
37395
37396 2004-08-20 13:10  jackson
37397
37398         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
37399           Async messages through X/Win32
37400
37401 2004-08-19 19:39  pbartok
37402
37403         * XplatUIX11.cs:
37404           - Updated code to match new HandleData.DeviceContext type
37405
37406 2004-08-19 19:38  pbartok
37407
37408         * HandleData.cs:
37409           - Made DeviceContext a generic object to allow usage from various
37410           drivers
37411           - Added support for queueing Windows messages
37412
37413 2004-08-19 19:37  pbartok
37414
37415         * XplatUIWin32.cs:
37416           - Added generation of MouseEnter, MouseLeave and MouseHover events
37417           - Added cleanup on EndPaint
37418
37419 2004-08-19 19:17  pbartok
37420
37421         * Control.cs:
37422           - Added handling of WM_MOUSEHOVER
37423           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
37424           code
37425
37426 2004-08-19 18:55  jordi
37427
37428         * ThemeGtk.cs: fixes button order
37429
37430 2004-08-19 18:12  jordi
37431
37432         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
37433
37434 2004-08-19 17:09  pbartok
37435
37436         * Control.cs:
37437           - Added Right property
37438           - Added RightToLeft property
37439
37440 2004-08-19 16:27  jordi
37441
37442         * ThemeGtk.cs: experimental GTK theme support
37443
37444 2004-08-19 16:26  jordi
37445
37446         * ITheme.cs, Theme.cs: move themes from an interface to a class
37447
37448 2004-08-19 16:25  jordi
37449
37450         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
37451           theme enhancaments
37452
37453 2004-08-19 16:04  pbartok
37454
37455         * XplatUIX11.cs:
37456           - Added colormap basics
37457           - Added a way to re-initialize with a different display handle
37458           - Fixed setting of the window background color
37459           - Added various X11 imports related to colors and colormaps
37460
37461 2004-08-19 15:51  pbartok
37462
37463         * X11Structs.cs:
37464           - Removed packing hints (Paolo suggested this a while back)
37465           - fixed colormap type
37466           - Added default Atom types
37467           - Added Screen and color structs and enums
37468
37469 2004-08-19 15:39  pbartok
37470
37471         * ImageList.cs:
37472           - Added missing Draw() method
37473           - Added missing RecreateHandle event
37474
37475 2004-08-19 15:30  pbartok
37476
37477         * Form.cs:
37478           - Added handling of WM_CLOSE
37479
37480 2004-08-18 13:16  jordi
37481
37482         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
37483           a table
37484
37485 2004-08-18 09:56  jordi
37486
37487         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
37488
37489 2004-08-17 15:31  ravindra
37490
37491         * SWF.csproj: Updated project.
37492
37493 2004-08-17 15:25  pbartok
37494
37495         * Control.cs:
37496           - Drawing improvement; don't call UpdateBounds if we are not visible
37497             (or have been minimized)
37498
37499 2004-08-17 15:24  pbartok
37500
37501         * XplatUIWin32.cs:
37502           - Finished IsVisible
37503           - Added Win32GetWindowPlacement
37504
37505 2004-08-17 15:08  jackson
37506
37507         * Panel.cs: Initial checkin of the Panel
37508
37509 2004-08-17 14:25  pbartok
37510
37511         * Control.cs:
37512           - Fixed broken handling of default window sizes
37513
37514 2004-08-17 13:29  jackson
37515
37516         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
37517           has a large startup time.
37518
37519 2004-08-17 10:25  jackson
37520
37521         * HandleData.cs: union areas properly
37522
37523 2004-08-17 10:12  jackson
37524
37525         * HandleData.cs: union areas properly
37526
37527 2004-08-16 20:00  ravindra
37528
37529         * ToolBar.cs, ToolBarButton.cs: Added attributes.
37530
37531 2004-08-16 18:48  ravindra
37532
37533         * ToolBar.cs: Added attributes.
37534
37535 2004-08-16 17:17  ravindra
37536
37537         * SWF.csproj: Updated project.
37538
37539 2004-08-16 17:16  jackson
37540
37541         * XplatUIX11.cs: Check for more expose events before sending a
37542           WM_PAINT so they can all be grouped together. This makes dragging a
37543           window across another window redraw in a sane way.
37544
37545 2004-08-16 15:47  pbartok
37546
37547         * Control.cs:
37548           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
37549             support OnMouseEnter/Leave()
37550           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
37551             exposure handling
37552
37553 2004-08-16 15:46  pbartok
37554
37555         * XplatUIStructs.cs, XplatUIX11.cs:
37556           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
37557           OnMouseEnter/Leave()
37558
37559 2004-08-16 15:34  jackson
37560
37561         * XplatUIX11.cs: Group multiple expose events in HandleData, make
37562           sure messages get the message field set to WM_NULL if they are not
37563           handled.
37564
37565 2004-08-16 15:24  jackson
37566
37567         * HandleData.cs: HandleData is used for storing message information
37568           for window handles
37569
37570 2004-08-15 17:23  ravindra
37571
37572         * ColorDepth.cs: Added attribute.
37573
37574 2004-08-15 17:23  ravindra
37575
37576         * SWF.csproj: Updated project for ToolBar Control.
37577
37578 2004-08-15 17:20  ravindra
37579
37580         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
37581           control and also dos2unix format.
37582
37583 2004-08-15 17:13  ravindra
37584
37585         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
37586           ToolBarButtonClickEventArgs.cs,
37587           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
37588           ToolBarTextAlign.cs: First Implementation of ToolBar control.
37589
37590 2004-08-15 15:31  pbartok
37591
37592         * ButtonBase.cs:
37593           - First (mostly) working version
37594
37595 2004-08-13 16:15  pbartok
37596
37597         * Control.cs:
37598           - Fixed Anchor default
37599
37600 2004-08-13 15:43  pbartok
37601
37602         * Control.cs:
37603           - Changed GetCursorPos signature
37604
37605 2004-08-13 15:42  pbartok
37606
37607         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37608           - Changed signature for GetCursorPos
37609
37610 2004-08-13 15:25  pbartok
37611
37612         * XplatUIX11.cs:
37613           - Cleanup
37614           - Fixed resizing/exposure handling
37615
37616 2004-08-13 15:22  jordi
37617
37618         * ThemeWin32Classic.cs: removes redundant code and fixes issues
37619           with tickposition
37620
37621 2004-08-13 14:55  jordi
37622
37623         * TrackBar.cs: change from wndproc to events
37624
37625 2004-08-13 13:00  jordi
37626
37627         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37628           XplatUIX11.cs: implements PointToClient (ScreenToClient)
37629
37630 2004-08-13 12:53  pbartok
37631
37632         * XplatUIWin32.cs:
37633           - Changed GetWindowPos to also provide client area size
37634           - Fixed broken prototypes for several win32 functions
37635
37636 2004-08-13 12:53  pbartok
37637
37638         * XplatUI.cs, XplatUIDriver.cs:
37639           - Changed GetWindowPos to also provide client area size
37640
37641 2004-08-13 12:52  pbartok
37642
37643         * XplatUIX11.cs:
37644           - Added generation of WM_POSCHANGED
37645           - Changed GetWindowPos to also provide client area size
37646
37647 2004-08-13 12:52  pbartok
37648
37649         * Control.cs:
37650           - Added Dispose() and destructor
37651           - Fixed resizing and bounds calculation
37652           - Fixed Layout
37653           - Added memory savings for invisible windows
37654
37655 2004-08-13 12:46  jordi
37656
37657         * TrackBar.cs: adds timer and grap window
37658
37659 2004-08-13 10:25  jackson
37660
37661         * Timer.cs: SWF Timer
37662
37663 2004-08-12 16:59  pbartok
37664
37665         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37666           - Implemented method to get current mouse position
37667
37668 2004-08-12 14:29  jordi
37669
37670         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
37671           enhancement, fix mouse problems, highli thumb, etc
37672
37673 2004-08-12 13:31  pbartok
37674
37675         * Control.cs:
37676           - Fixed Anchoring bugs
37677
37678 2004-08-12 13:01  jackson
37679
37680         * StatusBar.cs: Don't forget things
37681
37682 2004-08-12 12:54  jackson
37683
37684         * ThemeWin32Classic.cs: Handle owner draw status bars
37685
37686 2004-08-12 12:54  jackson
37687
37688         * StatusBar.cs: Implement missing properties, events, and methods.
37689           Handle mouse clicking
37690
37691 2004-08-12 10:19  jackson
37692
37693         * StatusBarPanelClickEventArgs.cs,
37694           StatusBarPanelClickEventHandler.cs: Classes for handling status
37695           bar panel click events
37696
37697 2004-08-12 10:10  jackson
37698
37699         * Control.cs: Add missing properties
37700
37701 2004-08-12 09:46  pbartok
37702
37703         * BindingsManagerBase.cs:
37704           - Name changed to BindingManagerBase.cs
37705
37706 2004-08-12 09:25  jordi
37707
37708         * ScrollableControl.cs: calls ctrlbase instead of exeception
37709
37710 2004-08-11 16:28  pbartok
37711
37712         * InputLanguageChangingEventArgs.cs:
37713           - Never check in before compiling. Fixes the last check-in
37714
37715 2004-08-11 16:26  pbartok
37716
37717         * InputLanguageChangingEventArgs.cs:
37718           - More signature fixes
37719
37720 2004-08-11 16:20  pbartok
37721
37722         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
37723           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
37724           ImageListStreamer.cs, InputLanguage.cs,
37725           InputLanguageChangedEventArgs.cs,
37726           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
37727           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
37728           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
37729           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37730           - Signature fixes
37731
37732 2004-08-11 16:16  pbartok
37733
37734         * Application.cs:
37735           - Fixed Signature
37736           - Added .Net 1.1 method
37737
37738 2004-08-11 15:25  pbartok
37739
37740         * SWF.csproj:
37741           - Fixed BindingManagerBase.cs filename
37742
37743 2004-08-11 15:22  pbartok
37744
37745         * BindingManagerBase.cs:
37746           - Was checked in with wrong filename
37747
37748 2004-08-11 14:50  pbartok
37749
37750         * SWF.csproj:
37751           - Updated
37752
37753 2004-08-11 13:41  jordi
37754
37755         * XplatUIWin32.cs: Fixes ClientRect
37756
37757 2004-08-11 13:19  pbartok
37758
37759         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37760           XplatUIX11.cs:
37761           - We had SetWindowPos and MoveWindow to set window positions and
37762             size, removed MoveWindow. We have GetWindowPos, so it made sense to
37763             keep SetWindowPos as matching counterpart
37764           - Added some X11 sanity checking
37765
37766 2004-08-11 12:59  pbartok
37767
37768         * Control.cs:
37769           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
37770             (It seems that SetBounds is just a front for SetBoundsCore and
37771              SetBoundsCore updates the underlying window system and
37772              UpdateBounds is responsible for updating the variables associated
37773              with the Control and sending the events)
37774           - Major cleanup of Size handling; we now have two sizes, client_size
37775             and bounds. Bounds defines the window with decorations, client_size
37776             without them.
37777
37778 2004-08-11 12:55  pbartok
37779
37780         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37781           - Added method to calculate difference between decorated window and
37782             raw client area
37783
37784 2004-08-11 12:54  pbartok
37785
37786         * Label.cs:
37787           - Forcing redraw on resize
37788
37789 2004-08-11 11:43  pbartok
37790
37791         * ImageList.cs:
37792           - Removed disposing of the actual images when the list is disposed
37793
37794 2004-08-11 09:13  pbartok
37795
37796         * Control.cs:
37797           - Now properly reparents windows
37798
37799 2004-08-11 08:37  pbartok
37800
37801         * Control.cs:
37802           - Duh!
37803
37804 2004-08-11 07:47  pbartok
37805
37806         * Control.cs:
37807           - Rewrote the collection stuff. Might not be as fast now, not
37808             keeping the number of children around and accessible directly, but
37809             it's more straightforward
37810
37811 2004-08-11 07:44  pbartok
37812
37813         * AccessibleObject.cs:
37814           - Fixed to match ControlCollection rewrite
37815
37816 2004-08-11 07:43  pbartok
37817
37818         * ImageList.cs:
37819           - Added missing creation of the collection list
37820
37821 2004-08-10 20:08  jackson
37822
37823         * StatusBar.cs: Get the paint message from WndProc
37824
37825 2004-08-10 19:31  jackson
37826
37827         * ThemeWin32Classic.cs: Create Brushes as little as possible
37828
37829 2004-08-10 19:20  jackson
37830
37831         * UICues.cs: Add Flags attribute
37832
37833 2004-08-10 19:19  jackson
37834
37835         * StatusBarPanel.cs: Signature cleanup
37836
37837 2004-08-10 19:10  jackson
37838
37839         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
37840           Initial implementation of status bar item drawing
37841
37842 2004-08-10 17:27  jordi
37843
37844         * TrackBar.cs: add missing methods, properties, and restructure to
37845           hide extra ones
37846
37847 2004-08-10 16:24  jackson
37848
37849         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
37850           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
37851           attribute
37852
37853 2004-08-10 13:21  jordi
37854
37855         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
37856           enhancements and standarize on win colors defaults
37857
37858 2004-08-10 12:52  jackson
37859
37860         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
37861           ThemeWin32Classic.cs: Implement DrawItem functionality
37862
37863 2004-08-10 12:47  jordi
37864
37865         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
37866
37867 2004-08-10 12:32  jordi
37868
37869         * Control.cs: throw ontextchange event
37870
37871 2004-08-10 11:43  pbartok
37872
37873         * Control.cs:
37874           - Added more to the still unfinished Dock/Anchor layout code
37875
37876 2004-08-10 11:39  pbartok
37877
37878         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
37879           - Added GetWindowPos method
37880
37881 2004-08-10 11:36  pbartok
37882
37883         * XplatUIWin32.cs:
37884           - Implemented several methods
37885
37886 2004-08-10 09:47  jackson
37887
37888         * TrackBar.cs: Allow control to handle buffering
37889
37890 2004-08-10 09:41  jackson
37891
37892         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
37893
37894 2004-08-10 09:24  jackson
37895
37896         * Label.cs, LinkLabel.cs: Let Control handle buffering.
37897
37898 2004-08-10 09:09  jackson
37899
37900         * StatusBar.cs: Let Control handle all the buffering.
37901
37902 2004-08-10 09:08  jackson
37903
37904         * Control.cs: Control will now handle the buffering code, so each
37905           control does not have to implement this.
37906
37907 2004-08-10 08:34  jackson
37908
37909         * XplatUIDriver.cs: Use default colors from the theme
37910
37911 2004-08-09 17:12  pbartok
37912
37913         * ImageList.cs:
37914           - Fixed several bugs Ravindra pointed out
37915
37916 2004-08-09 16:11  pbartok
37917
37918         * Control.cs:
37919           - Added incomplete dock layout code
37920           - Added support for mouse wheel
37921
37922 2004-08-09 16:09  pbartok
37923
37924         * XplatUIX11.cs:
37925           - Added handling for middle and right mousebutton
37926           - Added handling for mouse wheel
37927           - Added handling for key state and mouse state and position
37928           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
37929           messages
37930
37931 2004-08-09 15:40  jackson
37932
37933         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
37934           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
37935           checkin
37936
37937 2004-08-09 15:37  jackson
37938
37939         * StatusBar.cs: Initial implementation of StatusBar
37940
37941 2004-08-09 15:36  jackson
37942
37943         * ITheme.cs: Add support for drawing status bar and getting status
37944           bar item sizes
37945
37946 2004-08-09 15:35  pbartok
37947
37948         * MouseButtons.cs:
37949           - Fixed values
37950
37951 2004-08-09 15:34  jackson
37952
37953         * ThemeWin32Classic.cs: Add support for drawing status bar and get
37954           status bar item sizes
37955
37956 2004-08-09 15:21  jackson
37957
37958         * ThemeWin32Classic.cs: Use known colors for default control
37959           colours
37960
37961 2004-08-09 15:12  jackson
37962
37963         * ThemeWin32Classic.cs: Make the default font static, it is static
37964           in control so this doesn't change functionality and creating fonts
37965           is sloooooow.
37966
37967 2004-08-09 14:56  pbartok
37968
37969         * X11Structs.cs:
37970           - Added GrabMode enum
37971
37972 2004-08-09 14:55  pbartok
37973
37974         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37975           - Removed Run method, was only required for initial development
37976
37977 2004-08-09 14:51  pbartok
37978
37979         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37980           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
37981           capture
37982
37983 2004-08-09 13:48  pbartok
37984
37985         * XplatUIX11.cs:
37986           - Fixed default sizing for child windows
37987
37988 2004-08-09 12:56  pbartok
37989
37990         * XplatUIX11.cs:
37991           - Added generation of WM_DESTROY message
37992           - Added handling of window manager induced shutdown
37993
37994 2004-08-09 11:31  jackson
37995
37996         * ThemeWin32Classic.cs: New names for control properties
37997
37998 2004-08-09 11:25  jackson
37999
38000         * Control.cs: Use new color names
38001
38002 2004-08-09 11:02  jackson
38003
38004         * XplatUI.cs: Get default window properties from the theme
38005
38006 2004-08-09 11:01  jackson
38007
38008         * ITheme.cs: The theme engine now controls default window
38009           properties
38010
38011 2004-08-09 11:00  jackson
38012
38013         * ThemeWin32Classic.cs: Add default window color properties
38014
38015 2004-08-09 10:17  jackson
38016
38017         * ThemeWin32Classic.cs: Use correct default back color
38018
38019 2004-08-09 10:05  jackson
38020
38021         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
38022           the theme now.
38023
38024 2004-08-09 09:56  jackson
38025
38026         * XplatUI.cs: Remove defaults, these are handled by the theme now.
38027
38028 2004-08-09 09:54  jackson
38029
38030         * Control.cs: Get default properties from the theme.
38031
38032 2004-08-09 09:53  jackson
38033
38034         * ITheme.cs: Themes now handle default control properties
38035
38036 2004-08-09 09:53  jackson
38037
38038         * ThemeWin32Classic.cs: Themes now handle default control
38039           properties so coloring will be consistent
38040
38041 2004-08-08 16:54  jordi
38042
38043         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
38044
38045 2004-08-08 15:08  jordi
38046
38047         * XplatUIX11.cs: fixes keyboard crash
38048
38049 2004-08-08 13:47  jordi
38050
38051         * Label.cs: add cvs header info
38052
38053 2004-08-08 12:09  jackson
38054
38055         * ThemeWin32Classic.cs: Add pen_buttonface
38056
38057 2004-08-08 11:52  jordi
38058
38059         * Label.cs, LinkLabel.cs: [no log message]
38060
38061 2004-08-08 11:34  jordi
38062
38063         * ThemeWin32Classic.cs: Use Windows Standard Colours
38064
38065 2004-08-07 17:32  jordi
38066
38067         * TrackBar.cs: throw exceptions of invalid enums values
38068
38069 2004-08-07 17:31  jordi
38070
38071         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
38072           draw method name
38073
38074 2004-08-07 16:56  jackson
38075
38076         * HorizontalAlignment.cs: Initial checkin
38077
38078 2004-08-07 13:16  jordi
38079
38080         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
38081           methods
38082
38083 2004-08-07 13:05  jordi
38084
38085         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
38086           GetSysColor defines
38087
38088 2004-08-06 18:01  pbartok
38089
38090         * ThemeWin32Classic.cs:
38091           - Fixed some rounding issues with float/int
38092
38093 2004-08-06 18:00  jackson
38094
38095         * DockStyle.cs, AnchorStyles.cs:
38096
38097                   Add flags and serializable attributes.
38098
38099 2004-08-06 17:46  pbartok
38100
38101         * XplatUIX11.cs:
38102           - Implemented GetParent
38103
38104 2004-08-06 17:18  pbartok
38105
38106         * TrackBar.cs:
38107           - Fixed some rounding issues with float/int
38108
38109 2004-08-06 17:17  pbartok
38110
38111         * X11Structs.cs, XplatUIX11.cs:
38112           - Fixed Refresh and Invalidate
38113
38114 2004-08-06 15:30  pbartok
38115
38116         * Control.cs, X11Structs.cs, XplatUIX11.cs:
38117           - Fixed recursive loop when resizing
38118           - Improved/fixed redrawing on expose messages
38119
38120 2004-08-06 09:53  jordi
38121
38122         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
38123           keyboard navigation
38124
38125 2004-08-06 08:02  pbartok
38126
38127         * X11Structs.cs, XplatUIX11.cs:
38128           - Fixed reparenting
38129           - Fixed window border creation
38130
38131 2004-08-05 15:38  pbartok
38132
38133         * XplatUIX11.cs:
38134           - Attempted fix for reparenting problems
38135
38136 2004-08-04 15:14  pbartok
38137
38138         * Control.cs:
38139           - Fixed Invalidation bug (calculated wrong client area)
38140           - Added ClientSize setter
38141
38142 2004-08-04 15:13  pbartok
38143
38144         * Form.cs:
38145           - Added AutoScale properties
38146
38147 2004-08-04 15:13  pbartok
38148
38149         * SWF.csproj:
38150           - Added latest files
38151
38152 2004-08-04 14:11  pbartok
38153
38154         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38155           XplatUIX11.cs:
38156           - Added Invalidate handling
38157
38158 2004-08-03 17:09  jordi
38159
38160         * XplatUIDriver.cs: fixes spelling mistake
38161
38162 2004-07-27 09:53  jordi
38163
38164         * TrackBar.cs: fixes trackbar events, def classname, methods
38165           signature
38166
38167 2004-07-27 09:29  jordi
38168
38169         * ScrollBar.cs: fixes scrollbar events
38170
38171 2004-07-27 04:38  jordi
38172
38173         * Control.cs: changes to be able to run winforms samples
38174
38175 2004-07-26 11:42  jordi
38176
38177         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
38178           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
38179
38180 2004-07-26 05:41  jordi
38181
38182         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
38183           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
38184           implementation
38185
38186 2004-07-22 09:22  jordi
38187
38188         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
38189           check link overlapping, implement events, and fixes
38190
38191 2004-07-21 10:28  jordi
38192
38193         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
38194
38195 2004-07-21 10:19  jordi
38196
38197         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
38198           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
38199           LinkLabelLinkClickedEventArgs.cs,
38200           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
38201           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
38202           implementation
38203
38204 2004-07-19 13:09  jordi
38205
38206         * Control.cs, Label.cs: label control re-written: added missing
38207           functionlity, events, and properties
38208
38209 2004-07-19 10:49  jordi
38210
38211         * Control.cs: fixes SetBounds logic
38212
38213 2004-07-19 01:29  jordi
38214
38215         * Control.cs: Call RefreshWindow only if the window has created
38216
38217 2004-07-15 14:05  pbartok
38218
38219         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
38220           - Implemented ImageList and ImageList.ImageCollection classes
38221           - Added ColorDepth enumeration
38222           - Updated SWF VS.Net project
38223
38224 2004-07-15 11:06  jordi
38225
38226         * XplatUIStructs.cs: added MsgButons enum
38227
38228 2004-07-15 11:03  jordi
38229
38230         * Control.cs: added basic mouse handeling events
38231
38232 2004-07-15 03:38  jordi
38233
38234         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
38235           Vertical TrackBar control implementation
38236
38237 2004-07-13 09:33  jordi
38238
38239         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
38240
38241 2004-07-13 09:31  jordi
38242
38243         * Control.cs, Form.cs: commit: new properties and fixes form size
38244           problems
38245
38246 2004-07-09 14:13  miguel
38247
38248         * ProgressBar.cs: Spelling
38249
38250 2004-07-09 11:25  pbartok
38251
38252         * ProgressBar.cs:
38253           - Removed usage of Rectangle for drawing. Miguel pointed out it's
38254           faster
38255
38256 2004-07-09 11:17  miguel
38257
38258         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
38259
38260                 * ProgressBar.cs: Fixed spelling for `block'
38261
38262                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
38263                 style guidelines.
38264
38265                 Avoid using the += on rect.X, that exposed a bug in the compiler.
38266
38267 2004-07-08 23:21  pbartok
38268
38269         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
38270           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
38271           BaseCollection.cs, Binding.cs, BindingContext.cs,
38272           BindingMemberInfo.cs, BindingsCollection.cs,
38273           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
38274           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
38275           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
38276           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
38277           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
38278           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
38279           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
38280           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
38281           FrameStyle.cs, GiveFeedbackEventArgs.cs,
38282           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
38283           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
38284           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
38285           InputLanguageChangedEventArgs.cs,
38286           InputLanguageChangedEventHandler.cs,
38287           InputLanguageChangingEventArgs.cs,
38288           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
38289           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
38290           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
38291           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
38292           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
38293           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
38294           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
38295           QueryAccessibilityHelpEventArgs.cs,
38296           QueryAccessibilityHelpEventHandler.cs,
38297           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
38298           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
38299           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
38300           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
38301           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
38302           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
38303           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
38304           XplatUIX11.cs, lang.cs:
38305           - Initial check-in
38306
38307