0deff949da518768f91884f8e3c052a14477c7c4
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2
3         * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior 
4         to not depend on the item being clicked.
5
6 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
7
8         * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no 
9         longer throws a NotImplementedException.
10
11 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
12
13         * DataGridView.cs: Set EditingControlFormattedValue when preparing an 
14         IDataGridViewEditingControl for editing.
15
16 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
17
18         * DataGridViewComboBoxCell.cs: Implement data binding support.
19
20 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
21
22         * DataGridView.cs: Use the CurrencyManager to update the data source 
23         binding position instead of casting the data sourcde to BindingSource.
24         This enables position updating for other type of data sources.
25
26 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
27
28         * ComboBox.cs: Update the SelectedIndex before updating the Text 
29         in OnDisplayMemberChanged.
30
31 2008-12-07  Ivan N. Zlatev  <contact@i-nz.net>
32
33         * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
34         [Fixes bug #457112]
35
36 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
37
38         * DataGridView.cs: Sorting fixes:
39            - Be strict when sorting is enabled.
40            - If there is a data source delegate the sorting request.
41
42 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
43
44         * Binding.cs: When converting the data also try with the destination 
45         type typeconverter. This indirectly adds support for Nullable types 
46         in our databinding layer.
47
48 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
49
50         * DataGridView.cs: When cell editing is finished focus back the 
51         DataGridView. Fixes keyboard navigation post-editing.
52
53 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
54
55         * DataGridView.cs: Fix the cell editing by delaying the currentCell 
56         setting to after EndEdit is called for the old cell.
57
58 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
59
60         * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
61
62 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
63
64         * XplatUIX11.cs: Send WM_HELP only to the focused window.
65
66 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
67
68         * CurrencyManager.cs: Fix exceptions when resetting the data source 
69         for the same time (e.g. in ComboBox): 
70            - Do not set the list position if we are still transferring data
71            - When resetting the list firstly push the data then update the 
72            binding.
73         * Binding.cs: Check BindingManager.Position == -1 instead of 
74         BindingManager.Current == null in order to avoid unexpected 
75         exceptions.
76
77 2008-12-05  Brad Taylor  <brad@getcoded.net>
78
79         * MonthCalendar.cs: Add UIA specific events so that we can know when
80         the selection changes, and when MaxSelectedCount changes.
81
82 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
83
84         * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not 
85         used for anything.
86
87 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
88
89         * DataGridView.cs: Fix scrolling and selection of cells/rows prior
90         to the control being drawn for the first time by:
91            - Implement DisplayedRowsCount to not rely on the control being
92            already painted. Also added support for the partial row flag.
93            - Fix scrolling to take into account partial rows and scroll to
94            them.
95         [Fixes bug #456527]
96
97 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
98
99         * DataGridView.cs: Do not reset the CurrentCell when the handle is
100         created if the user has already set it.
101
102 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
103
104         * DataGridView.cs: Fix CurrentCell to actually select the cell.
105
106 2008-12-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
107
108         * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
109         text and then let the underneath users of IDataObject interpret and
110         parse by themselves. 
111         Fixes #439251.
112
113 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
114
115         * DataGridView.cs: Fix my previous commit to actually update what it 
116         was supposed to.
117
118 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
119
120         * DataGridView.cs: Ensure that when a row is removed the all the 
121         current row/column/cell get updated. Fixes multiple exceptions.
122
123 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
124
125         * DataGridView.cs: Fix scrolling to the current cell when key navigation 
126         is used.
127         [Fixes bug #443560]
128
129 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
130
131         * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
132         * DataGridViewCell.cs: Set the cell as selected prior to setting the 
133         new state.
134         [Fixes issue 1 in bug #443560]
135
136 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
137
138         * DataGridView.cs: Invalidate after the current row/column seletion 
139         chagnes.
140         [Fixes bug #438434]
141
142 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
143
144         * DataGridView.cs: Refresh the data if the data list is reset, etc.
145
146 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
147
148         * DataGridView.cs: Handle datasource state changes:
149            - IBindingList - list changes
150            - BindingSource - list changed and datasource changes
151
152 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
153
154         * DataGridView.cs: Select the first cell when databound. 
155         Visually select when CurrentCell is set.
156
157 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
158
159         * DataGridView.cs: Set the current cell before raising CellClick.
160
161 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
162
163         * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter, 
164         CellLeave events as this is already done in SetCurrentCellAddressCore.
165
166 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
167
168         * DataGridView.cs: Set the minimum size for the columns to be the 
169         width of their header, so that the columns don't get squashed 
170         all together.
171
172 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
173
174         * DataGridView.cs: After the data is bound PerformLayout, so that 
175         the columns get autosized.
176
177 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
178
179         * DataGridView.cs: Move all currentCell setting code into 
180         one central place - SetCurrentCellAddressCore. That way the 
181         current cell is properly updated when programatically set.
182         Fire RowEnter/Leave events.
183
184 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
185
186         * DataGridView.cs: Update the CurrencyManager.Position, so that 
187         when a BindingSource is used BindingSource.Current will be correct.
188
189 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
190
191         * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
192            - No caption text is drawn because Color.Empty is used.
193            - Fix top and height off by 1.
194
195 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
196
197         * DataGridViewRow.cs: Implement DataBoundItem.
198
199 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
200
201         * BindingSource.cs: Return null for Current if there is no data present.
202
203 2008-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
204
205         * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
206         menus using the arrow keys. Also when handling the left arrow key, don't 
207         assign the current menu to the parent one, if the parent is null.
208         Fixes #446392.
209
210 2008-11-24  Everaldo Canuto  <ecanuto@novell.com>
211
212         * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
213         #413501.
214
215 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
216
217         * Scrollbar.cs:
218         * ScrollableControl.cs: Simplify the code to manually set the size of
219         the thum area, avoiding duplication of code, and also preserving the
220         right value for different code paths - this can happen when size
221         changes are made to the scrollbar after setting LargeChange, Maximum
222         or related properties for the ScrollBar.
223
224 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
225
226         * ScrollableControl.cs: When scrolling, don't invalidate the entire
227         area, and call to XplatUIX11.ScrollWindow instead. This is exactly
228         what .Net does: copy the visible area, and only invalidate the part of
229         the area that wasn't visible before scrolling.
230         Fixes #441738.
231
232 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
233
234         * DataGridView.cs: Listen for a DataTable's TableCleared event so we
235         can clear ourselves when it is raised, we don't have a newrowindex
236         if we don't have any columns.
237         * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
238         re-index after each delete so the NewRow will have the correct index.
239         [Fixes bug #448005]
240
241 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
242
243         * Form.cs: Don't change min/max size if it is empty.
244         [Fixes bug #447873]
245
246 2008-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
247
248         * ScrollBar.cs:
249         * ScrollableControl.cs: When the manual thumb size is used, the
250         maximum allowed value should depend on that thumb size, instead of
251         LargeChange (using the maximum - LargeChange + 1 value). But
252         LargeChange should be used normally when incrementing/decrementing.
253         Fixes the remaining part of #441546.
254
255 2008-11-23  Andreia Gaita  <avidigal@novell.com>
256
257         * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream 
258         until an about:blank has been loaded (according to spec). Fix 
259         ScrollbarsEnabled to set when a document is loaded (since we use js 
260         for it). Fix url so it reflects the current loading document and not 
261         the previous one. Send StatusChanged events.
262
263 2008-11-23  Andreia Gaita  <avidigal@novell.com>
264
265         * Application.cs: If a message comes in for an embedded control
266         (like webbrowser) when we're capturing the keyboard, release the
267         capture and continue.
268         [fixes #429462]
269
270 2008-11-22  Andreia Gaita  <avidigal@novell.com>
271
272         * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
273
274 2008-11-21  Andreia Gaita  <avidigal@novell.com>
275
276         * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
277         
278 2008-11-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
279
280         * ScrollBar.cs:
281         * ScrollableControl.cs: Set manually the thumb size for the
282         ScrollableControl scrollbars, so any further changes to the underneath
283         scrollbars respect the original size.
284         Fixes part of #441546.
285
286 2008-11-21  Geoff Norton  <gnorton@novell.com>
287
288         * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
289         PlatformID.MacOSX now exists.
290
291 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
292
293         * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
294         Having something internal abstract isn't very nice for people who want
295         to inherit from this class.
296
297 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
298
299         * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
300         invalid value.  Just return null for the Image, and use the ImageList's
301         ImageSize for calculations.
302
303 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
304
305         * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
306         through DroppedDown so the proper events get called and state gets reset.
307         [Fixes bug #446805]
308
309 2008-11-18  Jonathan Pobst  <monkey@jpobst.com>
310
311         * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
312         the collection is modified.
313
314 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
315
316         * DomainUpDown.cs: Remove string cache and reflection optimizations.  They
317         aren't always correct, and fixing them for every case is not worth the
318         negligible benefit they provide.
319         [Fixes bug #445713]
320
321 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
322
323         * DataGridView.cs: We should never add actual cells to the RowTemplate.
324         Internally, use RowTemplateFull to give us a new row with cells.
325         * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
326         * DataGridViewRowCollection.cs: Use RowTemplateFull.
327
328 2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
329
330         * XplatUIX11.cs: Forms without borders should be able to change its
331         size - specially they should be able to be maximized, adding the
332         respective MotifFunctions.Resize bit when setting window properties as
333         well as *not* marking the Hwnd as size fixed.
334         Fixes #444347.
335
336 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
337
338         * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
339         an alpha value.
340         [Fixes bug #444348]
341
342 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
343
344         * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
345         * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
346         AutoSizeColumnModeChanged.
347         [Fixes bug #443609]
348
349 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
350
351         * DataGridViewRowCollection.cs: Guard against the user deleting the
352         NewRow.  Add an internal delete so we can still delete it.
353         * DataGridView.cs: Use the new internal delete when deleting the NewRow.
354         [Fixes bug #442181]
355
356 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
357
358         * TextControl.cs: Add some order of operation to our math so
359         we don't end up with a negative height for our invalidate rect.
360         [Fixes bug #381889]
361
362 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
363
364         * Control.cs: When our enabled changes, notify our implicit children
365         controls as well as our regular controls.
366         [Fixes bug #441523]
367
368 2008-11-08  Andreia Gaita <shana@jitted.com> 
369
370         * HtmlElement.cs: Small code cleanup
371
372 2008-11-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
373
374         * BindingNavigator.cs: MoveFirstItem should be enabled only if
375         position is larger than 0, not only different than 0. Also Position
376         and Count items should be enabled if the BindingSource is non null and
377         non empty.
378         Fixes #439961.
379
380 2008-11-05  Jonathan Pobst  <monkey@jpobst.com>
381
382         * TabControl.cs: Don't raise SelectedIndexChanged until we have
383         actually modified the tab collection, so TabCount will be correct.
384         [Fixes bug #441896]
385
386 2008-11-05  Sandy Armstrong  <sanfordarmstrong@gmail.com>
387
388         * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
389         NonSerialized to fix serialization of ListViewItem.
390
391 2008-11-04  Mike Gorse  <mgorse@novell.com>
392
393         * ListView.cs: Call OnUIAFocusedItemChanged after completing the
394           focus change, and always call in SetFocusedItem.
395         * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
396
397 2008-11-04  Jonathan Pobst  <monkey@jpobst.com>
398
399         * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
400         mode.  Based on a patch by John Mortlock.
401         [Fixes bug #436790]
402
403 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
404
405         * ListView.cs: Use the UsingGroups property where needed, instead of
406         duplicating the check in other places.
407
408 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
409
410         * ListView.cs: When calculating layout, refresh the count of items
411         belonging to the default item, insteas of doing it only one time. This
412         was already working fine for icon views, not not for details.
413         Fixes #438948.
414
415 2008-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
416
417         * ListView.cs:
418         * ListViewItem.cs:
419         * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
420         to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
421         does.
422         Fixes #437933.
423
424 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
425
426         * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
427
428 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
429
430         * ListView.cs: Add internal UIAFocusedItemChanged event.  Fixes bug
431         #441280, patch by Mike Gorse <mgorse@novell.com>.
432
433 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
434
435         * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
436         if there is no scrollbar.
437         [Fixes bug #440885]
438
439 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
440
441         * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
442         patch from Andy Hume that fixes many issues with ProgressBar.
443         [See bug #440220]
444
445 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
446
447         * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
448         [Fixes bug #438866]
449
450 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
451
452         * UpDownBase.cs:
453         * DomainUpDown.cs:
454         * NumericUpDown.cs: Internal events added to UpDownBase:
455         UIAUpButtonClick and UIADownButtonClick.  Patch by Neville Gao
456         <ngao@novell.com>.
457
458 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
459
460         * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
461
462 2008-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
463
464         * ListView.cs:
465         * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
466         Application.EnableVisualStyles hasn't been called.
467         Fixes part of #437933.
468
469 2008-10-31  Andreia Gaita  <shana@jitted.com>
470
471         * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
472           if the container is not focused already, we need to specifically set
473           focus to the first available control, or to the form itself if there
474           are no controls.
475
476 2008-10-31  Andreia Gaita  <shana@jitted.com>
477
478         activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
479         WM_ACTIVATE have been processed before returning, so it is guaranteed that
480         once it returns and the form is visible, it is actually on the screen on X11
481
482         * ContainerControl.cs: Only send focus to the control if the top container
483           is already focused. This is so that, when a form is first shown, all
484           the enter/leave events are done first before any focus stuff comes in.
485           If a control has no top container, there's an extra check on Control.Focus
486           to make sure it gets focused in this particular case.
487
488         * Control.cs: Force focus if the control is active but did not receive
489           focus after being set as active.
490
491         * MdiClient.cs: Dispose the form when closing
492
493         * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
494           doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
495           if the window is a top Form.
496           Reset all hwnd properties when the window has been destroyed so that
497           we don't land in any codepaths that might try to do something with it.
498           Added a bunch of debugging messages. If TRACE is defined, all X calls
499           are logged through DebugHelper. Set a few missing EntryPoint attributes.
500
501 2008-10-29  Mario Carrion <mcarrion@novell.com>
502
503         * ListViewItem.cs: Control enabled to support Accessibility:
504         - Internal events: UIATextChanged, UIASubItemTextChanged.
505         - Internal event UIATextChanged in ListViewSubItem that triggers
506         UIASubItemTextChanged.
507         * ListView.cs: Control enabled to support Accessibility:
508         - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged, 
509         UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
510         - Internal event UIACollectionChanged in ColumnHeaderCollection.
511         - Internal event UIACollectionChanged in ListViewItemCollection.
512         - Internal properties: UIAHeaderControl, UIAColumns, UIARows, 
513         UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
514         - Internal methods: UIAGetHeaderBounds.
515
516 2008-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
517
518         * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
519         the event from the respective scrollbars.
520         Fixes #436709.
521
522 2008-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
523
524         * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
525         textbox to know whether any navigation key will be handled or not. If
526         not, don't pass the message to the textbox, and use it here instead. 
527         * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
528         is more precise- than the previous AutoCompleteMatches one.
529         This should the keyboard navigation in ComboBox when using auto
530         complete modes.
531
532 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
533
534         * ComboBox.cs: Fix item height calculation based off Font to match .Net.
535         [Fixes bug #436730]
536
537 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
538
539         * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
540         overridden methods will get called.
541         * ToolStripItem.cs: Raise Click before MouseUp.
542         * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
543         the item's location into account.
544         [Fixes bug #437683]
545
546 2008-10-24  Neville Gao <nevillegao@gmail.com>
547
548         * NumericUpDown.cs: Control enabled to support accessibility.
549         [Fiexes bug #438135]
550
551 2008-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
552
553         * TextBox.cs: Check that we actually have items no navigate, select
554         text when pressing enter, as well as handle direction keys only if
555         mode is different to Suggest or the suggest listbox is visible.
556
557 2008-10-23  Andreia Gaita  <shana@jitted.com>
558
559         * WebBrowser.cs: Use the new ContentStream property to retrieve
560           a stream encoded from the document content
561
562 2008-10-23  Andreia Gaita  <shana@jitted.com>
563
564         * HtmlDocument.cs,
565           HtmlElement.cs,
566           HtmlWindow.cs: Fix GetHashcode for null objects
567
568 2008-10-22  Andreia Gaita  <shana@jitted.com>
569
570         * HtmlDocument.cs,
571           HtmlElement.cs,
572           HtmlWindow.cs: Fix equality operators (fixes #428173)
573
574 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
575
576         * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
577         mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
578         [Fixes bug #436772]
579
580 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
581
582         * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
583         same item with the mouse as was already selected.
584         [Fixes bug #436789]
585
586 2008-10-21  Brad Taylor  <brad@getcoded.net>
587         
588         * TextControl.cs: Break out code to get the visible range into
589           GetVisibleLineIndexes to be used in UIA code.
590         
591         * Line.cs:
592         * TextControl.cs:
593         * TextBoxBase.cs: Add comments indicating that the method or property
594           is used via reflection from UIA code.
595
596 2008-10-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
597
598         * ListViewItem.cs: Match .net serialization.
599         Fixes remaining part of #417520.
600
601 2008-10-20  Jonathan Pobst  <monkey@jpobst.com>
602
603         * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
604
605 2008-10-20  Mario Carrion <mcarrion@novell.com>
606
607         * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property 
608         added: UIAToolTipRectangle.
609
610 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
611
612         * ListViewItem.cs: When deserializing enumerate over the data, instead
613         of accessing the data directly. This way we handle much better the
614         cases were we lack information.
615         Fixes #417520.
616
617 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
618
619         * ListView.cs: When removing an item from a main ListView.Items
620         collection (and not a ListViewGroupCollection.Items one), remove it
621         also from the group, as .net does. Patch by Mario Carrion (mario at
622         novell dot com).
623         Fixes #436653.
624
625 2008-10-19  Andreia Gaita  <avidigal@novell.com>
626
627         * Form.cs: Forms that get closed without a handle being created are
628         disposed in 2.0. Fixes failing FormTest.FormClose and
629         FormTest.FormClose2 on windows.
630
631 2008-10-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
632
633         * ListView.cs: If both scrollbars are visible, the vertical one
634         shouldn't extend too far down.
635         Fixes #435771.
636
637 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
638
639         * DataGridView.cs: Add the ability to resize columns and rows with
640         the mouse.  Also support double-clicking to autoresize.
641         * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
642         * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
643         * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
644         isn't shown on autoresize.
645         [Fixes bug #420193]
646
647 2008-10-17  Mario Carrion <mcarrion@novell.com>
648
649         * ComboBox.cs: Remove UIAListbox.
650
651 2008-10-17  Mario Carrion <mcarrion@novell.com>
652
653         * ComboBox.cs, ListBox.cs: Using added/removed item in 
654           OnUIACollectionChangedEvent instead of index.
655
656 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
657
658         * ComboBox.cs: When we are sorting the items, if the item's type
659         doesn't support IComparer, use a default one that compares based
660         off the item's visible text.
661         [Fixes bug #436328]
662
663 2008-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
664
665         * ColumnHeader.cs: Invalidate ListView.header_control when setting
666         ImageIndex/ImageKey.
667         * ThemeWin32Classic.cs: When drawing the column header, draw a image
668         for the column if available, and make the required adjustments to the
669         text location.
670         Fixes #435105.
671
672 2008-10-17  Neville Gao <nevillegao@gmail.com>
673
674         * StatusBarPanel.cs: Control enabled to support accessibility.
675         [Fixes bug #435988]
676
677 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
678
679         * DataGridView.cs: When a user begins an edit in the 'new row',
680         make that a real row, and add a new 'new row'.  If the user
681         cancels the edit, remove the new 'new row' and reset everything.
682         Also, ensure UserAddedRow and UserRemovedRow events are raised.
683         [Fixes bug #430954]
684
685 2008-10-16  Ivan N. Zlatev  <contact@i-nz.net>
686
687         * TableLayoutSettings.cs: Fix NREs when deserializing and 
688         panel is not yet set.
689         [Fixes bug #436199]
690
691 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
692
693         * DataGridView.cs: Invalidate after deleting a row.
694
695 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
696
697         * DataGridView.cs: Handle Enter and Escape keys.
698           - Move call to EndEdit to MoveCurrentCell.
699           - Remove call to EndEdit from navigation key routines.
700           - Fire CellLeave and CellEnter.
701
702 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
703
704         * DataGridViewCell.cs: Some fixes to the new cell border
705         painting code.
706
707 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
708
709         * ThemeEngine.cs: Enable visualstyles rendering by default
710         (on platforms that support it).
711
712 2008-10-15  Ivan N. Zlatev  <contact@i-nz.net>
713
714         * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before 
715         MainForm.OnLoad has completed unless DoEvents is forced.
716         [Fixes bug #412536]
717
718 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
719
720         * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
721
722 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
723
724         * Control.cs: Make our implementation of DrawToBitmap better 
725         match WmPaint.  [Fixes bug #435579]
726
727 2008-10-14  Andreia Gaita  <avidigal@novell.com>
728
729         * WebBrowser.cs: Use DocumentElement as the document's root for the
730         whole content. Should fix DocumentText and DocumentStream problems.
731
732 2008-10-14  Jonathan Pobst  <monkey@jpobst.com>
733
734         * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
735         these will get called in DGV.OnCollectionChanged.  Make sure 
736         OnCollectionChanged always gets called.
737         * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
738         from every row.  Call this in OnCollectionChanged.
739         [Fixes bug #433669]
740
741 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
742
743         * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
744         textbox if auto complete is used, since we need to navigate over it.
745         And in this case don't pass this messages to the base impl. Also hide
746         the auto complete list box when displaying the drop down listbox.
747         * TextBox.cs: new internal members to expose some of the auto complete
748         functionality to combobox.
749
750 2008-10-13  Ivan N. Zlatev  <contact@i-nz.net>
751
752         * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before 
753         MainForm.OnLoad has completed.
754         [Fixes bug #412536]
755
756 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
757
758         * TextBox.cs: Apply an old-approved patch that adds autocomplete's
759         Append support to this controls. We need it to apply new patches.
760
761 2008-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
762
763         * Control.cs: When updating z order in child controls, send to back
764         the implicit controls. Also, do it explicitly, instead of making
765         GetAllControls return the implicit controls in a specific order, and
766         thus avoid depending on that, which could change in the future.
767         Fixes #434304.
768
769 2008-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
770
771         * X11Dnd.cs: Try to call Application.DoEvents before returning in a
772         call to StartDrag, since we must fire DragDrop/DragLeave *before*
773         that, as .net does - instead of firing DragDrop/DragLeave *after* the
774         call to Control.DoDragDrop has completed. This is needed since at the
775         point of returning, we have sent related dnd ClientMessages, but we
776         need to wait for them to fire the wmf respective ones.
777         Fixes #325076.
778
779 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
780
781         * LinkLabel.cs: Recreate link pieces when change Padding.
782
783 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
784
785         * LinkLabel.cs: Take Padding into account when recreate link pieces.
786         [Fixes bug #412530]
787
788 2008-10-08  Everaldo Canuto  <ecanuto@novell.com>
789
790         * Control.cs: Implement internal property PaddingClientRectangle, it will be
791         useful for drawing controls that must take care about Padding property.
792
793 2008-10-08  Jonathan Pobst  <monkey@jpobst.com>
794
795         * BindingSource.cs: Make item_type internal so we can access it in DGV.
796         * DataGridView.cs: Add support for autogenerating columns from a
797         BindingSource.
798
799 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
800
801         * DataGridView.cs: Comment out an exception that is getting thrown
802         too often currently.
803
804 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
805
806         * DataGridView.cs: Always rebind to the datasource, as things may
807         have changed in it that we aren't capturing yet.
808
809 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
810
811         * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
812         drawing mode.  If we are top aligned, give ourselves some top padding.
813
814 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
815
816         * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
817         events on the control under the mouse pointer, instead of firing them
818         on the window generating the dnd operation. To achieve this re-use the
819         code used to get the window under the pointer when getting MouseMove
820         events.
821         Fixes #381876.
822
823 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
824
825         * X11Dnd.cs: Don't check that that the window sending the dnd events
826         is the owner of the selection. Although Gtk+ sets it that way, it's
827         not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
828         So, just as Gtk+ does, we set our window sending the dnd events as the
829         owner of the selection, but don't check it when receiving them. This
830         should fix interoperability with Qt/Kde.
831         Fixes #324251.
832
833 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
834
835         * DataGridView.cs: Make sure we take the vertical scrollbar into
836         account when autosizing columns.
837
838 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
839
840         * DataGridView.cs: Handle sorting datetimes.
841
842 2008-10-04  Ivan N. Zlatev  <contact@i-nz.net>
843
844         * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs, 
845         TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup 
846         compilation warnings.
847
848 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
849
850         * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs, 
851         ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs, 
852         ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs, 
853         ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup 
854         compilation warnings.
855
856 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
857
858         * DataGridView.cs, DataGridViewCell.cs, 
859         DataGridViewCellValidatingEventArgs.cs, 
860         DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs, 
861         DataGridViewRow.cs, DataGridViewRowHeaderCell.cs, 
862         DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
863
864 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
865
866         * HtmlElementEventArgs.cs, HtmlWindowCollection.cs: 
867         Cleanup compilation warnings.
868
869 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
870
871         * XplatUIWin32.cs: Cleanup compilation warnings.
872
873 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
874
875         * PropertyGrid.cs: Cleanup compilation warnings.
876
877 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
878
879         * DataGridViewRow.cs: Only clear the row background if we
880         are going to paint a new background.
881
882 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
883
884         * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
885         DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
886         use PaintBorder instead.        
887
888 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
889
890         * DataGridView.cs: When CellBorderStyle is set, update the
891         AdvancedCellBorderStyle to match.
892
893 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
894
895         * DataGridViewCell.cs: Add helper methods to convert Alignment
896         to TextFormatFlags and align rectangles.
897         * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
898         * DataGridViewImageCell.cs: Use Alignment when painting the image.
899
900 2008-10-02  Ivan N. Zlatev  <contact@i-nz.net>
901
902         * ToolTip.cs: Display tooltips only for controls on the active form.
903         [Fixes bug #428115]
904
905 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
906
907         * DataGridView.cs: Make OnCellValueNeeded internal.
908         * DataGridViewCell.cs: Raise the CellValueNeeded event so the
909         user can supply their own value if they choose.
910
911 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
912
913         * DataGridViewColumnHeaderCell.cs: Create a new style object
914         so the DefaultCellStyle doesn't get changed.
915
916 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
917
918         * ToolStripItem.cs: Check to make sure the owner is actually
919         changing in InternalOwner before doing any work.  Fixes some
920         failing tests.
921
922 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
923
924         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
925         * DataGridView.cs: Use a column header's inherited style instead
926         of just using the default.
927
928 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
929
930         * SplitContainer.cs: Raise SplitterMoved when the splitter is
931         moved through code.
932
933 2008-10-01  Mario Carrion <mcarrion@novell.com>
934
935         * ScrollBar.cs: Internal property added: UIAThumbPosition.
936
937 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
938
939         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
940
941 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
942
943         * ToolStripItem.cs: When the user sets Owner, we need to remove
944         it from its previous owner and then add it to the new owner's
945         item collection.  Also, create InternalOwner, so we can set the owner
946         that doesn't do this new stuff.
947         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
948
949 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
950
951         * ToolStripItem.cs: When our parent changes, recalculate our text
952         size, since we may be getting our Font from our parent.  When our
953         owner's Font changes, recalculate ourselves as we may be using
954         that font.
955
956 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
957
958         * MenuAPI.cs: Select the first option of a popup when opening the popup via
959         return key. [Fixes bug #413792].
960
961 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
962
963         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
964         ambient properties.  (Get their value from their parents if
965         values haven't been set.)
966
967 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
968
969         * ToolStripSystemRenderer.cs: Call overridden methods' bases
970         after our logic, so users can do painting by handling the events.
971         Currently, we draw over any user painting.
972
973 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
974
975         * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
976         after our logic, so users can do painting by handling the events.
977         Currently, we draw over any user painting.
978
979 2008-09-30  Everaldo Canuto  <ecanuto@novell.com>
980
981         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
982
983 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
984
985         * TreeNode.cs, TreeView.cs: Move logic that determines the node
986         image to draw to TreeNode.  Give Index/Keys put on the node
987         precedence over the global one for the TreeView.
988
989 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
990
991         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
992
993 2008-09-29  Mario Carrion <mcarrion@novell.com>
994
995         * ListBox.cs: Index fixed.
996
997 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
998
999         * TabControl.cs: When expanding the tab -because it's selected now-,
1000         using Right alignment, instead of adding some selected delta value to
1001         the X origin, substract it, so it gets a location adjacent to the panel, 
1002         instead of be more separated.
1003         Fixes #409170.
1004
1005 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
1006
1007         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
1008         own copies of them.
1009
1010 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1011
1012         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
1013         as well as the other static fields, to avoid using their previous
1014         values my mistake when handling the dnd events. This should avoid
1015         handling any status event after the drop has been finalized/cancelled.
1016
1017 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1018
1019         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
1020         operation, instead of waiting until we get any movement - this will
1021         help us to have the data available in case no movement was detected
1022         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
1023         Finally add a windows.forms-only fallback to fire the mentioned events
1024         if no movement at all was detected, just like .net does.
1025         Fixes #381876.
1026
1027 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
1028
1029         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
1030         return early if the text is empty because the icon doesn't get
1031         drawn then.  [Fixes bug #428113]
1032
1033 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1034
1035         * FileDialog.cs: Implement basic support for sorting by columns in
1036         Details view. Patch by Eric Petit.
1037         Fixes #428006.
1038
1039 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1040
1041         * ThemeWin32Classis.cs: When drawing gridlines take into account the
1042         case where ListView.ItemSize hasn't been computed, and provide a
1043         fallback as well. This prevents a division by 0.
1044
1045 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
1046
1047         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
1048         correctly draw tooltip backgrounds.
1049
1050 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
1051
1052         * ImageList.cs: Change CopyTo implementation to ensure clones are
1053         created of our images.
1054         [Fixes bug #409169]
1055
1056 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
1057
1058         * Control.cs: When setting fonts, we need to ensure we change our
1059         reference to the new font object, even if it represents the same
1060         font as before.  If we don't, the original font can get disposed
1061         and we will still try to use it.
1062         [Fixes bug #386450]
1063
1064 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1065
1066         * FileDialog.cs: Take into account Tile view when selecting the view
1067         (2.0 profile).
1068
1069 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1070
1071         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
1072         the item bounds, since we can't iterate over them in virtual mode.
1073         Also fix wrong calculation of the gridlines when using scrolling.
1074         Fixes #400390.
1075
1076 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1077
1078         * XplatUIX11.cs: When handling EnterNotify events, take into account
1079         both the public and implicit controls when trying to detect the
1080         grab/ungrab process. This should fix ListView selection in Details
1081         view.
1082
1083 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
1084
1085         * TreeView.cs: Redraw the whole node area when the selected node changes.
1086         Things like state images were not getting redrawn because the invalid
1087         rectangle was too small.
1088         [Fixes bug #428211]
1089
1090 2008-09-23  Mario Carrion  <mcarrion@novell.com>
1091
1092         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
1093         [Fixes bug #428993]
1094
1095 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
1096
1097         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
1098         [Fixes bug #428114]
1099
1100 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
1101
1102         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
1103         [Fixes bug #427884]
1104
1105 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
1106
1107         * StatusBar.cs: Add tooltip support.
1108         [Fixes bug #428113]
1109
1110 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1111
1112         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
1113         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
1114         hlaustralia.com.au).
1115         Fixes #425360.
1116
1117 2008-09-23  Neville Gao <nevillegao@gmail.com>
1118
1119         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
1120         [Fixes bug #419079]
1121
1122 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
1123
1124         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
1125         [Fixes bug #428107]
1126
1127 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1128
1129         * ListView.cs: Don't do anything when EnsureVisible is called inside a
1130         BeginUpdate/EndUpdate block.
1131         Fixes #425049.
1132
1133 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1134
1135         * ListViewItem.cs: The semantics for the public .ctor of
1136         ListViewSubItemCollection need us to already have a Text value for the
1137         item, which in our implementation have as available *after* adding the
1138         first sub item. So create an internal .ctor that satisfies our needs
1139         and let the public .ctor have the same semantics as .net.
1140         Fixes #427561.
1141
1142 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1143
1144         * ListControl.cs: Changes in Formatting related values should call
1145         RefreshItems, as .net does.
1146         * ComboBox.cs:
1147         * ListBox.cs: In the respective overrides of RefreshItems calculate
1148         layout as well as refreshing - again, this is what .net does.
1149         Fixes #426168.
1150
1151 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1152
1153         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
1154         since we are already doing that when we change the value of the
1155         scrollbar or force the call to ScrollWindow in the same method. This
1156         way we don't cause a Invalidate call for all the listbox bounds for
1157         methods calling UpdateTopItem with an already updated top item. This
1158         was happening specially calling EnsureVisible with already visible
1159         items.
1160
1161 2008-09-18  Mike Gorse <mgorse@novell.com>
1162
1163         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
1164           XplatUIStructs.cs: Added KeyFilter
1165         [Fixes bug #427039]
1166
1167 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1168
1169         * RelatedPropertyManager.cs: The properties returned by
1170         GetItemProperties should be that ones of the *actual* object returned
1171         by the property, not the property type - this is very special when the
1172         property exposes a type, but the returned object actually is a child
1173         class and implements more functionality and properties.
1174
1175 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1176
1177         * Binding.cs: Don't look for the property in the data source if the
1178         passed string is empty.
1179
1180 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
1181
1182         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
1183         fix unused variable warnings.
1184
1185 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
1186
1187         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
1188         [Fixes bug #427073]
1189
1190 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
1191
1192         * XplatUIX11.cs: 
1193          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
1194          leads to the window manager overriding our border style and zorder. 
1195          - Allow the activation of non-modal forms, which are children of a 
1196          modal form.
1197         [Fixes bug #423417]
1198
1199 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
1200
1201         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
1202         ask the window manager to do the work instead of changing the property 
1203         directly.
1204         [Fixes bug #423417]
1205
1206 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
1207
1208         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
1209         AddNew to fix some navigation for empty datasets. [Fixes #323053]
1210
1211 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
1212
1213         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
1214         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
1215         border and fixes some drawing issues when resize form.
1216
1217 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
1218
1219         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
1220         
1221         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
1222         AcceptButton.
1223
1224 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
1225
1226         * TextBoxBase.cs: For standard textbox the scrollbars are always 
1227         visible if Multiline is true.
1228         [Fixes bug #426896]
1229
1230 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
1231
1232         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
1233         patch.
1234         
1235 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
1236
1237         [Fixes most od DBNull and HeadersVisible problems]
1238         
1239         * DataGrid.cs:
1240         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
1241         returns the value that we need.
1242         - Fixed FromPixelToColumn method that return zero for first     column and for
1243         row header cell, now it returns -1 for row header cell.
1244         - Fixed HitTest to check row header cell in column header area, it now
1245         returns HitTestType.None. [Fixes #322864]
1246         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
1247         checks for RowHeadersVisible and other things.
1248         - If an exception occurs when setting CurrentCell and user type 'yes' in
1249         message dialog, invalidade current and new cell and set setting_current_cell
1250         to false to prevent future errors. [Partially fixes #323050]
1251
1252         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
1253         value (SetColumnValueAtRow), it must be done by grid to properly show 
1254         messages. [Fixes #323050]
1255
1256         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
1257         better draw column and row header. Also dont draw anything when column
1258         headers is not visible.
1259
1260 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1261
1262         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
1263         logic.
1264
1265 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1266
1267         * TreeView.cs: Don't start editing a node on right click, only
1268         left click.
1269
1270 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1271
1272         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
1273         disabled over a year ago.
1274         * Form.cs: Wrap calling Load in a try/catch because it can happen
1275         before the catch-all one in NativeWindow.
1276         [Fixes bug #425414]
1277
1278 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1279
1280         * ToolStripDropDownMenu.cs: Calculate the connected area better
1281         to take into account when the drop down is not directly under the
1282         owner item.
1283         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
1284
1285 2008-09-16  Mario Carrion <mcarrion@novell.com>
1286
1287         * ScrollBar.cs: New event added: UIAValueChanged, generated when
1288           LargeChange, SmallChange, Maximum or Minimum values are changed.
1289         [Fixes bug #426464]
1290
1291 2008-09-16  Mario Carrion <mcarrion@novell.com>
1292
1293         * ErrorProvider.cs: Component enabled to support accessibility.
1294         * Application.cs: Updated to Initialize UIA in ErrorProvider.
1295         [Fixes bug #426459]
1296
1297 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1298
1299         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
1300         so we don't highlight on first focus.
1301         [Fixes bug #360869]
1302
1303 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1304
1305         * TextControl.cs: Correctly calculate the height of the area we 
1306         need to invalidate when we have started scrolling and viewport_y
1307         is used.  [Fixes bug #387608]
1308
1309 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1310
1311         * TextControl.cs: When getting the SelectedText, don't add in
1312         NewLine characters, as they are already contained in the lines.
1313         [Fixes bug #388115]
1314
1315 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1316
1317         * TextBoxBase.cs: Replace the buggy Lines setter with one that
1318         simply concats the lines and send it to the Text setter.
1319         [Fixes issue #2 and #3 of 388115]
1320
1321 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1322
1323         * Binding.cs: The default value of DataSourceNullValue should be
1324         Convert.DBNull actually. Also, the NullValue should only be used *if*
1325         itself is not null, and use the null/Convert.DBNull value instead.
1326
1327 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
1328
1329         * TextControl.cs: Add a method to convert a string newline to the
1330         newline enum.
1331         * TextBoxBase.cs: When the user hits enter, insert a native newline.
1332         [Fixes part 1 of bug #388115]
1333
1334 2008-09-15  Mario Carrion <mcarrion@novell.com>
1335
1336         * ToolTip.cs: UnPopup event set to internal to match public API.
1337
1338 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
1339
1340         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
1341         have to remove the Ctrl in order for the focus moving code to kick in.
1342         [Fixes bug #426170]
1343
1344 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
1345
1346         * CheckedListBox.cs: Return the real item index from Add.  It may not be
1347         the last item if the list is sorted.  The user can change the NewValue in
1348         the ItemCheck event, we need to use that value if so.
1349         * ListBox.cs: Return the real item index from a sorted Add.
1350         [Fixes bug #426166]
1351
1352 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
1353
1354         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
1355         happen that the icons from the theme is missing or the particular size 
1356         unavailable.
1357         [Fixes bug #424981]
1358
1359 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1360
1361         * Binding.cs: When assigning null or DBNull depending on value/ref type,
1362         use IsValueType instead to get the precise desired value.
1363         Fixes #424276.
1364
1365 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1366
1367         * TreeNodeCollection.cs: When adding a new node to an opened node,
1368         we have to invalidate everything below the parent node because
1369         every node scoots down and we have to repaint them.
1370         [Fixes bug #411386]
1371
1372 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1373
1374         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
1375         property into account when drawing.
1376         [Fixes bug #416064]
1377
1378 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1379
1380         * ListBox.cs: When calling Items.Clear(), call
1381         SelectedIndexCollection.ClearCore instead of normal Clear method, to
1382         not fire any Selected*Changed event - this is done to match .net and
1383         don't have invalid values when changing the DataSourceProperty.
1384         Fixes #424273.
1385
1386 2008-09-12  Mario Carrion  <mcarrion@novell.com>
1387
1388         * HelpProvider.cs: Control enabled to support accessibility.
1389         * Application.cs: Updated to Initialize UIA in HelpProvider.
1390         [Fixes bug #425988]
1391
1392 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1393
1394         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
1395         make the dialog TopMost as well.
1396         [Fixes bug #425984]
1397
1398 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1399
1400         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
1401         clipboard data better.
1402         [Fixes bug #414446]
1403
1404 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1405
1406         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
1407         TextChanged and SelectionChanged events fire in the same order as .Net.
1408         [Fixes bug #425725]
1409
1410 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1411
1412         * DataGridView.cs: When sorting a column, if it only contains numbers,
1413         do a numeric sort instead of a string sort.
1414         [Fixes bug #425849]
1415
1416 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1417
1418         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
1419         against NRE's when the settings have a null panel.
1420         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
1421         the panel gets set.
1422         [Fixes bug #425647]
1423
1424 2008-09-11  Mario Carrion  <mcarrion@novell.com>
1425
1426         * ToolTip.cs: Control enabled to support accessibility.
1427         * Application.cs: Updated to Initialize UIA in ToolTip.
1428         [Fixes bug #425277]
1429
1430 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1431
1432         * Control.cs: Make the custom Enumerator internal to fix build.
1433
1434 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1435
1436         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
1437         already in edit mode, begin edit mode.  Generally edit mode isn't
1438         started until the second click, but CheckBoxes are special.
1439
1440 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1441
1442         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
1443         since that can be set to anything.  Always add them to the Control's
1444         parent.  [Fixes bug #416058]
1445
1446 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1447
1448         * ListView.cs: Use a custom enumerator for ListViewItemCollection
1449         so items can be deleted in a foreach.
1450         [Fixes bug #425342]
1451
1452 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1453
1454         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
1455         Store the user set explicit height so that the row can be AutoSized
1456         and then when AutoSize is turned off, it can get its original size back.
1457         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
1458         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
1459         rows' heights back to their explicit values.
1460         [Fixes bug #415780]
1461
1462 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1463
1464         * DateTimePicker.cs: When getting focus, select the checkbox if we are
1465         already showing it. Also, don't change its value when pressing space
1466         if the checkbox is not visible (ShowCheckBox as false). Finally, the
1467         checkbox should remain selected as long as Checked is false, and the
1468         other parts are disabled.
1469         Fixes #424267.
1470         
1471 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1472
1473         * MessageBox.cs: Handle shortcut keys to dialog buttons.
1474         [Fixes bug #425425]
1475
1476 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1477
1478         * Binding.cs: When the value retrieved from the control property is
1479         null, don't return Convert.DBNull for Nullable instances, since they
1480         can *actually* get a null value.
1481         Fixes #424265.
1482
1483 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
1484
1485         * Control.cs: Add an internal field to force doublebuffering regardless
1486         of what the public mechanisms are set to.  This is because MS's native
1487         controls are doublebuffered even though their .Net bits are set to false.
1488         * ProgressBar.cs: Set force_double_buffer to true.
1489         [Fixes bug #406595]
1490
1491 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
1492
1493         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
1494         the cell template.
1495         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
1496         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
1497         without EditingControls, paint background selection for types without
1498         EditingControls, reset the EditingCellValueChanged flag when the
1499         cell's value is committed.
1500         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
1501         have EditingControls, remove a double call to a cell's OnContentClickInternal,
1502         don't do cell changing logic in OnMouseDown if the cell didn't change.
1503         [Fixes bug #420351]
1504
1505 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1506
1507         * DateTimePicker.cs: Fix the edition of am/pm specifier.
1508
1509 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
1510
1511         * TextControl.cs: Add "&" to the list of valid characters in a URL.
1512
1513 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1514
1515         * DateTimePicker.cs: Before incrementing or decrementing any part in
1516         the textbox, end any current edit. Also when ending the current edit
1517         use the editing_part_index field instead of the current selected
1518         value, since they can be out of synch, and we really need to work on
1519         the *real* current edit part. Finally when PartData.Selected changes,
1520         always try to end any ongoing edit.
1521         This should fix some small errors handling mouse navigation and
1522         increase/decrease operations.
1523
1524 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1525
1526         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
1527         respectively) should handled different, since the 12 hours format
1528         needs the value typed by the user to be adjusted depending on the
1529         a.m/p.m value, so it is preserved, and only changed when the value
1530         reaches the 12 value (when it changes from a.m to p.m).
1531         Fixes part of #416555.
1532
1533 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
1534
1535         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
1536         * ToolStripDropDownItem.cs: Don't fire events and such again if
1537         ShowDropDown is called on an already dropped down item.
1538         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
1539         subitems, the user may add some in the DropDownOpening event.
1540         [Fixes bug #417877]
1541
1542 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
1543
1544         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
1545         [Fixes bug #424270]
1546
1547 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
1548
1549         * MdiClient.cs: When looking for menustrips on a child form to merge,
1550         look inside ToolStripContainers.
1551         [Fixes bug #424264]
1552
1553 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
1554
1555         * ErrorProvider.cs: Unbreak my previous commit.
1556
1557 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
1558
1559         * ErrorProvider.cs: Icon should always be 16x16.
1560         [Fixes bug #424380]
1561
1562 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
1563
1564         * GridEntry.cs: Invalidate the child items cache when the property 
1565         value changes.
1566
1567 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
1568
1569         * GridEntry.cs, PropertyGridView.cs: 
1570            - Update the ReadOnly detection and rendering to finally hopefully 
1571            match the one of MSFT.
1572            - Niceify and move the debug CWLS.
1573         [Fixes bug #409028]
1574
1575 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1576
1577         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
1578         since we are already calling Invalidate for the entire control when
1579         needed - and call Redraw() when size changes, since we need to paint
1580         there by ourselved and not anymore from the mentioned method. 
1581         This should improve the layout process. Also clean some not needed calls 
1582         here and there.
1583
1584 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
1585
1586         * MenuAPI.cs: Add a null check to the Alt-F4 code.
1587         [Fixes bug #420309]
1588
1589 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
1590
1591         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
1592         [Fixes bug #423040]
1593
1594 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
1595
1596         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
1597         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
1598         on item expansion. Improves performance and fixes bug #417955.
1599         [Fixes bug #417955]
1600
1601 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
1602
1603         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
1604         fix the build.
1605
1606 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
1607
1608         * TextControl.cs: Add "_" to the list of valid characters in a URL.
1609         [Fixes bug #423408]
1610
1611 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
1612
1613         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
1614         region gets set.
1615         [Fixes bug #414166]
1616
1617 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
1618
1619         * FontDialog.cs: When storing our font size from the starting font,
1620         use SizeInPoints instead of Size in case Size is a different unit
1621         from Points.
1622         [Fixes bug #416489]
1623
1624 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
1625
1626         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
1627         don't use it for anything else, check if a directory is highlighted.
1628         If it is, navigate into it.
1629         [Fixes bug #422087]
1630
1631 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1632
1633         * Binding.cs: When acquiring a BindingManagerBase for the first time,
1634         check that the specified property actually exists in the data source,
1635         and throw an ArgumentException if that's not the case - this is only
1636         done for this scenario, since for later cases (such Position changes)
1637         we throw different exceptions (match .Net).
1638
1639 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
1640
1641         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
1642           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
1643           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
1644           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
1645           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
1646           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
1647           properties.
1648           [Fixes bug #418684]
1649
1650 2008-09-03  Neville Gao <nevillegao@gmail.com>
1651
1652         * StatusBar.cs: Control enabled to support accessibility.
1653         [Fixes bug #419079]
1654
1655 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1656
1657         * Binding.cs: When connecting the event handler for the "Changed"
1658         event for the property, only do it for PropertyManager, and not for
1659         CurrencyManager - this is exactly what does .Net, totally ignoring any
1660         change in the property of the elements of a list.
1661         Fixes the tests.
1662
1663 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
1664
1665         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
1666         to Windows when creating a window, as we fake MDI stuffs.
1667         [Fixes bug #421858]
1668
1669 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
1670
1671         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
1672         change takes effect.
1673
1674 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
1675
1676         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
1677         [Fixes bug #419001]
1678
1679 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
1680
1681         * DataGridView.cs: Raise CellContentClick event.
1682         [Fixes part of bug #420351]
1683
1684 2008-08-27  Mario Carrion  <mcarrion@novell.com>
1685
1686         * ScrollBar.cs: Control enabled to support accessibility.
1687         [Fixes bug #416759]
1688
1689 2008-08-27  Mario Carrion  <mcarrion@novell.com>
1690
1691         * ComboBox.cs: Control enabled to support accessibility.
1692         [Fixes bug #416663]
1693
1694 2008-08-27  Mario Carrion  <mcarrion@novell.com>
1695
1696         * ListBox.cs: Control enabled to support accessibility.
1697         [Fixes bug #416640]
1698
1699 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
1700
1701         * ComboBox.cs: Don't suppress the TextChanged event when changing
1702         the SelectedIndex.
1703         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
1704         and re-raise it.
1705         [Fixes bug #420673]
1706
1707 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
1708
1709         * ErrorProvider.cs: Fix a regression NRE when setting properties
1710         for a control before it has a parent.
1711         [Fixes bug #420305]
1712
1713 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1714
1715         * Binding.cs: Use the BindingManagerBase.Current value to obtain
1716         connect the property "Changed" event, instead of using the data
1717         sources - this is useful when the property specifies actually a
1718         multiple objects path.
1719         Fixes part of #417973.
1720
1721 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1722
1723         * RelatedPropertyManager.cs: PropertyManager instances associated to a
1724         nested properties should return not the properties of the data source
1725         itself, but the properties of the type of a specific property in the
1726         data source - match .net.
1727
1728 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
1729
1730         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
1731         AddRange overloads into AddItems method, and added missing NULL check.
1732         Added extra argument check to RemoveAt for compatibility with MS. 
1733         Modified IList implementation of Add, Contains, IndexOf and Remove to
1734         throw an ArgumentException if item is not an int. Modified IList.Insert
1735         to throw a NotSupportException instead of an Exception. Implemented
1736         ICollection.
1737         (ObjectCollection): To avoid duplication, use AddItems method from
1738         AddRange overloads. On 1.0 profile, first perform NULL check on items
1739         in AddItems.
1740
1741 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
1742
1743         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
1744          #419087.
1745
1746 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
1747
1748         * X11Keyboard.cs : comment out some Console.WriteLine().
1749
1750 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
1751
1752         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
1753           even if premises are not filled. Also XLookupString() was not
1754           receiving correct input, which blocked precise input handling
1755           on non-XIM mode.
1756
1757 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1758
1759         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
1760         type of delegate, instead of EventHandler - this was causing a type
1761         cast exception in all apps handling this event.
1762         Fixes #417876.
1763
1764 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
1765
1766         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
1767         ShowDropDown to give the user a chance to dynamically add
1768         drop down items.  [Step 1 of fixing bug #417877]
1769
1770 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1771
1772         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
1773         had any mouse motion since the call to StartDrag, to match the dnd
1774         behaviour of .net.
1775         Fixes part of #381876.
1776
1777 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1778
1779         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
1780         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
1781         Also, if we are actually moving into a different window after
1782         grabbing, generate a LeaveNotify event for the previous window, since
1783         we need to fire the leave events until the grab ends, not when
1784         actually moving outside of the control.
1785
1786 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1787
1788         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
1789         events only for client windows was wrong - we need to compare the
1790         client window against the window receiving the EnterNotify event, not
1791         against zero (since client window is never Zero, btw).
1792         This prevents having unnecessary handling of EnterNotify events for
1793         non-client windows when a gran begins.
1794
1795 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1796
1797         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
1798         MouseMove/MotionNotify events at all (which should only happen after
1799         MouseUp/ButtonRelease, as .Net does).
1800         This avoids firing an extra and unnecessary MouseMove event just after
1801         every MouseDown event.
1802
1803 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
1804
1805         * LinkLabel.cs: Always clear any previous links when LinkArea
1806         is set.  [Fixes bug #410709]
1807
1808 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
1809
1810         * ToolStripProfessionalRenderer.cs: Revert last change.
1811         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
1812         for ToolStripDropDownBackground.
1813
1814 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
1815
1816         * ToolStripProfessionalRenderer.cs: Use Window color for the 
1817         background of dropdowns to match .Net when the user is not
1818         using the default white.  [Fixes bug #418108]
1819
1820 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
1821
1822         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
1823           it caused timer registration twice. Fixed bug #418107.
1824
1825 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1826
1827         [Correction: This is the actual change to X11Dnd issue, not the
1828         previous one, which was actually a different issue.]
1829
1830         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
1831         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
1832         when the pointer is actually in motion, but only when the pointer
1833         seems to stop (as .net does).
1834         Fixes part of #381876.
1835
1836
1837 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
1838
1839         * ListBox.cs: Fix CopyTo implementation.
1840         [Fixes bug #409169]
1841
1842 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
1843
1844         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
1845         drawing a ComboBox's background.  Fixes bad disabled rendering when
1846         the control is not at 0,0.
1847         [Fixes bug #416063]
1848
1849 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
1850
1851         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
1852         ComponentModel layer, which will properly prioritize the attributes.
1853         Avoids wrong prioritization of duplicate attributes when retrieving 
1854         the converter and editor.
1855         [Fixes bug #417729]
1856
1857 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1858
1859         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
1860         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
1861         when the pointer is actually in motion, but only when the pointer
1862         seems to stop (as .net does).
1863         Fixes part of #381876.
1864
1865 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
1866
1867         * GridEntry.cs: Perform stricter check for the ParentEntry's 
1868         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
1869         implementation.
1870         [Fixes bug #417567]
1871
1872 2008-08-14  Geoff Norton  <gnorton@novell.com>
1873
1874         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
1875         Fixes #396983.  Properly fix ActiveWindow trackin and do not
1876         prematurely show POPUP windows.
1877
1878 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1879
1880         * XplatUIX11.cs: Handle the obscured regions while scrolling using
1881         GraphicsExpose event, processing it just after we copy the scrolled
1882         area. This ensures that the next calls to ScrollWindow will copy
1883         regions already updated, and the scrolling will be smooth. Also remove
1884         the code that was trying to detect the obscured regions, since we are
1885         not using it anymore (too slow).
1886
1887 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1888
1889         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
1890         MultiExtended mode, by separating some logic between the ctrl/shift
1891         handling. Also ignore any MouseMove events generated together with
1892         MouseDown events - we are only interested in the real motion event.
1893         Fixes part of #414963.
1894
1895 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
1896
1897         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
1898         is selected.  [Fixes bug #414143]
1899
1900 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
1901
1902         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
1903         and not the parent one (the propertyowner). Fixes the behavior of 
1904         GetConverter/GetEditor.
1905         [Fixes bug #415452]
1906
1907 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
1908
1909         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
1910         [Fixes part of bug #415452]
1911
1912 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
1913
1914         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
1915         GridEntry, not the current.
1916         [Fixes bug #413896]
1917
1918 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
1919
1920         * TextBoxBase.cs: De-internalize max_length field.
1921         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
1922         share the same logic.
1923         [Fixes bug #414454]
1924
1925 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1926
1927         * ListBox.cs: Selection changes made in the MouseDown handler should
1928         use the *Core versions of selection in SelectedIndices collection,
1929         since the SelectedIndexChanged/SelectedValueChanged events are fired
1930         until we get a MouseUp event, and thus we need to separate the logic
1931         from the events, as done in the keyboard navigation. Also, fire those
1932         selection events from keyboard navigation in SelectionMode.None, even
1933         if we don't have a selection, as .Net does.
1934
1935 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
1936
1937         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
1938         last change introduced when an item is clicked but isn't on a toolstrip.
1939
1940 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1941
1942         * ListBindingHelper.cs: When looking for an object's properties, check
1943         if it implements ICustomTypeDescriptor, in which case we should
1944         resolve the propertu based on its GetProperties method, not in its
1945         actual properties. This is what .Net seems to do.
1946         Fixes a UsingWebBrowser problem during initialization.
1947
1948 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
1949
1950         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
1951         sitting on a MenuStrip.
1952
1953 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
1954
1955         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
1956         no children with the keyboard, we need to release the keyboard capture.
1957         [Fixes bug #413567]
1958
1959 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
1960
1961         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
1962         no children with the keyboard, we need to release the keyboard capture.
1963         [Fixes bug #413567]
1964
1965 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
1966
1967         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
1968         the GTK+-based implementation of VisualStyles.
1969         * ThemeWin32Classic.cs: Exposed various layout values for use in the
1970         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
1971         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
1972         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
1973         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
1974         TrackBarHorizontalTrackHeight.
1975
1976 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
1977
1978         * TabControl.cs: Added hot style handling for the scroll buttons.
1979         right_slider_state, left_slider_state are now of type PushButtonState to
1980         allow for a hot state. Added tracking of the mouse button being held down
1981         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
1982         LeftScrollButtonArea.
1983         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
1984         TabControlGetRightScrollRect.
1985
1986 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
1987
1988         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
1989         runtime errors.
1990
1991 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
1992
1993         * Form.cs: Ensure that we reset the shown_raised flag after 
1994         the form is closed, so that we raise the show events the next 
1995         time the form is shown.
1996         [Fixes bug #413141]
1997
1998 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
1999
2000         * Form.cs: Ensure closing events are raised only once.
2001         [Fixes bug #413143]
2002
2003 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
2004
2005         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
2006         so that we can successfully generate the LParam in-place instead of 
2007         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
2008         navigation for menus.
2009
2010 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2011
2012         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
2013         'navigating'. Fixes bug #411356.
2014
2015 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2016
2017         [Fixed remaining issues of #406773 (#1)]
2018         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
2019
2020         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
2021         MainMenu (already done) and ContextMenu creation.
2022
2023         * ContextMenu.cs: Create tracker on construction. 
2024
2025 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2026
2027         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
2028         possible to instantiate MenuTracker without GrabControl.
2029
2030 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2031
2032         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
2033
2034         * MainMenu.cs: Set GrabControl on SetForm using current form.
2035
2036 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2037
2038         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
2039
2040 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
2041
2042         * MenuAPI.cs: Check if menu is activated before deactivate it in 
2043         ProcessShortcut.
2044
2045 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
2046
2047         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
2048         ColumnStyle.cs: 
2049         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
2050          - One style instance can only participate in a single style collection.
2051          - Styles can request their owner to layout whenever their properties 
2052          change.
2053          [Fixes bugs #412583 and #412582]
2054
2055 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
2056
2057         * X11Keyboard.cs: Implement the generation of the LParam for 
2058         all keyboard messages.
2059         [Fixes bug #378728]
2060
2061 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
2062
2063         * ListBox.cs: Don't let the user set TopIndex so high that it
2064         scrolls up far enough to show empty items.
2065         [Fixes bug #412728]
2066
2067 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2068
2069         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
2070         (I'm an idiot and forgot to commit the actual changes, as well as
2071         specify the right file, which is this one, not ListView.cs).
2072
2073 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2074
2075         * ListView.cs: Don't draw ListViewSubItem instances from
2076         DrawListViewItem - we need to reuse the main item's drawing for the
2077         first sub item in case owner draw is true, but wants the system to
2078         do the default draw for the first sub item, without incurring in a
2079         recursion problem.
2080         Fixes #410880.
2081
2082 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
2083
2084         * ToolStripButton.cs: Update Checked for CheckOnClick before
2085         raising the Click event.  [Fixes bug #412505]
2086
2087 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
2088
2089         * Form.cs: Remove some seems leftover code for non-TopLevel's 
2090         CreateParams, which is breaking ClientSize sizing, because it 
2091         removes the border window styles.
2092
2093 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
2094
2095         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
2096         changes.
2097
2098 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
2099
2100         * WebBrowser.cs: Removed debug output.
2101
2102 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
2103
2104         * FileDialog.cs: Apply patch from Ernesto to clean up some
2105         dialog messages.
2106
2107 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2108
2109         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
2110         that the change has an immediate effect.
2111
2112 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2113
2114         * ScrollableControl.cs: Update PerformLayout calls to include 
2115         provide the name of the property that changed.
2116
2117 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2118
2119         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
2120         location. Fixes drawing of border and cell borders if scrollable.
2121
2122 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2123
2124         * ScrollableControl.cs: Perform layouting after the AutoScroll 
2125         properties have changed, so that the changes have immediate 
2126         effect.
2127         [Fixes bug #409090]
2128
2129 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2130
2131         * XplatUIX11.cs: Non Client area is actually Client such in the 
2132         case of NotifyIcon, so double check WholeWindow == ClientWindow 
2133         when adding an expose.
2134         [Fixes bugs #324237 and #357022]
2135
2136 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2137
2138         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
2139         repaint the cell borders.
2140
2141 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
2142
2143         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
2144         disposal to avoid unexpected ObjectDisposedExceptions.
2145
2146 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
2147
2148         * TableLayoutPanel.cs: Layout on Row/Column count change.
2149
2150 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
2151
2152         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
2153         bug #409351.
2154         * PictureBox.cs: When ImageLocation is set to null or an empty string,
2155         only set image to null if it was previously initialized from an url
2156         (or using ImageLocation). In ImageLocation, load specified image
2157         asynchronously if WaitOnLoad is false. Added support for local file
2158         paths to LoadAsync, and added missing argument check.
2159
2160 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2161
2162         * DateTimePicker.cs: 
2163         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
2164         order to set the value as required (which means: when selection
2165         changes for a part being edited, and not before that if not needed).
2166         Also use an enum to describe which part are we using, and use the
2167         selection as a property in PartData, in order to notify the
2168         DateTimePicker owner that we need to end the current edit.
2169         Fixes #383462.
2170
2171 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
2172
2173         * PropertyGridTextBox.cs: Validation should be performed only if we 
2174         are focused. We can lose focus for example if the Return key is used 
2175         to set the entry and there is an error. When the message box is 
2176         displayed we would have validate on click in the message box.
2177
2178 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
2179
2180         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
2181         in order to determine that we are expandable is wrong. There was a bug, 
2182         now fixed, in TypeDescriptor that was causing the wrong converter to be 
2183         returned which caused GetPropertiesSupported == false in most cases.
2184         [Fixes bug #409027]
2185
2186 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
2187
2188         * ImageList.cs: Fix ICollection.CopyTo implementation for
2189         ImageListCollection.  [Fixes bug #409169]
2190
2191 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
2192
2193         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
2194         WorkingArea so that menus can appear on the second monitor
2195         when one has dual monitors.
2196
2197 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2198
2199         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
2200         Fixes build.
2201
2202 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2203
2204         * TextBox.cs: Implement navigation support for auto complete in
2205         TextBox, as well as refactor the code to show the auto complete window
2206         when receiving a WM_CHAR message, instead of TextChanged, since
2207         autocomplete itself should be able to set the Text a lot of times and
2208         finally only typing should show it, not changes from code.
2209
2210 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2211
2212         * TabControl.cs: When expanding the selected tab, don't adjust the
2213         width if alignment is Right, since it has a different offset than 0,
2214         as opposed to the other alignments.
2215         Fixes the selected tab not being painted at all with alignment = Right
2216         and using FillToRight size mode.
2217
2218 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
2219
2220         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
2221
2222 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
2223
2224         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
2225         values from the textbox to the boundary values.  [Fixes bug #409026]
2226
2227 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
2228
2229         * TreeNodeCollection.cs: We were copying one too many elements when
2230         doing our array copy.  Fixes a crash when RemoveAt is called.
2231         [Fixes bug #408999]
2232
2233 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2234
2235         * TabControl.cs: When doing the layout and need to call FillRow -using
2236         FillToRight size mode-, use the overload receiving a bool param
2237         indicating whether we need to do a vertical or horizontal calculation.
2238         Fixes part of #399583.
2239
2240 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2241
2242         * TextBox.cs: When painting, use the value returned by
2243         GetLastVisibleItem instead of using the cached last_item field, since
2244         there could be a desynchronization between the layout and the
2245         painting. Fixes a AOOR exception in auto complete mode.
2246
2247 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
2248
2249         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
2250         NonClientAreaEnabled until our VisualStyles is modified to allow it.
2251
2252 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
2253
2254         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
2255
2256 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2257
2258         * TextBox.cs: When focus is lost, if the auto complete listbox is
2259         visible, hide it.
2260
2261 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
2262
2263         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
2264         tracking size for tool windows.
2265         * Theme.cs, ThemeWin32Classic.cs : Extracted
2266         ManagedWindowSpacingAfterLastTitleButton.
2267
2268 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
2269
2270         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
2271         They are bit-rotted and have always been listed as "unsupported".
2272
2273 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
2274
2275         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
2276
2277 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
2278
2279         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
2280
2281 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2282
2283         * ListBox.cs: Make sure last_item_visible gets reset before we try
2284         to do a layout due to scrollbars appearing or disappearing.
2285         [Fixes bug #408139]
2286
2287 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2288
2289         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
2290         for different window themes.  [Fixes bug #339140]
2291
2292 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2293
2294         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
2295         in ManagedWindowBorderWidth.
2296
2297 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2298
2299         * InternalWindowManager.cs: Change MouseMove to take a point, so
2300         we can use the same point later on.
2301         * MdiWindowManager.cs: Store point sent to MouseMove so we can
2302         later reset to it.  On Windows, the Cursor.Position had already
2303         changed by the time we were resetting to it.
2304         [Fixes bug #363239]
2305
2306 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2307
2308         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
2309         are inactive.
2310         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
2311         user requested it.
2312         [Fixes bug #398686]
2313
2314 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2315
2316         * MdiWindowManager.cs: Double-clicking on the title bar should not
2317         maximize a MDI form if MaximizeBox = false.
2318
2319 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2320
2321         * ThemeVisualStyles.cs: Fixed a warning.
2322
2323 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2324
2325         * ThemeVisualStyles.cs: Fixed warnings and formatted.
2326
2327 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2328
2329         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
2330         implementation produces a better result.
2331
2332 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2333
2334         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
2335         windows.
2336
2337 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2338
2339         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
2340         cannot be used from the ThemeEngine constructor.
2341         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
2342         Application.VisualStylesEnabled because it does not work on X11.
2343
2344 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
2345
2346         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
2347         that we did not always check for, as well as fixes to the IList
2348         implementations.  [Fixes bug #402703]
2349
2350 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
2351
2352         * IDeviceContext.cs: Added Dispose.
2353
2354 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
2355
2356         * Control.cs: Added OnSizeInitializedOrChanged.
2357         * Form.cs: OnLoadInternal: Added a call to
2358         Control.OnSizeInitializedOrChanged.
2359         * InternalWindowManager.cs:
2360          * HandleTitleBarMouseMove: No longer invalidates the parent window.
2361          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
2362          * TitleButton: Added Entered.
2363          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
2364         * MdiWindowManager.cs:
2365          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
2366          move over the maximized title buttons causes a change.
2367          * IsActive: Can now be called before the window is added to a MDI parent.
2368         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
2369         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2370         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
2371         * ThemeWin32Classic.cs:
2372          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
2373          * DrawTitleButton takes a new form parameter.
2374          * Added ManagedWindowTitleButtonHasHotElementStyle,
2375          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2376
2377 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
2378
2379         * ThemeEngine.cs: ThemeVisualStyles is now selected if
2380         Application.EnableVisualStyles has been called, even if the current system
2381         configuration does not support rendering with Visual Styles.
2382         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
2383         Styles should not be used.
2384
2385 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
2386
2387         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
2388         ComboBox in FormsTest.
2389
2390 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
2391
2392         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
2393         for fixed toolwindows.
2394
2395 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
2396
2397         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
2398
2399 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2400
2401         * Control.cs: CreateControl just returns if the Control is diposed 
2402         and doesn't throw ObjectDisposedException.
2403         [Fixes bug #406566]
2404
2405 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2406
2407         * Control.cs: Do not create the control if the parent isn't created 
2408         yet, e.g in the case of a parented form on which .Show is called.
2409         It will be created when the parent is made visible/created.
2410         Improves #402446.
2411
2412 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2413
2414         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
2415         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
2416         [Fixes bug #406786]
2417
2418 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2419
2420         * Form.cs: When disposed set owner to null. Improves #402446.
2421
2422 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2423
2424         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
2425         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
2426         if not.
2427         * Form.cs: Take the Padding into account for the PreferredSize.
2428         [Fixes bug #402849]
2429
2430 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2431
2432         * TabControl.cs: Since we don't support more than one direction in
2433         TabControl rows alignment (this is, the row becomes the
2434         bottom row when selected), make Direction return always 1. This way
2435         the layout doesn't get confused about a bad calculation.
2436         Fixes #399582.
2437
2438 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2439
2440         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
2441         so that the wparam is properly set.
2442         Fixes form moving in the test case in bug 402446.
2443
2444 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
2445
2446         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
2447         the full tree instead of nothing.  [Improves bug #406584]
2448
2449 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
2450
2451         * ThemeWin32Classic.cs: Adjusted minimized window painting.
2452
2453 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
2454
2455         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
2456         children.
2457
2458 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
2459
2460         * TreeView.cs: Add a null check when using CollapseAll on an
2461         empty tree.  [Fixes bug #406449]
2462
2463 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
2464
2465         * Form.cs: Make OnMenuComplete internal so we can call it.
2466         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
2467         [Fixes bug #399321]
2468
2469 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
2470
2471         * TabControl.cs: Handle Up and Down keys when TabControl is in
2472         vertical alignment.
2473         [Fixes bug #399585]
2474
2475 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
2476
2477         * TabControl.cs: Invalidate when we remove a tab.  Guard against
2478         an AOORE when trying to remove a tabpage that is not owned by the
2479         parent control.
2480         [Fixes bug #399927]
2481
2482 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
2483
2484         * ScrollBar.cs: Change the LargeChange calculation to be correct.
2485         Ensure we are using LargeChange instead of large_change so we our
2486         calculations are correct.
2487         [Fixes bug #403122]
2488
2489 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
2490
2491         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
2492         we need to ensure the ColumnCount/RowCount gets set.
2493         [Fixes bug #404851]
2494
2495 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2496
2497         * ListBox.cs: When handling item navigation, if selection mode is
2498         None, call EnsureVisible, since scrolling is normally handled by
2499         selection, that we are not calling in this case.
2500         Fixes #398345.
2501
2502 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
2503
2504         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
2505         a null check to our focus walking code.  [Fixes bug #394332]
2506
2507 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
2508
2509         * ComboBox.cs: Case missed in bug 379596 "Support item
2510         navigation by entering text": On _close_ drop-down select
2511         the first item matching the text in the textbox.  [Fixes bug #397265]
2512
2513 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
2514
2515         * DataGridView.cs: Fix a crash when sorting by column headers, 
2516         mentioned in bug #404841.  Remove some dead switch cases.
2517
2518 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2519
2520         * ComboBox.cs:
2521         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
2522         uses the AutoComplete support in the internal TextBox. Also TextBox
2523         can store a reference to ComboBox, in case AutoCompleteSource is set
2524         to ListItems (this is, ComboBox's items, and we don't want to pass an
2525         additional collection).
2526
2527 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2528
2529         * ListViewItem.cs: Restore the initial value of bounds rect to
2530         Rectangle.Empty, and is this value for Layout detection in virtual
2531         mode. Fixes the tests.
2532
2533 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
2534
2535         * XPlatUI.cs: Remove references to "new" X11 backend.
2536
2537 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
2538
2539         * Control.cs: Add an internal virtual OnDragDropEnd method 
2540         to allow controls such as ListBox, which depend on a sequence 
2541         of MouseDown+Move+End events, to handle the lack of a MouseUp 
2542         when a DnD operation is started in MouseDown.
2543         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
2544         get a MouseUp, so reset our state whenever a DnD operation ends.
2545
2546 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
2547
2548         * PropertyGrid.cs: Clear the root griditem first thing when 
2549         new object/s is/are selected. Fixes some rare cases where 
2550         the View will get a paint request and won't know that the 
2551         grid is in the process of repopulating.
2552
2553 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
2554
2555         * XplatUIX11.cs, InternalWindowManager.cs: 
2556         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
2557         doesn't automagically update the FormBorderStyle, so we must 
2558         double check the CreateParams explicitly to determine if the 
2559         window is a toolwindow.
2560         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
2561         instead of doing custom checks.
2562
2563         Fixes toolwindows for the test case in bug #402446
2564
2565 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
2566
2567         * Control.cs: Visibility of the control should be false 
2568         when the handle is destroyed in WmDestroy and not immediately 
2569         in Dispose(). This is effectively where the disposing process 
2570         ends even though the control is marked as Disposed immediately 
2571         after calling Dispose().
2572         [Fixes bug #402446]
2573
2574 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
2575
2576         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
2577         when the textbox gets focus.
2578         [Fixes bug #402704]
2579
2580 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
2581
2582         * PropertyGridTextBox.cs, PropertyGridView.cs: 
2583          - Alt + Down should show the drop down editor.
2584          - Focus the editor when showing it
2585         [Fixes bug #402710]
2586
2587 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
2588
2589         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
2590         that are not the first panel.
2591         * StatusBar.cs: Ensure that the X coordinate of panels is always
2592         stored.  Fix IList implementation of StatusBarPanelCollection to
2593         call the regular methods.
2594         [Fixes bug #403599, #402165]
2595
2596 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
2597
2598         * ThemeWin32Classic.cs: Fix position calculation for centered
2599         text on status bar panels.  [Fixes bug #402165]
2600
2601 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
2602
2603         * Splitter.cs: Fix Splitter to:
2604          - Work for arbitrary splitter size
2605          - Handle MinSize and MinExtra properly
2606          - Get rid of absolute positioning during drag and use relative
2607          - Multiple other fixes 
2608          [Fixes bug #338966]
2609
2610 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
2611
2612         * Cursor.cs: Show shouldn't hide the cursor.
2613
2614 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2615
2616         * ListViewItem.cs: When invalidating, add some extra space to bounds,
2617         since focus rectangle and selection can add some space and need to
2618         take into account those small offsets - specially in Details view.
2619         * ListView.cs: Instead of invalidate using item Bounds directly, call
2620         item.Invalidate, to have the code centralized.
2621         Fixes focused/selection garbage when selecting and deselecting items
2622         that are close.
2623
2624 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2625
2626         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
2627         mode we can check whether we have to force a Layout or not, and can
2628         cache based on this, instead of avoiding caching all the the time. Do
2629         this check in GetBounds and TextBounds.
2630         Fixes selection in Details view.
2631
2632 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2633
2634         * ListView.cs: Make HeaderControl internal, thus the theme engine can
2635         get its *real* height instead of trying to infere it.
2636         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
2637         get the position of them, since it's in general a bad idea in general,
2638         and because we can't do that in virtual mode. Instead get the first
2639         visible item as well as item height, and draw them.
2640         Fixes #400390.
2641
2642 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
2643
2644         * ToolStripSplitButton.cs: We can't add in extra width if
2645         the button is not AutoSize.  [Fixes bug #401279]
2646
2647 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
2648
2649         * PaddingConverter.cs: 
2650          - Implement conversion to InstanceDescriptor
2651          - Handle "All" in CreateInstance by using the supplied 
2652          ITypeDescriptorContext.
2653          [Fixes bugs #396076 and #396078]
2654
2655          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
2656          Code contributed under MIT/X11 license.
2657
2658 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
2659
2660         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
2661         ButtonBase.cs:
2662         Add Category attributes.
2663         Code is contributed under the MIT/X11 license.
2664
2665 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
2666
2667         * Form.cs: 
2668          - Fix a NRE when unparenting a form.
2669          - Do not recreate or destroy a parented form when 
2670         unparenting. 
2671
2672 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2673
2674         * TextBox.cs: Implement basic support for AutComplete with custom
2675         sources.
2676
2677 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
2678
2679         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
2680         DropDownButtonBounds should be from the origin of the button, not the
2681         ToolStrip.  [Fixes bug #401279]
2682
2683 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
2684
2685         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
2686           running gtk_init_check.  This prevents GAIL from loading
2687           unnecessarily, which was breaking UIA support.  Initial fix for bug
2688           #375987.
2689         * Application.cs: Add UIA support to Winforms.  New static constructor
2690           uses reflection to initialize UIAutomationWinforms assembly.  Added
2691           PreRun event so UIA can initialize before the mainloop starts, and
2692           FormAdded event so UIA can provide a11y support for new Forms in an
2693           Application.
2694
2695 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
2696
2697         * DataGridView.cs: When binding to a dataset, subscribe to table
2698         and column change events.  Unsubscribe to these when we clear bindings.
2699         [Fixes bug #399601]
2700
2701 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
2702
2703         [DataGrid drawing refactory]
2704
2705         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
2706
2707         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
2708         must be handle by Theme, now it call DataGridPaintColumnHeader.
2709
2710         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
2711         test cases must be also fixed because it checks for wrong size.
2712
2713         * ThemeWin32Classic.cs: 
2714                 - Draw the bottom line of grid caption.
2715                 - Prevent to draw caption text when it is empty.
2716                 - Use CPDrawBorder3D for 3D efects to simplify code.
2717                 - Uses 3D (when not flat) to paint corner shared between row and column
2718                 header.
2719                 - Fix header drawing issues on win32, now borders are drawing.
2720                 - Fix column header paint issues to mimic win32.
2721                 - Adjust header drawing for last column, like first one it must be draw
2722                 different.
2723                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
2724                 not an character.
2725                 - DataGridPaintColumnHeader created to draw column headers, it also
2726                 paint stuff right on Win32.
2727                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
2728                 class.
2729
2730         * Theme.cs: 
2731                 - DataGridPaintRowHeaderStar method added.
2732                 - DataGridPaintColumnHeader method added.
2733
2734 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
2735
2736         * Control.cs: Don't reset to Dock style layout if DockStyle is
2737         set to none.  [Fixes bug #399316]
2738
2739 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
2740
2741         * Win32DnD.cs: Fix the check for control not equal null.
2742         Fixes bug #341420 and #381886. 
2743
2744 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
2745
2746         * DataGridViewRowCollection.cs: Update the indexes of rows after
2747         one has been removed.
2748         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
2749         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
2750         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
2751         rows for the Rows collection, or deleting rows from the bound DataSet.
2752
2753 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
2754
2755         * DataGridView.cs: Listen to a DataSet's changed event even
2756         when autogeneratecolumns is false.  Refactor the changed event's
2757         add row code to use the same as the existing add row code.
2758         [Fixes bug #399601]
2759
2760 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
2761
2762         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
2763         much any time the caret moves and there is text, not just when
2764         the selection changes as one would think.
2765         * RichTextBox.cs: Override RaiseSelectionChanged and fire
2766         SelectionChanged.
2767         [Fixes bug #397271]
2768
2769 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
2770
2771         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
2772         instead of trying to duplicate the code.
2773         * ListBox.cs: Make method internal so we can send keyboard events.
2774         [Fixes bug #398344]
2775         
2776 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
2777
2778         * TextBoxBase.cs: When pasting and checking the max length,
2779         subtract the selected text length (the text we will be replacing) from
2780         the document length.
2781         * TextControl.cs: Ensure every character insertion is reflected in
2782         charcount, so max length will work properly.
2783         [Fixes bug #398605]
2784
2785 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
2786
2787         * ListBox.cs: Ensure scrollbars are updated when a single
2788         column listbox with an already set top-index is created.
2789         [Fixes bug #398342]
2790
2791 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
2792
2793         * FontDialog.cs: Typing in the font/style textboxes should search
2794         the list boxes case-insensitively.  [Fixes bug #398343]
2795
2796 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
2797
2798         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
2799         widths of icon and buttons instead of hard coded values.
2800
2801 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2802
2803         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
2804         as well as generating a SelectedIndexChanged event, just like .Net does
2805         -surprise-.
2806         Fixes #398345.
2807
2808 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2809
2810         * ListBox.cs: When navigating items visually, use FocusedItem as the
2811         reference point instead of SelectedIndex, since even in
2812         SelectionMode.None we need to support navigation, and in that case we
2813         just can't use SelectedIndex.
2814         Fixes part of #398345.
2815
2816 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
2817
2818         * Control.cs: Make a SetBoundsInternal that avoids the new
2819         SetBounds code.
2820         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
2821         SetBoundsInternal instead of SetBoundsCoreInternal.
2822
2823 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
2824
2825         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
2826         SetBounds for the scrollbars.
2827
2828 2008-06-10  Andreia Gaita <avidigal@novell.com> 
2829
2830         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
2831           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
2832           OnMouseMove, OnMouseOver, OnMouseUp
2833         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
2834           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
2835         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
2836           to the WebControl object to pass to new collection objects
2837         * HtmlHistory.cs: Implement support for individual window histories.
2838         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
2839           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
2840           GotFocus, LostFocus, OnLoad, OnUnload
2841         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
2842           ContextMenu
2843         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
2844           security level changes and context menu event support.
2845
2846 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2847
2848         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
2849         as happens with Esc, patch my Andy Hume.
2850         Fixes #396294.
2851
2852 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
2853
2854         * MdiWindowManager.cs: DrawMaximizedButtons now uses
2855         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
2856         * Theme.cs: Made MenuButtonSize platform dependent. Added
2857         ManagedWindowButtonSize.
2858         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
2859         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
2860
2861 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
2862
2863         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
2864         Added support for rendering with VisualStyles.
2865
2866 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
2867
2868         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
2869         support for rendering the border with VisualStyles.
2870
2871 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
2872
2873         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
2874         the icon is not shown.
2875         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
2876         its own logic.
2877
2878 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
2879
2880         * InternalWindowManager.cs: Draw minimized windows even if they don't have
2881         borders.
2882
2883 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
2884
2885         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
2886
2887 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
2888
2889         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
2890         [Fixes bug #397943]
2891
2892 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2893
2894         * ComboBox.cs: When snaping height -because of IntegralHeight set to
2895         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
2896         if the requested height leaves the listbox area with *less* than the
2897         required are to see one item. We were setting it to PreferredHeight
2898         even for values matching the height for a single item.
2899         Fixes #396297.
2900
2901 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
2902
2903         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
2904
2905 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
2906
2907         * DataGridViewCell.cs: Use property instead of field.
2908
2909 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
2910
2911         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
2912         null checks.
2913
2914 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
2915
2916         * Theme.cs: Added #region around the managed window code. Made the managed
2917         window methods abstract.
2918         * ThemeWin32Classic.cs: Added #region around the managed window code.
2919
2920 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
2921
2922         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
2923         if it has borders.
2924         * ThemeWin32Classic.cs: Removed HasBorders checks in
2925         DrawManagedWindowDecorations.
2926
2927 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
2928
2929         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
2930         Extracted ManagedWindowGetTitleBarIconArea.
2931
2932 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
2933
2934         * DataGridViewCellStyle.cs: Don't clone the font.
2935
2936 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
2937
2938         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
2939
2940 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2941
2942         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
2943         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
2944         in 64 bit machines.
2945
2946 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
2947
2948         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
2949         Use Format/FormatProvider before trying converters.
2950         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
2951         are 'set'.  Change constructor to not use ApplyStyle since it wants
2952         everything applied.  Clone the Font.
2953         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
2954         ApplyStyle the rest.
2955
2956 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2957
2958         * ListView.cs: We need to calculate the scrollbars even if the handle
2959         hasn't been created - this is needed when methods using scrollbars
2960         info, such EnsureVisible, are called before control has been created.
2961         Fixes #397272.
2962
2963 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
2964
2965         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
2966         only if the elements are defined. 
2967
2968 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2969
2970         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
2971         section. Also, when setting bounds, snap height as well as save the
2972         requested height if Dock has any value affecting the height: Left,
2973         Right and Bottom - important if using IntegralHeight as true.
2974
2975 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2976
2977         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
2978         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
2979         instead of doing that only in our SetBoundsCore override, since the 
2980         bounds cached can be the same as saved one and we could not get the
2981         new height applied.
2982         Fixes #396297.
2983
2984 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
2985
2986         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
2987         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
2988         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
2989         ToolWindowCaptionButtonSize.
2990         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
2991
2992 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
2993
2994         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
2995         hard coded values.
2996         * Theme.cs: Made DoubleClickTime plaform dependent.
2997
2998 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
2999
3000         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
3001         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3002         ToolWindowCaptionHeight.
3003
3004 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3005
3006         * InternalWindowManager.cs: The adjustment to ensure positive client area
3007         sizes is now platform dependent (disabled on Windows).
3008         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3009         RequiresPositiveClientAreaSize.
3010
3011 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3012
3013         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
3014
3015 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
3016
3017         * InternalWindowManager.cs: Changed IconicSize to use
3018         SystemInformation.MinimizedWindowSize.
3019         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
3020         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
3021
3022 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3023
3024         * ComboBox.cs: If the combobox is anchored both on top and bottom,
3025         adjust height if IntegralHeight is true when calling SetBoundsCore (as
3026         likely the height was modified even if Height wasn't specified in
3027         BoundsSpecified parameter).
3028         Fixes part of #396297.
3029
3030 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
3031
3032         * InternalWindowsManager.cs: Changed minimum window size while resizing to
3033         SystemInformation.MinWindowTrackSize.
3034         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
3035         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
3036
3037 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
3038
3039         * MenuItem.cs: Fixed Dispose.
3040
3041 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
3042
3043         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
3044         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
3045         EnteredHeaderCell, PressedHeaderCell: Added.
3046         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
3047         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
3048         theme a chance to override default painting.
3049         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
3050         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
3051         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
3052         ListView and DataGridView header rendering.
3053         
3054 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
3055
3056         * RichTextBox.cs: GetPositionFromCharIndex should return the 
3057         visual position of the character relative to the viewport.
3058         [Fixes part of bug #396664]
3059
3060 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
3061
3062         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
3063         and not just for the existance of an UITypeEditor. In some cases 
3064         there is an editor associated just to do PaintValue, but which 
3065         doesn't actually support editing.
3066         [Fixes bug #396632]
3067
3068 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3069
3070         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
3071         if needed, instead of 0 - this should help us in the corner case where
3072         we have more than one item but we are only partially showing 1 item.
3073         Fixes part of #374713.
3074
3075 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3076
3077         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
3078         control, return immediately if the any parent control's handle hasn't
3079         been created or isn't visible, as well as avoiding creating the parent
3080         Form if the handle hasn't been previously created.
3081         Fixes tests.
3082
3083 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
3084
3085         * TableLayoutPanel.cs: Use border sizes when calculating the
3086         panel's preferred size.  [Fixes part of bug #396433]
3087
3088 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
3089
3090         * SplitContainer.cs:
3091          - Fix SplitterDistance to update only if needed. 
3092          - Make it force min and max validation.
3093          - Handle properly mouse moves outside the resizeable area.
3094          [Fixes bug #396232]
3095
3096 2008-06-02  Andreia Gaita <avidigal@novell.com> 
3097
3098         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
3099           (which also suppresses all popup dialogs). Throw NotSupported
3100           exceptions for activex getters/setters.
3101         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
3102           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
3103           StatusText, Version, GoSearch
3104         * HtmlDocument.cs: Add DocType support
3105
3106 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
3107
3108         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
3109         [Fixes bug 396124]
3110
3111 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
3112
3113         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
3114
3115 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
3116
3117         * TableLayoutPanel.cs: When calculating preferred size, use the
3118         actual number of columns and rows, not what the user set them to.
3119         [Fixes bug #396141]
3120
3121 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
3122
3123         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
3124         394311.
3125
3126 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3127
3128         * XplatUIX11.cs: When detecting areas obscured in a control by other
3129         toplevel windows while scrolling, return if the control hasn't a 
3130         container form.
3131         Fixes some tests.
3132
3133 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3134
3135         * XplatUIX11.cs: Properly detect the visible area of a control being
3136         scrolled (obscured by other winforms controls and any X toplevel
3137         windows), to mark as invalid the requested area to be scrolled that
3138         isn't visible and thus can't be copied.
3139         Fixes #324513.
3140
3141 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3142
3143         * ListBox.cs: Compute the precise amount to vertically scroll when
3144         using DrawMode.OwnerDrawVariable.
3145         Patch by jkeymer (j.keymer@gmx.net).
3146
3147 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3148
3149         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
3150         to avoid setting an invalid value for the verticall scrollbar 
3151         when navigating items. And, duh, also remove my silly debug messages
3152         from previous commits.
3153         Fixes #374713.
3154
3155 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
3156
3157         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
3158         make it MS compatible.
3159
3160 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
3161
3162         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
3163          - Allow the editing of entries even if their parent is read-only.
3164          - Do not render expandable properties read-only.
3165          - Refactor expansion checks form PropertyGrid into PropertyGrid.
3166
3167 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
3168
3169         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3170         support for the hover style.
3171
3172 2008-05-29  Andreia Gaita <avidigal@novell.com> 
3173
3174         * ContainerControl.cs: Check for null dead-end when traversing the tree
3175           of parent controls.
3176         
3177           [Fixes #394332, patch by Ernesto Carrea]
3178
3179 2008-05-29  Geoff Norton  <gnorton@novell.com>
3180
3181         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
3182         constant that it is.  Fixes #393981
3183
3184 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
3185
3186         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
3187         that the user probably doesn't want to set this.
3188
3189 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
3190
3191         * ThemeWin32Classic.cs: Don't let the text size be bigger than
3192         the control size for CheckBox/RadioBox.
3193         [Fixes part of bug #394645]
3194
3195 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
3196
3197         * PropertyGrid.cs: Update the state of the sorting buttons in 
3198         the toolbar if PropertySort is set programatically.
3199
3200 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
3201
3202         * GridItemCollection.cs: Add multiple items with conflicting names 
3203         support and also preserve name ordering.
3204         [Fixes #395345]
3205
3206 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
3207
3208         * GridItemCollection.cs: Revert my multiple items with same 
3209         name patch.
3210
3211 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3212
3213         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
3214         or middle ones.
3215         Fixes part of #393908.
3216
3217 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
3218
3219         * ToolStripDrowDown.cs: When using the Show () methods that have a
3220         Control parameter, set the menu owner to that Control.
3221         [Fixes bug #394345]
3222
3223 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
3224
3225         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
3226         [Fixes bug #362756]
3227
3228 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
3229
3230         * GridItemCollection.cs: Refactor to support multiple items with the 
3231         same name.
3232         [Fixes bug #394314]
3233
3234 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
3235
3236         * Control.cs: The 2.0 check for illegal cross thread calls in 
3237         Control.Handle were throwing an exception when we were getting
3238         the Handle in order to invoke correctly.  Created a private
3239         version that does not contain this check.
3240         [Fixes bug #394531]
3241
3242 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
3243
3244         * PropertyGrid.cs: Respect DefaultTabType.
3245
3246 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
3247
3248         * ListView.cs: SPACE selects an item.
3249         [Fixes bug #393023]
3250
3251 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
3252
3253         * ListView.cs: Reset the search string whenever the items are 
3254         modified.
3255         [Fixes bug #393020]
3256
3257 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3258
3259         * ListControl.cs: For the first added item PositionChanged is fired
3260         _before_ ItemChanged, which leave us in a temporary invalid state - so
3261         we need to set the selected index from ItemChanged handler *if* we
3262         know that the first item has just been added *and* the items have been
3263         actually added to the ListControl.
3264         Fixes #369048.
3265
3266 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3267
3268         * TabControl.cs: Only clicks with the left button should be
3269         handled.
3270         Fixes #393908.
3271
3272 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3273
3274         * ComboBox.cs: 
3275         * FIleDialog.cs:
3276         * TextBox.cs: Expose an internal method in TextBox to restore the
3277         original context menu, and call it from ComboBox to re-use it in the
3278         combobox containing the file name in FileDialog.cs.
3279         Fixes part of #393775.
3280
3281 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
3282
3283         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
3284         style.
3285
3286 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
3287
3288         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
3289         down button style.
3290
3291 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3292
3293         * ComboBox.cs: Minor correction to previous patch: PageDown should
3294         also *try* to move by one item if the computed offset is negative,
3295         just like the PageUp case.
3296
3297 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3298
3299         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
3300         should be done for at least 1 item, and not stay at the same item.
3301         Fixes part of #374713.
3302
3303 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
3304
3305         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
3306         directories.  [Fixes bug #393931]
3307
3308 2008-05-22  Andreia Gaita <avidigal@novell.com> 
3309
3310         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
3311           Don't fire events until the initial about:blank page has finished
3312           loading. Clean up events.
3313
3314 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
3315
3316         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
3317           FocusIn() too. This should fix the issue on switching
3318           scim keyboards.
3319
3320 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
3321
3322         * X11Keyboard.cs : set XIM font size to somewhat reasonable
3323           number (ideally the input textbox size, but that could be
3324           too messy).
3325
3326 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
3327
3328         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
3329         the ToolStripItem's TextChanged.  [Fixes bug #393597]
3330
3331 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3332
3333         * TabControl.cs: When invalidating in SelectedIndex and we need to
3334         inflate to take into account the border of the tabs, make sure that
3335         the invalidated rect doesn't overflow the control bounds, since that
3336         would avoid updating at all.
3337
3338 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3339
3340         * TabControl.cs: Don't substract scroller width from the row width,
3341         since we need to take into account the total width of the control when
3342         calculating the position of the tabs. This avoids showing scroller
3343         when it is actually not needed.
3344         Fixes part of #322325.
3345
3346 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3347
3348         * ThemeVisualStyles.cs: Added support for TextBoxBase.
3349
3350 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3351
3352         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3353         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
3354
3355 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
3356
3357         * DataGridView.cs: Only paint the top left header cell if there
3358         are columns.
3359
3360 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
3361
3362         * DataGridView.cs: When binding to a BindingSource, get the underlying
3363         list to bind to.  [Fixes bug #345483]
3364
3365 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
3366
3367         * DataGridView.cs: Do not bind to collection properties.
3368         [Fixes bug #337470]
3369
3370 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3371
3372         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
3373
3374 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3375
3376         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
3377         thumb style.
3378
3379 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3380
3381         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
3382
3383 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3384
3385         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
3386         background.
3387
3388 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3389
3390         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
3391
3392 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3393
3394         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
3395         checked styles.
3396
3397 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3398
3399         * TabControl.cs: Extended to handle the hot style.
3400
3401 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3402
3403         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
3404         Extended UpDownBase code to handle hot and disabled styles.
3405
3406 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
3407
3408         * DataGridView.cs: Handle databinding to generic list type things.
3409         [Fixes bug #325239]
3410
3411 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
3412
3413         * DataGridViewCellCollection.cs: Add a method to find the cell
3414         with the given DataPropertyName.
3415         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
3416         * DataGridViewColumnCollection.cs: Add a method to clear all
3417         autogenerated columns.
3418         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
3419         columns.
3420         [Fixes bug #348082]
3421
3422 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
3423
3424         * DataGridView.cs: Don't try to update the RowTemplate with
3425         a null CellTemplate.
3426
3427 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
3428
3429         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
3430         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
3431         * DataGridView.cs: Lots of fixes/enhancements to databinding to
3432         a DataSet.
3433
3434 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
3435
3436         * Control.cs: Remove invalidating implicit child controls when
3437         control is invalidated.  It was causing too many redraws on
3438         controls with implicit scrollbars.
3439         * ListView.cs: Listen to the Invalidated event and invalidate
3440         child controls.
3441
3442 2008-05-20  Andreia Gaita <avidigal@novell.com> 
3443
3444         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
3445         * HtmlDocument.cs: Check for nulls
3446
3447 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3448
3449         * Control.cs: In ControlCollection.RemoveInternal, remove the
3450         internal control before calling PerformLayout and OnControlRemoved,
3451         which was leaving us in an invalid state and causing a X error (bad
3452         match). Observe that Remove () call has the same order.
3453         Fixes an X error changing ComboBoxStyle.DropDownStyle.
3454
3455 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3456
3457         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
3458         being fired if ControlStyles.UserPaint style is activated.
3459         Fixes #371905.
3460
3461 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
3462
3463         * GridEntry.cs: Don't be so strict when setting the value - 
3464         do not check if what we set is what we get.
3465         [Fixes bug #389245]
3466
3467 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
3468
3469         * XplatUIX11.cs: If there are no timers timeout should be 0
3470         [Fixes bug #363522]
3471
3472 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
3473
3474         * Control.cs: As a followup to invalidating implicit children when
3475         a control is invalidated, only invalidate them if they are in the
3476         clip rectangle.
3477
3478 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3479
3480         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
3481
3482 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3483
3484         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
3485
3486 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3487
3488         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
3489         * XplatUIWin32.cs: Made Win32DeleteObject public.
3490
3491 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
3492
3493         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
3494         PropertyDescriptor.ShouldSerializeValue.
3495         [Fixes bug #391924]
3496
3497 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3498
3499         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
3500         in the classic theme.
3501
3502 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3503
3504         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
3505         ThumbPressed.
3506         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
3507         ScrollBarHasPressedThumbStyle.
3508
3509 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3510
3511         * TextRenderer.cs: Included some methods in the 1.1 profile.
3512
3513 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
3514
3515         * Control.cs: When we make a control visible, it may have been
3516         previously visible and while it wasn't visible, the z-order of
3517         things may have been shuffled, so the control needs to have its
3518         z-order updated just in case.  [Fixes bug #391518]
3519
3520 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3521
3522         * ThemeVisualStyles.cs: Added support for GroupBox.
3523
3524 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3525
3526         * GroupBoxRenderer.cs: Included in the 1.1 profile.
3527
3528 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
3529
3530         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
3531           bug #389996; XSelectInput() behaved as mouse handler robber,
3532           so remove extra call to it.
3533
3534 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
3535
3536         * Control.cs: Simplify ControlCollection.Contains method.
3537
3538 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
3539
3540         * DataGridViewRow.cs: Implement GetPreferredSize.
3541
3542 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
3543
3544         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
3545
3546 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
3547
3548         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
3549         painting and edit control fixes.
3550
3551 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
3552
3553         * DataGridView.cs, DataGridViewCell.cs: Work around some external
3554         checks to make sure we are in an actual row/col for top left header cell.
3555         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
3556
3557 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
3558
3559         * Control.cs: Use long instead of int when handling WParam from
3560         mousewheel scrolling.  Int was overflowing on Win64.
3561
3562 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
3563
3564         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
3565         flow panel without scrolling first, and then calculate the 
3566         scrolling based on the new layout.  [Fixes bug #390149]
3567
3568 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
3569
3570         * ListBox.cs: Invalidate after scrolling up when selected index
3571         changes.  [Fixes bug #390151]
3572
3573 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3574
3575         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
3576         set, default height to 150. I tried first with DefaultSize, but this
3577         is not generating a SetBoundsCore call before handle creation time, so
3578         we can take it into account. This is just what .net does.
3579
3580 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
3581
3582         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
3583         as it broke some stuff.  Calberto is filing a bug for eno to
3584         work with.
3585
3586 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3587
3588         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
3589         to 0 is the current value is -1, and if style is not Simple, just
3590         return, like .net does.
3591         Fixes part of #374713.
3592
3593 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
3594
3595         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
3596         progress bar stuffs, use doubles instead of ints to prevent
3597         overflow.  [Fixes bug #389798]
3598
3599 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
3600
3601         * XplatUIX11.cs, X11Keyboard.cs :
3602           Significant refactoring on XIM support. Now IM engine UI
3603           should show up, at mostly-correct preedit position.
3604           - Eliminated use of FocusWindow, as it is never mapped
3605             and hence blocks correct preedit position. XIC is now
3606             created per window, and it must be destroyed too when
3607             the window is destroyed.
3608           - WM_QUIT messages should not be filtered even when hwnd
3609             is zombie. Filtering it could cause endless loop.
3610           - Preedit position must move only when the window is alive.
3611           - Make it IDisposable and make sure to release XIM/XICs.
3612
3613 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
3614
3615         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
3616           XplatUIX11.cs, XplatUIWin32.cs :
3617           fix for bug #325033 and #387693;
3618           - WM_QUIT should not be sent when no running application
3619             exists.
3620           - SetTimer/KillTimer (especially on win32) should be
3621             invoked for the window that the timer is/will_be attached.
3622           - There could be unattached timers to a window when it's
3623             started. For those timers, hold pending timers and when
3624             a window is mapped, attach them to it.
3625           - WaitForHwndMessage() could run into loop when
3626             WM_SHOWWINDOW is handled before this method is called.
3627             So, strictly check wm_showwindow state.
3628           - Tick handler should not be invoked while one Tick handler
3629             call is still running (introduced Busy state).
3630
3631 2008-05-13  Andreia Gaita <avidigal@novell.com> 
3632
3633         * WebBrowserBase.cs: Override Internal alternative methods for
3634           SetBoundsCore and OnResize instead of the protected ones.
3635         * Control.cs: Move SetBoundsCore and OnResize implementations to
3636           SetBoundsCoreInternal and OnResizeInternal, so they can be
3637           overriden internally (WebBrowserBase needs to catch them but can't
3638           override the protected methods without api compat problems)
3639
3640 2008-05-13  Andreia Gaita <avidigal@novell.com> 
3641
3642         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
3643
3644 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3645
3646         * Binding.cs:
3647         * ListView.cs: Remove debug messages.
3648
3649 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3650
3651         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
3652         area is empty. Also calculate scrollbars in Simple mode based in area
3653         height and total number of items, not in MaxDropDownItems.
3654         Fixes part of #371991.
3655
3656 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3657
3658         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
3659
3660 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3661
3662         * BindingSource.cs: GetListSortDescription is not public.
3663
3664 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3665
3666         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
3667
3668 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3669
3670         * HtmlElement.cs: Fix parameter names to match MS.
3671         * HtmlWindowCollection.cs: Should not be sealed.
3672
3673 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3674
3675         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
3676         button, because the thumb button will not get drawn if the scrollbar
3677         is disabled.  [Fixes bug #389262]
3678
3679 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3680
3681         * ListBox.cs: Handle End key for multi-column listboxen.
3682         [Fixes bug #389266]
3683
3684 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3685
3686         * ListBox.cs: Fix algorithm to determine which column our item is in.
3687         [Fixes bug #389265]
3688
3689 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3690
3691         * ListBox.cs: Invalidate when the listbox is resized.
3692         [Fixes bug #389256]
3693
3694 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3695
3696         * ListBox.cs: There is always at least one row in the ListBox (if
3697         we are doing these calculations.)  [Fixes bug #389253]
3698
3699 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3700
3701         * ListBox.cs: There is always at least one column in the ListBox.
3702         [Fixes bug #389250]
3703
3704 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3705
3706         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
3707         ensure in Simple mode that the height is exactly the requested one.
3708         Also add the ComboBoxListControl to the controls collection in Simple
3709         mode even if handle hasn't been created.
3710         Fixes part of #371991.
3711
3712 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3713
3714         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
3715         our ComboBox owner instead of giving it back to the previous control (
3716         as done in other controls). Also remove the empty override of Select
3717         method, since we want to be selected *and* give focus to our owner.
3718         This should let the user do keys-navigation in Simple mode. 
3719
3720 2008-05-10  Geoff Norton  <gnorton@novell.com>
3721
3722         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
3723         problems with rapid scrolling of treeviews. Fixes #381084
3724
3725 2008-05-10  Geoff Norton  <gnorton@novell.com>
3726
3727         * XplatUICarbon.cs: Deactivate the active window before
3728         activating the desired window.  Completes fixing #386504
3729
3730 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3731
3732         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
3733         SmallChange to the item size width plus the padding, to match .net.
3734
3735 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3736
3737         * FileDialog.cs: Apply the custom filter typed by the user in the file
3738         name combobox as much as possible while navigating in the file dialog.
3739         Fixes #385261.
3740
3741 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3742
3743         * Binding.cs: Actually use NullValue if the retrieved value of
3744         data source is null or DBNull. Makes a test pass.
3745
3746 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
3747
3748         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
3749         * MimeIcon.cs: Provide a way to get icons from resources.
3750
3751 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3752
3753         * Binding.cs: When the value retrieved from the control to be assigned
3754         to the data source is null, actually use the 2.0 DataSourceNullValue
3755         value. Make pass a data binding test.
3756
3757 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
3758
3759         * Control.cs: We need to invalidate implicit children even when
3760         invalidate is called with invalidatechildren = false.  (Implicit
3761         children are really part of the parent.)
3762         * ListView.cs: Double-buffer internal child controls for less
3763         flicker.
3764         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
3765         owner ListView subitems for greatly increased performance.
3766         [Fixes bug #388477]
3767
3768 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
3769
3770         * FileDialog.cs: When the user types a wildcard character in the
3771         filename combobox, update the contents of the folder using the text as
3772         a filter.
3773         Fixes part of #385261.
3774
3775 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
3776
3777         * ListBox.cs: Various fixes for MultiColumn listboxen.
3778         [Fixes bug #388114]
3779
3780 2008-05-08  Andreia Gaita <avidigal@novell.com> 
3781
3782         * HtmlElement.cs: Implement Style property
3783
3784 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
3785
3786         * ListBox.cs: Respect checkboxes when measuring item size.
3787         * ThemeWin32Classis.cs: When drawing list items, don't draw
3788         text outside of the item's bounds to prevent overlapping.
3789         (.Net actually overlaps, but that's just silly.)
3790         [Fixes bug #388117]
3791
3792 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
3793
3794         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
3795         Gert Driesen. Fixes bug #324830. 
3796
3797 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
3798
3799         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
3800         method implemented.
3801
3802 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3803
3804         * BindingSource.cs: When calling IsSynchronized, return the value of
3805         the related IList list.
3806
3807 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3808
3809         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
3810         make a test pass.
3811
3812 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
3813
3814         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
3815         navigation to scroll the grid if the current cell is not visible.
3816
3817 2008-05-07  Andreia Gaita <avidigal@novell.com> 
3818
3819         * HtmlElement.cs: Implement TabIndex
3820
3821 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
3822
3823         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
3824         properties, even when there are no items.
3825         [Fixes bug #387611]
3826
3827 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
3828
3829         * NativeWindow.cs: Add support for multiple handles per window.
3830         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
3831         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
3832         directly - use FromHandle instead.
3833         [Fixes bug #374660]
3834
3835 2008-05-07  Andreia Gaita <avidigal@novell.com> 
3836
3837         * HtmlElement.cs: Implement InnerHTML setter
3838
3839 2008-05-07  Andreia Gaita <avidigal@novell.com> 
3840
3841         * HtmlDocument.cs: Implement Focused
3842
3843 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3844
3845         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
3846         methods, as well as add messages to the exceptions.
3847
3848 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3849
3850         * BindingSource.cs: Setting DataSource should only reset DataMember if
3851         the previous value was null (make pass a not working test).
3852
3853 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3854
3855         * BindingSource.cs: When EndInit call is postponed and is called until
3856         DataSource.EndInit is called, remove the handler for data source.
3857
3858 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
3859
3860         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
3861
3862 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
3863
3864         * ToolStripManager.cs: Store references to toolstrips as
3865         weak references so they do not prevent forms from getting collected.
3866         [Fixes bug #386483]
3867
3868 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
3869
3870         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
3871         on .Net.  So do the same thing in WndProc.
3872
3873 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
3874
3875         * TrackBar.cs: Commit patch from Andy Hume that corrects
3876         the clickable areas to better match .Net.
3877         [Fixes bug #387074]
3878
3879 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
3880
3881         * TrackBar.cs: Commit patch from Andy Hume that adds the
3882         ResizeRedraw control flag so the track bar repaints itself
3883         when it is resized.  [Fixes bug #387072]
3884
3885 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
3886
3887         * TrackBar.cs: Commit patch from Andy Hume that adds better
3888         support for keyboard navigation when the TrackBar is vertical.
3889         [Fixes bug #387071]
3890
3891 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3892
3893         * BindingSource.cs: Implement ISupportInitializeNotification support.
3894
3895 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
3896
3897         * ThemeVisualStyles.cs: Added support for ToolBar.
3898
3899 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
3900
3901         * ToolBar.cs: Made the Vertical property internal.
3902
3903 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
3904
3905         * ThemeVisualStyles.cs: Added support for TrackBar.
3906
3907 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
3908
3909         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
3910         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
3911         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
3912         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
3913         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
3914         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
3915
3916 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
3917
3918         * ThemeVisualStyles.cs: Added support for UpDownBase.
3919
3920 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
3921
3922         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
3923         Extracted Theme.UpDownBaseDrawButton.
3924
3925 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
3926
3927         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
3928         removed from the static toolstrips collection in ToolStripManager
3929         when they are disposed.  Provides a workaround for bug #386483.
3930
3931 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
3932
3933         * GridEntry.cs: Read-only properties with Editor with 
3934         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
3935         [Fixes bug #384184]
3936
3937 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
3938
3939         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
3940         the menu key and there are no items on the menu.
3941         [Fixes bug #386644]
3942
3943 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
3944
3945         * Control.cs: Avoid calling ToString on a string.
3946         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
3947         * GroupBox.cs: In FlatStyle property throw, not just create, the 
3948         exception. Avoid calling ToString on a string.
3949         * ProgressBar.cs: Avoid calling ToString on a string. 
3950         * ScrollBar.cs: Avoid calling ToString on a string. 
3951         [All issues were found using Gendarme]
3952
3953 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
3954
3955         * NotifyIcon.cs: Prevent click events to be trigger after double click 
3956         events. Fixes remaining issues of bug #324832.
3957
3958 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
3959
3960         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
3961         to mimic win32 behavior. Partially fixes bug #324832.
3962
3963 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3964
3965         * BindingSource.cs: Implement Find methods.
3966
3967 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3968
3969         * BindingSource.cs: Implement Sort, ApplySort overloads, and
3970         RemoveSort methods.
3971
3972 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3973
3974         * ListBindingHelper.cs: When calling GetListItemProperties and the
3975         passed object is ITypedList, return the result of
3976         ITypedList.GetItemProperties instead.
3977
3978 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
3979
3980         * LinkLabel.cs: Set default value of name on constructor of Link class
3981         only for 2.0 profile.
3982
3983 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
3984
3985         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
3986         Fixes remaining issues of bug #346154.
3987
3988 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
3989
3990         * LinkLabel.cs: Set a default value for name on internal contructor of
3991         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
3992
3993 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
3994
3995         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
3996         and refer all instances to owner.links. Partially fixes #346154.
3997
3998 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
3999
4000         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
4001         length equal zero. Also called CreateLinkPieces in constructor. It fixes
4002         the LinkLabel test 'TestLinkArea'.
4003
4004 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4005
4006         * Form.cs: Remove menu before close form to prevent form to be not gaced.
4007         [Fixes #386460]
4008
4009 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4010
4011         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
4012         [Fixes #386463]
4013
4014 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4015
4016         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
4017         [Fixed bug #357004]
4018
4019 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4020
4021         * MenuAPI.cs: Remove unused ProcessCmdKey method.
4022
4023 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4024
4025         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
4026         [Fixes bug #375398]
4027
4028 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4029
4030         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
4031         of bug #367492.
4032
4033 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
4034
4035         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
4036         sometimes we open a conext menu on mouse down of some controls and the mouse
4037         up is dispatched to menu and dont need to. It fix remaining issues of 
4038         #363711 and other problems related to menu mouse click events.
4039
4040 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
4041
4042         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
4043         some var names to better fit changes, now we have month_menu and today_menu
4044         vars. Fixes bug #363711.
4045
4046 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
4047
4048         * MonthCalendar.cs: Handle every right mouse click to open context menu,
4049         right now the default month menu but it will be change to have "Go to today"
4050         menu.
4051
4052 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4053
4054         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
4055
4056 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
4057
4058         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
4059
4060 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4061
4062         * ThemeVisualStyles.cs: Added support for TreeView.
4063
4064 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4065
4066         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
4067         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
4068
4069 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4070
4071         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
4072
4073 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4074
4075         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
4076         Implement 2.0 SP1 stuffs.
4077
4078 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4079
4080         * FileDialog.cs: Implement 2.0 SP1 stuffs.
4081
4082 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4083
4084         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
4085         Implement CanEnableIme property. (2.0 SP1)
4086
4087 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4088
4089         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
4090         from the 2.0 API.
4091
4092 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4093
4094         * Control.cs: Provide an internal way for a control to override
4095         the setting of Height.
4096         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
4097         set height using new method.
4098
4099 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4100
4101         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
4102
4103 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4104
4105         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4106         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
4107
4108 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4109
4110         * ThemeVisualStyles.cs: Added support for StatusBar.
4111
4112 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4113
4114         * DataObject.cs: Add the other IDataObject interface.
4115
4116 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
4117
4118         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
4119         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
4120
4121 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4122
4123         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
4124         * ListView.cs: Hide non-public API.
4125         * MaskedTextBox.cs: Remove extra attribute.
4126
4127 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
4128
4129         * DataGridViewImageCell.cs: Use formatted value instead of value
4130         to calculate preferred size.
4131
4132 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
4133
4134         * ListBox.cs: Move some initialization around so that selected_indices
4135         is not accessed before it is created.
4136
4137 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
4138
4139         * InputLanguageCollection.cs: Implement the collection better.
4140         [Fixes bug #385506]
4141
4142 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
4143
4144         * ToolStripDropDownItem.cs: Get the correct event object for
4145         DropDownItemClicked.
4146         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
4147         [Fixes bug #385475]
4148
4149 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
4150
4151         * DataGridViewRowCollection.cs: We don't currently support shared 
4152         rows.  Should fix test failures caused by previous commit.
4153
4154 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
4155
4156         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
4157         datagridview gets set.  Only paint cells in visible columns.
4158         * DataGridViewCell.cs: Draw border after cell content.
4159         * DataGridView.cs: Invalidate after setting some properties.  Only
4160         use visible columns.  Fit hit test bug with areas in the col/row header
4161         area but not in a row or col.  Implement UpdateCell/Row methods.
4162
4163 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
4164
4165         * DataGridViewElement.cs: Don't throw NIEX.
4166         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
4167         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
4168         * DataGridViewCheckBoxColumn.cs: Implement ToString.
4169         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
4170         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
4171         if the user filled in the formatting Value, use it.
4172
4173 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
4174
4175         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
4176         to a string.
4177
4178 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4179
4180         * BindingSource.cs: Some corrections to Filter property, as well as
4181         setting it for our list when resetting it.
4182
4183 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
4184
4185         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
4186         than the maximum.  Fixes reopened bug #384182.
4187
4188 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4189
4190         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
4191         Fixes remaining issues of #367490.
4192
4193 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4194
4195         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
4196         SystemInformation.WorkingArea to get max_screen value.
4197
4198 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4199
4200         * BindingSource.cs: Implement Filter and RemoveFilter.
4201
4202 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4203
4204         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
4205
4206 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4207
4208         * X11Dnd.cs: When trying to convert data and we know we started the
4209         dnd loop, don't try to use the cached data if the loop is not running,
4210         which means that the data has been resetted.
4211         Fixes #378191.
4212
4213 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4214
4215         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
4216         win32 behavior.
4217
4218 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4219
4220         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
4221         it to drawn off screen edge. Fixes bug #367490.
4222
4223 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4224
4225         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
4226         menu position to have only one assignment of Location var.
4227
4228 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
4229
4230         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
4231         for this patch. Fixes bug #384115.
4232
4233 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
4234
4235         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
4236         the same.  If LargeChange is zero, set a minimum size for the scroll
4237         thumb grip.  [Fixes bug #384182]
4238
4239 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
4240
4241         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
4242         [Fixes bug #384181]
4243
4244 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
4245
4246         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
4247
4248 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
4249
4250         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
4251         patch from Ernesto).
4252
4253 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
4254
4255         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
4256
4257 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
4258
4259         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
4260
4261 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
4262
4263         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
4264
4265 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
4266
4267         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
4268
4269 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
4270
4271         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
4272
4273 2008-04-27  Andreia Gaita <avidigal@novell.com> 
4274
4275         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
4276           supposed to return a reference to an mshtml interface, which we
4277           don't support).
4278         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
4279           reference to an mshtml interface, which we don't support). Code
4280           formatting cleanup.
4281         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
4282           DomDocument getter (it's supposed to return a reference to an
4283           mshtml interface, which we don't support). Code formatting cleanup.
4284
4285 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4286
4287         * ListView.cs: Ouch, forgot to commit.
4288
4289 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4290
4291         * ListView.cs: 
4292         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
4293
4294 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4295
4296         * ListView.cs: When calculating box selection for virtual mode, don't
4297         look for intersection with item's text, but item bounds, since that
4298         would mean read ListViewItem's text for _every_ item, and that's
4299         something we just can't do in virtual mode (items are only requested
4300         when drawn).
4301
4302 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
4303
4304         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
4305         partial support for managed windows (based on the patch from Ernesto).
4306
4307 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4308
4309         * ListView.cs: When doing a key search use FindItemWithText method
4310         instead of doing the search by ourselves, this way we avoid
4311         duplicating the code and also we handle the special case for virtual
4312         mode. To achieve that make our private overload of FindItemWithText
4313         internal and also have a 'roundtrip' parameter.
4314
4315 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4316
4317         * ListView.cs: When doing the layout don't request the
4318         ListViewItem instance if we are in virtual mode (since we can't request it
4319         until the item is actully drawn).
4320
4321 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4322
4323         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
4324         from Ernesto).
4325
4326 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4327
4328         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
4329         the patch from Ernesto).
4330
4331 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4332
4333         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
4334         * ThemeVisualStyles.cs: Added.
4335
4336 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4337
4338         * IDeviceContext.cs: Added a missing using.
4339
4340 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4341
4342         * ButtonBase.cs: Made IsDefault protected internal.
4343         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
4344
4345 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4346
4347         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
4348         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
4349         RadioButtonRenderer.cs: Included in the 1.1 profile.
4350         * IDeviceContext.cs: Added.
4351         * TextRenderer.cs: Included a member in the 1.1 profile.
4352
4353 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4354
4355         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
4356
4357 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
4358
4359         * ErrorProvider.cs: Make the error icons come after the control
4360         they refer to.  It isn't the way the MS does it, but its better
4361         than what we were doing.  See bug #368587.
4362
4363 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
4364
4365         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
4366         from Eric Albright that lazy loads the input language as ensures
4367         everything gets properly initialized.  Fixes bug #373871.
4368
4369 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
4370
4371         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
4372         implicit mnemonics.  [Fixes bug #383000]
4373
4374 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4375
4376         * X11Dnd.cs: When canceling the operation, automatically restore the
4377         default cursor - normally the default cursor is restored when the
4378         mouse buttons are released, but we should be able to restore it even
4379         if the buttons are still pressed (for example, when pressing ESC to
4380         cancel).
4381         Fixes #381894.
4382
4383 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4384
4385         * X11Dnd.cs: When starting a new drad and drop operation, set control
4386         field to null, just as the other fields, to avoid calling any
4387         operation on a previous control. Also, when calling DndLeave on a
4388         control, set it to null, thus we don't fire that event multiple times
4389         for that control.
4390         Fixes #209264.
4391
4392 2008-04-23  Geoff Norton  <gnorton@novell.com>
4393
4394         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
4395         the whole_window object.  Fixes #377084.
4396
4397 2008-04-23  Andreia Gaita <avidigal@novell.com> 
4398
4399         * HtmlElement.cs: Implement RaiseEvent (event injection into the
4400           embedded browser)
4401
4402 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
4403
4404         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
4405
4406 2008-04-23  Andreia Gaita <avidigal@novell.com> 
4407
4408         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
4409           invocation
4410
4411 2008-04-23  Andreia Gaita <avidigal@novell.com> 
4412
4413         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
4414           attaching/detaching
4415
4416 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4417
4418         * X11Dnd.cs: When the drop was cancelled, or could just not be
4419         performed, return DragDropEffect.None always (match .net).
4420
4421 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
4422
4423         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
4424
4425 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
4426
4427         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
4428
4429 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
4430
4431         * DataGridView.cs: Add support for error icon tool tips.
4432         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
4433         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
4434
4435 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
4436
4437         * X11Structs.cs: Add mouse button masks enum.
4438         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
4439         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
4440         form resize/move operation instead of for each step of it.
4441         [Fixes bug #346529 for the x11 backend]
4442
4443 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
4444
4445         * DataGridView*: Implement support for drawing error icons.
4446
4447 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
4448
4449         * TreeView.cs: Make vbar and hbar internal.
4450         * TreeNode.cs: If collapsing the node removes one of the TreeView's
4451         scrollbars, invalidate the whole thing.
4452         [Fixes bug #382001]
4453
4454 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
4455
4456         * TreeView.cs: Calling Sort() sets Sorted = true.
4457         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
4458         if the nodes need to be sorted.
4459         [Fixes bug #382028]
4460
4461 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
4462
4463         * Form.cs: Fire SizeChanged for both when the form is minimized and 
4464         restored.
4465         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
4466         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
4467
4468 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
4469
4470         * ComboBox.cs: If the combobox is disabled, draw a disabled
4471         background before painting anything else.
4472         [Fixes bug #381729]
4473
4474 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4475
4476         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
4477         forget to send a Leave event to the target window - just as .net does
4478         when cancelling dnd operations.
4479
4480 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4481
4482         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
4483         soon as possible - this happens when we send the drop message to the
4484         target window. This way we avoid firing any DragOver _after_ drop finished.
4485         Fixes #378179.
4486
4487 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
4488
4489         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
4490         * Form.cs: Handle form minimization as a special state, where size doesn't 
4491         change, but we have to fire SizeChanged.
4492         [Fixes bug #325122 for the win32 and x11 backends]
4493
4494 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
4495
4496         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
4497         if the handle is disabled.
4498         [Fixes bug #371751]
4499
4500 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
4501
4502         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
4503         for forms with FormBorderStyle.None.
4504         [Fixes bug #349571]
4505
4506 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
4507
4508         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
4509         WM_EXITSIZEMOVE.
4510         [Fixes bug #346529 for the X11 backend]
4511
4512 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
4513
4514         * XplatUIX11.cs: 
4515           - Send a mouse Enter message after say dragging the mouse with a 
4516           button down and then release it in another client.
4517           - Reset the cursor to prevent X11 from remembering it and setting it 
4518           before the control gets WM_SETCURSOR.
4519           - Qeueue a mouse move after a mouse enter like win32.
4520           [Fixes bug #323234]
4521
4522 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
4523
4524         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
4525         It's sent when the form gets moved, resized, closed.
4526         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
4527         [Fixes bug #359193 for X11]
4528
4529 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
4530
4531         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
4532         the build.
4533
4534 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
4535
4536         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
4537         group. Fixes the 1.1 build.
4538
4539 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4540
4541         * ListView.cs: Use display indexes for selection in Details view, as
4542         well as do the proper layout based on display indexes for that view
4543         too.
4544
4545 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4546
4547         * ListView.cs: Focused item information is now stored as a display
4548         index, and display indexes are used all over the place for selection,
4549         instead of ListViewItem.Index values, which doesn't give us enough
4550         information to modify the selection in groups mode, and was broken.
4551
4552 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
4553
4554         * Control.cs: Do not fire MouseDown if validation of the control has 
4555         failed.
4556         * Form.cs: Validate the form before closing.
4557         [Fixes bugs #330501 and #353310]
4558
4559 2008-04-18  Andreia Gaita <avidigal@novell.com> 
4560
4561         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
4562           CreateWebBrowserSiteBase implementations
4563         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
4564           Style and TabIndex setters
4565
4566 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4567
4568         * ListViewGroup.cs: When returning the actual item count, return the
4569         proper count for default group.
4570         Fix the tests.
4571
4572 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4573
4574         * ListView.cs:
4575         * ListViewGroup.cs: When calculating groups layout, get the actual
4576         number of items per group, since groups added to the group BUT not
4577         added to the ListView are just ignored, and can cause some nasty
4578         exceptions because of the lack of synchronization. Also for
4579         ListViewGroup don't use lazy initialization for items, since we 
4580         the common scenario is to use it always - and it helps us to  refactor
4581         and clean the .ctor overloads.
4582
4583 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4584
4585         * ListView.cs: When adding an item to a ListViewItemCollection
4586         belonging to a group (ListViewGroup.Items), don't generate a redraw if
4587         the added item hasn't beeen previously added to the ListView instance
4588         refered by the group, since it will be ignored. This should avoid some 
4589         really nasty flickering.
4590
4591 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4592
4593         * ListView.cs: When accessing an item in a specific display
4594         position, use the helper method GetItemAtDisplayIndex, instead of
4595         direct access to the reordered_items_indices array. When doing layout
4596         for groups set the correct Items index for the display position (since
4597         in groups mode items don't have the same position as in Items
4598         collection).
4599         * ListViewGroup.cs: Add a field to store the starting item number,
4600         which is later used when calculating the layout.
4601
4602         Fixes #360805.
4603
4604 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
4605
4606         * Application.cs: Fixed ProductVersion to fallback to the assembly
4607         version. Fixes regression for bug #325413.
4608
4609 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4610
4611         * ListView.cs: New helper method to retrieve an item in a _specific
4612         display_ position (the items can be displayed in a different order
4613         than one of Items collection).
4614         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
4615         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
4616         specific display position (again remember that items can be sorted
4617         different than Items).
4618
4619 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
4620
4621         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
4622         list and update it when the collection changes.  We were recreating
4623         this several times per row paint and for every pixel the mouse moved
4624         across the grid.
4625         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
4626         changes.
4627
4628 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
4629
4630         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
4631         list to use generics.
4632         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
4633         and remove unneccessay casts.
4634
4635 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
4636
4637         * DataGridViewBand.cs: Add internal way to set displayed variable.
4638         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
4639         * DataGridView.cs: Make sure we always keep track of Displayed
4640         rows and columns, and only draw things that are displayed.
4641
4642 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
4643
4644         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
4645           whether the key events are filtered or not. Introduced
4646           PreFilter() process for this purpose. This fixes atokx3/iiimx
4647           shift state issue.
4648
4649 2008-04-16  Andreia Gaita <avidigal@novell.com> 
4650
4651         * HtmlHistory.cs: Implement Length property
4652
4653 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
4654
4655         * DataGridView.cs: Call EndEdit when a sort is performed so we take
4656         away the edit textbox.  Refactor to reuse column sort code.
4657
4658 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
4659
4660         * MenuAPI.cs: Remove the code that save and restore capture status of 
4661         grab_control, this fixes some Menu and Context menu bugs but maybe it can
4662         cause some others, I cant figure the possible problems of this patch but
4663         right now remove the code looks to be better than keep it. This patch fixes
4664         bugs #357638, #378721 and #379570.
4665
4666 2008-04-12  Andreia Gaita <avidigal@novell.com> 
4667
4668         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
4669         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
4670         add missing properties and event handlers.
4671         
4672 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
4673
4674         * ListBox.cs: Make sure the LargeChange we are setting is at least
4675         zero, to prevent an IOORE.  [Fixes bug #379531]
4676
4677 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
4678
4679         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
4680         in DropDownList mode, for each key-press select the next item 
4681         starting with that letter.
4682         For other modes, when no item selected, on arrow-up/-down and open 
4683         drop-down select the first item matching the text in the textbox.
4684
4685 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
4686
4687         * X11Keyboard.cs : Control.FromHandle() could return null
4688           in MoveCurrentCaretPos().
4689
4690 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4691
4692         * ListView.cs: When changing the size in VirtualMode, also Reset the
4693         selection.
4694         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
4695         changing selection info for VirtualMode.
4696         Fixes #372618.
4697
4698 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4699
4700         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
4701         view, don't use LineLimit for the first item - use NoWrap *always*
4702         instead, since ListView.LabelWrap is not used for this view.
4703         Fixes #378054.
4704
4705 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4706
4707         * Binding.cs: Call UpdateIsBinding when setting control - probably
4708         Binding is already usable and we don't need to wait to check the
4709         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
4710         Created, just like 2.0 does.
4711         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
4712
4713 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4714
4715         * Binding.cs: Just realized we don't need to have a handler for
4716         BindingContextChanged, since this info should be now consumed directly
4717         in the BindingManagerBase. And also, the manager.IsBindingSuspended
4718         state info is checked directly, instead of caching it.
4719
4720         * CurrencyManager.cs: IsSuspended should return always false if Count
4721         == 0.
4722
4723 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4724
4725         * Binding.cs: When calling PushData, return if manager.Count == 0,
4726         since we just don't have data to be read. Also, when setting the
4727         Control for binding, hook up some events to refresh the IsBinding
4728         state when BindingContext change or control gets created; use
4729         Control.IsHandleCreated instead of Control.Created check to set
4730         IsBinding state - we *actually* need to modify IsBinding when control
4731         is created, but we don't have any Created event, only HandleCreated.
4732         Fixes part of #349364.
4733
4734 2008-04-11  Geoff Norton  <gnorton@novell.com>
4735
4736         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
4737         warping a null Caret.
4738
4739 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
4740
4741         * DataGridView.cs: Implement row/column autosizing methods. Implement
4742         autosorting.
4743         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
4744         * DataGridViewRowCollection.cs: Add an internal sorting method.
4745
4746 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
4747
4748         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
4749         value in ListView drawing code.
4750
4751 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
4752
4753         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
4754         is clicked.  Respect the user setting Cancel in FileOk.
4755
4756 2008-04-11  Geoff Norton  <gnorton@novell.com>
4757
4758         * ListView.cs: Avoid setting and resetting control Width/Heights and
4759         calculate the final value and set it once.  Prevents a feedback loop
4760         on the mac.
4761
4762 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
4763
4764         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
4765         [Fixes bug #378869]
4766
4767 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
4768
4769         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
4770           Add some on-the-spot code, but it seems we don't need it.
4771
4772 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
4773
4774         * Form.cs: Add method for DataGridView to trigger focus cues
4775         even when it handles the tab keypress.
4776
4777 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
4778
4779         * DataGridView.cs: More keyboard handling, tab, esc.
4780         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
4781         when at the beginning or end of the text in the text box.
4782
4783 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
4784
4785         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
4786
4787 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
4788
4789         * DataGridView.cs: Some fixups for showing and adding the edit control.
4790         * DataGridViewButtonColumn.cs: Implement ToString.
4791         * DataGridViewCell.cs: Size and position the control simultaneously.
4792         * DataGridViewTextBoxCell.cs: Use base to position control.
4793
4794 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
4795
4796         * DataGridViewCell.cs: Fix up some formatting and painting code.
4797         * DataGridViewImageCell.cs: Implement some NIEX methods.
4798
4799 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
4800
4801         * ToolStripItemCollection.cs: What moving an item from one owner
4802         to another, remove from source owner before adding to destination.
4803         [Fixes bug #378109]
4804
4805 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
4806
4807         * PictureBox.cs: Call Load when ImageLocation is set.
4808         [Fixes bug #378308]
4809
4810 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
4811
4812         * X11Keyboard.cs, XplatUIX11.cs :
4813           Implement over-the-spot mode (with some odd offsets).
4814           - set preedit position when caret is set.
4815           - Wrap XMoveResizeWindow() to move preedit position.
4816
4817 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
4818
4819         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
4820         array lenght.
4821
4822 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
4823
4824         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
4825         and ScanTableIndex public, it fix compilations errors when compiling
4826         WinForms to generate keyboard layout resources.
4827
4828 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
4829
4830         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
4831         different element count than scan table. It prevents some errors in non
4832         standard keyboards.
4833
4834 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
4835
4836         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
4837
4838 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
4839
4840         * DataGridView.cs: Call OnContentClick.
4841         * DataGridViewCell.cs: Do a null check on ValueType instead
4842         of valueType.
4843         * DataGridViewCheckBoxCell.cs: Implement.
4844
4845 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
4846
4847         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
4848
4849 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
4850
4851         * X11Keyboard.cs : Check XGetIMValues() return value in
4852           case it does not return input styles in some environment.
4853
4854 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
4855
4856         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
4857
4858 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4859
4860         * BindingContext.cs: Stub UpdateBinding method.
4861
4862 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
4863
4864         * X11Structs.cs : added couple of structs for XIM support.
4865         * X11Keyboard.cs :
4866           Release XIM in case it failed to create XIC. 
4867           Use consts for XNblah string.
4868           Add support for IM style customization and XIC creation
4869           for preedit-position and preedit-callback.
4870           Right now use MONO_WINFORMS_XIM_STYLE environment variable
4871           (list of: over-the-spot | on-the-spot | root). Only root
4872           mode works so far.
4873
4874           (redoing r99172 with fix.)
4875
4876 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
4877
4878         * TreeView.cs: Center the checkbox a little better.
4879
4880 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
4881
4882         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
4883         Apply very nice patch from Ernesto Carrea that simplifies our
4884         scrollbar drawing.  [From bug #376146]
4885
4886 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
4887
4888         * TreeView.cs: Correct the location of the root node checkbox when
4889         ShowRootLines = false.  Don't draw the root lines for the root node
4890         when ShowRootLines = false.  [Fixes bug #377535]
4891
4892 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
4893
4894         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
4895         Fixed line endings.
4896         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
4897         line endings.
4898         * MaskedTextBox.cs: Added missing attribute. Code formatting.
4899         * PageSetupDialog.cs: Added missing attribute. Code formatting.
4900         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
4901         * ImeMode.cs: Added missing field.
4902         * HtmlWindow.cs: Code formatting. Fixed line endings.
4903         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
4904         warnings.
4905         * HtmlHistory.cs: Code formatting. Fixed line endings.
4906         * HtmlDocument.cs: Code formatting. Fixed line endings.
4907         * ToolStripPanel.cs: Added missing IList implementation.
4908         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
4909
4910 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
4911
4912         * BindingContext.cs: Changed argument names to fix corcompare errors.
4913         * DataGridView.cs: Removed extra explicit interface implementation
4914         of IDropTarget. Code formatting.
4915         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
4916         * ComboBox.cs: Changed argument names to fix corcompare errors.
4917         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
4918         errors.
4919         * GridColumnStylesCollection.cs: Changed argument names to fix
4920         corcompare errors. Removed extra tabs.
4921         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
4922         errors.
4923         * Control.cs: Changed argument names to fix corcompare errors. Code
4924         formatting. Removed extra explicit IList implementation.
4925         * TextBox.cs: Changed argument names to fix corcompare errors. Code
4926         formatting. Use string.Empty instead of "".
4927         * GridItemCollection.cs: Changed argument names to fix corcompare
4928         errors. Code formatting.
4929         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
4930         corcompare errors. Code formatting.
4931         * ImageList.cs: Changed argument names to fix corcompare errors.
4932         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
4933         * DataGridViewRowCollection.cs: Changed argument names to fix
4934         corcompare errors. Code formatting.
4935         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
4936         * DataGridViewSelectedCellCollection.cs: Changed argument names to
4937         fix corcompare errors. Code formatting.
4938         * DataGridViewComboBoxCell.cs: Changed argument names to fix
4939         corcompare errors. Code formatting.
4940         * LinkLabel.cs: Changed argument names to fix corcompare errors.
4941         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
4942         formatting.
4943         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
4944         Code formatting.
4945         * BindingSource.cs: Changed argument names to fix corcompare errors.
4946         Removed extra explicit interface implementations.
4947         * DataGridViewSelectedRowCollection.cs: Changed argument names to
4948         fix corcompare errors. Code formatting.
4949         * ToolStripItemCollection.cs: Removed extra explicit interface
4950         implementation of IList.ReadOnly.
4951         * DataGridViewColumnCollection.cs: Changed argument names to fix
4952         corcompare errors. Code formatting.
4953         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
4954         * ListView.cs:  Changed argument names to fix corcompare errors.
4955         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
4956         errors.
4957         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
4958         errors.
4959         * ListBindingHelper.cs: Changed argument names to fix corcompare
4960         errors.
4961         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
4962         fix corcompare errors. Code formatting.
4963         * ToolStripPanel.cs: Removed extra explicit implementation of
4964         IDropTarget interface.
4965         * ListBox.cs: Changed argument names to fix corcompare errors. Code
4966         formatting. Removed extra tabs and spaces.
4967         * DataGridViewCellCollection.cs: Changed argument names to fix
4968         corcompare errors.
4969         * Help.cs: Changed argument names to fix corcompare errors. Code
4970         formatting.
4971         * TabControl.cs: Changed argument names to fix corcompare errors.
4972         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
4973         errors.
4974         * TableLayoutSettings.cs: Changed argument names to fix corcompare
4975         errors.
4976
4977 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4978
4979         * ListBindingHelper.cs: When returning properties, only return those
4980         that are browsable. Also, don't do a linear search of the properties,
4981         but use the indexer of the PropertyDescriptorCollection class.
4982
4983 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4984
4985         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
4986         Dictionary containing the related (child) currency managers. Also,
4987         when setting DataSource, add datasource to our List if it is not a list.
4988
4989 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
4990
4991         * PropertyGridTextBox.cs: Fix background color of the buttons.
4992         * PropertyGridView.cs: Make the entry less jumpy.
4993
4994 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
4995
4996         * PropertyGrid.cs: Fix unused variable warnings.
4997
4998 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
4999
5000         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
5001         double-click. It expanded it once in the mouse down and then 
5002         again in the double-click handler.
5003
5004 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
5005         
5006         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
5007         TypeConverter and UITypeEditors.
5008
5009 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
5010
5011         * Control.cs: Visibility should be set synchronously, 
5012         so we must also redraw once it is and not rely on layouting or 
5013         other code to repaint.
5014         [Fixes bug #339898]
5015
5016 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
5017
5018         * DataGridViewCell.cs: Respect DataGridView.GridColor.
5019
5020 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
5021
5022         * Control.cs: Invalidate when the alpha channel is less than 255,
5023         not only when control is transparent.
5024
5025 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
5026
5027         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
5028         Implement some painting convenience methods that threw NIEX.
5029
5030 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
5031
5032         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
5033         * DataGridViewLinkCell.cs: Implement.
5034
5035 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
5036
5037         * GridEntry.cs: Report the conversion exception error description.
5038         [Fixes bug #375792]
5039
5040 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
5041
5042         * PropertyGridView.cs: Do not scroll to item on resize.
5043         [Fixes bug #375789]
5044
5045 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5046
5047         * BindingContext.cs: When retrieving a BindingManagerBase, if the
5048         dataSource parameter is ICurrencyManagerProvider, then return
5049         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
5050         instead of creating a new one.
5051
5052 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5053
5054         * BindingSource.cs: Implement support for Type instances as
5055         DataSource.
5056
5057 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
5058
5059         * DataGridView.cs: Minor cleanups and call CellMouseUp.
5060         * DataGridViewCell.cs: Make some painting routines internally virtual.
5061         * DataGridViewButtonCell.cs: Implement.
5062
5063 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
5064
5065         * Control.cs: We always need to invalidate our children with
5066         transparent backgrounds when we are invalidated.
5067         [Fixes bug #376081]
5068
5069 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5070
5071         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
5072         and CancelCurrentEdit on CurrencyManager respectively. Implement
5073         support for ICancelAddNew too.
5074
5075 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5076
5077         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
5078         call EndNew/CancelNew if list is ICancelAddNew.
5079
5080 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
5081
5082         * DataGridView.cs: Guard against an exception while painting
5083         if there are no rows.
5084
5085 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
5086
5087         * DataGridView.cs: Implement a bunch of keyboard commands.
5088
5089 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
5090
5091         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
5092         isn't set, don't call OnPaint.  [Fixes bug #375300]
5093
5094 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5095
5096         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
5097         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
5098         hookup the remaining events related to CurrencyManager, and fire
5099         OnListChanged also for the Clear () method.
5100
5101 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5102
5103         * BindingSource.cs: Use Current and Position implementations in
5104         CurrencyManager instead of using our own routines, since we need 
5105         to be in synch with it. Count should NEVER return a -1 value, and 
5106         also report ListChanged events for both simple IList data 
5107         sources (manually) as well for IBindingList ones (by hooking up an
5108         event handler for it).
5109
5110 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5111
5112         * BindingSource.cs: Make one .ctor call the another, to avoid
5113         duplicate code. Add the CurrencyManager property, and also for AddNew
5114         throw the proper exceptions and show better error messages.
5115
5116 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
5117
5118         * ComboBox.cs: Only adjust selectedindex if Handle has been
5119         created.  Fixes failing test.
5120
5121 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
5122
5123         * ComboBox.cs: Adjust selectedindex if we insert a new item
5124         above the current selectedindex in a sorted ComboBox.
5125         [Fixes bug #374654]
5126
5127 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
5128
5129         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
5130         [Fixes bug #374712]
5131
5132 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
5133
5134         * DataGridViewTextBoxCell.cs: Implement stuffs.
5135
5136 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5137
5138         * TreeView.cs: Create the scrollbars even earlier to be
5139         double dog certain they are created before they are accessed.
5140
5141 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5142
5143         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
5144
5145 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5146
5147         * ScrollBar.cs: Create an internal safe Value setter so we
5148         won't crash if we try to set a value outside the min and max.
5149         * TextBoxBase.cs: Use safe value setter to guard against a
5150         potential NRE that is being reported by Reflector.
5151
5152 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5153
5154         * TreeView.cs: Create the scrollbars earlier in the constructor
5155         to attempt to guard against an NRE in SetTop in Reflector.
5156
5157 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
5158
5159         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
5160         DataGridViewRowCollection.cs: Do not scroll column and row headers,
5161         show messagebox on data format error, use column display index
5162         correctly, make sure HitTest supports new layout stuff,
5163         make sure scrollbars support new layout stuff.
5164
5165 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
5166
5167         * XplatUIX11.cs : Patch by Doug Rintoul.
5168           For some IM engines, keypress events need to delay call
5169           to XPending() and XNextEvent() in the loop so that it
5170           does not mess the orders in XIM commit callback.
5171           Some KeyRelease events such as shift keys need to be
5172           processed both in the IM engine and winforms driver
5173           itself since winforms holds its own state check.
5174
5175           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
5176
5177 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
5178
5179         * X11Keyboard.cs, XplatUIX11.cs :
5180           add primitive support for XIM input support (preedit-
5181           nothing and status-nothing). It requires precise event
5182           capturing (XSelectInput/"filterEvents") and different
5183           call to XFilterEvent against root window.
5184           Get composed string and send dummy WM_IME_COMPOSITION.
5185           Free XIM and XIC instances in finalizer.
5186
5187           (This first patch does not include suggested changes
5188            by Doug Rintoul. It will follow.)
5189
5190 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
5191
5192         * DataGridView.cs: When binding to a property, if the property
5193         doesn't have a setter, set the column to readonly.
5194         [Fixes bug #343965]
5195
5196 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
5197
5198         * ComboBox.cs: Guard against NRE if an arrow key is hit while
5199         we aren't dropped down.  Support Home/End in DropDownList mode.
5200         [Fixes bug #371990]
5201
5202 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
5203
5204         * TreeNodeCollection.cs: Don't increment count until we've
5205         saved our index to return.
5206         [Fixes bug #373603]
5207
5208 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
5209
5210         * Label.cs: Add padding to the label's AutoSize calculation.
5211         [Fixes bug #373792]
5212
5213 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5214
5215         * ListBindingHelper.cs: Actually implement GetListName method.
5216
5217 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5218
5219         * BindingSource.cs: Throw the propert expceptions for some methods, as
5220         well as detect the list item type for Add method if DataSource is null.
5221
5222 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
5223
5224         * DataGridViewCell.cs: I don't know why I commented this out,
5225         putting it back for now.
5226
5227 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
5228
5229         * DataGridViewCell.cs: Remove storage for owning column, just
5230         use column index.
5231         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
5232         * DataGridViewColumnHeaderCell.cs: If the header text has been
5233         explicitly set, return it.
5234         [Fixes bug #325979]
5235
5236 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
5237
5238         * DataGridViewRowCollection.cs: Disable row sharing when
5239         using data binding.  Its a great feature, but lets work on
5240         getting DGV usable first before we worry about optimizations.
5241
5242 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5243
5244         * BindingSource.cs: When resetting our internal list, compute list
5245         item type information to be used for indirect list access. Also
5246         implement/tune some properties and methods related to the list access
5247         too.
5248         * ListBindingHelper.cs: Add a stub for GetListName method, used from
5249         BindingSource.
5250
5251 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5252
5253         * DataGridView.cs: If RowCount is increased while ColumnCount
5254         is zero, add a column.  [Fixes bug #331649]
5255
5256 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5257
5258         * DataGridViewRowCollection.cs: When adding new rows for
5259         databinding, make sure they are place before the add row.
5260         [Fixes bug #343961]
5261
5262 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5263
5264         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
5265         instead of Index order.
5266
5267 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5268
5269         * DataGridView.cs: If columns are added by increasing ColumnCount,
5270         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
5271         [Fixes bug #325588]
5272
5273 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5274
5275         * DataGridView.cs: Turn off and on the "new row" when 
5276         AllowUserToAddRows is toggled.  When the handle is created,
5277         set current cell and selected cell/row/col.
5278
5279 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5280
5281         * ComboBox.cs: When navigating the drop down by keyboard, we
5282         need to scroll the list box if our selection moves out of the
5283         currently shown items.  [Fixes bug #371990]
5284
5285 2008-03-24  Luke Page <luke.a.page@gmail.com>
5286
5287         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
5288         on the control. Also now handles unicode compatibility characters and
5289         stores the unicode compatibility length on the stack. Fixes Bugs
5290         #355198 and #366436.
5291
5292 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5293
5294         * BindingSource..cs: Take into account DataMember when re-creating the
5295         List property, and also create a specific kind of list as needed.
5296
5297 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5298
5299         * ListBindingHelper.cs: Add a new case for GetList () method - when we
5300         get an empty IEnumerable, try to detect whether the datamember is
5301         valid or not for that type, if true, return null, and throw exception
5302         otherwise.
5303
5304 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
5305
5306         * ComboBox.cs: Alt-Down should drop down the list, Esc should
5307         retract it.  [Fixes bug #371989]
5308
5309 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
5310
5311         * PropertyGrid.cs: Initialize the sorting button as pushed.
5312
5313 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
5314
5315         * PropertyGrid.cs: 
5316          - Visually select the PropertyTab.
5317          - Filter Properties by Attributes properly.
5318
5319 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
5320
5321         * MenuItem.cs: Remove menu item from parent when disposed.
5322         [Fixes bug #372845]
5323
5324 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
5325
5326         * ToolBar.cs: Don't reset layout_type if Dock = None.
5327
5328 2008-03-21  Andreia Gaita <avidigal@novell.com> 
5329
5330         * UserControl.cs: Select the first available control when we get focus.
5331           Fixes #372616
5332
5333 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
5334
5335         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
5336         the content if we are in edit mode.  [Fixes bug #343964]
5337
5338 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
5339
5340         * DataGridViewCell.cs: Fix border painting for column headers.
5341
5342 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5343
5344         * BindingSource.cs: When setting or resetting data source,
5345         use ListBindingHelper.GetList () method, since it will get the list in
5346         case datasource is IListSource.
5347
5348 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
5349
5350         * DataGridViewCell.cs: Implement lots more stuffs.
5351
5352 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
5353
5354         * PropertyGridView.cs, GridEntry.cs: Implement support for 
5355         UITypeEditor.IsDropDownResizable.
5356
5357 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
5358
5359         * DataGridViewCell.cs: Remove unused variables, improve how
5360         several of the property getters work.
5361         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
5362         get its size from the parent row/col.
5363
5364 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
5365
5366         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
5367         user alters manually the PropertyTabs collection via the 
5368         PropertyTabs property.
5369
5370 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5371
5372         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
5373         new tests for them to be sure to be compatible with .net.
5374
5375 2008-03-20  Andreia Gaita <avidigal@novell.com> 
5376
5377         * WebBrowserBase.cs: Fix attributes, add events
5378         * WebBrowser.cs: Fix Padding signature
5379
5380 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
5381
5382         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
5383
5384 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
5385
5386         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
5387         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
5388         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
5389         passes the new suite of tests for it.
5390
5391 2008-03-18  Andreia Gaita <avidigal@novell.com> 
5392
5393         * WebBrowser.cs: Add missing attributes, missing Padding and
5394           DefaultSize properties, remove extraneous getters
5395
5396 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5397
5398         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
5399         method overloads.
5400
5401 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
5402
5403         * ComboBox.cs: Move resetting the selected index to keypress
5404         instead of textchanged.  Changing the text programmatically
5405         should not trigger resetting the selected index.  Fixes test.
5406
5407 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
5408
5409         * ComboBox.cs: When the user types into the textbox, reset
5410         the selected index to -1.  [Fixes bug #371672]
5411
5412 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
5413
5414         * FileDialog.cs: Support Control-A for selecting everything
5415         in an OpenFileDialog.  [Fixes bug #371564]
5416
5417 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
5418
5419         * DataGridView.cs: When row/column visible/height properties
5420         change, invalidate.  Take the NIEX out of InvalidateRow/Column
5421         etc.  We don't support them yet, but we can just invalidate
5422         everything until we do support them.  (Added MonoTODO).  Set
5423         proper control styles.
5424         * DataGridViewRow.cs: Don't call PaintHeader if row headers
5425         are turned off. 
5426
5427 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5428
5429         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
5430
5431 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
5432
5433         * DataGridViewRow.cs: Only paint the white background in
5434         cell bounds, the row bounds extends past the cells if the 
5435         grid width isn't as wide as the DGV.
5436
5437 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
5438
5439         * DataGridView*: Completely revamp the drawing to match the
5440         public API.  Our grids now look better, and call all the
5441         appropriate methods and event to allow users to override
5442         the painting and do their own.
5443
5444 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5445
5446         * ListBindingHelper.cs: Implement 2.0 GetList methods.
5447
5448 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
5449
5450         * DataGridView.cs: Implement BorderStyle.
5451
5452 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
5453
5454         * FileDialog.cs: Apply patch from Andy Hume: Any time we
5455         are comparing attributes, make sure we only look at the
5456         one we are interested.  These calls were failing if there
5457         were more than one attribute.
5458         [Fixes bug #370385]
5459
5460 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
5461
5462         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
5463
5464 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
5465
5466         * PageSetupDialog.cs: Stub EnableMetric.
5467         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
5468         * PrintPreviewDialog.cs: Add ProcessDialogKey,
5469         ProcessTabKey.
5470
5471 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
5472
5473         * MonthCalendar.cs: Remove unused variable.
5474
5475 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
5476
5477         * DataGridView*.cs: corcompare stuffs.
5478
5479 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
5480
5481         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
5482         The savings aren't worth the extra code to fix the optimization.
5483         [Fixes bug #368585]
5484
5485 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
5486
5487         * ToolBar.cs: Always call base.Dock in the Dock override so that
5488         Control's layout_type gets reset correctly.
5489         [Fixes bug #368882]
5490
5491 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
5492
5493         * X11Dnd.cs: End DnD operation also for the middle mouse button.
5494
5495 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
5496
5497         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
5498         at the same time we do explicit ones, because we have to give all
5499         other controls on the container a chance to handle explicit ones
5500         first.  If no one has an explicit mnemonic, then we can let the
5501         MenuStrip have a shot at implicit mnemonics.
5502         * MenuStrip.cs: Create an implicit mnemonic function.
5503         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
5504         mnemonics for MenuStrips.
5505         [Fixes bug #368493]
5506
5507 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
5508
5509         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
5510         DataGridColumnStyle.cs: corcompare stuffs.
5511
5512 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5513
5514         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
5515         Details - This is needed after we added the bits to use any available
5516         column also for List and SmallIcon view. 
5517
5518 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5519
5520         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
5521         at the proper place, not only when changing SelectedIndex and changing
5522         the selection using keys/mouse, as .net does.
5523
5524 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5525
5526         * ControlBindingsCollection.cs: Implement last 2.0
5527         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
5528         in the new 2.0 Add methods.
5529
5530 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5531
5532         * ListBox.cs: When calling SelectedIndexCollection.Clear,
5533         return if no items are previously selected - this is done to avoid 
5534         firing OnSelectedIndexChanged without need to do so. Also,
5535         when creating handle ensure that the focused item is visible (as
5536         .net does).
5537
5538 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5539
5540         * ListBox.cs: Rewrote/refactored most of selection code. We require
5541         the following things in selection: a) keep selection sorted (both
5542         indices and items), b) SelectedIndices automatically detect the
5543         selection mode, c) SelectedIndex should be the first selected item
5544         index, d) Need to Focus/adjust scroll bar when selecting a new item,
5545         not only for SelectedIndex, which is specially important in Multi*
5546         selection modes. To achieve this we are moving the selection core to
5547         SelectedIndexCollection and make depend all selection modifications on
5548         it.
5549         Fixes #366438.
5550
5551 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
5552
5553         * ToolStrip.cs: Enable implicit mnemonics for drop down
5554         menu strips.  [Fixes part of bug #367692]
5555
5556 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
5557
5558         corcompare - fix parameter names [stragglers].
5559         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
5560         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
5561         TabControl.cs.
5562
5563 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
5564
5565         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
5566         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
5567         mnemonic, let the ToolStripManager have it even if it doesn't
5568         have a matching mnemonic.
5569         [Fixes bug #367499]
5570
5571 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
5572
5573         corcompare - fix warning about implicit implementation
5574         * ToolStrip.cs: Add IToolStripData interface.
5575         * IToolStripData.cs: Add.
5576
5577 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
5578
5579         corcompare - fix warning about implicit implementation
5580         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
5581         * IBounds.cs: Add.
5582
5583 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
5584
5585         corcompare - fix parameter names [N-Z].
5586         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
5587         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
5588         PropertyManager.cs, RichTextBox.cs,
5589         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
5590         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
5591         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
5592         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
5593         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
5594         ToolStripContentPanel.cs, ToolStripDropDown.cs,
5595         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
5596         ToolStripPanel.cs, ToolStripSeparator.cs,
5597         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
5598         UICuesEventHandler.cs, UpDownBase.cs.
5599
5600 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
5601
5602         corcompare - fix parameter names [G-M].
5603         GridColumnStylesCollection.cs, GridItemCollection.cs,
5604         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
5605         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
5606         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
5607         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
5608         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
5609
5610 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
5611
5612         corcompare - fix parameter names [A-F].
5613         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
5614         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
5615         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
5616         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
5617         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
5618         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
5619         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
5620
5621 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
5622
5623         * GridEntry.cs: Do not convert not only if the types match, 
5624         but also if the property type is assigneable from the value's
5625         type.
5626         [Fixes bug #366566]
5627
5628 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
5629
5630         * PropertyGridView.cs: 
5631          - Subscribe to the listbox only once and not everytime.
5632          - Update the textbox even if SetValue fails.
5633          - Close the listbox before calling TrySetValue just in case.
5634          [Fixes bug #366569]
5635
5636 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
5637
5638         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
5639
5640 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5641
5642         * ListView.cs: Implement support for custom column width based on
5643         Columns collection (we were previously using this collection only
5644         with Details view).
5645         Fixes #364484.
5646
5647 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5648
5649         * ListViewItem.cs: For Tile view, always set bounds for the first
5650         subitem (which is the main one), and also don't let Width be larger
5651         than ListView.TileSize.Width. Improve code readibility also.
5652         * ThemeWin32Classic.cs: When painting the ListViewItem instances
5653         in Tile view, _always_ use the NoWrap flag.
5654         Fixes #360798.
5655
5656 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
5657
5658         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
5659         in case.
5660         * GridEntry.cs: For MS compitability make all child properties 
5661         readonly if the parent is readonly. Ugh.
5662         [Fixes bug #365945 and #365944]
5663
5664 2008-02-29  Andreia Gaita <avidigal@novell.com> 
5665
5666         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
5667           relative to the history
5668
5669 2008-02-29  Andreia Gaita <avidigal@novell.com>
5670
5671         * HtmlElement.cs: More handlers for mouse and key events
5672
5673 2008-02-28  Andreia Gaita <avidigal@novell.com>
5674
5675         * WebBrowserBase.cs: MouseClick sig changed.
5676         * HtmlHistory.cs: Implement history navigation
5677         * HtmlElement.cs: Add event handlers, and connect them.
5678
5679 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
5680
5681         * GridEntry.cs: 
5682          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
5683            so that DisplayNameAttribute doesn't get ignored.
5684          - Check for ParenthesizeNameAttribute and parenthesize the Label.
5685          - Add support for PasswordPropertyTextAttribute
5686         * PropertyGridView.cs: Check if an entry is a password.
5687         [Fixes bugs #365589, #365586, #365588]
5688
5689 2008-02-28  Andreia Gaita <avidigal@novell.com>
5690
5691         * PropertyGridView.cs: Revert the message filtering change, as we
5692         need it to block after all. Remove block parameter, unnecessary.
5693
5694 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
5695
5696         * UserControl.cs: Better implementation of GetPreferredSize.
5697         First step to fixing bug #361441.
5698
5699 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5700
5701         * Binding.cs: Actually implement data binding support for 
5702         classes implementing IBindableComponent.
5703         * ControlBindingsCollection.cs: Likewise.
5704
5705 2008-02-26  Andreia Gaita  <avidigal@novell.com>
5706
5707         * PropertyGridView.cs: Use a message filter to check when to 
5708         close the dropdown
5709
5710 2008-02-26  Andreia Gaita  <avidigal@novell.com>
5711
5712         * Application.cs: Change the message_filters loop so a filter 
5713         can be removed while looping.
5714
5715 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
5716
5717         * GridEntry.cs: Optimization in ToggleValue so that it caches
5718         the current value.
5719         * PropertyGridView.cs: An optimization so that the property isn't 
5720         re-read twice for each StandardValue added to the drop-down menu.
5721         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
5722         license.
5723         [Fixes bug #362755]
5724
5725 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
5726
5727         * Application.cs: Apply patch from Justin Cherniak to match
5728         MS better for ProductName, ProductVersion, and CompanyName.
5729         [Fixes bug #361709]
5730
5731 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5732
5733         * Binding.cs: Actually implement 2.0 NullValue property. Also
5734         when changing the formatting related properties, only update the state
5735         if formatting_enabled is true (we don't mind otherwise).
5736
5737 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
5738
5739         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
5740         [Fixes bug #364486]
5741
5742 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
5743
5744         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
5745         of GetType on the current value as it uses reflection to 
5746         determine the type. This fixes the case where the new value is 
5747         null. 
5748
5749 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
5750
5751         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
5752         past the view.
5753
5754 2008-02-24  Luke Page  <luke.a.page@gmail.com>
5755
5756         * Line.cs, TextControl.cs: Implement offset x and y so that a
5757         document doesn't have to begin  at (0,0) on the viewpoint.
5758         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
5759         bars and switches the text alignment (and therefore is now
5760         implemented for textbox). Fixes #321383.
5761
5762 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5763
5764         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
5765         properties. Also when changing FormattingEnabled update the control
5766         property -as .Net does-.
5767
5768 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
5769
5770         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
5771         * Binding.cs: Add stubs for the overloads of the Add method in
5772         CBCollection.
5773
5774 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5775
5776         * Binding.cs: PullData () returns a false value if we got an exception.
5777         Also when validating the control and we get an error, instead of
5778         setting the value of the previous one, cancel the event (tested in 1.1
5779         and 2.0).
5780
5781 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
5782
5783         * TreeView.cs: Make selected_node and highlighted_node internal.
5784         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
5785         to null when Nodes.Clear is called.
5786         [Fixes bug #363884]
5787
5788 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
5789
5790         * FontDialog.cs: Ensure that when the Font is set in code,
5791         all the gui pieces are updated accordingly.
5792         [Fixes bug #361020]
5793
5794 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
5795
5796         * TextRenderer.cs: Respect proposed size for MeasureString.
5797         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
5798         autosize, use a proposed width to force wrapping for long text.
5799         [Fixes bug #360981]
5800
5801 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
5802
5803         * TreeView.cs: Factor in checkboxes = false and state images in
5804         to HitTest.  [Fixes bug #363360]
5805
5806 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
5807
5808         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
5809         when drawing the selected range.
5810         [Fixes bug #363648]
5811
5812 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
5813
5814         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
5815         ResizeRedraw control styles.
5816         [Fixes bug #363555]
5817
5818 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
5819
5820         * TreeView.cs: StateImages are basically custom checkboxes, so
5821         factor their size the same as real checkboxes when determining
5822         what got clicked.
5823         [Fixes bug #363367]
5824
5825 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
5826
5827         * MessageBox.cs: Make the message box wider if the form caption
5828         is longer than the text in the form.
5829         [Fixes bug #361137]
5830
5831 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
5832
5833         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
5834
5835 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
5836
5837         * TreeNode.cs: Guard against an NRE when the parent's
5838         StateImageList hasn't been set.
5839         [Fixes bug #363353]
5840
5841 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
5842
5843         * SplitContainer.cs: Add SupportsTransparentBackColor and
5844         OptimizedDoubleBuffering control styles.
5845         [Fixes bug #363303]
5846
5847 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
5848
5849         * Application.cs: For the app data paths and the registry key paths,
5850         ensure they are created before returning them to the user.
5851         [Fixes bug #361709]
5852
5853 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
5854
5855         * Application.cs: Guard against an NRE in CompanyName and
5856         ProductName.
5857
5858 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
5859
5860         * Application.cs: For CompanyName, ProductName, and ProductVersion,
5861         make sure we handle all three cases correctly: attribute is present,
5862         attribute is present but is an empty string, and attribute is not
5863         present.
5864
5865 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
5866
5867         * PropertyGridView.cs: 
5868          - Fix a NRE that caused a test failure
5869          - Another performance improvement - cache the standard values
5870          listbox.
5871
5872 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
5873
5874         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
5875         code paths.
5876
5877 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
5878
5879         * PropertyGridView.cs: Fix a big performance bug.
5880
5881 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
5882
5883         * SelectionRange.cs: Apply patch from Andy Hume to make
5884         constructor behavior more accurate.  [Fixes bug #362117]
5885
5886 2008-02-19  Andreia Gaita <avidigal@novell.com> 
5887
5888         * Control.cs: Added a new flag is_disposing to track if the
5889         window is currently in the process of being disposed of.
5890         This is used so that, when firing visibility changes triggered
5891         by unparenting controls during Dispose, the control doesn't
5892         get created again.      
5893
5894 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
5895
5896         * ComboBox.cs: Set height to preferred height when the handle
5897         is created.  [Fixes bug #360862]
5898
5899 2008-02-18  Andreia Gaita <avidigal@novell.com>
5900
5901         * XplatUIX11.cs: Create FosterParent with border width at 0.
5902         With the previous value of 4, everytime a control got reparented
5903         from parent = null, it's location would be shifted right and 
5904         down by 4, since these coordinates would be offset by the 
5905         FosterParent's border width.
5906
5907 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
5908
5909         * Control.cs: During diposing firstly remove ourselfes from
5910         the parent and *then* destroy our handle, because removing
5911         ourselfes from the parent controls collection causes 
5912         VisibilityChange, etc events, which require a handle and end
5913         up recreating the control.
5914
5915 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
5916
5917         * GridEntry.cs: Set expanded state before notifying that the
5918         expansion has taken place.
5919         * PropertyGridView.cs:
5920          - Set the propertygridtextbox text to the selected 
5921          StandardValue before proceeding to setting it.
5922          - Scrolling bugfixes.
5923
5924 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
5925
5926         * GridEntry.cs:
5927          - Fix ValueText to not return null.
5928          - Fix conversion error reporting to actually happen.
5929         * PropertyGridView.cs: Set entry only if the text has changed.
5930         [Fixes bug #362116]
5931
5932 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
5933
5934         * GridEntry.cs: 
5935          - Fix handling of a null current value.
5936          - Swallow editor exceptions.
5937         [Fixes bug #362114]
5938
5939 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
5940
5941         * PropertyGrid.cs: Clear current items first thing before 
5942         repopulating subitems.
5943         * GridEntry.cs: 
5944          - Handle null StandardValuesCollection.
5945          - Mark as not editable if there is no PropertyDescriptor and
5946          if the Converter cannot convert from string.
5947         [Part of fix for bugs #360666 and #358332]
5948
5949 2008-02-15  Luke Page  <luke.a.page@gmail.com>
5950         * MaskedTextBox.cs: Now skips non editable characters after a
5951         character has been entered and we are progressing to the next
5952         position in the MaskedTextBox.
5953
5954 2008-02-15  Luke Page  <luke.a.page@gmail.com>
5955         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
5956         that it changes the selection rather than just repositioning the
5957         cursor. Fixes Bug #360873.
5958
5959 2008-02-15  Luke Page  <luke.a.page@gmail.com>
5960         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
5961         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
5962         correctly. See #359330
5963
5964 2008-02-15  Andreia Gaita <avidigal@novell.com>
5965
5966         * XplatUIX11.cs: If the handle is null when posting a message, use the
5967         current thread queue to post instead. Fixes #332409
5968
5969         * SendKeys.cs: Slight optimization
5970
5971 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
5972
5973         * PropertyGrid.cs, PropertyGridView.cs:
5974         Fix multiple scrolling and sizing issues.
5975         [Fixes bug #359199]
5976
5977 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
5978
5979         * PropertyGridView.cs: Ensure that drop down editors are shown
5980         in the WorkingArea of the screen.
5981         [Fixes bug #359807]
5982
5983 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
5984
5985         * GridEntry.cs: Fail silently when UITypeEditor is missing.
5986         [Fixes bug #360666]
5987
5988 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5989
5990         * Binding.cs: Implement 2.0 DataSourceNullValue property.
5991
5992 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
5993
5994         * PropertyGridView.cs:
5995          - Clear the controls in the drop down form after it is hidden.
5996          - Fix Width sizing of the dropdown editors to match MSFT.
5997
5998 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
5999
6000         * PropertyGridView.cs: 
6001          - Fix height for drawing the grid entry
6002          text value, so that it clips multiline text properly.
6003          - Fix unfocusing to match MSFT.
6004
6005 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
6006
6007         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
6008         Fixes a bug where on repopulation after value changed items become
6009         expandable.
6010
6011 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6012
6013         * Binding.cs: For the 2.0 profile, look for a 
6014         'PropertyChanged' event in the target control, and add checks for
6015         DataSourceUpdateMode property to change -or not- the data source
6016         from validation/control property change.
6017
6018 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
6019
6020         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
6021           not compare struct with null in 2.0).
6022
6023 2008-02-10  Luke Page <luke.a.page@gmail.com>
6024
6025         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
6026         updates the provider and if not using a provider, uses the internal document
6027         class implementation of password char. Also when showing text, uses display string
6028         from the provider, instead of the actual text.
6029
6030 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6031
6032         * Binding.cs: Ooooops, forgot to take into account the data_source
6033         and binding_member_info null case (it was breaking the Binding tests).
6034
6035 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6036
6037         * Binding.cs: Implement support for data source changes exposed by
6038         'PropertyNameChanged' events, and update the control property as
6039         needed.
6040
6041 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6042
6043         * Binding.cs: Implement 2.0 WriteValue method.
6044
6045 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
6046
6047         Commit patch from James Purcell for better AutoScale implementation:
6048
6049         * ScaleControl should call GetScaledBounds with the control's total size rather
6050         than client size.  GetScaledBounds should handle ignoring the borders in its
6051         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
6052         (for the most part they just call the base code now since that is fixed).
6053         * Added ScaleChildrenInternal to allow controls to disable scaling of children
6054         without having to override ScaleChildren (since none of .NET's controls do). 
6055         This is required for most controls in Mono that have scrollbars to prevent the
6056         scrollbars from being moved/resized.
6057         * Nested ContainerControls can have a different scale mode than their parent. 
6058         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
6059         designer produce different results both of which look incorrect).
6060         * Default AutoScaleMode for ContainerControl should be Inherit.
6061         * Simplified workaround for ComboBox scaling issue.
6062         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
6063         1.0 style auto scaling should scale the whole control's size instead of
6064         ignoring the borders (except for Form) and the rounding is done differently to
6065         preserve control alignment.
6066         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
6067         GetAutoScaleSize.
6068         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
6069         * CurrentAutoScaleDimensions should round the estimated character width instead
6070         of truncating.
6071         * ListBox's GetScaledBounds should always use the height it was set to instead
6072         of the height that was passed in.  This prevents rounding errors from
6073         accumulating quickly with IntegralHeight.
6074         [Bug #359098]
6075
6076 2008-02-08  Andreia Gaita <avidigal@novell.com>
6077
6078         * Form.cs: Add a null check (darn it). 
6079
6080 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
6081
6082         * MdiClient.cs: Make sure the requesting form actually owns the
6083         control menu items before removing them.  Also, use
6084         Suspend/ResumeLayout when adding or removing items so we only
6085         layout once.
6086         [Fixes bug #359887]
6087
6088 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
6089
6090         * Control.cs: Guard against an NRE in ShowFocusCues.
6091         [Fixes bug #359830]
6092
6093 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6094
6095         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
6096         property, as well as stubbing DataSourceUpdateMode.
6097
6098 2008-02-08  Andreia Gaita <avidigal@novell.com>
6099
6100         * Form.cs: When closing forms, get focus back to the active control of the
6101         active form. [Fixes #341314, corner case]
6102         
6103 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6104
6105         * MdiClient.cs: After we move the scrollbars, invalidate the NC
6106         area, so any old scrollbar artifacts are cleaned up.
6107         [Fixes bug #336305]
6108
6109 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6110
6111         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
6112         for our menus, display that control box menu instead of the 1.1
6113         menu one.
6114
6115 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6116
6117         * MdiControlStrip.cs: Add property to access the mdi form tied to
6118         each toolstripitem.
6119         * MdiClient.cs: Be smarter about removing and adding toolstripitems
6120         to the implicitly merged menu.  Every time we clicked the form, items
6121         were getting removed and the re-added, causing the form to jump around
6122         as the menu resized.
6123
6124 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6125
6126         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
6127         was being reset by the implicit menu merge for menustrips.
6128         [Fixes bug #336296]
6129
6130 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6131
6132         * Form.cs: Don't do the previous change when WindowState = Normal,
6133         or it messes up where the window is placed.  Fixes test failure.
6134
6135 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
6136
6137         * Form.cs: When becoming visible, if we are an MDI child, call
6138         SetWindowState with a dummy old_state so that changes will actually
6139         be made.
6140         [Fixes the 2nd part of bug #325473]
6141
6142 2008-02-07  Andreia Gaita <avidigal@novell.com>
6143
6144         * Control.cs: Reset properties to their pre parent-change values in case
6145         the new parent == null (in which case we're basically removing the control, 
6146         and don't want any events fired due to fake property changes)
6147         [Fixes #355850]
6148
6149 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
6150
6151         * PropertyGridView.cs: 
6152          - Refactor SetValue to allow setting the value
6153         when a custom editor is used, but the entry is not editable.
6154          - Remove the custom editor control on CloseDropDown.
6155         [Fixes #359196]
6156
6157 2008-02-06  Andreia Gaita <avidigal@novell.com>
6158
6159         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
6160         reflection only on 1.1, this property is public on system.drawing on 2.0.
6161         Fixed #359247
6162
6163 2008-02-06  Andreia Gaita  <avidigal@novell.com>
6164         
6165         * WebBrowser.cs: Do a normal page refresh by default.
6166
6167 2008-02-05  Andreia Gaita  <avidigal@novell.com>
6168
6169         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
6170         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
6171         platforms. Fixes #359036
6172         
6173         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
6174         platform-specific flags.
6175
6176 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6177
6178         * Binding.cs: Add 2.0 BindableComponent property - just return control
6179         by now.
6180
6181 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
6182
6183         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
6184         Jonathan for this patch. Fixes #358442.
6185
6186 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
6187
6188         * Form.cs: If we change the active MDI child form, let the others
6189         know they need to repaint their title bar so it will appear inactive.
6190         [Fixes part 1 of bug #325473]
6191
6192 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
6193
6194          * PropertyGridView.cs: Do not trucate custom editors' width
6195          and align them to the left.
6196          [Fixes #358353 and #358349]
6197
6198 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6199
6200         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
6201         Also fix the arguments passed to CollectionChangeEventArgs in the
6202         related methods.
6203
6204 2008-02-04  Geoff Norton  <gnorton@novell.com>
6205
6206         * Hwnd.cs: The conversion to Quartz coordinates happens in
6207         System.Drawing.  Removing this translation from here.
6208
6209 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
6210
6211          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
6212          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
6213          GridItemCollection.cs:
6214          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
6215
6216 2008-02-04  Geoff Norton  <gnorton@novell.com>
6217
6218         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
6219         SYSKEYUP if any other key has been pressed in the mean time.
6220         Fixes #324404
6221
6222 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6223
6224         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
6225         when the item in current position is different than 0. Also, save the
6226         item index in the beginning of the operation, instead of getting the
6227         index of the item when the event is actually performed. Lastly clean
6228         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
6229         triggered.
6230         [Fixes #357873]
6231
6232 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
6233
6234         * Form.cs: Alt-Minus for MDI children system menu should work
6235         with both the minus keys on the keyboard.
6236         [Fixes bug #336295]
6237
6238 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
6239
6240         * Control.cs: Don't invalidate on region change.  The WM should
6241         take care of this automagically.  Keeps us out of an infinite
6242         paint loop if someone changes the Region in the OnPaint.
6243         [Fixes bug #358327]
6244
6245 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
6246
6247          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
6248
6249 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
6250
6251         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
6252         down the MonthCalendar only on F4, not Alt+F4.
6253         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
6254         [Fixes bug #358340]
6255
6256 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
6257
6258         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
6259         if its part of a DateTimePicker, else, use the back color.
6260         [Fixes bug #358339]
6261
6262 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
6263
6264         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
6265         [Fixes bug #358342]
6266
6267 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6268
6269         * CurrencyManager.cs: When we get a ListChanged event from our source,
6270         always fire our own ListChanged event, as .Net does.
6271
6272 2008-02-03  Luke Page  <luke.a.page@gmail.com>
6273
6274         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
6275         #358379.
6276
6277 2008-02-03  Luke Page  <luke.a.page@gmail.com>
6278
6279         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
6280         property. Removed if for richtext property that was always true.
6281         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
6282
6283 2008-02-03  Luke Page  <luke.a.page@gmail.com>
6284
6285         * TextBoxBase.cs - commited patch from James Purcell that
6286         correctly sets the FixedHeight control style when the MultiLine
6287         property is changed on a TextBox control. Fixes bug 358229.
6288
6289 2008-02-02  Luke Page  <luke.a.page@gmail.com>
6290
6291         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
6292         Fixes bug 351938 - caret is positioned correctly when drawn
6293         and when calculating textual position of caret, no longer
6294         has a NRE in certain situations.
6295         
6296 2008-02-01  Geoff Norton  <gnorton@novell.com>
6297
6298         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
6299         get that region removed from the paint event.
6300         * XplatUICarbon.cs: Remove the window mapping after disposing of 
6301         window.  Prevents a crash with handle reuse.  Optimize exposes
6302         only onto visible windows (rare; but possible).
6303
6304 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6305
6306         * UpDownBase.cs: Make sure the internal textbox calls the base's
6307         OnMouseDown and OnMouseUp so the textbox will function correctly.
6308         There were notes saying it doesn't chain up, but its an internal
6309         class, so our implementation may differ.
6310         [Fixes bug #357482]
6311
6312 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6313
6314         * ListBox.cs: Fix a logic error and don't process MouseDown
6315         for mouse buttons other than Left.
6316
6317 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6318
6319         * Control.cs: Remove HeightInternal.
6320         * ListBox.cs: Commit patch from James Purcell that correctly
6321         calculates heights for ListBoxen.
6322         [Fixes bug #357152]
6323
6324 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6325
6326         * Label.cs: Apply patch from James Purcell that corrects the 
6327         signature of the AutoSize property.
6328         [Fixes bug #357605]
6329
6330 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6331
6332         * ListBox.cs: Don't throw [Mouse]Click events for buttons
6333         other than the left mouse button.
6334
6335 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
6336
6337         * Control.cs: Remove my awesome optimization as it caused some
6338         regressions with control ordering.  :(
6339         [Fixes bug #357467]
6340
6341 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
6342
6343          * PropertyGridView.cs: Fix a NRE on double click when there is no
6344          selected object.
6345
6346 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6347
6348         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
6349
6350 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
6351
6352         * ListBox.cs: Call MouseClick and MouseDoubleClick.
6353         [Fixes bug #357146]
6354
6355 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6356
6357         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
6358         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
6359         instead of Hwnd.bmp_g.
6360
6361 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6362
6363         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
6364         Use the Hwnd one instead.
6365
6366 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6367
6368         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
6369
6370 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6371
6372         * Form.cs: corcompare for RestoreBounds.
6373
6374 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6375
6376         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
6377
6378 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6379
6380         * Form.cs: Handle Alt-Minus for MDI children forms.
6381         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
6382         Add mnemonics to the control menu.
6383         [Fixes bug #336295]
6384
6385 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6386
6387         * Binding.cs: Initial implementation bits of FormattingEnabled
6388         property and BindingComplete event (2.0). 
6389         * BindingCompleteEventArgs.cs: Internal methods for setting error text
6390         and exception.
6391
6392 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
6393
6394         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
6395         table.Location.  [Fixes bug #354672]
6396
6397 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
6398
6399         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
6400         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
6401
6402 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6403
6404         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
6405         of doing all the re-bound work, just invalidate and call SetControlText 
6406         to set the updated text of selected item to our textbox.
6407         Fixes #333750.
6408
6409 2008-01-28  Andreia Gaita <avidigal@novell.com>
6410
6411         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
6412         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
6413         missing properties and methods. Add Load, Unload, Error, GotFocus, 
6414         LostFocus, Resize, Scroll events (only load and unload are connected)
6415
6416 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
6417
6418         * AccessibleObject.cs: Modified argument names to match MS.
6419         * Button.cs: Modified argument names to match MS.
6420         * BindingContext.cs: Modified argument names to match MS.
6421         * BindingMemberInfo.cs: Modified argument names to match MS.
6422         * ButtonBase.cs: Modified argument names to match MS.
6423         * ComboBox.cs: Modified argument names to match MS.
6424         * Control.cs: Modified argument names to match MS.
6425         * CheckedListBox.cs: Modified argument names to match MS.
6426         * CommonDialog.cs: Modified argument names to match MS.
6427         * DataGrid.cs: Modified argument names to match MS.
6428         * CursorConverter.cs: Modified argument names to match MS.
6429         * ControlPaint.cs: Modified argument names to match MS.
6430         * CheckBox.cs: Modified argument names to match MS.
6431         * ControlBindingsCollection.cs: Modified argument names to match MS.
6432         * BindingSource.cs: Modified argument names to match MS.
6433         * DataFormats.cs: Modified argument names to match MS.
6434         * ContainerControl.cs: Modified argument names to match MS.
6435         * CurrencyManager.cs: Modified argument names to match MS.
6436         * Application.cs: Modified argument names to match MS.
6437         * ContextMenuStrip.cs: Modified argument names to match MS.
6438         * ContextMenu.cs: Modified argument names to match MS.
6439         * BindingManagerBase.cs: Modified argument names to match MS.
6440         * WindowsFormsSection.cs: Fixed line ending.    
6441
6442 2008-01-27  Andreia Gaita <avidigal@novell.com>
6443
6444         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
6445         detecting that the dropdown toolwindow is hidden. EndLoop outside the
6446         while.
6447
6448 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
6449
6450         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
6451         MS. Code formatting.
6452
6453 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6454
6455         * Binding.cs: Don't avoid the Format event if the control 
6456         property type is object. Also, if the value retrieved by 
6457         the data source is null _and_ the control proeprty type 
6458         is object, return Convert.DBNull (match .Net).
6459         Fixes part of #324286.
6460
6461 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6462
6463         * ListControl.cs: Since we are getting two BinginContextChanged events
6464         for the same binding context instance (when the control is added to
6465         form, and when the form is actually shown), take it into account only the
6466         first time for a given binding context instance.
6467         Fixes part of #324286.
6468
6469 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
6470
6471          * PropertryGridView.cs: Ops.
6472
6473 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
6474
6475          * PropertyGridView.cs: Close dropdown form if the owner form is
6476          moved or minimized.
6477          [Fixes bug #322446]
6478
6479 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
6480
6481          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
6482          RootGridEntry.cs, CategoryGridEntry.cs:
6483          PropertyGrid rewrite.
6484          - Rewrite all of the control logic in PropertyGrid.
6485          - Rewrite all of the ComponentModel logic in GridEntry.
6486          - Rewrite all UI work in PropertyGridView.
6487          - Many bugfixes, etc.
6488
6489 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
6490
6491         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
6492         when all contained controls are autosize or dock-fill.  Also take into
6493         account when the total percentage of column/row sizes is not 100%.
6494         [Fixes bug #354672]
6495
6496 2008-01-24  Andreia Gaita <avidigal@novell.com>
6497
6498         * HtmlDocument.cs:
6499         - Save a reference to the IDocument in the instance and
6500           use that one instead of going to WebHost.Document; the document that the 
6501           WebHost returns might not be the right one (in case of frames).
6502         - Use the hashcode returned from the IDocument interface.
6503         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
6504           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
6505           LinkColor, Url, VisitedColor, Window
6506
6507         * HtmlElement.cs: 
6508         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
6509           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
6510           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
6511           SetAttribute, Equals, equality operators.
6512         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
6513           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
6514         
6515         * HtmlElementCollection.cs: Change implementation to use a generic
6516         collection. Implemented Enumerator and CopyTo
6517
6518         * HtmlHistory.cs: Add constructor, no implementation yet.
6519
6520         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
6521         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
6522         Equals, equality operators.
6523
6524         * HtmlWindowCollection.cs: Implemented. 
6525
6526         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
6527         has been deprecated).
6528
6529         * WebBrowserBase.cs: Use Completed event to track document loading
6530         (Navigated has been deprecated)
6531
6532 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
6533
6534         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
6535         level MenuItems do not respect tabs.
6536         [Fixes bug #355196]
6537
6538 2008-01-23  Geoff Norton  <gnorton@novell.com>
6539
6540         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
6541         FormWindowState.  Finished fixing Fullscreen windows on Carbon
6542
6543 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6544
6545         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
6546         be used as grab_control. Also save status of capture before show ContextMenu
6547         and restore it after close.
6548
6549 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6550
6551         * Control.cs: Internal FindRootParent method added to return high control
6552         in parent tree.
6553
6554 2008-01-23  Geoff Norton  <gnorton@novell.com>
6555
6556         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
6557         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
6558         it work again.  Handle HITTEST events.
6559
6560 2008-01-23  Geoff Norton  <gnorton@novell.com>
6561
6562         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
6563         a crash in certain cases.  Support for fullscreen windows in certain cases.
6564
6565 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
6566
6567         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
6568         [Fixes bug #355703]
6569
6570 2008-01-23  Geoff Norton  <gnorton@novell.com>
6571         
6572         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
6573
6574 2008-01-23  Geoff Norton  <gnorton@novell.com>
6575
6576         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
6577
6578 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6579
6580         * SplitContainer.cs: Remove unused declarations.
6581         * Binding.cs: Remove unused declarations.
6582
6583 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6584
6585         * Form.cs: Remove unused declaration of 'active' in Activate method.
6586         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
6587         prevent compilation warnings.
6588         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
6589         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
6590         * Bindings.cs: Remove unused formatting_enabled declaration.
6591         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
6592         warnings.
6593         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
6594         warnings.
6595         * PropertyGridView.cs: Remove usused 'ex' declaration.
6596         * DataGridView.cs: Remove unused declarations.
6597
6598 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6599
6600         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
6601         
6602         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
6603         to Control class, it makes possible to grab menu to controls that can't 
6604         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
6605         WmMouseMove removed since it was used only to track menu events.
6606
6607         * Control.cs:
6608         - Moved all active_tracker stuff from Form.
6609         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
6610         can call this method instead of reimplement all necessary code handle for
6611         menu tracker.
6612         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
6613         and WmMouseMove).
6614         
6615         * MenuAPI.cs: 
6616         - Remove special handle to ToolStripOverflow, now we can grab menu to 
6617         controls that can't reach Form using parent tree.
6618         - Change type of grab_control from Form to Control.
6619
6620 2008-01-22  Geoff Norton  <gnorton@novell.com>
6621
6622         * TextBoxBase.cs: Split up the sizing of controls and placing of 
6623         controls.  Fixes a bug where scrollbars in Reflector could be sized
6624         wrong and have non-working thumbers.
6625
6626 2008-01-23  Geoff Norton  <gnorton@novell.com>
6627
6628         * XplatUI.cs: Refactor environment variables to default support to the
6629         Carbon driver on the Mac.
6630
6631 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6632
6633         * Label.cs: Uses new LabelPainter for drawing operations.
6634         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
6635         * Theme.cs: DrawLabel and LabelDefaultSize removed.
6636
6637 2008-01-22  Geoff Norton  <gnorton@novell.com>
6638
6639         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
6640
6641 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
6642
6643         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
6644         through the normal flat button code and don't draw the checkbox glyph.
6645         * Theme.cs: Button->ButtonBase signature change.
6646         [Fixes bug #324755]
6647
6648 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
6649
6650         * LinkLabel.cs: Uses new class LinkLabelPainter.
6651
6652 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
6653
6654         * MessageBox.cs: Adjust right border space, we don't need to add 
6655         "space_border*2" two times.
6656
6657 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
6658
6659         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
6660         becomes a wrapper around Padding.
6661         [Fixes a part of bug #354676]
6662
6663 2008-01-22 Geoff Norton  <gnorton@novell.com>
6664
6665         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
6666         acquired.  Also ensure the buffer is large enough to grab the header
6667         we need on linux boxes.
6668
6669 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
6670
6671         * Control.cs: Implement a custom enumerator so people can delete
6672         from the Controls collection while in a foreach.
6673         [Fixes bug #355074]
6674
6675 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
6676
6677          * PropertyGridView.cs: Fix focusing behavior:
6678          - Tab should focus the grid text box.
6679          - Clicking on the labels shouldn't focus the grid text box.
6680
6681 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
6682
6683          * PropertyGridView.cs: IsValueTypeGridItem should return true 
6684          for Arrays as well.
6685
6686 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
6687
6688          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
6689           - Renamed GridEntry.SelectedObjects to TargetObjects to better
6690           reflect the property name role.
6691           - PropertyGrid.GetTarget is not required as the target is known
6692           (TargetObjects).
6693           - Setting values will handle value types as a special case now and
6694           populate them up in the chain.
6695           [Fixes #354990]
6696
6697 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
6698
6699         * Hwnd.cs: Create a public property for the Graphics we keep around.
6700
6701 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
6702
6703          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
6704          when the current object selection changes. 
6705          Fixes failing test SelectedObject_Null2.B5.
6706
6707 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
6708
6709          * PropertyGrid.cs: Process Browsable properties with 
6710          DesignerSerializationVisibilityAttribute.Content as being expandable.
6711          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
6712          will not be expandable. We should be nested components-friendly now.
6713
6714 2008-01-21  Andreia Gaita <avidigal@novell.com>
6715
6716         * WebBrowserBase.cs: Check if control was loaded properly, 
6717         don't bind if it wasn't.
6718
6719         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
6720         GetElementFromPoint, equality operators, OpenNew, Write.
6721         Remove extra set_Body
6722
6723 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
6724
6725         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
6726         that makes our AutoScale* stuff more tolerant to different orders
6727         of being set.  [Fixes bug #354669]
6728
6729 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
6730
6731          * PropertyGridView.cs, PropertyGridTextBox.cs: 
6732          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
6733          [Fixes #339005 and #348209]
6734
6735 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
6736
6737          * PropertyGridView.cs: Hide the grid text box before adjusting it
6738          for the newly selected GridItem.
6739          [Fixes #338999]
6740
6741 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
6742
6743         * Form.cs: Give MDI children the opportunity to cancel the parent form
6744         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
6745         properly for both the parent and child.
6746         * Application.cs: Signature of internal method changed, pass the previous
6747         default of false.
6748         [Fixes bug #354286]
6749
6750 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
6751
6752         * PropertyGridView.cs: Set the property value only if it has changed.
6753         [Fixes bug #338997]
6754
6755 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
6756
6757         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
6758         If the mouse hasn't actually moved, ignore these messages so the currently
6759         highlighted menuitem isn't reset to the one under the mouse.
6760         [Fixes bug #333668]
6761
6762 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
6763
6764         * PropertyGridView.cs: When the property changes Invalidate the GridItem
6765         in order for the properties with UITypeEditor.GetPaintValueSupported == true
6766         to reflect the change visually.
6767         [Fixes bug #338998]
6768
6769 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
6770
6771         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
6772         to 2.0 button drawing.
6773         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
6774         the button text is tall enough for one line.  LineLimit says it will
6775         always draw at least one line, but it is a lie.
6776         [Fixes bug #324941]
6777
6778 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
6779
6780         * XplatUIStructs.cs, X11Keyboard.cs :
6781           added some more VK_* keys to be handled.
6782
6783 2008-01-16  Andreia Gaita <avidigal@novell.com>
6784
6785         * Control.cs: Check if there is a container before setting or getting
6786         the validation flag.
6787
6788 2008-01-16  Andreia Gaita <avidigal@novell.com>
6789
6790         * ContainerControl.cs: Add flag to track if a control cancels validation, 
6791         so we don't fire click events.
6792
6793         * Control.cs: 
6794         - (HandleClick) Check if validation was cancelled before  firing the click
6795         events (doubleclicks are fired, but not clicks)
6796         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
6797         ContainerControl.set_ActiveControl, but in the case of non-selectable
6798         controls, like a Label, activecontrol is not set. 
6799
6800         * ButtonBase.cs: Only fire clicks if validation passes.
6801         
6802         Fixes #353310
6803
6804 2008-01-16  Geoff Norton  <gnorton@novell.com>
6805
6806         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
6807         trunk
6808
6809 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
6810
6811         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
6812         SelectedPath, just display the default dialog instead of crashing.
6813         [Fixes bug #348989]
6814
6815 2008-01-16  Geoff Norton  <gnorton@novell.com>
6816
6817         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
6818         AddExpose instead of trusting apples compositing manager which doesn't
6819         work for our use case.  Remove some dead code causing warnings and 
6820         redecorate some other code to prevent warnings.
6821
6822 2008-01-16  Geoff Norton  <gnorton@novell.com>
6823
6824         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
6825         carbon signals us to redraw.  Fixes another portion of the flickering bug
6826
6827 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
6828
6829         * Form.cs: Prevent the MdiParent property to be set when value is the same
6830         as value already set. Fixes bug #328019.
6831
6832 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
6833
6834         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
6835         it prevents NRE when closing mdi child windows. Fixes bug #325211.
6836
6837 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
6838
6839         * InternalWindowManager.cs: Invalidade close button after mouse up when 
6840         mdi form is prevented to close.
6841
6842 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
6843
6844         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
6845         thanks to Andy Hume. Fixes bug #325433.
6846
6847 2008-01-16  Andreia Gaita <avidigal@novell.com>
6848
6849         * LinkLabel.cs: Reset focused_index when resellecting the control.
6850         Fixes #323190
6851
6852 2008-01-15  Geoff Norton  <gnorton@novell.com>
6853
6854         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
6855         messages.
6856
6857 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
6858
6859         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
6860         of truncate.
6861
6862 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
6863
6864         * ContainerControl.cs: Setting AutoScaleMode to anything should set
6865         Form.AutoScale to false.
6866         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
6867         AutoScaleBaseSize should be changed on Font change unless it has been
6868         explicitly set.
6869         [Fixes bug #353827]
6870
6871 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
6872
6873         * MenuAPI.cs: On instance of MenuTracker check if source control is
6874         ToolStripOverflow and use properly method to find form.
6875         [Fixes bug #338511]
6876
6877 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
6878
6879         [Fixes bug #323241 Transparent toolbar support]
6880
6881         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
6882         is flat.
6883
6884         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
6885         defined in control style to mimic win32 behavior.
6886
6887         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
6888         it will be transparent.
6889
6890 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
6891
6892         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
6893         CreateParams for ToolBar controls.
6894
6895 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
6896
6897         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
6898         FixedToolWindow, SizeableToolWindow, or None for border styles have
6899         different minimum sizes than regular forms.  Implemented to fix
6900         regression in PDN with toolbox being too wide.
6901
6902 2008-01-14  Andreia Gaita <avidigal@novell.com>
6903
6904         * HtmlElementCollection.cs: Implemented
6905
6906         * HtmlElement.cs: Implemented:
6907           - All
6908           - InnerHtml
6909           - InnerText
6910           - Id
6911           - Name
6912           - FirstChild
6913
6914         * HtmlDocument.cs: Implemented GetElementsByTagName.
6915
6916 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
6917
6918         * Screen.cs: Stub BitsPerPixel to always return 32.
6919
6920 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
6921
6922         * Form.cs: Implement RestoreBounds.
6923
6924 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
6925
6926         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
6927         Sebastien and his fabulous magical problem-finding machine:
6928         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
6929         respect the value set.
6930
6931 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
6932
6933         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
6934         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
6935
6936 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6937
6938         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
6939         messages (to match .Net), we need to remove the capture ourselves.
6940
6941 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
6942
6943         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
6944         will process the message and close our window.
6945         [Fixes bug #324328]
6946
6947 2008-01-10  Geoff Norton  <gnorton@novell.com>
6948
6949         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
6950         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
6951         window manager.
6952
6953 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
6954
6955         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
6956         failing test.
6957
6958 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
6959
6960         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
6961         Linux doesn't care, having a minimum matches MS and keeps the window
6962         from becoming too small to use window decorations.
6963         [Fixes bug #338996]
6964
6965 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
6966
6967         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
6968         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
6969         control.  [Fixes bug #325419]
6970
6971 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
6972
6973         * ComboBox.cs: Guard against an NRE if the user open a new form from a
6974         SelectedIndexChanged event.  This closes the combobox dropdown, and we
6975         were trying to dispose it.  [Fixes bug #352830]
6976
6977 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
6978
6979         * Control.cs, Form.cs: Implement the necessary semantics for
6980         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
6981         to determine if a focus rectangle should be drawn.
6982         * PropertyGrid.cs: Fix property visibility to match override.
6983         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
6984
6985 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
6986
6987         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
6988         [Fixes bug #323552]
6989
6990 2008-01-09  Geoff Norton  <gnorton@novell.com>
6991         
6992         * XplatUICarbon.cs: Scroll windows in the correct direction.
6993
6994 2008-01-09  Geoff Norton  <gnorton@novell.com>
6995
6996         * XplatUICarbon.cs: Track all created utility windows so we can hide them
6997         when the app is deactivated or spaces is enabled.
6998
6999 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7000
7001         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
7002         extra separation pixel for the label rect origin if SmallImageList is
7003         null, and thus we don't need that separation between icon and label
7004         rects.
7005         Patch by Ernesto Carrea.
7006         Fixes # 340195.
7007
7008 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
7009
7010         * StatusStrip.cs: Invalidate after completing a layout.  The base
7011         OnLayout does this, but we don't call the base.
7012         * ToolStripItem.cs: Revert the previous change to invalidate after
7013         the item moves.
7014         [Fixes bug #351341 better.]
7015
7016 2008-01-07  Geoff Norton  <gnorton@novell.com>
7017
7018         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
7019         not a notification to exit the application.  Listen for WM_QUIT
7020         instead.
7021
7022 2008-01-07  Andreia Gaita <avidigal@novell.com>
7023
7024         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
7025
7026 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
7027
7028         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
7029         so it can repaint at the correct location.
7030         [Fixes bug #351341]
7031
7032 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7033
7034         * ListControl.cs: SelectedValue should return a null value if
7035         SelectedIndex is -1. Also, when setting it, it should throw an
7036         ArgumentNullException if the value is null, as well as taking
7037         into account the String.Empty value, instead of ignoring it (we have
7038         tests for that now).
7039         Fixes part of #324286.
7040
7041 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
7042
7043         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
7044         SelectionStart is updated after pressing enter.  Fixes bug #351918.
7045
7046 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7047
7048         * TextControl.cs: Revert a piece r92316 that prevented the fix
7049         from working when there were multiple tags in the text box.
7050         Fixes bug #351881.
7051
7052 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7053
7054         * TextControl.cs: Apply patch from Luke Page that prevents an
7055         NRE when determining the beginning of a paragraph.
7056         Fixes bug #351886.
7057
7058 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7059
7060         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
7061         caret gets moved with clicking away from a selected block of
7062         text.  Fixes bug #351885.
7063
7064 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7065
7066         * TextControl.cs: Apply patch from Luke Page that takes line
7067         alignment into account for mouse selection, so that center and
7068         right aligned text can be selected.
7069         Fixes bug #351881.
7070
7071 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7072
7073         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
7074         issues after loading an RTF file by using the correct line feeds.
7075         Fixes bug #351841.
7076
7077 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
7078
7079         * TextControl.cs: When deleting multiple line selections, we need
7080         to invalidate every line beginning at the first line of the selection.
7081         Patch from Luke Page fixes bug #351791.
7082
7083 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7084
7085         * ListControl.cs: When getting a CurrencyManager.PositionChanged
7086         event, don't set SelectedIndex if the number of items is 1. This is
7087         because, for the first item, PositionChanged is fired _before_
7088         ItemChanged (the place where we actually populate the items), and
7089         leave us in a temporary invalid state (since items collection is
7090         empty).
7091         Fixes #349655.
7092
7093 2008-01-04  Geoff Norton  <gnorton@novell.com>
7094
7095         * XplatUICarbon.cs:  Create native toolwindows instead of
7096         the managed drawing ones.
7097
7098 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
7099
7100         * LineTag.cs: If the line doesn't have any characters, return
7101         0 for GetCharIndex.  Fixes an AOORE exception after certain
7102         caret movements.  Fixes bug #351683.  Patch by Luke Page.
7103
7104 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
7105
7106         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
7107         is hit when there is selected text, only the selected text gets
7108         deleted, not the character in front of the selection as well.
7109         Fixes bug #351578.
7110
7111 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7112
7113         * ComboBox.cs: When the values are displayed, calculate the
7114         ComboListBox scrollbar's LargeChange based on the visible area's
7115         height and  the actuall ItemHeight, instead of calculating it
7116         based on MaxDropItems value, since it's not used by our _current_ 
7117         2.0 profile.
7118         Fixes #332366.
7119
7120 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
7121
7122         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
7123         Patch from Luke Page that fixes issues with font colors and styles
7124         not showing up in a readonly RichTextBox.  Fixes bug #324354.
7125
7126 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
7127
7128         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
7129         from Luke Page.  This one fixes bug #349926.
7130
7131 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7132
7133         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
7134         an item in the IBindingList source changes with
7135         ListChangedType.ItemAdded. Ignore for now firing the event for other
7136         changes, since we want to have tests for those cases as well.
7137
7138 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
7139
7140         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
7141         created.
7142
7143 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
7144
7145         * TextBoxTextRenderer.cs: Implement a cache for measuring each
7146         character.  This is effective because the typical usage of a
7147         TextBox is with a limited amount of fonts and characters, and
7148         the current implementation of TextBox measures everything one
7149         character at a time.  Another second or two speedup for bug #347238.
7150
7151 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
7152
7153         * Control.cs: Rewrite the Font getter to only query the parent's
7154         Font property once instead of twice.  Since this operation is
7155         recursive, the queries were growing exponentially as the control
7156         tree got deeper.  Another second or two speedup for bug #347238.
7157
7158 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
7159
7160         * Control.cs: Avoid setting a parent (and more importantly, updating
7161         the zorder of all its children) if the parent is already correct in
7162         WmShowWindow.  Decreases the startup time of the test case on bug
7163         #347238 from 35 seconds to 11 seconds.
7164
7165 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7166
7167         * X11Dnd.cs: When the dnd operation has started and we are 
7168         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
7169         This is done to match .Net, which doesn't send those messages after
7170         dnd operation was completed/cancelled.
7171         Fixes #349922.
7172
7173 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
7174
7175         * ToolStrip.cs: Previous change should be != null, not == null.
7176         Thanks Gert!
7177
7178 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
7179
7180         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
7181         user may have moved the mouse off the current item during the event.
7182
7183 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7184
7185         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
7186         calling GetItemAt for every MouseMove event by also taking into
7187         account whether any mouse button is pressed (probably dragging); 
7188         if so, we can call GetItemAt, and if not, try to not call it 
7189         (GetItemAt can be quite expensive when used with a large number of items).
7190
7191 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7192
7193         * ListView.cs: Implement -finally- support for dnd, by calling
7194         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
7195         authors list ;-).
7196         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
7197         simple calculation of distances for all the items in the owner
7198         listview.
7199
7200 2007-12-21  Geoff Norton  <gnorton@novell.com>
7201
7202         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
7203         for windows that are originally created as invisible.  Fixes missing
7204         main window in paint-mono.
7205
7206 2007-12-21  Geoff Norton  <gnorton@novell.com>
7207
7208         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
7209         subclass handler for com.novell.mwfview subclassing HIView.  Implement
7210         Pasteboard and Dnd methods.
7211
7212 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7213
7214         * ListBox.cs: When we got focus, give focus to first item if there
7215         wasn't any pervious focused item. Also update navigation to depend on
7216         SelectedIndex rather than FocusedItem, just as .Net does.
7217         Fixes #349174.
7218
7219 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7220
7221         * ListBox.cs: Both FindString and FindStringExact methods must do an
7222         case insensitive search, should allow the last valid index to be
7223         passed in the overload taking an initial index, and should also
7224         continue searching from the top back to the specified index when it
7225         reaches the bottom.
7226
7227 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
7228
7229         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
7230         redraw issue, and allows RichTextBox to draw colored text even while
7231         disabled or readonly.
7232
7233 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
7234
7235         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
7236         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
7237         and doesn't grey text in a disabled RichTextBox.
7238
7239 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
7240
7241         * RichTextBox.cs: Apply patch from Luke Page that adds better support
7242         for many RTF commands: quad alignment, separate formatting for blocks
7243         inside groups, and ParDef support.  Makes the test case from bug #324589
7244         look much better.
7245
7246 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
7247
7248         * LineTag.cs: Fix an error in the new Draw method that caused
7249         a crash when rendering the document on bug #324589.
7250
7251 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
7252
7253         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
7254         TextControl.cs: Apply patch from Luke Page that adds support
7255         for URL links in RichTextBox.
7256         [Fixes enhancement #342516]
7257
7258 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
7259
7260         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
7261         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
7262
7263 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7264
7265         * ListBox.cs: When a key gets pressed, try to find a string
7266         if the key is a character or a digit.
7267         Fixes #343971.
7268
7269 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
7270
7271         * TableLayoutPanel.cs: Remove some unused variables.
7272
7273 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
7274
7275         * DateTimePicker.cs: Commit patch from Luke Page that ensures
7276         we don't end up at an invalid date when we click the up/down
7277         spinner to change the month or year.  Fixes bug #348682.
7278
7279 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
7280
7281         * Application.cs: Calling Exit in 2.0 should chain to the
7282         Exit (CancelEventArgs) version so it can be cancelled.
7283         * Form.cs: Create a flag to allow raising the Closing
7284         events to be skipped.  We raise them once in Application.Exit
7285         and don't want to raise them again when the Form is actually
7286         closed.  [Fixes bug #349073]
7287
7288 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
7289
7290         * ToolStripDropDown.cs: Guard against an NRE when there
7291         hasn't been a mainform set in the application context.
7292         [Fixes bug #349108]
7293
7294 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7295
7296         * ListBox.cs: When SetBoundsCore gets called, besides
7297         calling UpdateScrollBars, update the value of
7298         last_visible_index, since we could need to show more items
7299         than before, and we need to let the paint routines know that.
7300         Fixes #344445.
7301
7302 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7303
7304         * ListView.cs: Add DesignerSerializationVisibility attribute to
7305         InsertionMark property.
7306         * ListViewItem.cs: Add same attribute to Position property.
7307
7308 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7309
7310         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
7311         is 2.0 only.
7312
7313 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
7314
7315         * ThemeWin32Classic.cs: Don't draw the background on a
7316         flat button if there is a background image.
7317         [Fixes bug #348649]
7318
7319 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7320
7321         * ListBox.cs: If we remove the item currently selected,
7322         remove it not only from SelectedItems, but also
7323         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
7324         the items count decreased and focused_item has bigger value than that.
7325
7326 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
7327
7328         * Control.cs: Perform our layout after we resize ourselves
7329         if we had to adjust our AutoSize.  Missed commit for bug
7330         #346246.
7331
7332 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
7333
7334         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
7335         we can provide an implementation of AutoSize.
7336         [Fixes bug #346246]
7337
7338 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7339
7340         * ListBox.cs: Add the internal overload Sort (bool paint),
7341         to indicate whether we actually need a paint or we will
7342         call Refresh ourselves. This way we don't request a paint
7343         _before_ having an updated and valid layout.
7344         Fixes #347233.
7345
7346 2007-12-12  Andreia Gaita <avidigal@novell.com>
7347
7348         * XPlatUIX11.cs: Send paint messages when updating a systray icon
7349         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
7350         properly invalidated. 
7351         Fixes #324237
7352
7353 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7354
7355         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
7356         don't simply assign it to our internal group field, but instead 
7357         use our Group property, which should do all the neccessary work
7358         required to support groups. Fixes an issue reported to me (mail) by a 
7359         guy using this new feature.
7360
7361 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
7362
7363         * Control.cs: Use Scale instead of ScaleControl to ensure the
7364         whole hierarchy gets scaled.
7365         [Fixes bug #347282]
7366
7367 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
7368
7369         * DateTimePicker.cs: Don't set the internal MonthCalendar's
7370         Parent property.  Doing this causes the control to be hosted by
7371         the Form instead of being a popup window.
7372         [Fixes bug #347665]
7373
7374 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
7375
7376         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
7377         at an index higher than Count, just use Add instead of Insert.
7378         [Fixes bug #347669]
7379
7380 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
7381
7382         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
7383         DrawPictureBox, this is handled by Control.PaintBackground.
7384         [Fixes bug #347276]
7385
7386 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
7387
7388         * MenuAPI.cs: When process menu keys return true by default only if menu is
7389         active. Fixes bug #342892.
7390
7391 2007-12-09  Andreia Gaita <avidigal@novell.com>
7392
7393         * Control.cs: check if windows are actually mapped before
7394         trying to zorder. Fixes #342509, #346955
7395
7396 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7397
7398         * ListView.cs:
7399         * ListViewInsertionMark.cs:
7400         * ThemeWin32Classic.cs: Implement the drawing side of the
7401         new 2.0 ListView.InsertionMark property.
7402
7403 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
7404
7405         * CurrencyManager.cs: Silence some debug spew.
7406
7407 2007-12-07  Geoff Norton  <gnorton@novell.com>
7408         
7409         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
7410         masks for our children as well as siblings to avoid having to query
7411         Quartz for this information.
7412         * XplatUICarbon.cs: Implement a delegate based system to pass
7413         information to System.Drawing.  Implement Async methods.  Remove
7414         the hack for the resize thumb and imlpement a transparent Grow Box.
7415         Rework the messaging system to proplery create window's and messages,
7416         fixes TabControl.
7417
7418 2007-12-06  Andreia Gaita <avidigal@novell.com>
7419
7420         * X11Keyboard.cs: Use Xutf8LookupString to support international 
7421         characters under alternate codepages. Patch from #340878
7422
7423 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7424
7425         * ListView.cs: When doing layout computations, set position in the
7426         ListView instances (we cache the position just as .Net does).
7427         * ListViewItem.cs: New internal setter method for Position. Also set
7428         position field as also available in 1.1, since we are going to use it
7429         now in the common case.
7430
7431 2007-12-06  Andreia Gaita <avidigal@novell.com>
7432
7433         * Control.cs: When removing controls, get the actual container
7434         to notify about active control changes. Fixes 341314.
7435
7436 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7437
7438         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
7439
7440 2007-12-05  Andreia Gaita <avidigal@novell.com>
7441
7442         * Control.cs: When updating the zorder, ignore windows that are not
7443         mapped. Fixes #342509
7444
7445 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7446
7447         * ListViewItem.cs: Actually implement serialization on this class.
7448
7449 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
7450
7451         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
7452         LinkCollection. Spaces to tabs, and removed extra tabs.
7453
7454 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7455
7456         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
7457           tests to fail (hopefully).
7458
7459 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
7460
7461         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
7462         the image margin so custom renderers can correctly place it.
7463
7464 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
7465
7466         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
7467         so custom renderers can correctly place it.
7468
7469 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
7470
7471         * Application.cs: Let WM_CHAR messages flow through to controls
7472         hosted in Strips.  [Fixes bug #343972]
7473
7474 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
7475
7476         * ToolStripManager.cs: Guard against an NRE I ran into.
7477
7478 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
7479
7480         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
7481         a Link is manually added to the Links collection, we need to set
7482         its owner, so it can invalidate properly.
7483         [Fixes bug #344012]
7484
7485 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7486
7487         * ListView.cs: When changing ListViewItem.Position (which calls
7488         ListView.ChangeItemLocation), invalidate not only the area
7489         corresponding to the main item, but also to the area occupied
7490         by the items being moved.
7491
7492 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7493
7494         * ListView.cs: When changing the position of a given item,
7495         don't use item bounds, but item areas (which includes the item spacing
7496         between them). Also, use first/last position if the requested
7497         position is outside bounds (as .Net does). Invalidate the previous and
7498         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
7499         in a specific position, instead of directly accessing Items collection
7500         (this is done to get the right item - remember an Item can have a
7501         different position in the grid than in the Items collection).
7502
7503 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
7504
7505         * MessageBox.cs: Calculate text area instead of just top left, this rect 
7506         area will be used in DrawString. Fixes bug #343364.
7507
7508 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
7509
7510         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
7511         screen width. Partially fixes bug #343364.
7512
7513 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
7514
7515         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
7516         code inside recalculate, it makes code more simple.
7517
7518 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
7519
7520         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
7521         between update or add icon. Fixes bug #324344.
7522
7523 2007-11-21  Andreia Gaita <avidigal@novell.com>
7524
7525         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
7526         window manager, since that stretches the drawing area to include
7527         the window decorations, and they get hidden. Reverts r84444 and fixes
7528         #335849 and #342790 (mdi and pdn3 regression)
7529
7530 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7531
7532         * ListView.cs: When setting focused item, try to give focus to the
7533         previous one _only_ if the previous one remains valid. 
7534         Fixes #342504.
7535
7536 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
7537
7538         * Application.cs: Revert r89650, as it broke a common case to fix
7539         an obscure case.  Fixes bug #342606.
7540
7541 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
7542
7543         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
7544
7545 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
7546
7547         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
7548         alignment. [Fixes #324228]
7549
7550 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
7551
7552         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
7553         [Fixes bug #342123]
7554
7555 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
7556
7557         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
7558         it prevent problems when empty captions. [Fixes #342141]
7559
7560 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
7561
7562         * Label.cs: Use Size instead of None.  Fixes bug #342077.
7563
7564 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7565
7566         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
7567
7568 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
7569
7570         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
7571         but there isn't a MdiContainer.
7572         [Fixes bug #342358]
7573
7574 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
7575
7576         * TextControl.cs: Don't recalculate document if the recalc_start and
7577         recalc_end hasn't changed.
7578         [Fixes bug #342505]
7579
7580 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
7581
7582         * DataGridViewTextBoxCell.cs: Removed CWL.
7583
7584 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7585
7586         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
7587
7588 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
7589
7590         * TextControl.cs: Missed some code for bug 341534 to trigger a
7591         recalculation when the font changes.
7592
7593 2007-11-16  Andreia Gaita <avidigal@novell.com>
7594
7595         * Control.cs: When updating the zorder, check if the child to update is
7596         the same control that is set to always be on top (i.e., scrollbars), and 
7597         just put it on top directly. Fixes BadMatch error on pdn3
7598
7599 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7600
7601         * ListView.cs: Throw the needed exceptions for FindNearestItem.
7602
7603 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
7604
7605         * Control.cs: Don't perform a new layout when a label changes its text,
7606         cause label handles its own autosizing.
7607         [Fixes bug #342077]
7608
7609 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7610
7611         * ListView.cs: Implement 2.0 FindNearestItem methods.
7612
7613 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
7614
7615         * ToolStripPanel.cs: Make Join at least add the control to the panel,
7616         even if the rest of what Join does isn't supported.  Add some more
7617         support for vertical toolbars.
7618         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
7619         [Fixes the application breaking parts of bug #341998]
7620
7621 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
7622
7623         * ToolStripItem.cs: When determining if we have a check/image margin,
7624         we need to look at ShowCheckMargin as well as ShowImageMargin.
7625
7626 2007-11-15  Geoff Norton  <gnorton@novell.com>
7627
7628         * XplatUIOSX.cs: Rename to...
7629         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
7630         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
7631
7632 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
7633
7634         * KeysConverter.cs: The default values should be an array of Keys, not
7635         strings.  Also, the array has more values for 2.0.
7636         [Fixes bug #341851]
7637
7638 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
7639
7640         * Application.cs: Change ExecutablePath to use 
7641         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
7642         [Fixes bug #323552]
7643
7644 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
7645
7646         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
7647         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
7648         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
7649         be ignored.  Create a new GetLineEnding that can specify which types of
7650         line endings to look for.  On Insert, only create new lines for \n and \r\n.
7651         [Fixes bug #324274]
7652
7653 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
7654
7655         * TextBoxBase.cs: As we loop through each line changing the font, tell
7656         the document that the line needs to be recalculated.  Fixes bug #341534.
7657
7658 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
7659         [Another round of refactoring]
7660         * Line.cs: Add DeleteCharacters.
7661         * LineTag.cs: Add Delete.
7662         * TextBoxBase.cs: Update to use new methods.
7663         * TextControl.cs: Refactor the Delete* methods.
7664
7665 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
7666
7667         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
7668         the patch. [Fixes #324856]
7669
7670 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7671
7672         * ListView.cs:
7673         * ListViewItem.cs: Add an initial implementation of
7674         2.0 ListViewItem.Position getter.
7675
7676 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7677
7678         * ListView.cs: Add a reordered_items_indices array, to allow us
7679         to have a different sorting than that of Items (the sorting in Items
7680         could not match the actual sorting in screen). This is needed to
7681         implement a pair of 2.0 features.
7682         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
7683         actual position in the ListView grid, since it could have a position
7684         different than its Index (position in ListViewItemCollection). 
7685
7686 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
7687
7688         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
7689         not draw partial lines.
7690         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
7691         LineLimit flag from the base is preserved.
7692         Fixes the windows part of bug #338965.
7693
7694 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
7695
7696         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
7697         so that it can be canceled in KeyPress.
7698         Fixes bug #340078.
7699
7700 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7701
7702         * ListView.cs: In ItemControl, reset mouse-handling related
7703         fields even if we dont' have items (we still should reset them when
7704         we had items but then called Items.Clear). Partially based in a patch
7705         by George Giolfan.
7706         Fixes #338399.
7707
7708 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
7709
7710         * Application.cs: In ProductVersion first try AssemblyFileVersion
7711         before falling back to assembly version. Fixes bug #339787.
7712
7713 2007-11-08  Andreia Gaita <avidigal@novell.com>
7714
7715         * HtmlElement.cs: Implement InnerText setter.
7716         * WebBrowserBase.cs: Implement Navigated event support.
7717         Add flag to track when the browser "document" is ready to be retrieved.
7718         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
7719         Make sure browser document is ready before retrieving it.
7720         Clean up cached objects (document) when moving to a new page through
7721         any of the navigation methods.
7722         Use the new Mono.WebBrowser.INavigation interface to control navigation.
7723         Implement OnNavigated event.
7724
7725 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
7726
7727         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
7728         DrawLinkLabel, this is handled by OnPaintBackground.
7729         Fixes bug #339565, part II.
7730
7731 2007-11-07  Andreia Gaita <avidigal@novell.com>
7732
7733         * Control.cs: Revert r88915. Selecting text on a textbox depends on
7734         getting a Select call on click, so this call needs to be here for now.
7735         Unfixes #325809
7736
7737 2007-11-07  Geoff Norton  <gnorton@novell.com>
7738
7739         * OSXStructs.cs: Add the kEventClassApplication constants.
7740         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
7741         application is deactivated otherwise Menu overlays linger on top of
7742         other application windows.
7743
7744 2007-11-07  Geoff Norton  <gnorton@novell.com>
7745
7746         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
7747         dont support cursors yet anyways.  This allows Reflector to run.
7748
7749 2007-11-07  Geoff Norton  <gnorton@novell.com>
7750
7751         * XplatUIOSX.cs: Implement DragSize.
7752
7753 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7754
7755         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
7756         ItemControl, request the focus, as .Net does. This is needed after 
7757         Control does not request focus anymore when it receives a
7758         WM_LBUTTONDOWN.
7759
7760 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
7761
7762         * Label.cs: Make DrawImage internal so it can be called from Theme code.
7763         Remove the DrawImage call from OnPaint.
7764         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
7765         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
7766         but before we draw the text for DrawLabel and DrawLinkLabel.
7767         Fixes bug #339565.
7768
7769 2007-11-05  Andreia Gaita <avidigal@novell.com>
7770
7771         * Control.cs: Remove select call on click. Fixes #325809
7772
7773 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7774
7775         * ListViewItem.cs: Add 2.0 Position property getter.
7776
7777 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7778
7779         * ListView.cs: Add 2.0 BackgroundImageTiled property.
7780         Also, to make it work properly, change item's BackColor and
7781         BackgroundImageLayout as needed.
7782         * ThemeWin32Classic.cs: Don't fill any background rectangle 
7783         in ListView.ItemControl when drawing items; just let the Control
7784         base implementation fill it.
7785
7786 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7787
7788         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
7789         as well as adding a custom 'dummy' Converter, as .net does.
7790
7791 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7792
7793         * PropertyGridView.cs: When clicking drop-down button,
7794         select an index in the listbox only if our standard values collection 
7795         has one or more items.
7796
7797 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7798
7799         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
7800         property.
7801
7802 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
7803
7804         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
7805         the value is not changed. This ensure a pushed button remains in that
7806         state when clicked again. When switching the value of PropertySort
7807         between Categorized and CategorizedAlphabetical, do not update the
7808         grid items and do not fire a PropertyChangedEvent. When clicking the
7809         sorting buttons, do not modify the PropertySort value when switching
7810         between Categorized and CategorizedAlphabetical but only update the
7811         button state.
7812
7813 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
7814
7815         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
7816         formatting.
7817         * PropertyGrid.cs: Also put Categorized button in pushed state when
7818         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
7819         for help description label.
7820
7821 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7822
7823         * ListView.cs: When calculating the biggest item for a given column,
7824         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
7825         the item's width.
7826
7827 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
7828
7829         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
7830         value for PropertySort on 1.0 profile. PropertySortChanged event
7831         should only be fired on 2.0 profile. Fixed NullReferenceException
7832         in UpdateSortLayout when PropertyGrid contains no items.
7833
7834 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
7835
7836         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
7837         [Fixes bug #338554]
7838
7839 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7840
7841         * ListViewItem.cs: Implement 2.0 IndentCount property.
7842
7843 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7844
7845         * X11Dnd.cs: When sending status in a dnd operation, compare current
7846         effect with the 'allowed' field instead of 'drag_data.Allowed', since
7847         the later is only created when a Winforms application is both the
7848         source and the target, but not when we are the target only.
7849         Fixes part of #324251.
7850
7851 2007-11-01  Geoff Norton  <gnorton@novell.com>
7852
7853         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
7854         order of Z-Order.
7855         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
7856         children out of the drawing view on mac.
7857         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
7858         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
7859         
7860 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
7861
7862         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
7863         on the non-hosted-control part of it shouldn't do anything.
7864         Fixes part of bug #327498.
7865
7866 2007-11-01  Andreia Gaita <avidigal@novell.com>
7867
7868         * WebBrowserBase.cs: revert previous change, resize can be called anytime
7869
7870 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
7871
7872         * Application.cs: When a toolstrip has the keyboard input loop, let messages
7873         it does not use flow through to controls that are hosted in menus.
7874         Same with mouse clicks.
7875         * Form.cs: Don't close all menus on click if the click is on a
7876         control hosted in a menu.
7877         Fixes part of bug #327498, and part of bug #325969.
7878
7879 2007-10-31  Andreia Gaita <avidigal@novell.com>
7880
7881         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
7882
7883 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
7884
7885         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
7886         Addresses an issue raised in bug #336218.
7887
7888 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
7889
7890         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
7891         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
7892
7893 2007-10-30  Andreia Gaita <avidigal@novell.com>
7894
7895         * ContainerControl.cs: Check if the active control is a
7896         child of a removed control and update active_control accordingly.
7897         Fixes #329718
7898
7899 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
7900
7901         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
7902         or the MaxDate.  Fixed bug #337693.
7903
7904 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
7905
7906         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
7907         after calling SetWindowLong for a form, to force an immediate NC refresh.
7908         Fixes first part of bug #325150.
7909
7910 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
7911
7912         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
7913         simple.  Fixes the last part of bug #322668.
7914
7915 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
7916
7917         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
7918         needs to be TopMost as well, or else the MessageBox is under the form.
7919         Patch by George fixes bug #325300.
7920
7921 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7922
7923         * X11Dnd.cs: When starting a new drag operation, reset the static
7924         'dropped' field to false (previously the implementation didn't reset
7925         it and got confused after the first drag).
7926         Fixes #325071.
7927
7928 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7929
7930         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
7931         items instead of re-creating them all. For this purpose we now cache
7932         both CategoryGridEntry items and the GridEntries for the main object's
7933         properties.
7934         * GridItem.cs: Make SetParent method abstract.
7935         * GridEntry.cs: Override the SetParent method (already there, but now
7936         we override it).
7937         Fixes #324866.
7938
7939 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7940
7941         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
7942         depending on its depth (as .Net does). Update the needed values in
7943         MouseDown handler. Also draw the plus/minus rect after the label,
7944         so we don't draw on top of it.
7945
7946 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
7947
7948         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
7949         processed by forms or controls when menu is active. [Fixes #333548]
7950
7951 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
7952
7953         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
7954         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
7955         focus on mouse over.
7956
7957 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
7958
7959         * TextControl.cs: Code cleaning, simplifying.
7960
7961 2007-10-24  Geoff Norton  <gnorton@novell.com>
7962
7963         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
7964         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
7965
7966 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
7967
7968         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
7969         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
7970
7971 2007-10-24  Andreia Gaita <avidigal@novell.com>
7972
7973         * SendKeys.cs: apply jpobst's patch to bug #332409
7974
7975 2007-10-23  Andreia Gaita <avidigal@novell.com>
7976
7977         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
7978         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
7979         for some reason
7980
7981 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7982
7983         * PropertyGridView.cs: If a property has an UIEditor available,
7984         make the drop-down/editor button available only if the property
7985         is _not_ read only.
7986
7987 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7988
7989         * PropertyGridView.cs: Don't make the grid item textbox 
7990         editable when a drop-down control is available, but 
7991         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
7992         true. The same bur the color of the grid item value's label.
7993
7994 2007-10-22  Geoff Norton  <gnorton@novell.com>
7995
7996         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
7997         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
7998         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
7999         driver.  Padd the bottom of all real windows so the resize thumb doesn't
8000         obscure scroll/status bars.
8001
8002 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
8003
8004         * WindowsFormsSection.cs: Implement.
8005
8006 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
8007
8008         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
8009         closed see #325434 patch.
8010
8011 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
8012
8013         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
8014         see #325434 patch.
8015
8016 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8017
8018         * PropertyGridView.cs: When showing the textbox for a grid item,
8019         have two local variables to store the read-only and non-editable
8020         status of a grid item (we were previously using just one variable
8021         to do this, when actually they are slightly different).
8022         Fixes part of #325023.
8023
8024 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8025
8026         * PropertyGridView.cs: When showing a drop-down list, try to get the
8027         values using TypeConverter.ConvertTo (to convert to a string). Fixes
8028         part of #325023.
8029
8030 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8031
8032         * PropertyGrid.cs: When updating a property and populating sub grid
8033         items, remove the previous ones, and invalidate the specific area.
8034         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
8035         area behind a grid item.
8036         * GridItemCollection.cs: Add an internal Clear method, to allow us to
8037         clean the items if needed (specially for controls implementing 
8038         ICustomTypeDescriptor and returning a variable number of properties).
8039         Fixes #324865.
8040
8041 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
8042
8043         * TextControl.cs: Clean up and document the Insert function.
8044
8045 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
8046
8047         * TextControl.cs: Make sure we know our start point for updating the view
8048         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
8049         update the view.
8050
8051 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
8052
8053         * ListView: Couple of corcompare fixes.
8054
8055 2007-10-17  Geoff Norton  <gnorton@novell.com>
8056
8057         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
8058         the title caption of real window.
8059
8060 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
8061
8062         * ErrorProvider.cs: Add the error provider's internal window to a 
8063         containercontrol when the parent changes.  [Fixes bug #329714]
8064
8065 2007-10-17  Geoff Norton  <gnorton@novell.com>
8066
8067         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
8068         When we make a new window; restore the old active window - fixes dialogs.
8069
8070 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8071
8072         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
8073         when modifying a property, and if found then invalidate as
8074         requested.
8075         Fixes part of #324865.
8076
8077 2007-10-17  Geoff Norton  <gnorton@novell.com>
8078
8079         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
8080         highly experimental.  Fixed coordinate translation.  Fixed window locations.
8081         Initial support for clipping. Implemented NC areas and menus.  Support for
8082         launching from command line from Will Johansson (wjohansson@atacomm.com).
8083         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
8084         wjohansson@atacomm.com)
8085         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
8086         Hwnds now track the existence of all of their children for Mac clipping.
8087     * XplatUI.cs: Re-enabled the native driver on the Mac.
8088
8089 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
8090
8091         * Line.cs: Move the InsertString function to here.
8092         * TextControl.cs: Cleanup some duplicate code, move some InsertString
8093         functionality to Line.
8094
8095 2007-10-17  Geoff Norton  <gnorton@novell.com>
8096
8097         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
8098
8099 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
8100
8101         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
8102         always setting value to true.
8103         * Form.cs: When changing AcceptButton, notify new and original button.
8104
8105 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
8106
8107         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
8108         a custom control that implements IButtonControl instead of an actual
8109         button.  [Fixes bug #334244]
8110
8111 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
8112
8113         * Form.cs: Change SelectActiveControl to internal, we need to call it in
8114         MdiWindowManager.
8115         
8116         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
8117         active control when activate a new mdi window.
8118         
8119         [Fixes bug #330495]
8120
8121 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
8122
8123         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
8124         is already added.
8125         [Fixes bug #333617]
8126
8127 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
8128
8129         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
8130         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
8131         so we always recalculate the whole document instead of just the new part.
8132         [Fixes bug #325082]
8133
8134 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
8135
8136         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
8137         when the mouse was to the left of the first character in the line.
8138
8139 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
8140
8141         * TextBox.cs, TextBoxBase.cs: When setting the document's password
8142         character, use the property instead of the variable so that the
8143         UseSystemPasswordChar property is taken into account.
8144         [Fixes bug #333748]
8145
8146 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8147
8148         * FolderBrowserDialog.cs: When a node is right clicked and the "New
8149         folder" contex menu appears, actually add the new folder to it, even
8150         if the node is not currently selected. Still use SelectedNode in case 
8151         there wasn't found a node under the pointer.
8152         Fixes #325452.
8153
8154 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8155
8156         * ListViewItem.cs: When retrieving the focused state, the index check
8157         should be done only when ListView is in virtualmode, as it is an
8158         expensive check for normal mode.
8159
8160 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8161
8162         * ListViewItem.cs: Make the focus state information be stored
8163         in the ListView, not in the items. This is done to match the MS
8164         behaviour for items that are not yet part of a ListView control;
8165         besides that, since just one item can be focused at the same time,
8166         we save a little space in our items.
8167         Fixes part of #331643.
8168
8169 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
8170
8171         * ComboBox.cs: When focus is lost, deselect the text. When setting
8172         text of control, select all text. Do not hide selection when control
8173         does not have focus. Fixes bug #333663.
8174
8175 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
8176
8177         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
8178         instead of ArgumentException when SelectionLength is set to negative
8179         value. Added same check to SelectionStart. Code formatting.
8180
8181 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
8182
8183         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
8184         or SelectionStart. Code formatting.
8185
8186 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8187
8188         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
8189         indicating that there was not a previous drag-and-drop operation going
8190         on.
8191         Fixes part of #325071.
8192
8193 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8194
8195         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
8196         AllowedEffect, don't let the drop operation happen. 
8197         Fixes #32580.
8198
8199 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
8200
8201         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
8202
8203 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
8204
8205         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
8206         is called.
8207
8208 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
8209
8210         * Line.cs: Add a method that finds the tag that contains an x-coord.
8211         * LineTag.cs: Add a method that finds the character at an x-coord using
8212         a binary search, the old way was a linear search.
8213         * TextControl.cs: Change FindCursor to use the above new methods.
8214
8215 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8216
8217         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
8218         value different than AllowedEffect). This should be possible to
8219         indicate that dragging is not possible in some control/area.
8220
8221 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
8222
8223         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
8224         descent internally when font changes instead of outside code being responsible
8225         for setting it.
8226         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
8227         instead of accessing internal variables.
8228
8229 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
8230
8231         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
8232         remove special treatment for ArrangeIcons since it is already arranged.
8233
8234 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
8235
8236         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
8237         the Win32 backend uses Color.
8238         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8239         Refactor to store a Color instead of a Brush for Color.
8240
8241 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
8242
8243         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
8244         away.  I didn't realize I needed this when I refactored these earlier.
8245
8246 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
8247
8248         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
8249         store a Color structure and use the ResPool for back color instead of
8250         holding onto brushes.
8251
8252 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
8253
8254         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
8255         [Fixes bug #325592]
8256
8257 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8258
8259         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
8260         to recalculate its size.  Fixes a part of bug #331052.
8261
8262 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8263
8264         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
8265         button.  Fixes a part of bug #331052.
8266
8267 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8268
8269         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
8270         the CreateParams.
8271         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
8272         decorations.
8273         [Fixes bug #330986]
8274
8275 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8276
8277         * TextBoxTextRenderer.cs: Don't make this a static class, as static
8278         doesn't exist in 1.1.  (Thanks jb!)
8279
8280 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8281
8282         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
8283         class to allow us to use different backends on different platforms.
8284         Linux uses the current [Draw|Measure]String backend.  Windows uses
8285         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
8286         of GDI+.  This leads to better looking text and more accurate measurements
8287         on Windows, fixing many of the reported issues.
8288         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
8289
8290 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8291
8292         * FolderBrowserDialog.cs: When running on Windows,
8293         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
8294         since we must match both "C:" and "C:\" forms. A little hackish, but
8295         works.
8296         Fixes #325247.
8297
8298 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8299
8300         * ListView.cs: When calling EndEdit (after editing an item),
8301         create a new instance of LabelEditEventArgs to keep clean the fields
8302         in case we get a new call to BeginEdit; also do Application.DoEvents
8303         to have focus in synch. This is a fix similar to TreeView's #325244.
8304
8305 2007-10-07  Andreia Gaita <avidigal@novell.com>
8306
8307         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
8308         * WebBrowserBase.cs: Added dialog support, calling the
8309           WebBrowserDialogs classes for each specific dialog type.
8310
8311 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8312
8313         * ListView.cs: When the last item is focused and is removed,
8314         move the focus to the previous item (in Items order). This is what MS
8315         does.
8316         Fixes #330415.
8317
8318 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8319
8320         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
8321         instead of the opposite (RemoveAt call Remove). This is a better
8322         approach since we don't need to to a pair of traversals when using
8323         RemoveAt.
8324
8325 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8326
8327         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
8328         check that the node actually has nodes, and if not, move to the
8329         parent node instead. 
8330         Fixes #325265.
8331
8332 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8333
8334         * TreeView.cs: Move the previous change to the general case (to
8335         call Application.DoEvents in cases where the method was called by
8336         different places).
8337
8338 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8339
8340         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
8341         call Application.DoEvents. This is neccessary when we get a call to
8342         BeginEdit from an AfterLabelEdit handler, because the focus always
8343         goes to the TreeView, even if we try to give it to our
8344         LabelEditTextBox. The call do Application.DoEvents seems to
8345         synchronize the focus, basically.
8346         Fixes #325244.
8347
8348 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8349
8350         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
8351         should be false. This also removes some nasty recursive paths. Fixes
8352         part of #325244.
8353
8354 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
8355
8356         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
8357         state to normal. Also resize window when cascading. Fixes #325433. 
8358
8359 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
8360
8361         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
8362         DefaultForeColor, as drawing empty colored lines isn't very useful.
8363         [Fixes the not drawn lines part of bug #324358]
8364
8365 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
8366
8367         * TextControl.cs: Move Line and LineTag classes into separate files to
8368         make things easier to find.
8369         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
8370         * RichTextBox.cs: Capitalize LineTag.Length property access.
8371         - This is purely an organizational/formatting change, no logic changed. -
8372
8373 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
8374
8375         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
8376         text is empty.
8377
8378 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
8379
8380         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
8381         text is empty.
8382
8383 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
8384
8385         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
8386         prevent calling of OnBackColorChanged. Fixes #325321.
8387
8388 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
8389
8390         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
8391         because control can be disabled because owner is disabled.
8392
8393 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
8394
8395         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
8396         string.Empty, test failed from previous change.
8397
8398 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
8399
8400         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
8401         is null, not String.Empty.  See bug #323038.
8402
8403 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
8404
8405         * TextControl.cs: Change the margins to match MS a little better.
8406         Still not perfect for X11 due to some DrawString differences, but
8407         is still an improvement over the old stuff.
8408         Partially fixes #324467.
8409
8410 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8411
8412         * FolderBrowserDialog.cs: When using MyComputer as 
8413         RootFolder, let absolute paths be considered as valid ones. Also, use
8414         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
8415         for Windows compatibility.
8416         Partially fixes #325247.
8417
8418 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8419
8420         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
8421         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
8422         method, since it causes the dialog to not select folders directly
8423         under the root path (when setting SelectedPath property).
8424
8425 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8426
8427         * TreeNode.cs: When calling Expand/Collapse and need to call 
8428         ExpandBelow/CollapseBelow respectively, take into account
8429         partially visible nodes (previously Expanding/Collapsing
8430         a partially visible node in the bottom was not updating its +- sign).
8431
8432 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8433
8434         * TreeView.cs: When calling Expand on a TreeNode, and we need to
8435         expand nodes below (ExpandBelow), scroll the entire Viewport
8436         area if the node is above it and not visible (instead of scrolling
8437         the area from node's Bottom, which applies only when the node is
8438         visible).
8439         Fixes #325266.
8440
8441 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8442
8443         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
8444         node in the bottom area (as .Net does). This is done to preserve the
8445         scroll position when ExpandAll is called before handle is created for
8446         the 1.1 profile (bottom area, as opposed to top area in 2.0).
8447         Fixes #324103.
8448
8449 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8450
8451         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
8452         bottom area if we are in fact not using the vertical scroll bar.
8453         Fixes #324824.
8454
8455 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
8456
8457         * Control.cs: Comment out a double buffering optimization that doesn't
8458         take into account invalidates created in OnPaint, causing the control
8459         to never be redrawn.  It would take quite a bit of work to work around
8460         this, but I left it commented with an explanation for later possible
8461         optimization.
8462         [Fixes bug #328681]
8463
8464 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
8465
8466         * Control.cs: Ask parent to perform a layout if control is AutoSize and
8467         the text changes.
8468         * RadioButton.cs: Implement GetPreferredSizeCore.
8469         [Fixes bug #328672]
8470
8471 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
8472
8473         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
8474         corcompare stuffs.
8475
8476 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
8477
8478         * Application.cs: Move the sync context stuff to Run instead of RunLoop
8479         so that it doesn't get uninstalled on modal forms.
8480         * Control.cs: Install a sync context when a control is created.
8481         * WindowsFormsSyncronizationContext.cs: Create a private static control
8482         to invoke on.  This is easier than trying to find a created control we
8483         can use.
8484         [Fixes bug #327608]
8485
8486 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
8487
8488         * Application.cs: Install a WindowsFormsSynchronizationContext in the
8489         run loop, and uninstall it when done.
8490         * WindowsFormsSynchronizationContext.cs: Implement.
8491         [Fixes the common case in bug #327608]
8492
8493 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
8494
8495         * DataGridViewCellCollection.cs: Added argument checks for indexers.
8496         Use case-insensitive lookup of column name in indexer. Code
8497         formatting.
8498
8499 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8500
8501         * TreeNode.cs: When collapsing or expanding a node, check whether its
8502         change will affect the visible area (we were previously doing a
8503         IsVisible check, but that check is not enough since children nodes
8504         could be still visible). Fixes part of #325266.
8505
8506 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
8507
8508         * TreeView.cs: Always select the first node when the TreeView gets
8509         focus if there is no currently selected node.
8510         [Fixes bug #324279]
8511
8512 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
8513
8514         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
8515         node being selected is null.
8516         [Patch from Yves Bastide fixes bug #326858]
8517
8518 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8519
8520         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
8521         whether all the parent nodes are expanded.
8522         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
8523         call RecalculateVisibleOrder if all previous nodes are expanded.
8524         Before that we were doing a IsVisible check, but sometimes the node
8525         is not in the visible area, but _should_already be ready, because of
8526         all previous nodes are expanded. Fixes #325259.
8527
8528 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
8529
8530         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
8531         portion of the item is clicked.
8532
8533 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
8534
8535         * TextControl.cs: Do not tell the system to move the cursor if the
8536         textbox isn't focused.  Fixes part of bug #322668.
8537
8538 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
8539
8540         * ComboBox.cs: When there are no items, do not show the dropdown if
8541         the down arrow is clicked.  Fixes part of bug #322668.
8542
8543 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
8544
8545         * ToolStripComboBox.cs: Manually set the size of this control in the
8546         constructor, as it doesn't seem to be the same as DefaultSize.
8547         Fixes a failing monobuild test.
8548
8549 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
8550
8551         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
8552         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
8553
8554 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
8555
8556         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
8557         Desktop.  This lets it work for people who have moved their desktops
8558         from the default location on windows.  For people who have not, both
8559         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
8560
8561 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
8562
8563         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
8564         but when the base constructor sets this, the control is null.  Set it
8565         again in the constructor.  Fixes a failing monobuild test.
8566
8567 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
8568
8569         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
8570         get called.
8571         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
8572         called.
8573
8574 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
8575
8576         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
8577         will handle it themselves.
8578         * ToolStripItem.cs: When deciding what the text of a tooltip should
8579         be, use the Text property instead of the text field.
8580         * ToolStripTextBox.cs: Handle tooltips.
8581         [Fixes bugs #325417 and #325973]
8582
8583 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
8584
8585         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
8586         left click.  Fixes the easy part of bug #325969.
8587
8588 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
8589
8590         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
8591         bug #325406, but set a minimum for StatusStrip to 22 to keep
8592         bug #325390 fixed.  I think this minimum would have been figured
8593         up automatically if the grip was actually a ToolStripItem, but it
8594         currently is not.
8595
8596 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8597
8598         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
8599         as this is apparently the actual value used by .Net. Also apply
8600         ItemPadding in Details view only, and decrease the general width padding,
8601         to have only the needed. This should fix #324340 in Windows too.
8602
8603 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8604
8605         * ListViewItem.cs: Don't Invalidate item if parent is inside
8606         a BeginUpdate/EndUpdate block. This prevents to have differences
8607         between the ListView and items state, as well as avoid some exceptions
8608         there.
8609         * ListView.cs: Make 'updating' field internal.
8610
8611 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
8612
8613         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
8614         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
8615         size if appropriate.
8616         Fixes reopened bug #325414.
8617
8618 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
8619
8620         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
8621         * ToolStripItem.cs: Invalidate before and after our new autosize when
8622         text changes.
8623         Fixes reopened bug #325390.
8624
8625 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
8626
8627         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
8628         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
8629         #325044.
8630
8631 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
8632
8633         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
8634
8635 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8636
8637         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
8638         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
8639         #82734.
8640
8641 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
8642
8643         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
8644         item to select when the ToolStrip is selected.
8645         * ToolStripControlHost: Realign the control when the bounds or visibility
8646         change.
8647         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
8648         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
8649         preferred height.
8650         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
8651         base.OnPaint.  Was causing text not to be drawn.
8652
8653 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
8654
8655         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
8656
8657 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8658
8659         * TreeView.cs: When creating the label edit text box,
8660         set is initially to Visible = false. This is done to
8661         prevent a confusion in the layout which makes it to lose
8662         focus when shown the first time. Fixes part of #82592.
8663
8664 2007-09-13 Andreia Gaita <avidigal@novell.com>
8665
8666         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
8667
8668 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
8669
8670         * ToolStrip.cs: Take Margin into account when calculating preferred
8671         size.  Also, allow preferred size to get smaller than the explicit
8672         size.
8673         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
8674         First step towards fixing bug #82747.
8675
8676 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
8677
8678         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
8679         full row select background over the plus/minus glyph.  Also, turn
8680         off the focus rectangle for full row select since MS doesn't seem
8681         to ever paint it.  [Fixes bug #81839]
8682
8683 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
8684
8685         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
8686         This was causing keyboard opened dropdowns to lose focus.
8687         [Fixes bug #82803]
8688
8689 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
8690
8691         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
8692         ClientRectangle instead.  [Fixes bug #82838]
8693
8694 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
8695
8696         * SplitContainer.cs: We can't reset Visible on every layout because
8697         someone may have set Visible = false explicitly on a SplitterPanel.
8698         Make sure when we switch orientation the SplitterDistance does not
8699         change.  Fixes two failing tests.
8700
8701 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8702
8703         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
8704         TextRenderer, since the latter is only available in 2.0.
8705
8706 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
8707
8708         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
8709         * SplitContainer.cs: Implement FixedPanel layouting.
8710
8711 2007-09-12  Andreia Gaita  <avidigal@novell.com>
8712
8713         * WebBrowserBase.cs: setup shutdown routine
8714
8715 2007-09-12  Andreia Gaita  <avidigal@novell.com>
8716
8717         * Application.cs: Let keyboard events that are targetted 
8718                 to non-mwf windows hosted inside mwf (as in, webbrowser),
8719                 propagate properly. Fixes keyboard handling on the webbrowser.
8720
8721 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8722
8723         * ListView.cs: When handling MouseUp event and we are 
8724         highligting a node with the mouse right button, don't trigger
8725         Before/AfterSelecting event, since we are not actually selecting
8726         the node.
8727
8728 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8729
8730         * TreeView.cs: When editing a node, modify the edit text box
8731         depending on the text length (as you are typing), like MS does.
8732
8733 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
8734
8735         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
8736         Override GetPreferredSizeCore to perform calculations.  Remove custom
8737         autosize logic.  [Fixes bug #82739]
8738
8739 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
8740
8741         * TextBoxBase.cs: Modified should default to false.
8742
8743 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
8744
8745         * Control.cs: Update the anchoring distances even when layout is supspended.
8746         Patch provided by George fixes bug #82805.
8747
8748 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
8749
8750         * Control.cs: Provide a setter for ExplicitHeight.
8751         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
8752         remove the hacks in here for requested_height.
8753         [Fixes bug #82749]
8754
8755 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
8756
8757         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
8758         Maximum to lower that its current Value caused an ArgumentException by setting
8759         the Value to the new Maximum.
8760
8761 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
8762
8763         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
8764         handle moves to the closest tick when it is being dragged.
8765         [Fixes bug #82751]
8766
8767 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
8768
8769         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
8770         can't let them count as real items when calculating where to merge in the
8771         user's items.  [Fixed bug #82786]
8772
8773 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
8774
8775         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
8776         who want to add a menu item directly onto a toolstrip.
8777         [Fixes bug #82775, part II]
8778
8779 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
8780
8781         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
8782         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
8783         don't set it to available.
8784         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
8785         [Fixes bug #82727, part II]
8786
8787 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
8788
8789         * StatusStrip.cs: Change item placement to None if not visible.
8790         * ToolStripItem.cs: Invalidate when InternalVisible changes.
8791         These should have been committed to fix 82723, but I missed them.
8792
8793 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
8794
8795         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
8796         Click, and that it is only called once.
8797         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
8798         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
8799         dropped down.
8800         [Fixes bug #82775]
8801
8802 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8803
8804         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
8805         to match .Net.
8806         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
8807         instead of 8, just like above. Partially fixes #82734.
8808
8809 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8810
8811         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
8812         fixes #82734.
8813
8814         * ListView.cs: Remove extra space between rows in Details view (match
8815         .Net). 
8816         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
8817         the DefaultFont.
8818
8819 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
8820
8821         * Application.cs: Modified ProductVersion to return value of
8822         AssemblyInformationVersion if available, and fallback to assembly
8823         version. Fixes bug #82746. Code formatting.
8824         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
8825         instead.
8826
8827 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8828
8829         * Control.cs: When updating ZOrder for a child control,
8830         take into account the implicit ones (we need it in our controls
8831         using them). Fixes #82642.
8832
8833 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
8834
8835         * ToolStripItem.cs: Add support for animated images.
8836         [Fixes bug #82726]
8837
8838 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
8839
8840         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
8841         visible.  [Fixes bug #82727]
8842
8843 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
8844
8845         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
8846         so we repaint using the new size.  [Fixes bug #82723]
8847
8848 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
8849
8850         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
8851         option.  [Fixes bug #81779]
8852
8853 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
8854
8855         * TreeView.cs: Override HandleClick because the StandardClick style is
8856         set to false.  According to MSDN (and testing), the click events should
8857         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
8858
8859 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
8860
8861         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
8862         the border will disappear.  Fixes reopened #82653.
8863
8864 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
8865
8866         * Control.cs: If the control is autosize, and its preferred size changes
8867         when it lays out its children, tell its parent so it can be re-layed out.
8868         Fixing some of the fallout from r85433.
8869
8870 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
8871
8872         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
8873         and CheckBox share some code.
8874
8875 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
8876
8877         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
8878         the TrackBar, not every mouse move.  [Fixed bug #82718]
8879
8880 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
8881
8882         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
8883         under 2.0 rendering.  [Fixes bug #82657]
8884
8885 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
8886
8887         * TreeView.cs: If we found a TreeNode to display a context menu, but
8888         it doesn't have one to show, let the TreeView display its menu
8889         instead.  [Fixes bug #82680]
8890
8891 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
8892
8893         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
8894         OnPaintInternal instead.  Give the internal TextBox a Border property
8895         so it can draw itself more correctly.  [Fixes bug #82653]
8896
8897 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
8898
8899         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
8900
8901 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
8902
8903         * ComboBox.cs: Adjust combobox button state to reflect current state when
8904         back to enabled = true. Fixes first issue of #82654.
8905
8906 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
8907
8908         * Control.cs: Fix last patch regression, prevent forms to update zorder when
8909         setting visible property.
8910
8911 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
8912
8913         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
8914         fix zorder for controls initially created as non visible. Fixes #82667.
8915
8916 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
8917
8918         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
8919         mimic win32 look. Fixes #82656.
8920
8921 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
8922
8923         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
8924         Stubs for new net 3.5 classes.
8925
8926 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8927
8928         * ListViewItem.cs: In ListViewItemCollection operations calculate
8929         Layout for owner as well as invalidate it. Fixes part of #82642.
8930
8931 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
8932
8933         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
8934         when returning Enabled.  [Fixes bug #82651]
8935
8936 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
8937
8938         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
8939
8940 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8941
8942         * ListView.cs: Put item padding info in a single place
8943         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
8944         columns again.
8945         * ThemeWin32Classic.cs:
8946         * Theme.cs: Likewise.
8947
8948 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8949
8950         * ListView.cs: When a ListViewSubItem instance is invalidated,
8951         invoke Invalidate on parent ListViewItem, not parent ListView.
8952         Fixes #81570.
8953
8954 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
8955
8956         * ListView.cs, ListViewItem.cs: corcompare stuffs.
8957
8958 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
8959
8960         * BindingMemberInfo.cs: Implement == and != operators.
8961
8962 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
8963
8964         * HtmlElementEventArgs.cs: Implement properties.
8965
8966 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
8967
8968         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
8969
8970 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
8971
8972         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
8973         Add (string,string,string) to implement the imagekey.  It turns out, we
8974         use the requested imagekey whereas .Net does not.  So I broke ours to match
8975         theirs.  :(
8976
8977 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
8978
8979         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
8980
8981 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
8982
8983         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
8984
8985 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
8986
8987         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
8988         up-to-date. Fixes bug #82618.
8989
8990 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
8991
8992         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
8993         reflect document changes. Fixes #82367.
8994
8995 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8996
8997         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
8998         as well as add new ones. This should make work the BackgroundImage
8999         property for ListView again.
9000
9001 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
9002
9003         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
9004         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
9005         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
9006
9007 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
9008
9009         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
9010         IsKeyLocked.
9011
9012 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
9013
9014         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
9015         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
9016
9017 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
9018
9019         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
9020         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
9021
9022 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
9023
9024         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
9025
9026 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
9027
9028         * GridEntry.cs: Implement GetService.
9029
9030 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
9031
9032         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
9033         for label editting, make sure we focus back on the TreeView.
9034         [Fixes bug #82590]
9035
9036 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9037
9038         * ListView.cs: Add some 2.0 overrides.
9039
9040 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
9041
9042         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
9043         because getter dont returns right value before handle creation. Thanks 
9044         to George. Fixes #82569.  
9045
9046 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
9047
9048         * Theme.cs: Revert last patch, it causes error under win32. 
9049
9050 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
9051
9052         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
9053         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
9054         logical Desktop rather than the physical file system location. Fixes #82603. 
9055
9056 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
9057
9058         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
9059         for the patch. Fixes #82568.
9060
9061 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9062
9063         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
9064         methods.
9065
9066 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9067
9068         * ListViewInsertionMark.cs: New stubbed class.
9069
9070 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
9071
9072         * FolderBrowserDialog.cs: When adding folder, immediately create the
9073         directory with temporary name and rename the directory when editing
9074         finishes. This matches MS. Ensure the node for the new folder is 
9075         selected and LabelEdit is disabled, when editing is either finished
9076         or cancelled.
9077
9078 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
9079
9080         * TreeView.cs: When editing label of node, ensure node is visible.
9081
9082 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
9083
9084         * PropertyGridView.cs: Set the value only if it has changed.
9085
9086 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9087
9088         * ListView.cs: Some more code refactoring to add support sorting
9089         with groups (now for Details view). Remove unused code also.
9090
9091 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
9092
9093         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
9094         Not a big fan of reacting immediately to a field in an EventArg, but that's
9095         the way it's done.  (This is part of the previous commit that got left out.)
9096
9097 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
9098
9099         * FolderBrowserDialog.cs: Removed need for separate description field.
9100         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
9101         has focus when dialog box is displayed again, regardless of what
9102         button was pressed the previous time. Set RootFolder and SelectedPath
9103         each time dialog box is displayed. This ensures the treeview is
9104         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
9105         when it does not have focus. Added support for more special folders.
9106
9107 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
9108
9109         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
9110         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
9111         it resets the edit_args.
9112         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
9113         [Fixes bug #82577]
9114
9115 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
9116
9117         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
9118         button to match MS. Provide more meaningful exception message for
9119         invalid RootFolder value. Use zero-length string when SelectedPath
9120         is set to null. Allow non-rooted paths in SelectedPath, but ignore
9121         them in FolderBrowserTreeView. Allow folders to be created in
9122         RootFolder. Fixes bug #82576.
9123
9124 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9125
9126         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
9127         since we need to take into account the group headers and the margin
9128         between them.
9129         * ListViewGroup.cs: Add a rows field to store the number of rows per
9130         group.
9131
9132 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9133
9134         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
9135           Anyways, let's just follow the lead.
9136
9137 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
9138
9139         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
9140         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
9141         controls in GetPreferredSizeCore.
9142         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
9143         [Fixes bug #82488]
9144
9145 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
9146
9147         * PrintDialog.cs: Need to instantiate the form variable here too.
9148
9149 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9150
9151         * ListView.cs: Do some reorganization to support sorting in groups,
9152         by doing the layout sequentially in ListView.Items. Also add support
9153         for the Default Group, which should be available for items with no
9154         group assigned.
9155         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
9156         for storing layout info also.
9157         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
9158         collection, as well as providing internal members to do a traversal
9159         including the default group (needed when doing layout/drawing).
9160         * ThemeWin32Classic.cs: When drawing group headers use internal
9161         ListViewGroupCollection members to take into account the default
9162         group.
9163
9164 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
9165
9166         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
9167
9168 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
9169
9170         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
9171         been created.  If handle is created, we want arror keys.  If we are editing
9172         a node, we want things like enter, esc, home, end, page up, page down.
9173         Allows Esc to work for FolderBrowserDialog.
9174
9175 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
9176
9177         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
9178         they close when ESC is pressed.  Thanks Andy!
9179
9180 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
9181
9182         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
9183         This way we can tell if this is a CommonDialog provided with mono, or one
9184         that is being implemented outside by a developer.  If it is an external one,
9185         the developer is responsible for showing their own form.  We were showing
9186         our blank form after the developer showed his.
9187         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
9188         PageSetupDialog.cs: Instantiate form variable in our constructor.
9189         [Fixes bug #82531]
9190
9191 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
9192
9193         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
9194         and always return true.  [Fixes bug #81616]
9195
9196 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
9197
9198         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
9199         TextBox.  [Fixes bug #82549]
9200
9201 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
9202
9203         * FileDialog.cs: When Save/Open is clicked and no filename is selected
9204         or entered then do not close the dialog. Fixes bug #82539. Removed
9205         CWLs.
9206
9207 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
9208
9209         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
9210         code to this method. It is calling every time filter changes. This method
9211         will help to fix the bug #80887.
9212
9213 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
9214
9215         * CheckBox.cs: Implement AutoSize calculation.
9216
9217 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
9218
9219         * CheckBox.cs: Use new 2.0 rendering for 2.0.
9220         * Theme.cs: Method declarations for 2.0 rendering path.
9221         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
9222
9223 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9224
9225         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
9226
9227 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9228
9229         * ListViewGroupCollection.cs: Implement AddRange the right way, to
9230         only call Redraw on the parent one time.
9231
9232 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9233
9234         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
9235           GetClipboardContent.
9236         * DataGridViewCell.cs: Implemented GetClipboardContent,
9237           GetEditedFormattedValue, GetFormattedValue.
9238         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
9239
9240 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
9241
9242         * TableLayoutStyleCollection.cs: corcompare fix.
9243
9244 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9245
9246         * DataObject.cs: Implemented retrieval of convertible / not convertible
9247           objects.
9248
9249 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
9250
9251         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
9252         ourselves.  This ensures the entire old bounds are repainted, in case our new
9253         size is smaller.  [Fixes bug #82518]
9254
9255 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
9256
9257         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
9258         flag to make fast handle of mouse events, without this the mouse move is
9259         handled in some manner, whether it is a mouse move or not. Fixes #81588.
9260
9261 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9262
9263         * ListView.cs: When doing layout calculations don't use a ref
9264         param to keep the current item; instead use its Index value (this 
9265         is specially important when doing the layout with Groups
9266         and Items being sparse). Also don't take into account items added to
9267         the Group but not yet added to the main ListView.Items collection.
9268
9269 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9270
9271         * ListViewGroupCollection.cs: Forgot to mimic an issue
9272         in the indexer (don't assign the ListView owner for new values).
9273
9274 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9275
9276         * ListViewGroupCollection.cs: Make the string indexer use
9277         the int based indexer to re-use code, instead of duplicate the code.
9278         Also Redraw as needed and take into account null values.
9279
9280 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
9281
9282         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
9283         [Fixes bug #82481]
9284
9285 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
9286
9287         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
9288         when other buttons are clicked or navigated to.
9289
9290 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9291
9292         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
9293           it's XplatUIX11 that attaches them.
9294
9295 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9296
9297         * DataGridView.cs: If a column has been added, recreate the editing row.
9298           Fixes #82226.
9299
9300 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9301
9302         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
9303           of the tag to draw. Makes disappearing text show up again.
9304
9305 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9306
9307         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
9308           Contents. Fixes #82487.
9309
9310 2007-08-19  Andreia Gaita  <avidigal@novell.com>
9311
9312         * Added HtmlElement.cs, HtmlElementCollection.cs, 
9313           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
9314           
9315 2007-08-19  Andreia Gaita  <avidigal@novell.com>
9316
9317         * BindingSource.cs: Implement this, dispose and getenumerator.
9318         * DataGridViewRowCollection.cs: Move the InvalidOperationException
9319         out of AddInternal, throw it only on public Add calls. The 
9320         UsingWebBrowser sample was blowing up with this when setting the
9321         DataSource after adding DataBindings, so it's likely that .net
9322         only throws this exception when Add is called directly. 
9323         
9324         * ToolStripControlHost.cs: Return the hosted control's text
9325         property, and not the ToolStripItem one (it would always return
9326         the initial value).
9327         
9328         * HtmlDocument.cs: Implement GetElementById and All
9329         * WebBrowser.cs: Remove exception on set_DocumentStream.        
9330
9331 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9332
9333         * Form.cs: Fix the max and min value for opacity (0~1).
9334
9335 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9336
9337         [Fixes #80118]
9338         * DataGridTableStyle.cs: Default header font is now null, on getter it 
9339         returns datagrid font when is null. On setter permits null.
9340
9341         * DataGrid.cs:
9342         - When ResetHeaderFont set header font to null.
9343         - On EndInit set grid_style.DataGrid.
9344
9345 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9346
9347         * TabControl.cs: Fix regression in default padding x.
9348
9349 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9350
9351         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
9352
9353 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9354
9355         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
9356         not 2. Fixes #82229.
9357
9358 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9359
9360         * TabControl.cs: Fix tab size when image height is less than text height.
9361         Partially fixes #81837.
9362
9363 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9364
9365         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
9366         "alt + tab". It works only for Win32, for X11 theres no way to remove window
9367         from taskbar and keep it on "alt_tab". Fixes #81722.
9368
9369 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9370
9371         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
9372         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
9373         Fixes #80877 and #79418.
9374
9375 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9376
9377         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
9378         between position and one of the screen borders. Fixes #82349.
9379
9380 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9381
9382         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
9383         the MessageBox in the taskbar. Fixes #82457.
9384
9385 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9386
9387         * MessageBox.cs: Fix form size when icon is set and text height is bigger
9388         than icon. Fixes #82468.
9389
9390 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9391
9392         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
9393         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
9394           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
9395           Refactored HandleNCCalcSize somewhat to avoid code duplication.
9396         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
9397           FormBorderStyle to decide if we're calculating a new size from the
9398           client size or not. CreateParams: Don't fake tool windows, only the X11
9399           backend manages toolwindows manually.
9400
9401 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9402
9403         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
9404         ObjectDisposedException.
9405
9406 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9407
9408         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
9409         in OnLoad should not have any effect.  [Fixes bug #82470]
9410
9411 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9412
9413         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
9414         paint for controls that create their own ToolTipWindow instead of
9415         going through ToolTip.
9416
9417 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9418
9419         * ToolTip.cs: Make Hide internal instead of public to match MS API.
9420
9421 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9422
9423         * ListViewGroupCollection.cs: Use generic List instead of an
9424         ArrayList, since this collection is 2.0 only.
9425
9426 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
9427
9428         * ToolTip.cs (Hide): Made public to make the build work (should
9429         this not be public?).
9430
9431 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9432
9433         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
9434         ToolTipWindow.
9435         * ToolTip.cs: Add an internal Visible property to facilitate transition.
9436
9437 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9438
9439         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
9440         PopupEventHandler.cs: Make these internal for 1.1.
9441         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
9442         use ToolTipWindow internals.
9443         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
9444         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
9445
9446 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9447
9448         * X11Dnd.cs: Add a null check.
9449
9450 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9451
9452         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
9453           nothing else succeeds. Fixes #82453.
9454
9455 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9456
9457         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
9458           rectangle if we're painting to another window than the one the paint
9459           message was generated on. Simplify the code somewhat, which makes
9460           PaintEventEnd also simpler.
9461
9462 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9463
9464         * Control.cs: When changing parent of a form, let the form decide whether
9465           XplatUI.SetParent should be called or not.
9466         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
9467           recreating the handle. If the new parent's handle isn't created, don't
9468           recreate our handle, just destroy it. CreateParams: Check if the
9469           parent's handle is created before fetching it.
9470
9471 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9472
9473         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
9474           Update calls to PaintEventStart/End to take a Message argument.
9475         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
9476           take a Message argument.
9477         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
9478           Message argument, and handle the case where we don't paint to the window
9479           for which the paint message was generated.
9480
9481 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9482
9483         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
9484           Marshal.GetLastWin32Error. Plug nasty memory leak in
9485           PaintEventStart/End, we were creating a DC we weren't releasing.
9486
9487 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9488
9489         * ListView.cs: Add Groups support in Details view. Also have a small
9490         method to do the layout of the group header. Don't use a separate
9491         method to do the groups calculation in Icons view, since our methods
9492         are now a little simpler.
9493         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
9494         `Bounds'.
9495         * ThemeWin32Classic.cs: Likewise.
9496
9497 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
9498
9499         * Application.cs: Add FilterMessage method and rework our message loop
9500         logic to use it.
9501
9502 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
9503
9504         * Application.cs: Add some methods and stub a few methods that are
9505         pretty much never used.
9506
9507 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
9508
9509         * TreeNode.cs: Add some serialization methods.
9510
9511 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9512
9513         * ListView.cs: In ListViewItemCollection have a 
9514         'is_main_collection' field to not modify ListViewItem.ListView
9515         when using it as ListViewGroup.Items (and not ListView.Items)
9516         and also don't modify selection state (.Net behaviour). 
9517         Instead, set group for items contained in a ListViewGroup.Items collection.
9518         * ListViewItem.cs: Simplify some code in Group setter.
9519         * ListViewGroup.cs: use the new .ctor to pass the current instance
9520         to the ItemsCollection.
9521         * ListViewGroup.cs: Set the ListView property for ListViewGroup
9522         instances when adding/removing. Also make Remove use RemoveAt, which
9523         should perform better.
9524
9525 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
9526
9527         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
9528         that crept into the 1.1 profile.
9529
9530 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
9531
9532         * ToolBarButton.cs: Implement ImageKey.
9533
9534 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
9535
9536         * ToolBar.cs: Implement ScaleControl/ScaleCore.
9537
9538 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9539
9540         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
9541           created, it might have gotten destroyed since we last checked. Fixes
9542           #82405.
9543
9544 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
9545
9546         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
9547         tooltip will hide when mouse is moved off the control.
9548         [Fixes bug #82407]
9549
9550 2007-08-11 Andreia Gaita <avidigal@novell.com>
9551
9552         * WebBrowserBase.cs, WebBrowser.cs: add implementation
9553         using Mono.Mozilla for loading and navigating webcontrol
9554         with xulrunner.
9555         The initial implementation was done on 
9556         /trunk/mozembed/tests/browser , and copied here.
9557
9558 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
9559
9560         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
9561         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
9562
9563 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9564
9565         * DataGridView.cs: Add support for an editing row. Fixes #82226.
9566           RowTemplateFull: throw an exception if a column doesn't have a template.
9567         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
9568           add the row just before it.
9569         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
9570           selected.
9571         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
9572           DataGridView field to be able to reach the grid's editing row.
9573
9574 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
9575
9576         * ToolTip.cs: If the control's handle hasn't been created when it has a
9577         tooltip set on it, don't check to see if we need to show the tooltip.  This
9578         check was causing the control's handle to be created.
9579         [Fixes bug #82399]
9580
9581 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
9582
9583         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
9584                                         1.1             2.0
9585         Handle Not Created      -1              0
9586         Handle Created          0               0
9587         [Fixes bug #82371]
9588
9589 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
9590
9591         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
9592         [Fixes bug #82348]
9593
9594 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
9595
9596         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
9597         * ToolTip.cs: Implement some properties and owner draw.
9598
9599 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9600
9601         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
9602           show them again, since setting visibility causes a paint, causing an
9603           endless loop (instead use a temporary and set it all when it's known if
9604           they should be shown or not). Fixes #79265.
9605
9606 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9607
9608         * DataGridView.cs: Only do a full column/row selection if a header was
9609           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
9610           isn't pressed, deselect everything before selecting something.
9611
9612 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9613
9614         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
9615           behaviour according to bug #81075 - they are returned in the order they
9616           are selected. Fix HitTest to check if the point is within any of the
9617           headers. Allow for row/column selection when in ColumnHeader or
9618           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
9619           the row and column to call when their selected state changes, and
9620           updated selected_[rows|columns] whenever SetSelected* is called.
9621         * DataGridViewBand.cs: Initialize isRow correctly. Call
9622           SetSelected[Row|Column]CoreInternal when the selected state changes, and
9623           add a SelectedInternal to avoid StackOverflows.
9624         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
9625           ReadOnly no matter what.
9626         * DataGridViewSelectedColumnCollection.cs,
9627           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
9628           the items in reverse order (just as MS does...)
9629
9630 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
9631
9632         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
9633         itself, not part of a mnemonic.  [Fixes bug #82378]
9634
9635 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9636
9637         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
9638         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
9639           the DGV, the column, the row, or the cell itself is readonly.
9640
9641 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
9642
9643         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
9644         OSVersion.Platform.
9645         * FileDialog.cs: Same.
9646         * TextRendered.cs: Same.
9647         * FolderBrowserDialog.cs: Same.
9648         * TextBoxBase.cs: Same.
9649         * Application.cs: Same.
9650         * Cursors.cs: Same.
9651         * ThemeClearLooks.cs: Same.
9652
9653 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
9654
9655         * XplatUI.cs: Added RunningOnUnix property to be used by controls
9656         instead of duplicating these checks everywhere.
9657         * FileDialog.cs: Use case-insensitive comparison for populating the
9658         DirComboBox when not running on unix. Fixes bug #82385.
9659         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
9660         "Look in".
9661
9662 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9663
9664         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
9665           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
9666           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
9667           cell and column selection with ctrl and shift pressed. Call the correct
9668           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
9669           the corresponding virtual method (PaintBackground to paint background,
9670           etc).
9671         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
9672           either the column, row or the cell itself is selected.
9673         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
9674           OnRowsAdded.
9675         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
9676           here. When the row is selected, don't select all cells. Each cell now
9677           queries the row to see if the row is selected.
9678
9679 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9680
9681         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
9682           SelectionMode.
9683
9684 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9685
9686         * ListView.cs: In ListViewItemsCollection check that owner is
9687         not null before trying to access it (this happens quite often
9688         using Groups). Also don't duplicate calls by calling CollectionChanged
9689         method.
9690
9691 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
9692
9693         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
9694         when we are dismissed to clear keyboard mnemonics.
9695         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
9696         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
9697         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
9698         was activated by keyboard or the OS tells us to always draw them.
9699         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
9700         [Fixes bugs #82376, #82377]
9701
9702 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
9703
9704         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
9705         shot at having it because Alt was pressed.
9706         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
9707         the first real menu item.
9708         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
9709         a mnemonic if Text is null.
9710         [Fixes bug #82374]
9711
9712 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9713
9714         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
9715         search do check whether the item is already contained in the
9716         collection or not; instead check if the owner of the item is the same
9717         as ours. Also, remove a redundant check in the same method. 
9718
9719 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
9720
9721         * Control.cs: Allow the clip region to be set back to null.
9722         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
9723         [Fixes button still showing up in bug #82370 when Show Through is turned off]
9724
9725 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9726
9727         * GridEntry.cs: Add a null check.
9728         * PropertyGrid.cs: When checking for existing grid entries, ignore category
9729           entries. Fixes #82297.
9730
9731 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
9732
9733         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
9734         for 2.0.
9735
9736 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
9737
9738         * ListBox.cs: Implement ScaleControl.
9739
9740 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9741
9742         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
9743           have a menu strip.
9744         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
9745           parent has a menu strip. Fixes #81689.
9746
9747 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9748
9749         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
9750           moments, so apply some fuzzy logic to determine if the mouse is still
9751           inside a control or not. Fixes #82288 (for the third time).
9752
9753 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9754
9755         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
9756           Don't create the child if it has been disposed already (may happen if
9757           the user closes the form the Load event).
9758
9759 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9760
9761         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
9762           #82288.
9763
9764 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9765
9766         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
9767           might call us after we've been destroyed, in which case our own private
9768           parent field is null. Fixes #82326.
9769
9770 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
9771
9772         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
9773         check for setting the dropdown's owner.
9774
9775 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
9776
9777         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
9778         before removing system menu items.
9779
9780 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
9781
9782         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
9783         folding.
9784         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
9785         folding.
9786         * ToolStrip.cs: Add a null check to mnemonics.
9787         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
9788         no ConnectedArea.
9789         [Fixes most of bug #81689]
9790
9791 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9792
9793         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
9794
9795 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9796
9797         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
9798
9799 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9800
9801         * DataGridViewCell.cs: EditType: returns
9802           DataGridViewTextBoxEditingControl always.
9803
9804 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
9805
9806         * TextRenderer.cs: Remove the LineLimit string format flag from the
9807         DrawString fallback method so that things like buttons that aren't
9808         tall enough to draw a full line will still draw part of the text.
9809         [Fixes part of bug #82272]
9810
9811 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9812
9813         * DataGridView.cs: Implemented AutoResizeColumn(s).
9814         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
9815           according to the Alignment.
9816         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
9817           Implement alignment and padding when painting.
9818         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
9819           exists.
9820         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
9821           way.
9822         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
9823           a column is added.
9824
9825 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
9826
9827         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
9828         which is internal.
9829
9830 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
9831
9832         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
9833         hide GetPreferredSize from public API.
9834         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
9835         * ToolStripItem.cs: Stub out drag and drop methods and events.
9836         * ToolStripManager.cs: Stub out Save/LoadSettings.
9837         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
9838         * ToolStripPanel.cs: Fix corcompare error.
9839         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
9840         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
9841         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
9842
9843 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
9844
9845         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
9846         bounds height instead of PreferredHeight.  Puts things back the way 
9847         they were for height while still fixing the width.  Fixes broken unit
9848         tests.
9849
9850 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9851
9852         * Binding.cs: Implement 2.0 constructors and add a null check.
9853
9854 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9855
9856         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
9857           and fix row index (off by one).
9858
9859 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9860
9861         * PropertyGridView.cs: Remove debug output.
9862
9863 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9864
9865         * Control.cs: We need to reset the is_created flags when the handle is
9866           destroyed. Fixes #82187.
9867         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
9868           client coordinates if the window doesn't have a parent.
9869           Win32GetParent returns the parent or the owner, and for top-level
9870           windows with no parent (but with an owner) we were calculating the
9871           location from the location of the owner.
9872         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
9873           form has been disposed.
9874         * MdiClient.cs: Add a null-check.
9875
9876 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
9877
9878         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
9879         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
9880         so we can provide an implementation that returns the current width
9881         and preferred height.  Allows anchor = right to work with TextBox 2.0.
9882         [Fixes bug #82233]
9883
9884 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9885
9886         * ListView.cs: Add support for navigating items in Groups mode, by
9887         creating a big matrix containing all rows and cols of all groups. When
9888         are in other mode than Details, pressing Up should have a similar
9889         behaviour as that one of Down (moving to the next available column if
9890         current one doesn't have an item in the requested row). Also, don't
9891         proceed to use groups if ShowGroups is false.
9892         * ListViewGroup.cs: Add an internal int field to store the starting
9893         row of the group (used by the big matrix used for navigating the
9894         ListView).
9895         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
9896         false.
9897
9898 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
9899
9900         * ToolStripDropDown.cs: When we do Show, start with the 
9901         DefaultDropDownDirection, but if our popup menu is going to off-screen,
9902         modify the direction to keep it on screen.  [Fixes bug #82210]
9903
9904 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
9905
9906         * FileDialog.cs: Accept any FilterIndex value, and store it
9907         unmodified. When FilterIndex is less than 1, or greater than number
9908         of filters, then default to first filter. Only add filter extension to
9909         file if user did not specifiy an extension. When type of dialog is
9910         OpenFileDialog and DefaultExt is set, then only use filter extension
9911         if: CheckFileExists is true and no file wih the default extension
9912         exists, or CheckFileExists is false, and user specified file does not
9913         exist. When CheckFileExists is true, then add first extension of 
9914         selected filter that matches existing file. Perform checks for
9915         existing file, overwrite and create after extension has been added to
9916         file name. When CheckFileExists is true and type is SaveFileDialog,
9917         then only consider first filter extension if DefaultExt is set.
9918         When CheckFileExists is true, then ignore DefaultExt if file with that
9919         extension does not exist. Also perform check for existing file when
9920         type is SaveFileDialog. Changed some field to constants.
9921
9922 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9923
9924         * ListView.cs: Take into account the region used by header
9925         control when doing the vertical scroll (this way we invalidate
9926         the precise area, and don't get any dirty one).
9927
9928 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
9929
9930         * FileDialog.cs: Check for valid filterIndex on button open/save. 
9931         Fixes #82184.
9932
9933 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9934
9935         * ListView.cs: Update some layout calculations in details view
9936         and clean the code in a pair of assignations.
9937
9938 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
9939
9940         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
9941         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
9942         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
9943         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
9944
9945 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
9946
9947         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
9948         performance of thread-safe Graphic methods.  (Thanks rolf!)
9949
9950 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9951
9952         * ListView.cs: When doing the layout calculations, don't calculate
9953         scroll bars before handle is created. This is unnecessary and also
9954         calculating them before handle creation item causes a number of random
9955         bugs (which begin to appear after Chris' big patch for handle creation
9956         fixes). 
9957
9958 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
9959
9960         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
9961         for things that don't have a Graphics object.  Currently, things just use
9962         the static Hwnd.bmp_g which is not thread safe.
9963
9964 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9965
9966         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
9967           dialog. Fixes #82187.
9968
9969 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9970
9971         * DataGridViewElement.cs: Initialize state.
9972         * DataGridView.cs: Forward a few Mouse events to cells. Add
9973           GetRowInternal and GetCellInternal that doesn't unshare rows.
9974           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
9975           don't use the index, but look it up. Add
9976           DataGridViewControlCollection.RemoveInternal to remove controls
9977           that Remove won't remove (scrollbars, edit control).
9978         * DataGridViewColumn.cs: Initialize State correctly.
9979         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
9980           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
9981           implementing this.
9982         * DataGridViewRowCollection.cs: Implemented shared rows.
9983         * DataGridViewRow.cs: Throw exceptions as MS do.
9984         * DataGridViewCell.cs: A few properties are implemented by a
9985           Get<Property> method, so move implementation there and remove the
9986           NIEX in the method. Add a bunch of OnXInternal that DataGridView
9987           calls when necessary.
9988         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
9989           complicates matters.
9990         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
9991           unshare any rows.
9992
9993 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
9994
9995         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
9996         the children controls.  Instead, we will just set up the proper docking for the
9997         children controls so we don't have to worry about it.  [Fixes bug #82188]
9998
9999 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
10000
10001         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
10002         canceling and correct Before/AfterLabelEdit properties as layed out in bug
10003         81847.  [Fixes bug #81847]
10004
10005 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
10006
10007         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
10008         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
10009         an explicit size based on the design-time size of the text.  Since our fonts
10010         may not match this explicit size, we tend to cut off the ends of people's labels.
10011
10012 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
10013
10014         * Menu.cs: Add some missing methods to MenuItemCollection.
10015
10016 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10017
10018         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
10019         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
10020         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
10021         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
10022         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
10023         * DataGridViewElement.cs: State defaults to Visible.
10024         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
10025         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
10026
10027 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10028
10029         * Control.cs: Minor 1.1 corcompare fix.
10030
10031 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
10032
10033         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
10034         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
10035
10036 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10037
10038         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
10039           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
10040           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
10041           DataGridViewSelectedColumnCollection.cs,
10042           DataGridViewSelectedRowCollection.cs: Corcompare work.
10043
10044 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
10045
10046         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
10047         it is autoset by VS2005 designer and the effect is barely noticeable.
10048
10049 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
10050
10051         * TreeView.cs: Implement HitTest.
10052
10053 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10054
10055         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
10056           manually adding and removing the control from the Controls
10057           collecftion.
10058         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
10059           EditingControlInternal property that tracks the editing control.
10060           Always keeping the scrollbars in the Controls collection, as MS
10061           testing confirms is the right behaviour.
10062
10063 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10064
10065         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
10066           according to MSDN and new test.
10067
10068 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
10069
10070         * TreeNode.cs: Implement ToolTipText.
10071         * TreeView.cs: Implement tooltips, NodeMouse* events.
10072
10073 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
10074
10075         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
10076
10077 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
10078
10079         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
10080         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
10081
10082 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
10083
10084         * Control.cs, Form.cs, ContainerControl.cs,
10085         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
10086         for misc properties.
10087
10088 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
10089
10090         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
10091         * TreeView.cs: Implement StateImageList.
10092
10093 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10094
10095         * Form.cs: Don't check if the current form is the active form before
10096           activating it. Fixes #81904.
10097
10098 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10099
10100         * Form.cs: Don't check if the current form is the active form before
10101           activating it. Fixes #81904.
10102
10103 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10104
10105         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
10106
10107 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10108
10109         * Form.cs: Don't try to position the form after loading if the form was
10110           disposed. Fixes #81969.
10111
10112 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10113
10114         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
10115           properties. Had to change ToolBar into ToolStrip, which required a
10116           few #ifs.
10117
10118 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10119
10120         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
10121           resized, fixes part of #79829 (vertical lines in toolbar).
10122           PropertyGrid: Refactored Populate* to something that's easier to
10123           follow at least for me, as well as splitting it up into several new
10124           methods, required to update only subitems when something has
10125           changed by a popup editor or listbox. Don't use events to check
10126           when any values are changed, since the events are unreliable (we're
10127           changing the objects the events are registered with, and if the
10128           event handling requires the objects to be immutable (objects stored
10129           in hashtables for instance), the events will never be raised).
10130         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
10131           everytime we change a value, since events are unreliable.
10132           DropDownButtonClicked: For the same reason don't compare objects to
10133           check if it has changed or not, it would require all objects to
10134           derive Equals. Fix dialog location on windows, MS is doing weird
10135           things when creating parented forms.
10136         * GridEntry.cs: Add a SelectedObject setter.
10137
10138 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
10139
10140         * TreeNode.cs: Add some corcompare attributes.
10141         * TreeNodeCollection.cs: Implement 2.0 stuffs.
10142         * TreeView.cs: Implement some 2.0 stuffs.
10143
10144 2007-07-18  Andreia Gaita  <avidigal@novell.com>
10145
10146         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
10147         for moma.
10148
10149 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
10150
10151         * ListBox.cs: Implement custom tab offsets.
10152
10153 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10154
10155         * ToolStripContentPanel.cs: Support System renderer.
10156         * ToolStripControlHost.cs: Set RightToLeft to default to No.
10157
10158 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10159
10160         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
10161
10162 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10163
10164         * CheckBox.cs: Chain TextAlign to base implementation instead of
10165         maintaining another one.
10166
10167 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10168
10169         * ButtonBase.cs: Fix an incorrect string constant.
10170
10171 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10172
10173         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
10174         of creating one for measuring strings.
10175
10176 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
10177
10178         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
10179         Implement MaxItemSize.
10180
10181 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
10182
10183         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
10184         for DeviceContext.  Instead, use the static one available in Hwnd.
10185         Informal tests show this saves about 500k on formtest.exe.
10186
10187 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
10188
10189         * ContainerControl.cs: Implement 2.0 AutoScaling.
10190
10191 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10192
10193         * ComboBox.cs: Work around bug #82120 (bug in mcs).
10194
10195 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
10196
10197         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
10198         Darken the focus color.
10199
10200 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
10201
10202         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
10203         for the checkbox.
10204         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
10205         X, Y instead of a rect for drawing text.
10206         - For ControlPaint.DrawCheckBox, center the check a little better when the
10207         checkbox is odd width.  When drawing a flat checkbox, use a white background
10208         when state != inactive.
10209         [Fixes bugs #82097, 82100]
10210
10211 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
10212
10213         * ListControl.cs: When changing CurrencyManager, disconnect event
10214         handlers from previous one. Fixes bug #81771. Code formatting.
10215
10216 2007-07-15  Andreia Gaita <avidigal@novell.com>
10217
10218         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
10219         full preview invalidation from layout invalidation, and only invalidate
10220         the layout when setting zoom or other properties. Invalidation should
10221         always be done even when resetting properties with the same values as
10222         what is there. Fixes #81744 and #79830.
10223
10224 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10225
10226         * ListView.cs: Implement initial support for Groups. Split some of the
10227         LayoutIcons code to render a partial list of the items (needed by
10228         items contained in ListViewGroup instances). Let the
10229         ListViewItemsCollection.ListView property be modifiable (needed when
10230         using Groups, too).
10231         * ListViewGroup.cs: Use a Bounds property rather than a Location
10232         one. Also invalidate the bounds when they get changed.
10233         * ThemeWin32Classic.cs: When drawing items, also draw the group header
10234         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
10235         method as well.
10236
10237 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10238
10239         * ListView.cs: When space gets pressed and CheckBoxes is true, 
10240         don't invoke the Begin and EndUpdate methods. We are generating 
10241         a redraw of the entire control without need to do so.
10242
10243 2007-07-13  William Holmes <billholmes54@gmail.com> 
10244
10245         * Control.cs: Changing logic in FindFlatForward and 
10246           FindFlatBackward to handle multiple Controls with 
10247           the same TabIndex.  
10248           This fixes bug 81687.
10249
10250 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
10251
10252         * OSFeature.cs: Enable IsPresent.
10253
10254 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10255
10256         * Control.cs: Don't do anything in WmShowWindow if the control has been
10257           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
10258           control is created, put on a form, the control is disposed (the
10259           form is never shown), and then we get a MapNotify, triggering a
10260           WM_SHOWWINDOW.
10261         * Form.cs: Exclude the current form when sending Deactivate to all
10262           MdiChildren.
10263         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
10264           there was a race condition because assigning the handle raises
10265           events, we can get more messages, therefore trying to assign the
10266           handle again, which would fail if any of those event handlers
10267           closed/disposed the control.
10268
10269 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10270
10271         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
10272
10273 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
10274
10275         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
10276         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
10277
10278 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10279
10280         * DateTimePicker.cs: If there's no part format specifier, return an
10281           empty string.
10282
10283 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
10284
10285         * FlatButtonAppearance.cs: Throw NotSupportedException for a
10286         Transparent BorderColor.
10287
10288 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10289
10290         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
10291           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
10292           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
10293           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
10294           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
10295           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
10296           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
10297           Remove warnings.
10298         * X11Structs.cs: Remove warnings, add ToString implementations.
10299
10300 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10301
10302         * XplatUIX11.cs: Translate min/max size according to the actual min/max
10303           size, and not the current size. Fixes #81798.
10304
10305 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10306
10307         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
10308           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
10309           to the control yet).
10310
10311 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10312
10313         * PropertyGridTextBox.cs: Add a method that sends any forwarded
10314           mousedowns to the contained textbox.
10315         * X11Structs.cs: More ToString implementation.
10316         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
10317           #81791.
10318
10319 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10320
10321         * PropertyGridView.cs: Add a null-check, fixes a few tests.
10322
10323 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
10324
10325         * TableLayoutPanelCellPosition.cs: TypeConverter.
10326
10327 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10328
10329         [ Fixes #79761]
10330         
10331         * PropertyGridTextBox.cs: Propagate any color changes to all contained
10332           controls.
10333         * PropertyGridView.cs: A few color fixes.
10334
10335 2007-07-10  Jackson Harper  <jackson@ximian.com>
10336
10337         * TextControl.cs: Remove some old unused text formatting stuff.
10338
10339 2007-07-10  Jackson Harper  <jackson@ximian.com>
10340
10341         * TreeView.cs: Update full row select invalidation to match the
10342         newer DrawSelection... method.
10343         - Make sure to invalidate the entire width when selecting a new
10344         node, if we have full row selection enabled.
10345
10346 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10347
10348         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
10349           display of properties again.
10350
10351 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
10352
10353         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
10354         to existing collections.
10355
10356 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10357
10358         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
10359         that changed between 1.1 and 2.0.
10360
10361 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10362
10363         * PowerStatus.cs: Added.  This is just a data class, it is filled
10364         in by SystemInformation.
10365
10366 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10367
10368         * Message.cs: Add op_Equality and op_Inequality.
10369
10370 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10371
10372         * MenuStrip.cs: Finish corcompare work.
10373
10374 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10375
10376         * LinkArea.cs: Add op_Equality and op_Inequality.
10377
10378 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10379
10380         * Application.cs: Add MessageLoopCallback delegate.
10381
10382 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10383
10384         * ListBox.cs: First set of 2.0 stuffs.
10385
10386 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10387
10388         * Control.cs: Make an internal Height property we can override
10389         without messing up the public API.
10390         * ListBox.cs: Override HeightInternal to always return the size
10391         the user set.  [Fixes bug #80466]
10392
10393 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
10394
10395         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
10396         paint cell borders if we haven't calculated where they go yet.
10397         [Fixes bugs #82040 and #82041]
10398
10399 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10400
10401         * ListView.cs: In Details view, set the location of item_control
10402         in the (0,0) position (and the header_control is thus on the
10403         item_control). This way the Bounds of the Items are relative to the
10404         ListView control (before this, they had a Bounds value without the
10405         header_control offset, which wasn't matching .Net). Fixes #82004.
10406
10407 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10408
10409         * ListControl.cs: When DataSource is set to null, pass an empty
10410         array of object to SetItemsCore. This is done to clean the items
10411         in the ListContol children. Fixes #81788.
10412
10413 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10414
10415         * ListControl.cs: Add 2.0 stuffs.
10416
10417 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10418
10419         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
10420         Refresh is overkill for just about every repaint request.
10421
10422 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10423
10424         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
10425         so remove my custom Get method and fix the property getter.
10426
10427 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10428
10429         * Label.cs: DefaultMargin for 2.0.
10430
10431 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10432
10433         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
10434         reported issue where other controls with mnemonics would steal strokes
10435         from a selected ComboBox.
10436
10437 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10438
10439         * ScrollOrientation.cs: Make internal for 1.1.
10440         * ScrollEventArgs.cs: Add 2.0 stuffs.
10441
10442 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
10443
10444         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
10445         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
10446         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
10447
10448 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10449
10450         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
10451
10452 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10453
10454         * ListView.cs: Implement the so-incredibly broken 2.0 
10455         VirtualItemsSelectionRangeChanged event.
10456
10457 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10458
10459         * ListView.cs: When enter is pressed and selection is non empty,
10460         an OnItemActivate event must be fired.
10461
10462 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10463
10464         * ListView.cs: Store the FocusedItem information as an
10465         int instead of a ListViewItem (needed by VirtualMode).
10466         Update the calls to SetFocusedItem to pass an index instead of
10467         an item.
10468         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
10469         the Focused state from the owner ListView. 
10470
10471 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10472
10473         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
10474         property. Also, invalidate previous focused item in the mentioned
10475         property (match .Net).
10476
10477 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10478
10479         * ListView.cs: Implement 2.0 FocusedItem property setter.
10480
10481 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10482
10483         * ListView.cs: Implement 2.0 TopItem property setter.
10484
10485 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
10486
10487         * StatusStrip.cs: The default renderer is System.
10488         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
10489         if the user specifies it.
10490         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
10491         if we are ManagerRenderMode.
10492         * ToolStripMenuItem.cs: Calculate our text color better.
10493         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
10494         from Professional to the base class based off working with the System renderer.
10495         * ToolStripSystemRenderer.cs: Added.
10496
10497 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10498
10499         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
10500
10501 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
10502
10503         * ToolTip.cs: Implement 2.0 Tag property.
10504
10505 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10506
10507         * ListView.cs: Implement 2.0 HitTest methods.
10508
10509 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10510
10511         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
10512         item is under the pointer or not (sugar). Also remove the TODO
10513         regarding to the cursor changes in OneClick activation.
10514         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
10515         the subitems use the parent's HotFont if UseItemStyleForSubItems is
10516         true; otherwise don't show the underline style.
10517
10518 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10519
10520         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
10521         the code to retrieve the item at position only one time. Also
10522         change cursor when Activation is ItemActivation.OneClick as well
10523         as invalidate the item if HotTracking is true (to show/hide the
10524         underline style). Add an internal HotItemIndex property to retrieve
10525         the current hot item's index.
10526         * ListViewItem.cs: Add an internal HotFont property to cache the
10527         font used when HotTracking is true and the pointer moves within the
10528         item's borders.
10529         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
10530         HotFont depending on the hot state of the item.
10531
10532 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10533
10534         * ListView.cs: Implement 2.0 HotTracking property.
10535
10536 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
10537
10538         * ToolStripControlHost.cs: If our hosted control never got created,
10539         don't try to dispose it.  [Fixes bug #81909]
10540
10541 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
10542
10543         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
10544
10545 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
10546
10547         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
10548
10549 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10550
10551         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
10552         Details view.
10553         * DrawListViewColumnHeaderEventArgs.cs:
10554         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
10555         using the DrawText () methods.
10556
10557 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
10558
10559         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
10560         background which got erased in my changes yesterday.
10561
10562 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10563
10564         * ListViewItem.cs: Actually set bounds for subitems in Details view
10565         (2.0 feature).
10566         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
10567         can invoke from the owner draw routines if we need it. Also, add
10568         support for Owner draw in Details view.
10569
10570 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
10571
10572         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
10573         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
10574         ShowImageMargin setting, properly align text in a ToolStripLabel
10575         hosted on a ToolStripDropDown.
10576
10577 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
10578
10579         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
10580         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
10581
10582 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10583
10584         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
10585
10586 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
10587
10588         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
10589         location to match ToolStripMenuItems.
10590
10591 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10592
10593         * DrawListViewColumnHeaderEventArgs.cs:
10594         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
10595         column headers in ListView. 
10596
10597 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
10598
10599         * UserControl.cs: Implement AutoSize.
10600
10601 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10602
10603         * DrawListViewItemEventArgs.cs:
10604         * ListView.cs:
10605         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
10606         ListView.
10607
10608 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
10609
10610         * ToolStripDropDownItemAccessibleObject.cs: Added.
10611         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
10612         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
10613         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
10614         ToolStripTextBox.cs: corcompare work.
10615
10616 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
10617
10618         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
10619         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
10620         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
10621                 corcompare.
10622
10623 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
10624
10625         * OSFeature.cs: Add IsPresent.
10626         * PrintPreviewControl.cs: Add RightToLeft.
10627         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
10628         * SplitterPanel.cs: Add AutoSizeMode.
10629
10630 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
10631
10632         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
10633         * MdiClient.cs: Add 2.0 ScaleControl.
10634         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
10635         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
10636
10637 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
10638
10639         * Form.cs: Implement some scaling methods, stub some RTL methods,
10640         corcompare work.
10641
10642 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
10643
10644         * Control.cs: corcompare work.
10645         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
10646
10647 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
10648
10649         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
10650         ControlPaint 2.0 stuffs.
10651
10652 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10653
10654         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
10655
10656 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10657
10658         * UpDownBase.cs: Add 2.0 stuffs.
10659
10660 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10661
10662         * NumericUpDown.cs: Add 2.0 stuffs.
10663
10664 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10665
10666         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
10667
10668 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10669
10670         * ErrorProvider.cs: Implement 2.0 stuffs.
10671
10672 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10673
10674         * DomainUpDown.cs: Implement 2.0 stuffs.
10675
10676 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10677
10678         * CheckedListBox.cs: Fix RefreshItems signature.
10679
10680 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10681
10682         * PictureBox.cs: Implement 2.0 stuffs.
10683
10684 2007-06-12  Andreia Gaita  <avidigal@novell.com>
10685         
10686         * TabControl.cs: Check if there are tabpages before checking
10687         the selected index - fix #81802 (font changes raise a ResizeTabs
10688         call on controls.add, which blew up nicely with no tabpages)
10689
10690 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10691
10692         * ListView.cs:
10693         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
10694
10695 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10696
10697         * ListView.cs:
10698         * ListViewItem.cs: In VirtualMode the selection information
10699         resides in the ListView, rather than in the Items. Also, throw
10700         InvalidOperationExceptions when VirtualMode is being used and
10701         CheckedItemCollection is accessed.
10702
10703 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
10704
10705         * ComboBox.cs: Add ScaleControl.
10706
10707 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
10708
10709         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
10710
10711 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
10712
10713         * GroupBox.cs: Add 2.0 stuffs.
10714
10715 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
10716
10717         * Panel.cs: Add autosize properties/event.
10718
10719 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
10720
10721         * Control.cs:
10722         - When we remove a control, remove it from the collection before performing the layout.
10723         - Setup an internal property for explicit_bounds.
10724         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
10725         - Perform a layout when we set a new AutoSizeMode.
10726
10727 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
10728
10729         * ScrollableControl.cs: Add 2.0 stuffs.
10730
10731 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
10732
10733         * ScrollBar.cs: Add 2.0 stuffs.
10734
10735 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
10736
10737         * Splitter.cs: Add 2.0 stuffs.
10738
10739 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
10740
10741         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
10742         to have BindingContext simply use base implementation.
10743
10744 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
10745
10746         * ColumnHeader.cs: corcompare fix.
10747
10748 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
10749
10750         * Button.cs: corcompare fixes.
10751         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
10752
10753 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
10754
10755         * Button.cs: Override GetPreferredSizeCore.
10756         * ButtonBase.cs: PerformLayout after changing properties that can affect
10757         AutoSize.  Simplify some mouse/keyboard code.
10758         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
10759         * MouseEventArgs.cs: Make Location internal for 1.1.
10760         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
10761         * Theme.cs: Add CalculateButtonAutoSize.
10762         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
10763
10764 2007-06-05  Miguel de Icaza  <miguel@novell.com>
10765
10766         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
10767
10768 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10769
10770         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
10771         since we can get different item instances every time we retrieve it.
10772
10773 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10774
10775         * ListView.cs: Work around for #81602, since an unkown an pretty
10776         infrequent condition appears only in some systems (old linux boxes, it
10777         seems).
10778
10779 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
10780
10781         * Button.cs: Completely reformat and a little refactor to bring
10782         this closer to Mono circa 2007.
10783
10784 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
10785
10786         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
10787         to be ButtonBase.Invalidate.
10788
10789 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
10790
10791         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
10792
10793 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
10794
10795         * ButtonBase.cs: Completely reformat and a little refactor to bring
10796         this closer to Mono circa 2007.
10797
10798 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
10799
10800         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
10801         values for autosize. Fixes #80137.
10802
10803 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
10804
10805         * Control.cs: Don't perform layout when AutoSize changes.
10806         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
10807         directly when autosizing, use SetBounds with BoundsSpecified.None.
10808         Fixes unit tests my last commit broke.
10809
10810 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
10811
10812         * Control.cs: Perform layout when AutoSize changes.
10813         * Form.cs: Implement AutoSizing.
10814
10815 2007-06-01  Chris Toshok  <toshok@ximian.com>
10816
10817         * DataGrid.cs: remove the XXX'ed check at the top of
10818         ProcessGridKey.  fixes #80464.
10819
10820 2007-06-01  Chris Toshok  <toshok@ximian.com>
10821
10822         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
10823         adding idempotent (add/remove in Edit()), and also make sure we
10824         don't add it until after we set the text, so it's not tripped in
10825         Edit().  Fixes unit test regression.
10826
10827 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
10828
10829         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
10830         change is user explicit, not when the layout engine moves stuff.  Fixes
10831         anchoring to bottom and right.  [Fixes bug #81790]
10832
10833 2007-06-01  Andreia Gaita  <avidigal@novell.com>
10834
10835         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
10836
10837 2007-06-01  Andreia Gaita  <avidigal@novell.com>
10838
10839         * ContainerControl.cs: 
10840         Fire enter event for common ancestor if it is not a ContainerControl.
10841         Send focus to the active_control and not the 'value', the active 
10842         control might have been changed in one of the events fired.     
10843         Definitely fixes #80159.
10844
10845 2007-06-01  Andreia Gaita  <avidigal@novell.com>
10846
10847         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
10848
10849 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10850
10851         * PropertyGrid.cs: Anchor the help description to the bottom of the
10852           help panel and refactor SelectGridItem into a
10853           SelectGridItemInternal that can be set to null (and update it to
10854           clear the help texts when it is set to null). Set root item to null
10855           when there's no SelectedObject. Fixes #80438.
10856         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
10857           when we're recalculating after a resize (only).
10858
10859 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10860
10861         * ListView.cs: Implement 2.0 RedrawItems method.
10862
10863 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10864
10865         * ListControl.cs: Disconnect PositionChanged and ItemChanged
10866         handlers from previous data manager when DataSource is set to
10867         null. Fixes #81771.
10868
10869 2007-05-31  Jackson Harper  <jackson@ximian.com>
10870
10871         * TextBoxBase.cs: These seem to be the correct values.
10872
10873 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
10874
10875         * FileDialog.cs: When close dialog with ok set filterindex using combobox
10876         value. Fixes #81784.
10877
10878 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
10879
10880         * Control.cs: Implement 2.0 scaling methods.
10881
10882 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10883
10884         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
10885           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
10886           corcompare issues.
10887
10888 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10889
10890         * ProgressBar.cs: Implemented missing 2.0 members.
10891
10892 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10893
10894         * Control.cs: Corcompare issues.
10895         * MessageBox.cs: Implemented missing 2.0 functions.
10896
10897 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10898
10899         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
10900           Implemented more 2.0 members.
10901
10902 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10903
10904         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
10905           null (strange, but it seems to happen when running unit tests).
10906
10907 2007-05-30  Andreia Gaita  <avidigal@novell.com>
10908
10909         * ContainerControl.cs: Set active_control even earlier, before 
10910         firing any events, and undo it if validation returns false.
10911
10912 2007-05-30  Andreia Gaita  <avidigal@novell.com>
10913
10914         * ContainerControl.cs: Raise Validation and Enter/Leave events
10915         even if there is no Form and set active_control earlier, just
10916         before firing Enter events (toshok's patches). Fixes #80647.
10917
10918 2007-05-30  Jackson Harper  <jackson@ximian.com>
10919
10920         * TextControl.cs: Redid the pageup/pagedown a little to simplify
10921         things and fix bug #81311.
10922
10923 2007-05-30  Jackson Harper  <jackson@ximian.com>
10924
10925         * X11Dnd.cs: Now that we have our own event loop, we need to
10926         cancel when we get a mouseup but it won't be accepted.
10927
10928 2007-05-30  Chris Toshok  <toshok@ximian.com>
10929
10930         * DataGrid.cs (set_CurrentCell): guard against negative
10931         column/row.
10932
10933         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
10934         array index syntax instead of looping over the property names.
10935
10936         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
10937         and set IsInEditOrNavigateMode to false there.
10938
10939 2007-05-30  Jackson Harper  <jackson@ximian.com>
10940
10941         * TreeView.cs: Make sure we don't get a bad visible order when
10942         setting to the top node.  Fixes some misc crashing in
10943         ControlInspector.
10944
10945 2007-05-30  Andreia Gaita  <avidigal@novell.com>
10946
10947         * UserControl.cs: Add 2.0 AutoSizeMode
10948
10949 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
10950
10951         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
10952
10953 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
10954
10955         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
10956         lines. Fixes #80285. 
10957
10958 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
10959
10960         * DataGridColumnStyle.cs: Add char trimming column header text format. 
10961
10962 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
10963
10964         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
10965         Fixes #80147.
10966
10967 2007-05-29  Jackson Harper  <jackson@ximian.com>
10968
10969         * TreeNode.cs: Fix off by one on calculating whether or not a node
10970         is visible.
10971
10972 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
10973
10974         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
10975         * ScrollableControl.cs: Force an UpdateDistances when we move the
10976         scrollbars.
10977         [Fixes bug #80605]
10978
10979 2007-05-29  Andreia Gaita  <avidigal@novell.com>
10980
10981         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
10982         update the page setup screen.
10983
10984 2007-05-29  Andreia Gaita  <avidigal@novell.com>
10985
10986         * PageSetupDialog.cs: Fix landscape mode.
10987
10988 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10989
10990         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
10991         IconSizeHorizontalSpacing.
10992
10993 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10994
10995         * ListView.cs: The declaration of prev_tooltip_item should be inside
10996         a NET_2_0 conditional (avoid a warning).
10997
10998 2007-05-28  Andreia Gaita  <avidigal@novell.com>
10999
11000         * PageSetupDialog.cs: Implement PrintPreview control to display
11001         the preview thumbnail. Change unit conversion to use 
11002         PrinterUnitConvert methods.
11003         
11004         Note: there is a huge bug in ms.net where the default margins are 
11005         interpreted as centimeters (?), when in fact they are set in inches. When 
11006         loading the page setup dialog initially (ms.net), the default margins 
11007         are set to 1 inch, and the dialog shows them with value 10, when in fact 
11008         it should be 25 (properly converted). Our dialog doesn't have this bug.
11009         
11010         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
11011         RectangleF.
11012         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
11013
11014 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11015
11016         * ListView.cs:
11017         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
11018         items.
11019
11020 2007-05-28  Andreia Gaita  <avidigal@novell.com>
11021
11022         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
11023         an IntPtr on csc (it builds fine on mcs, could it be a compiler
11024         bug?), convert the ptr to Int32 first.
11025
11026 2007-05-28  Jackson Harper  <jackson@ximian.com>
11027
11028         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
11029         recieved, we will exit the dnd tracking loop.
11030
11031 2007-05-28  Jackson Harper  <jackson@ximian.com>
11032
11033         * X11Dnd.cs: Keep tracking until the xdnd finished event is
11034         recieved. TODO: I should probably stick a timer on the dropped
11035         event, and finish the drag if the XDND Finished event never shows
11036         (because some apps don't seem to send it).
11037
11038 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
11039
11040         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
11041         #81733.
11042
11043 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11044
11045         * MonthCalendar.cs: Only mark the keypresses we actually handle as
11046           handled.
11047
11048 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11049
11050         * MonthCalendar.cs: Set the size after initializing all the relevant
11051           variables. Fixes #81742.
11052
11053 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11054
11055         * KeyEventArgs.cs: Fix typo.
11056
11057 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
11058
11059         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
11060         to match MS. Fixed MinDate to only accept value less than or equal
11061         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
11062         Removed TODO's that are now verified by unit tests.
11063
11064 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
11065
11066         * TreeNodeCollection.cs: Minor corrections to exceptions to match
11067         MS.
11068
11069 2007-05-25  Jackson Harper  <jackson@ximian.com>
11070
11071         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
11072         it's own message loop.
11073         * XplatUIX11.cs: Remove some of the dnd hooks
11074
11075 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
11076
11077         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
11078         instead of MinimizedWindowSize.
11079
11080 2007-05-25  Jackson Harper  <jackson@ximian.com>
11081
11082         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
11083
11084 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11085
11086         * KeyEventArgs.cs: Added SuppressKeyPress.
11087         * Control.cs: Added support for SuppressKeyPress.
11088
11089 2007-05-24  Andreia Gaita  <avidigal@novell.com>
11090
11091         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
11092         problems with PieChart. suppress_validation should not be a counter,
11093         if there are several BeginInit calls, the first EndInit will 
11094         activate validation. Fix exceptions thrown by set_Value.
11095         * UpDownBase.cs: ValidateText only if it's the user editing it.
11096
11097 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11098
11099         * ListControl.cs: FilterItemOnProperty should return the filtered
11100         item proeprty even if DataSource is null. The same applies for
11101         GetItemText. Fixes #80427.
11102
11103 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
11104
11105         * Control.cs: If a control doesn't have a parent when it's Dock is
11106         set, but it has children, it needs to do a layout.  Fixes some nested
11107         controls issues.  [Fixes bug #81199]
11108
11109 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11110
11111         * ComboBox.cs: If there are few items in the drop down list, make it
11112           the exact size the items need, no bigger. Fixes #81612.
11113
11114 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
11115
11116         * Application.cs: When we have captured the keyboard for a menu,
11117         check for mouse down events in case we need to close the menu.
11118         * Control.cs, Form.cs: Remove mouse down checks for menus.
11119
11120 2007-05-24  Jackson Harper  <jackson@ximian.com>
11121
11122         * TextControl.cs: Handle tabs in non multiline mode a little
11123         differently.
11124
11125 2007-05-24  Jackson Harper  <jackson@ximian.com>
11126
11127         * TextControl.cs: We need to manually break apart tabbed text and
11128         move the tabs, since the system.drawing tabbing mechanism relies
11129         on tab stops.
11130         * TextBoxBase.cs: Move the caret properly when the user enters a
11131         tab.
11132
11133 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
11134
11135         * ContainerControl.cs: Don't check CanSelect before calling
11136         ProcessMnemonic.
11137         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
11138         release a KeyboardActive on click if it's not ours.
11139
11140 2007-05-23  Andreia Gaita  <avidigal@novell.com>
11141
11142         * ColumnHeader.cs: Add TypeConverter
11143
11144 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11145
11146         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
11147
11148 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11149
11150         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
11151
11152 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11153
11154         * LinkLabel.cs: Implement public Padding property.
11155
11156 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11157
11158         * LinkLabel.cs: Implement public FlatStyle.
11159
11160 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
11161
11162         * Control.cs: Apply patch from George to call parent.PerformLayout
11163         when Visible is changed.  [Fixes bugs #81118, 81718]
11164
11165 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11166
11167         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
11168
11169 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11170
11171         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
11172
11173 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
11174
11175         * ContextMenu.cs: Implement Collapse.
11176
11177 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
11178
11179         * ToolBarButton.cs: Implement Name.
11180
11181 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
11182
11183         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
11184         use current_item, it prevents some NRE. Fixes #81675.  
11185
11186 2007-05-22  Andreia Gaita  <avidigal@novell.com>
11187
11188         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
11189         without updating the text.
11190
11191 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
11192
11193         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
11194         without calling DeleteObject.  [Should fix bug #81709]
11195
11196 2007-05-22  Jackson Harper  <jackson@ximian.com>
11197
11198         * RichTextBox.cs: Set the line endings correctly, when flushing
11199         RTF text.
11200
11201 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
11202
11203         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
11204          {Width=0,Height=0}.
11205
11206 2007-05-22  Jackson Harper  <jackson@ximian.com>
11207
11208         * TreeView.cs: Setting top with a null node should set to the very
11209         top.
11210
11211 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11212
11213         * Form.cs: ShowDialog: destroy the handle when message loop is
11214           finished, matches MS behaviour. Refactor parts of WmClose into
11215           RaiseCloseEvents, that only raises events if they haven't already
11216           been raised. Fixes #81688 and #81521.
11217         * Application.cs: Don't call close on the form when exiting a modal
11218           loop, it will raise all the (Form)Closed/Closing events again if
11219           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
11220           which doesn'r raise any events it they have been raised before.
11221
11222 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
11223
11224         * Control.cs: Add OnPrint.
11225         * ToolStrip.cs: Add GetChildAtPoint.
11226         * ToolStripContainer.cs: Add OnRightToLeftChanged.
11227         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
11228
11229 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
11230
11231         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
11232
11233 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11234
11235         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
11236           isn't visible anymore. Fixes #81651.
11237
11238 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11239
11240         * Control.cs: WmShowWindow: Update children's z-order after setting
11241           their parent. SetParent may show the window, thereby corrupting
11242           z-order, since the window will be shown on top.
11243         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
11244           multiple (and redundant) WM_SHOWWINDOW messages.
11245         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
11246           event has already been raised.
11247         * Form.cs: Change is_changing_visible_state to a counter, since
11248           SetVisibleCore can be called recursively. CreateHandle: when
11249           creating mdi children, send (De)Activated events.
11250         * MdiClient.cs: Update use of is_changing_visible_state.
11251         * Application.cs: OnThreadException: Surround exception handling with
11252           try/finally to ensure we always reset the error-handling state
11253           before leaving.
11254
11255 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11256
11257         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
11258           (#81704).
11259
11260 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11261
11262         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
11263         SmallIcon views, now that we have a standarized horizontal spacing.
11264
11265         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
11266         4, just like the other views (Match .Net).
11267
11268 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
11269
11270         * Control.cs: Delay calculating anchor distances until we actually layout.
11271         Always query the WM for the actual size and location it put us at instead of
11272         only when we send negative values.
11273         [Fixes bugs #81694, 81695]
11274
11275 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11276
11277         * Application.cs: Avoid a possible stack overflow when trying to exit
11278           the application.
11279
11280 2007-05-19  Marek Safar  <marek.safar@gmail.com>
11281
11282         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
11283         enum value.
11284
11285 2007-05-19  Andreia Gaita  <avidigal@novell.com>
11286
11287         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
11288         * NumericUpDownAcceleration.cs, 
11289           NumericUpDownAccelerationCollection.cs: Added 2.0
11290           implementation.
11291
11292 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
11293
11294         * RichTextBox.cs: Recalculate the document after the ScrollBars
11295         property is changed. Fixes bug #81681.
11296
11297 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
11298
11299         * DataObject.cs: Implement 2.0 methods.
11300
11301 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11302
11303         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
11304         in the center of the checkbox, not in the left-top corner. 
11305         Fixes #80037.
11306
11307 2007-05-18  Jackson Harper  <jackson@ximian.com>
11308
11309         * RichTextBox.cs: Recalculate the document after the scrollbars
11310         property is changed.
11311         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
11312         81486.
11313
11314 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11315
11316         * CreateParams.cs: Make HasWindowManager marginally faster.
11317         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
11318           into Hwnd so that other drivers can use it as well.
11319         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
11320           the default location from Hwnd. Fixes MDI client windows always
11321           showing up at (0,0) in Windows (Win32 won't set the default
11322           location since the window styles aren't correct).
11323
11324 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
11325
11326         * TreeView.cs: Modified DoubleBuffered to just use the base
11327         implementation.
11328
11329 2007-05-18  Jackson Harper  <jackson@ximian.com>
11330
11331         * TreeView.cs: Set the top node to the last child node when
11332         expanding all
11333         - When we get focus, if there is no selected node, use the top
11334         node.
11335
11336 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
11337
11338         * KeysConverter.cs: Add CanConvertTo.
11339         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
11340         * LinkConverter.cs: Added.
11341
11342 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11343
11344         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
11345         it prevents error when file dont have write access. Fixes #81669 and #81667.  
11346
11347 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11348
11349         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
11350         button text. Fixes #79640.  
11351
11352 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11353
11354         * Control.cs: According to MSDN controls created in the designer theres 
11355         keyboard accelerators visible by default. So included check for design
11356         in ShowKeyboardCuesInternal.  
11357
11358 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11359
11360         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
11361         text. Fixes #81621.  
11362
11363 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11364
11365         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
11366         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
11367
11368 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
11369
11370         * Control.cs: Finish implementation of UI State using WmChangeUIState
11371         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
11372         in some controls to check for show_keyboard_cues to draw accell keys "_".  
11373
11374 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11375
11376         * ListBox.cs: When calculating the horizontal scrollbar
11377         in single column mode, don't use values less than 0 for
11378         Maximum. Fixes #81474.
11379
11380 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11381
11382         * ListBox.cs: Throw the some missing exceptions in
11383         ListBox.ObjectCollection methods.
11384
11385 2007-05-17  Jackson Harper  <jackson@ximian.com>
11386
11387         * TextBoxBase.cs: Recalculate the document when the word wrap
11388         value has changed. This fixes 81488.
11389
11390 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
11391
11392         * Clipboard.cs: Implement missing GetText overload.
11393
11394 2007-05-17  Chris Toshok  <toshok@ximian.com>
11395
11396         * Control.cs (CheckDataBindings): remove the binding_context arg
11397         to binding.Check.
11398
11399         * CurrencyManager.cs (OnItemChanged): fix this now that
11400         BindingManagerBase is fixed. also remove the comment telling where
11401         the fix should go.  We set transfering_data to true/false around
11402         the call to PushData to keep UpdateIsBinding from being called.
11403         (ListChangedHandler): remove the extra OnMetaDataChanged call for
11404         PropertyDescriptorAdded in the 1.1 case.  The extra call is
11405         actually generated by System.Data generating 2 metadata changed
11406         events of its own per column add.  The fix should go there.  Add a
11407         comment to that affect in our test's Assert.Ignore.
11408
11409         * BindingManagerBase.cs: Rework PullData and PushData slightly.
11410         we keep a boolean flag (transfering_data) that keeps us from
11411         calling UpdateIsBinding multiple times if we re-enter either of
11412         them.
11413
11414         * ControlBindingsCollection.cs (AddCore): remove the
11415         binding_context arg to binding.Check.
11416
11417         * Binding.cs (IsBinding): don't check if we're binding here, just
11418         return our cached value.  we update it in UpdateIsBinding.
11419         (Check): don't take the binding_context arg, we'll just use our
11420         control's.  Also, for some reason MS doesn't use the data member
11421         field when getting the bindingmanager for this binding.  it just
11422         uses the datasource.  Make this method callable multiple times,
11423         and only do the is_null_desc stuff if manager.Position != -1 (so
11424         we don't get an exception accessing manager.Current).
11425         (UpdateIsBinding): move the code from IsBinding here.
11426         (PositionChangedHandler): call Check here to we can initialize
11427         things that require a non- -1 position.
11428
11429 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
11430
11431         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
11432         control.
11433
11434 2007-05-17  Andreia Gaita  <avidigal@novell.com>
11435
11436         * TabControl.cs: Add 2.0 methods and events, including
11437         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
11438         * TabPage.cs: Add 2.0 methods
11439
11440 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
11441
11442         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
11443         keyboard_cues is properly handled by message method.  
11444
11445 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
11446
11447         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
11448
11449 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
11450
11451         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
11452
11453 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
11454
11455         * Control.cs: 
11456         - WmUpdateUIState added to handle state changes, it make call to
11457         OnChangeUICues event.
11458         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
11459         SystemInformation.
11460
11461 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
11462
11463         * ImageKeyConverter.cs: Added.
11464         * TreeViewImageKeyConverter.cs: Added.
11465
11466 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11467         
11468         * ToolTips.cs: Update Text if SetToolTip is called for a control
11469         already showing the tooltip, as well as restarting its timer; show
11470         tooltip if we are inside the control bounds by the time of calling
11471         SetToolTip. Inside ShowTooltip remove the check to not show the 
11472         tooltip again for the active control (it is allowed by .Net to 
11473         show the tooltip on the same control multiple times).
11474
11475 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11476
11477         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11478
11479 2007-05-16  Andreia Gaita <avidigal@novell.com> 
11480
11481         * ContainerControl.cs: only process tab key if there are no 
11482         modifier keys present, otherwise the control does the 
11483         tab processing, if it needs to. Fixes #81622
11484         * TabControl.cs: Fixes calculation for which tab to select on
11485         shift+ctrl+tab.
11486
11487 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11488
11489         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11490
11491 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
11492
11493         * Control.cs: Make IsInputCharInternal to allow controls to
11494         override it and still match MS API.
11495         * TextBoxBase.cs: Override IsInputCharInternal and always
11496         return true.
11497         [Fixes bug #81616]
11498
11499 2007-05-15  Jackson Harper  <jackson@ximian.com>
11500
11501         * TextBox.cs: Disable some of the menu options when using a
11502         readonly textbox.
11503
11504 2007-05-15  Jackson Harper  <jackson@ximian.com>
11505
11506         * TextBox.cs:
11507         * TextBoxBase.cs:
11508         * RichTextBox.cs: Some new 2.0 methods
11509
11510 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
11511
11512         * FileDialog.cs: On 1.0 profile, do not support multidotted 
11513         extensions.
11514
11515 2007-05-14  Jackson Harper  <jackson@ximian.com>
11516
11517         * TextBoxBase.cs: Implement some of the new 2.0 methods.
11518         * RichTextBox.cs: We need to override these methods on 2.0.
11519         * MaskedTextBox.cs: These are implemented now
11520         * TextControl.cs: This was off by one.
11521
11522 2007-05-14  Jackson Harper  <jackson@ximian.com>
11523
11524         * TextControl.cs: Because the line endings are including in the
11525         text, we don't need to add them in anymore.
11526
11527 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11528
11529         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
11530         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
11531
11532 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11533
11534         * ToolBar.cs: Adjust size to default size when button theres no text and
11535         image, it fixes remaining issues from #81524.
11536
11537 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11538
11539         * ToolBar.cs: 
11540         - When not flat call redraw to recalculate sizes on creare handle to match
11541         win32 behavior.
11542         - Revert 77220 because it causes some regressions in toobar
11543         button.
11544
11545 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11546
11547         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
11548           now actually enters a usable state.
11549
11550 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11551
11552         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
11553         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
11554         3 buttons.
11555
11556 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11557
11558         * ToolBar.cs: Save default_size on create handle to use later for buttons
11559         without text, needed to mimic win32 behavior.
11560
11561 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11562
11563         * ToolBar.cs: Fix button layour to best fit width or height according to
11564         vertical or not. Fixes #81524.
11565
11566 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
11567
11568         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
11569         toolbar size info because different styles theres different sizes.
11570         Fixes #81522.
11571
11572 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11573
11574         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
11575         if we are using checkboxes, checked is true, and we have less
11576         than two images in StateImageList; for the 1.1 in the same scenario
11577         draw the first image if we have at least one image in StateImageList.
11578         Fixes part of #81191.
11579
11580 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
11581
11582         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
11583         the owner's Items collection on merge.
11584
11585 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
11586
11587         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
11588         * ToolStripItemCollection.cs: Lots of fixes to when events get called
11589         and parent/owner gets changed based on gert's unit tests.
11590
11591 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11592
11593         * MaskedTextBox.cs: Started implementing parts of it.
11594
11595 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11596
11597         * ListView.cs: When clicking the checkbox on the items
11598         take into account the double clicks even if we have only
11599         one image in StateImageList (only for 1.0/1.1). Also 
11600         generate an extra change of checked state when we receive
11601         the second click on checkbox (match .Net behaviour). 
11602         Fixes part of #81191.
11603
11604 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
11605
11606         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
11607
11608 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
11609
11610         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
11611         even if OnLoad is overriden and base.OnLoad is not called.
11612         [Fixes bug #81582]
11613
11614 2007-05-10  Andreia Gaita  <avidigal@novell.com>
11615
11616         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
11617         shame. (I blame my ever-persisting and annoying cold)
11618
11619 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
11620
11621         * ListView.cs: Don't eat navigation keys.  Let them flow through to
11622         KeyDown/KeyPress routines.  [Fixes bug #81569]
11623
11624 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
11625
11626         * ListView.cs: When handling keys for selecting the item based off
11627         keyboard input, do not consider keys pressed with Alt or Control.  Also,
11628         correctly handle keys when the Shift key is down. [Fixes bug #81578]
11629
11630 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
11631
11632         * Control.cs: When using UseWaitCursor, we have to store the requested
11633         Cursor to use when UseWaitCursor is turned off.
11634
11635 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
11636
11637         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
11638         to false.
11639         * Application.cs: Use PreProcessControlMessage instead of
11640         PreProcessMessage.
11641         * PreProcessControlMessage.cs: Make internal for 1.1.
11642
11643 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11644
11645         * Control.cs: Add InternalContains focus property, which hast the same
11646         functionality of ContainsFocus, but also including implicit controls.
11647         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
11648         since we need to know if the focus is contained in our implicit
11649         ItemControl when calculating Layout. Fixes part of #80888.
11650
11651 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
11652
11653         * ToolTip.cs: Remove center form string alignment as it must be align to
11654         left.
11655
11656 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
11657
11658         * ToolStripItemCollection.cs: Set the new item's parent and owner
11659         in Insert like we do in Add.  [Fixes bug #81568]
11660
11661 2007-05-08  Jackson Harper  <jackson@ximian.com>
11662
11663         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
11664         - Off by one error in SetTop
11665         - Disable DoubeBuffering
11666         
11667 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11668
11669         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
11670           control as much as necessary in order to make it entirely visible,
11671           instead of centering the control in the container (matches MS
11672           behaviour). CalculateCanvasSize: we need to take the current scroll
11673           position into account when calculating the maximum canvas,
11674           otherwise the following scenario will fail: resize so that the
11675           scrollbars appear, use the scrollbars to scroll, resize again
11676           smaller, and now the canvas size is too small. Recalculate: when
11677           showing scrollbars make sure they start off at 0, and try to scroll
11678           the active control into view. Fixes #79540. HandleScrollBar: don't
11679           scroll anywhere if the scrollbar isn't visible.
11680
11681 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11682
11683         * ListView.cs: When focus changed, call Layout/Invalidate
11684         in the focused item to update the selected state (should show
11685         entire label when ListView is focused, and a part of it if is not).
11686         * ListViewItem.cs: When doing layout for LargeIcon, take into account
11687         for displaying the entire label not only the Focused state of the
11688         item, but also the Focused state of the ListView (match .Net
11689         behaviour).
11690
11691 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
11692
11693         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
11694         Implement UseWaitCursor. 
11695
11696 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
11697         Applying contributed patch from Sergey Volk.
11698
11699         * Clipboard.cs: Implement SetDataObject retry logic and new overload
11700         of SetDataObject.
11701         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
11702
11703 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
11704
11705         * Control.cs: Implement DrawToBitmap.
11706
11707 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
11708         Applying contributed patch from Stefan Noack.
11709         
11710         * Control.cs: Add [Get|Set]AutoSizeMode.
11711
11712 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
11713
11714         * MdiClient.cs: Unmerge menus when the last child is closed.
11715
11716 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
11717
11718         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
11719         * ToolStripManager.cs: Call Merge on DropDowns.
11720         [Fixes bug #81477]
11721
11722 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11723
11724         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
11725           uints.
11726         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
11727           visibility. We can't create forms visible, since we have to set the
11728           owner before making the form visible (otherwise Win32 will do
11729           strange things with task bar icons). The problem is that we set the
11730           internal is_visible to true before creating the control, so
11731           is_changing_visible_state is the only way of determining if we're
11732           in the process of creating the form due to setting Visible=true -
11733           this works because SetVisibleCore explicitly makes the form
11734           visibile afterwards anyways. Fixes #80775.
11735
11736 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11737
11738         * ThemeWin32Classic.cs: When drawing ListViewItems,
11739         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
11740         or LargeIcon _and_ item is not focused (match .Net behaviour).
11741
11742 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
11743
11744         * Control.cs, Form.cs: Fix some obsolete method warnings.
11745
11746 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
11747
11748         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
11749         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
11750
11751 2007-05-04  Andreia Gaita  <avidigal@novell.com>
11752
11753         * ContainerControl.cs: Fix active_control attribution when going
11754         up the parent chain so that the first parent container gets the control
11755         and the rest of the parent containers get the child containers (skips
11756         non-containers). Fixes #80729
11757
11758 2007-05-04  Randolph Chung  <tausq@debian.org>
11759
11760         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
11761         [Fixes bug #81499]
11762
11763 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11764
11765         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
11766           takes a size parameter, since the CreateParam's size isn't true for
11767           minimized forms. Fixes #81518,
11768
11769 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11770
11771         * Form.cs: Add OnDeactivateInternal.
11772         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
11773
11774 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11775
11776         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
11777           accessing the parent. Fixes #81508.
11778
11779 2007-05-03  Chris Toshok  <toshok@ximian.com>
11780
11781         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
11782         2.0 block, pass listposition + 1 to ChangeRecordState when a row
11783         was added before the current listposition.  Fixes the
11784         TestInsertRowBeforeCurrent unit test.
11785
11786 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
11787
11788         * Application.cs: Add RaiseIdle.
11789         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
11790         XplatUIX11.cs: Implement RaiseIdle.
11791
11792 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
11793         corcompare work: N - Z
11794         * NotifyIcon.cs
11795         * ProgressBar.cs
11796         * RadionButton.cs
11797         * ScrollableControl.cs
11798         * SplitContainer.cs
11799         * SplitterPanel.cs
11800         * StatusBar.cs
11801         * SystemInformation.cs
11802         * TabControl.cs
11803         * TableLayoutControlCollection.cs
11804         * TableLayoutPanel.cs
11805         * TabPage.cs
11806         * ToolBar.cs
11807         * ToolBarButton.cs
11808         * ToolStrip.cs
11809         * ToolStripComboBox.cs
11810         * ToolStripContainer.cs
11811         * ToolStripContentPanel.cs
11812         * ToolStripDropDown.cs
11813         * ToolStripDropDownItem.cs
11814         * ToolStripDropDownMenu.cs
11815         * ToolStripItem.cs
11816         * ToolStripItemCollection.cs
11817         * ToolStripMenuItem.cs
11818         * ToolStripPanel.cs
11819         * ToolStripSplitButton.cs
11820         * ToolTip.cs
11821         * TreeNode.cs
11822         * TreeNodeCollection.cs
11823         * TreeNodeMouseHoverEventArgs.cs
11824         * TreeView.cs
11825
11826 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
11827
11828         * ContextMenu.cs: Add public method Show with alignment property to 2.0
11829         stuff. Thanks aatdark for the patch. 
11830
11831 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
11832
11833         * GridItem.cs: Implement 2.0 Tag property.
11834
11835 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
11836
11837         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
11838         count instead of Nodes.Length.  [Fixes bug #81448]
11839
11840 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
11841
11842         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
11843         [Fixes bug #81506]
11844
11845 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
11846         corcompare work: A - M
11847         * BindingNavigator.cs
11848         * Button.cs
11849         * ButtonBase.cs
11850         * CheckBox.cs
11851         * Control.cs
11852         * FlowLayoutPanel.cs
11853         * Form.cs
11854         * Label.cs
11855         * LinkLabel.cs
11856         * ListView.cs
11857
11858 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
11859
11860         * Application.cs: Give toolstrips a chance to process mnemonics.
11861         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
11862         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
11863         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
11864
11865 2007-05-01  Jackson Harper  <jackson@ximian.com>
11866
11867         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
11868         wider area too.
11869         - Don't set the BoundsSpecified
11870
11871 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
11872
11873         * Application.cs: When using the toolstrip shortcut mechanism, allow the
11874         message to pass through to a regular control if it hosted by a toolstrip.
11875         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
11876         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
11877
11878 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
11879
11880         * TextRenderer.cs: Use the flags argument when using the MeasureString
11881         fallback algorithm.
11882
11883 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
11884
11885         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
11886         the MDI menu item.  [Fixes bug #81483]
11887
11888 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
11889
11890         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
11891         string. When setting Name to null, use zero-length string instead.
11892
11893 2007-04-29  Andreia Gaita  <avidigal@novell.com>
11894
11895         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
11896         DeselectTab). Implement missing 2.0 TabPageCollection methods
11897         (Add, ContainsKey, RemoveByKey, IndexOfKey)
11898
11899 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
11900
11901         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
11902
11903 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
11904
11905         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
11906         Fixes bug #81479. Include details of exception when LoadFile fails.
11907
11908 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
11909
11910         * DrawListViewSubItemEventArgs.cs: Added missing setter
11911
11912 2007-04-27  Andreia Gaita  <avidigal@novell.com>
11913
11914         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
11915         Hide methods (not complete). Implement missing 2.0 OnPopup event.
11916
11917 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11918
11919         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
11920         removed in ly last commit (it was breaking the Label edit feature).
11921
11922         * ThemeWin32Classic.cs: When drawing a ListViewItem use
11923         StringAlignment.Near for LineAlignment (match .Net).
11924
11925 2007-04-27  Andreia Gaita  <avidigal@novell.com>
11926
11927         * TabControl.cs: Change SetTab so it adds the tabpage to the list
11928         of controls if it isn't already there - was blowing up when doing
11929         tabcontrol.TabPages[i]=new TabPage(). 
11930         SetTab now does a replace by removing the page at the index. 
11931         Add a new InsertTab method that inserts a page in a given index 
11932         instead of replacing. 
11933         Implements TabPageCollection.Insert(int, TabPage).
11934
11935 2007-04-27  Chris Toshok  <toshok@ximian.com>
11936
11937         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
11938         internal handler that can be invoked from our subclasses.)  Also,
11939         add a comment to PushData about how we need to fix it.
11940
11941         * CurrencyManager.cs: tons of changes here.  trying to get things
11942         matching the behavior of .net wrt event orders (ItemChanged,
11943         CurrentChanged, PositionChanged.)  I've implemented a private .net
11944         symbol (ChangeRecordState) that appears in stack traces because
11945         it's actually easier to do this than to effective inline all its
11946         various behaviors at every call site.
11947
11948         * RelatedPropertyManager.cs: guard against an exception here by
11949         not using parent.Current if the position is set to -1 (if the
11950         parent datasource is cleared, for instance).
11951
11952         * Binding.cs: don't parse data in PushData (this might be wrong,
11953         but it jives with MS's behavior.)  Also, don't call PushData when
11954         we get a CurrentChanged event.
11955
11956 2007-04-27  Andreia Gaita  <avidigal@novell.com>
11957
11958         * WebBrowser.cs,
11959           WebBrowserBase.cs,
11960           WebBrowserSiteBase.cs,
11961           HtmlDocument.cs: Added stubbed out classes, no real implementations 
11962           yet.
11963
11964 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
11965
11966         * MainMenu.cs: In draw method without parameters call draw method with 
11967         PaintEvent, another one (just rect) adjust rectangle and we dont need it
11968         as Rect property is already adjusted. Fixes #80694.
11969
11970 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
11971
11972         * Application.cs: Need to handle keyboard menu deselection here.
11973         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
11974         navigation, allowing keyboard to work on X11.
11975         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
11976
11977 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
11978
11979         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
11980         menu bar. It fixes some drawing issues in menu bar.
11981
11982 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
11983
11984         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
11985         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
11986         when <alt> key is pressed.
11987
11988 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
11989
11990         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
11991         example just set visible to false and make this prevent from other problems.
11992         In SystrayAdd always remove pending expose. Fixes #81072.
11993
11994 2007-04-26  Marek Safar  <marek.safar@gmail.com>
11995
11996         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
11997         value is set.
11998
11999 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
12000
12001         * ListView.cs: Added three missing 2.0 events and corresponding
12002         EventHandlers. Added the OwnerDraw property.
12003         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
12004
12005 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
12006
12007         * DrawListViewItemEventArgs.cs
12008         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
12009
12010 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
12011
12012         * TextControl.cs: Fixed typo in constructor
12013
12014 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
12015
12016         * Application.cs: Create a shortcut path so that currently selected
12017         MenuStrips can intercept keyboard events without having focus.
12018         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
12019         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
12020         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
12021         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
12022         generate WM_SYSCOMMAND message in X11 for other platforms.
12023         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
12024         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
12025         * ToolStripSplitButton.cs: Add DefaultItem property.
12026         
12027 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
12028
12029         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
12030         fixes some menu draw problem on Windows with border diferent from default
12031         it also fixes #81403.
12032
12033 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12034
12035         * Form.cs: Refactor WndProc into separate methods, just like Control is
12036           doing it.
12037
12038 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12039
12040         * Control.cs: set_Text: move the call to the driver into a seperate
12041           virtual method so that Form can override it.
12042         * MaskedTextBox.cs: Corcompare fixes.
12043         * Form.cs: Override UpdateWindowText and only update the styles if the
12044           form has been shown (fixes #81405).
12045
12046 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
12047
12048         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
12049         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
12050         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
12051         the form lost focus or another control was clicked.
12052
12053 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
12054
12055         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
12056         fixed.
12057
12058 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12059
12060         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
12061           DrawListViewItemEventHandler.cs,
12062           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
12063           Added.
12064         * X11Structs.cs: More ToString implementation.
12065
12066 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
12067
12068         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
12069         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
12070
12071 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12072
12073         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
12074           handle.
12075         * FormCollection.cs: Don't add a form if it's already in the
12076           collection.
12077         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
12078           according to behaviour and MSDN. The ownerWin32 is the active
12079           window at the moment when we call ShowDialog, not the context's
12080           main form (the context's main form may open another form that opens
12081           a form with ShowDialog, the win32 owner is the second form). Add
12082           and remove forms to the Application.OpenForms in other places to
12083           better match MS behaviour. Add an IsActive property that raises
12084           On(de)Activated only if the active state has changed (we were
12085           raising OnDeactivated before OnActivated while creating forms).
12086         * Application.cs: Refactor Enabling/Disabling of windows for modal
12087           dialog loops out to separate methods, and restore the thread
12088           context when we quit the method. Fixes #81407.
12089
12090 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12091
12092         * ListView.cs: In ItemControl.HandleClicks, also fire 
12093         2.0 MouseClick or MouseDoubleClick events on the parent,
12094         not only the Click/DoubleClick events.
12095
12096 2007-04-24  Andreia Gaita  <avidigal@novell.com>
12097
12098         * TableLayoutSettings.cs: 
12099         - Added a GetControls method and a support structure to help the 
12100         TypeConverter to enumerate the controls for     serialization. 
12101         - Added a new serialization constructor. 
12102         - Added a isSerialized flag initialized to true on the 
12103         serialization constructor so that the TableLayoutPanel.LayoutSettings 
12104         setter does not throw the designed NotSupportedOperation exception
12105         when the object is built through deserialization.
12106         - Implemented GetObjectData
12107         
12108         * TableLayoutPanel.cs: Added check on LayoutSettings.
12109
12110 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12111
12112         * ListView.cs: Report Click and DoubleClick events to the parent
12113         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
12114         from breaking the click count state when using dialog forms (Control
12115         reports the clicks in a similar fashion). In the previous behaviour
12116         the last WM_LBUTTONUP message in a  double click was sent to the
12117         ListView's form, instead of the ListView, which was breaking the click
12118         count for it. Fixes #80387.
12119
12120 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
12121
12122         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
12123
12124 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
12125
12126         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
12127         us from created dropdowns for menu items that do not have subitems.
12128         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
12129         Check HasDropDownItems before calling DropDown so a dropdown will not be
12130         created if it isn't needed.
12131
12132 2007-04-24  Jackson Harper  <jackson@ximian.com>
12133
12134         * TreeView.cs: Set the first node to the selected node when we get
12135         focus if there is no selected node.
12136
12137 2007-04-24  Andreia Gaita  <avidigal@novell.com>
12138
12139         * MimeIcon.cs: remove using blocks so that image streams are
12140         not disposed of. Fixes #80151
12141
12142 2007-04-24  Jackson Harper  <jackson@ximian.com>
12143
12144         * TextBoxBase.cs: Fixup the height of textboxes when the control
12145         is created.
12146
12147 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
12148
12149         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
12150         for each ToolStripItem when the parent's RightToLeftChanged is called.
12151
12152 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12153
12154         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
12155           Fixes #80163.
12156         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
12157           property, so that the setter can be overriden too.
12158         * TextBox.cs: Change GetContextMenuInternal() to use
12159           ContextMenuInternal.
12160
12161 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12162
12163         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12164           #81406.
12165
12166 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12167
12168         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12169           #81406.
12170
12171 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12172
12173         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
12174           avoid duplicate work. Mostily skeleton code, it's not working at
12175           all yet.
12176
12177 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
12178
12179         * NotifyIcon.cs : stub for MouseClick event
12180         * Application.cs: stub for SetUnhandledExceptionMode
12181
12182 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
12183
12184         * BindingNavigator.cs : Initial (partial) implementation
12185
12186 2007-04-23  Jackson Harper  <jackson@ximian.com>
12187
12188         * TreeView.cs: Do not create the treeview's handle when setting
12189         the scroll position.
12190         - ExpandAll needs to compute the scrollbars so it knows which
12191         position to set the bar too.
12192         * TreeNode.cs: 
12193         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
12194
12195 2007-04-23  Jackson Harper  <jackson@ximian.com>
12196
12197         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
12198         key. Fixes #81408.
12199
12200 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
12201
12202         * ToolStripItem.cs: Make GetImageSize internal.
12203         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
12204         need to draw an item.  Fixes a reported issue where images on menus
12205         that were not 16x16 were drawing incorrectly.
12206
12207 2007-04-21  Miguel de Icaza  <miguel@novell.com>
12208
12209         * Padding.cs: Use the converter, fixes the resgen2 issue with
12210         XMLNotePad. 
12211
12212 2007-04-21  Jackson Harper  <jackson@ximian.com>
12213
12214         * TreeView.cs: Dont try to unhighlight the selected node if there
12215         isn't a selected node.
12216
12217 2007-04-21  Jackson Harper  <jackson@ximian.com>
12218
12219         * UpDownBase.cs:
12220         * TextBoxBase.cs:
12221         * ListView.cs:
12222         * ListBox.cs:
12223         * TreeView.cs: Use the InternalBorderStyle property to set the
12224         initial border style, this forces the client rectangle to be sized
12225         correctly.
12226
12227 2007-04-20  Jackson Harper  <jackson@ximian.com>
12228
12229         * TreeView.cs: Simplify scrolling to the last node after expanding
12230         all.
12231         - Fix some off by ones with setting the bottom.
12232
12233 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
12234
12235         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
12236         that.  We were incorrectly doing it the other way around.  Also,
12237         update ClientSize if we change the BorderStyle before the control
12238         is created.
12239
12240 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
12241
12242         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12243         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12244         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
12245         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12246         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12247         Caption to CaptionHeight.
12248         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
12249         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
12250         and FixedFrameBorderSize to return value from current XplatUI driver.
12251         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
12252         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
12253         and FixedFrameBorderSize using win32 API. Renamed Caption to
12254         CaptionHeight.
12255         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
12256         * SystemInformation.cs: Fixed typo in BorderSize.
12257
12258 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
12259
12260         * XplatUI.cs: Added MenuAccessKeysUnderlined.
12261         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
12262         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
12263         returning false.
12264         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
12265         value from XplatUI driver.
12266         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
12267         SystemParametersInfo.
12268         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
12269         override.
12270         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
12271         returning false.
12272
12273 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12274
12275         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
12276
12277 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12278
12279         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
12280
12281 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
12282
12283         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
12284         MenuStrips that contain ToolStripSeparators.
12285
12286 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12287
12288         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
12289           DefineStdCursorBitmap.
12290         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
12291           has been created off a standard cursor. This is used to get a
12292           bitmap of the standard cursor when Draw or DrawStretched is called
12293           in order to draw the cursor.
12294         * X11Structs.cs: Added XcursorImage and XcursorImages.
12295         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
12296           DefineStdCursorBitmap.
12297         * Cursors.cs: Update all relevant creations of Cursor to use the new
12298           internal constructor.
12299
12300 2007-04-19  Jackson Harper  <jackson@ximian.com>
12301
12302         * TextBox.cs: Move the has_been_focused into the base control, so
12303         some of the text adding methods can manipulate it (probably time
12304         for a better name for this flag too).
12305         - Call a new version of selectall that doesn't scroll
12306         * TextBoxBase.cs: When we append text, if the document is empty,
12307         don't scroll.  If the document has text already, we scroll to the
12308         end of the appended text.
12309         - When the text is changed, we reset the has_been_focused, so the
12310         next time the control gets focused, all the text is selected.
12311
12312 2007-04-19  Jackson Harper  <jackson@ximian.com>
12313
12314         * TextControl.cs: Move the margins to the document, add a method
12315         so the margin sizes can be updated.
12316         * TextBoxBase.cs: When the border style is changed, update the
12317         border sizes.
12318
12319 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
12320
12321         * Control.cs: Respect DefaultPadding.
12322         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
12323         padding into account.
12324         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
12325
12326 2007-04-19  Jackson Harper  <jackson@ximian.com>
12327
12328         * TextControl.cs: Oops, we need to use the ClientRect not the
12329         bounds here.
12330
12331 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12332
12333         * ListView.cs: In ItemControl.ItemsMouseDown, take into
12334         account the double clicks when CheckBoxes are used and
12335         the pointer is inside the checkbox. Fixes part of #81191.
12336
12337 2007-04-18  Jackson Harper  <jackson@ximian.com>
12338
12339         * TextControl.cs: Pressing the end key shouldn't move the caret
12340         past the line ending.
12341         * TextBoxBase.cs: We can still delete if we are in the line
12342         ending and the combine will just kill the existing line ending.
12343
12344 2007-04-18  Jackson Harper  <jackson@ximian.com>
12345
12346         * TextControl.cs: We can't move lines, then invalidate their
12347         bounds, we need to get the old bounds and combine that with the
12348         new bounds.
12349         * TextBoxBase.cs: Before combining two lines for a delete, we need
12350         to invalidate the area of the old line, since that will be moved
12351         in the combine operation.
12352
12353 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
12354
12355         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
12356         with transparent background. Fixes #80482.
12357
12358 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
12359
12360         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
12361         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
12362         [Fixes bug #81391]
12363
12364 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12365
12366         * CreateParams.cs: Add a couple of helper methods and do a less string
12367           concatenation in ToString.
12368         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
12369           overload that takes a Control parameter, since this method may be
12370           called before a control is assigned to the hwnd (from
12371           CreateWindow), and update CreateWindow to use the new overload. In
12372           GetMenuOrigin subtract the title bar from the y position if the
12373           form has a window manager (since we're painting it and not X).
12374         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
12375           CreateParams to calculate the origin (since border sizes may vary).
12376           In ScreenToMenu only subtract the title height if we actually have
12377           a title.
12378         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
12379           mdi children never have menus of themselves.
12380         * InternalWindowManager.cs: Implement menu handling like form does.
12381           Added GetMenuOrigin to calculate the menu origin, can't use the
12382           CreateParams from the form like normally since it's lying.
12383         * Hwnd.cs: Implement GetBorderSize better (in the sense more
12384           windows-like) and add Inflate and comparison operators to the
12385           Borders type. When calculating MenuOrigin and it's a form with a
12386           window manager, use the window manager to calculate it.
12387
12388 2007-04-17  Chris Toshok  <toshok@ximian.com>
12389
12390         * Control.cs (CreateControl): turns out in 2.0 we don't need this
12391         OnBindingContextChanged thing here.  It's only generated from
12392         ContainerControl.OnCreateControl.  Fixes a newly written unit test
12393         - BindingTest.BindingContextChangedTest4.
12394         
12395 2007-04-17  Jackson Harper  <jackson@ximian.com>
12396
12397         * ScrollBar.cs: When setting values, make sure the current
12398         position stays within the new values range.
12399
12400 2007-04-17  Chris Toshok  <toshok@ximian.com>
12401
12402         * Control.cs (CreateControl): talk about a bizarre corner case.
12403         Don't emit OnBindingContextChanged here if we're a parentless
12404         control (i.e. if we're a form.).  Fixes
12405         BindingTest.BindingContextChangedTest2.
12406
12407 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
12408
12409         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
12410         from win32. Fixes #81255.
12411
12412 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
12413
12414         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
12415         already present in CalculateButtonTextAndImageLayout.
12416
12417 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12418
12419         * XplatUIX11.cs: When setting min/max size for a window we need to
12420           translate the coordinates to x coordinates. Create an overload of
12421           SetWindowMinMax that takes a CreateParams handling this, and change
12422           SetWMStyles to call this function (can't use Control.FromHandle in
12423           the SetWindowMinMax to get the control/CreateParams from the handle
12424           because the handle might not have been assigned to the control
12425           yet). Fixes #81371.
12426
12427 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12428
12429         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
12430         if StateImageList is non-null and it has less than two items (match MS
12431         behaviour). Also, in HandleNavKeys handle the Space key, calling
12432         the new ToggleItemsCheckState method, which tries to change the
12433         checked state of the selected items. Fixes part of #81191.
12434
12435 2007-04-16  Jackson Harper  <jackson@ximian.com>
12436
12437         * RichTextBox.cs: namespace cleanup.
12438
12439 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
12440
12441         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
12442
12443 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
12444
12445         [Fixes #79447]
12446         * Control.cs: Call invalidate in set_Region.
12447
12448         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
12449         it dont works here.
12450
12451 2007-04-16  Jackson Harper  <jackson@ximian.com>
12452
12453         * TextBoxBase.cs: When enter is pressed, we need to update all
12454         lines below the current.
12455
12456 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
12457
12458         * MdiClient.cs: Implement implicit menu merging for MDI
12459         children.  When a child form is active, if it has a menustrip
12460         and the parent form has a MainMenuStrip, automatically merge
12461         the menus.
12462
12463 2007-04-15  Andreia Gaita  <avidigal@novell.com>
12464
12465         * TabControl.cs: Refactored sizing methods to not repeat
12466         code all over the place. Tab bounds are now calculated
12467         as if alignment is top and single line, and only when 
12468         setting the bounds are the positions adjusted according
12469         to alignment. Replaced hardcoded positions, spacings and
12470         paddings by getting the values the ThemeEngine. 
12471         Fixes #79619.
12472         
12473         * Theme.cs: Change TabControl properties and methods so
12474         that all start with TabControl*. Added more properties
12475         to help remove hardcoded values on tabcontrol.
12476         Add CPDrawBorder3D declaration so the Theming classes
12477         can access it.
12478         
12479         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
12480
12481         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
12482         on the Theming namespace, and call the appropriate methods here.
12483         Change CPDrawBorder3D to public.
12484
12485 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12486
12487         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
12488         the control after firing the OnMouseUp event, instead of sending
12489         the message before the mentioned event. This is so we can match the
12490         MS behaviour. Fixes part of #80385.
12491
12492 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
12493
12494         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
12495         RightToLeft property.
12496
12497 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
12498
12499         * ToolStrip.cs: Add properties and internal methods to support merging.
12500         * ToolStripItem.cs: Add MergeAction and MergeIndex.
12501         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
12502         not trigger reparenting or layouts.
12503         * ToolStripManager.cs: Add Merge and RevertMerge methods.
12504         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
12505         is hosting the overflow menu.
12506
12507 2007-04-13  Jackson Harper  <jackson@ximian.com>
12508
12509         * TextControl.cs: Set the line ending correctly for the first
12510         inserted line.
12511
12512 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
12513
12514         * Theme.cs: Update GetMethod to get the new definition for 
12515         KnownColors.Update (and fix theme color updates).
12516
12517 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
12518
12519         * MessageBox.cs: Fix some test and button position.
12520
12521 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12522
12523         * Form.cs: Consider the implicit controls in
12524         GetRealChildAtPoint. We need it since this method
12525         is called on Form when handling the some messages in
12526         WndProc, and need to consider those implicit ones too.
12527         Fixes #80385.
12528
12529 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
12530
12531         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
12532         if there are no ShortcutKeys set.
12533         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
12534         set, use it when painting.
12535
12536 2007-04-12  Jackson Harper  <jackson@ximian.com>
12537
12538         * TextControl.cs: Fix some off-by-one issues in line duplication
12539         and insertion in the undo manager. Also, overwrite the first tag
12540         of a line on insert, if it is just a zero lengthed tag. This
12541         prevents us from getting an extra stranded tag at the beginning of
12542         the first line.
12543
12544 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
12545
12546         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
12547         to calculated proper size including when handle was not created yet.
12548
12549 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12550
12551         * MdiWindowManager.cs: When moving a form, allow the form to be moved
12552           when the mouse is outside of it's parent's client rectangle. Fixes
12553           #79982 (take 3, part 2).
12554
12555 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12556
12557         * X11Structs.cs: Add a few ToString() overrides.
12558         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
12559           the window location in a window-manager independent way. Reworked
12560           FrameExtents, it now actually works. Reworked AddConfigureNotify
12561           and ReparentNotify handling to use GetTopLevelWindowLocation
12562           instead of the earlier, more hacky solution. Reworked SetWMStyles,
12563           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
12564           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
12565           for all other windows (fixes #81281 part 1), a toolwindow is hidden
12566           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
12567           and generally refactored to do as few calculations as possible
12568           inside the lock.
12569
12570 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
12571
12572         * Theme.cs: Change "reflective-contract" between MWF and SD to 
12573         minimize # of calls, avoid Color serialization and avoid updating 
12574         every "known colors" each time a single one is updated.
12575
12576 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
12577
12578         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
12579         when not readonly and the text is explicitly set. Code style updates.
12580         * DataGridTableStyle.cs: Removed extra line.
12581         * DataGrid.cs: Code style updates. Removed extra whitespace.
12582         * DataGridColumnStyle.cs: Code style updates. Removed extra 
12583         whitespace.
12584
12585 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12586
12587         * XplatUIX11.cs: Added comment that "fixes" #80021.
12588
12589 2007-04-09  Jackson Harper  <jackson@ximian.com>
12590
12591         * TextControl.cs: We don't need this -1 on the line count anymore.
12592
12593 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
12594
12595         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
12596         entered value to underlying type, and convert it back to a string to
12597         apply formatting. Modified GetFormattedValue to use TypeConverter
12598         if available.
12599
12600 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
12601
12602         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
12603         Use SubItems property when we want to ensure there's at least one
12604         subitem. Modified SubItems property to ensure there's always at least
12605         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
12606         the NRE's reported by MS.
12607
12608 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
12609
12610         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
12611         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
12612         Spaces to tabs. Removed extra tabs.
12613
12614 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
12615
12616         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
12617         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
12618
12619 2007-04-06  Jackson Harper  <jackson@ximian.com>
12620
12621         * TextBoxBase.cs: When a delete removes a line, recalculate all
12622         lines below that line (they need to get offsets setup correctly)
12623         and invalidate.
12624
12625 2007-04-05  Jackson Harper  <jackson@ximian.com>
12626
12627         * TextControl.cs: We need to invalidate across the width of the
12628         document when we are invalidating multiple lines.
12629         * TextBoxBase.cs: Don't delete into the line ending.
12630
12631 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12632
12633         * ListView.cs: Restore the check for the MouseHover event
12634         in ListView. It looks like the ListView fires more than one MouseHover
12635         event when HoverSelection is true  _only_ in weird-corner scenarios, but
12636         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
12637         event.
12638
12639 2007-04-05  Mike Kestner  <mkestner@novell.com>
12640
12641         * ListView.cs : raise MouseDown before updating selection.
12642         [Fixes #80373 tab 1&3]
12643
12644 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
12645
12646         * ToolStripRenderer.cs: Add static method to mirror image.
12647         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
12648         and RightToLeftAutoMirrorImage.
12649         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
12650
12651 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
12652
12653         * ToolStripSplitStackLayout.cs: Support Alignment property.
12654         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
12655
12656 2007-04-05  Jackson Harper  <jackson@ximian.com>
12657
12658         * TextControl.cs: Move around the line endings when crossing line
12659         boundaries.
12660         - When combining lines, strip the ending text off the first line.
12661
12662 2007-04-05  Jackson Harper  <jackson@ximian.com>
12663
12664         * TextControl.cs:
12665         * TextBoxBase.cs: Try to never move the cursor into the line
12666         ending.
12667         
12668 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
12669
12670         * ToolStripItem.cs: Make sure we aren't firing mouse events when
12671         the item is disabled.  Also add a few missing methods.
12672
12673 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12674
12675         * ListView.cs: We don't need the MouseEnter/MouseLeave check
12676         to fire just one MouseHover event when HoverSelection is true, since
12677         .Net does fire more than one MouseHover event in that scenario. Also,
12678         fix the selection in HoverSelection, by invoking UpdateMultiSelect
12679         if MultiSelect is true, instead of only setting ListViewItem.Selected.
12680         Finally, we need to reset the Hover logic in MouseMove, even when we
12681         don't have a selected item.
12682
12683 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
12684
12685         * ToolStrip.cs: Add several missing methods, properties, and events.
12686
12687 2007-04-04  Chris Toshok  <toshok@ximian.com>
12688
12689         * DataGridTextBoxColumn.cs: set the bounds of the text box to
12690         (0,0,0,0) in Commit, as MS does.
12691
12692         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
12693         make sure we set CurrentRow on a row header click *before* calling
12694         Select.  This moves the current cell (and the textbox) to the new
12695         row.  The call to Select then hides the textbox, giving us the
12696         correct behavior.  Fixes #80362.
12697
12698         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
12699         (ListChangedHandler): reorder the position/current changed events,
12700         and call UpdateIsBinding in the ItemAdded case.
12701
12702         * GridColumnStylesCollection.cs: add some columns events, one of
12703         which raises the CollectionChanged event.
12704
12705 2007-04-04  Jackson Harper  <jackson@ximian.com>
12706
12707         * TextControl.cs: When we delete multiple selection lines
12708         invalidate the selection area, don't need to do that for single
12709         lines because the final update view will handle it.
12710
12711 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
12712
12713         * Control.cs: When we CreateControl, we need to also create all of the
12714         control's children.  The child's OnLoad must also fire before the parent's
12715         OnLoad.  Fixes the toolbox size in PDN.
12716
12717 2007-04-04  Jackson Harper  <jackson@ximian.com>
12718
12719         * TextBoxBase.cs: When the user presses enter, insert a line
12720         ending into the text. (Maybe this would be a good spot for
12721         Environment.NewLine).
12722         * TextControl.cs: Remove undo manager hack, line endings get
12723         inserted properly now.
12724         
12725 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
12726
12727         * MenuAPI.cs: 
12728         - Remove unneeded parameters in UpdateCursor.
12729         - Fix UpdateCursor to check if menu is active.
12730         - Call UpdateCursor when menu deactivate my click.
12731         [Fixes remaining issues from #80410]
12732
12733 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
12734
12735         * Control.cs: GetRealChildAtPoint method added, it make an
12736         recursive child control search for the point. 
12737
12738         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
12739         menu.
12740
12741         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
12742
12743 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
12744
12745         * Form.cs: Fix mouse position when send back mouse event after closes
12746         menu.
12747
12748 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
12749
12750         * Form.cs: Simplify the BUTTONDOWN for active tracker.
12751
12752 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
12753
12754         * Control.cs: Fix an issue where if a user resized a control inside
12755         a sizing method like OnResize, we would overwrite their explicit
12756         value.  Also, only call DefaultSize once in the constructor instead
12757         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
12758         nothing actually changed.
12759
12760 2007-04-03  Jackson Harper  <jackson@ximian.com>
12761
12762         * TextControl.cs: Don't attempt to copy text for lines with no
12763         text in them (technically this shouldn't happen, but we aren't
12764         always inserting line endings when we should be).
12765
12766 2007-04-03  Jackson Harper  <jackson@ximian.com>
12767
12768         * TextBoxBase.cs: Calculate the scrollbars before calculating the
12769         document, because this sets some of the document size properties
12770         that are needed.
12771
12772 2007-04-03  Jackson Harper  <jackson@ximian.com>
12773
12774         * TextBoxBase.cs: We need to calculate maximums even if this is
12775         not a multiline control, because the maxs are used for scrolling.
12776         - Display the caret after doing a page up/down, we need to
12777         manually display it because a proper CaretMoved event isn't
12778         triggered (this is because of the way the math is done to
12779         determine how far to scroll).
12780
12781 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
12782
12783         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
12784         (ToolBar was relying on SetBoundsCore to default the values sent 
12785         base off of BoundsSpecified.)
12786
12787 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12788
12789         * DateTimePicker.cs: Change Text so that when a null value or empty
12790           string is assigned to the test we always raise ValueChanged and
12791           TextChanged (earlier implementation would only raise ValueChanged
12792           if the current date value was different from DateTime.Now).
12793
12794 2007-04-03  Andreia Gaita <avidigal@novell.com> 
12795
12796         * ButtonBase: Call update after invalidation, fixes #80194
12797
12798 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12799
12800         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
12801           #79335.
12802
12803 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12804
12805         * XplatUIX11.cs: SetWMStyles: If the control is a form with
12806           FormBorderStyle = None, don't give the window any decorations.
12807           Fixes #81276.
12808
12809 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12810
12811         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
12812         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
12813           to check for is a mix of several styles (such as WS_CAPTION for
12814           instance).
12815         * Control.cs: Don't paint an area bigger than the client area when
12816           painting the background colour. Add an internal GetCreateParams.
12817           Update calls to XplatUI.CalculateWindowRect due to API change.
12818         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
12819           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
12820           the size if it hasn't been handled by any windows. When creating
12821           and moving windows, X wants the location of the entire window, but
12822           the size of the client window, so add
12823           TranslateClientRectangleToXClientRectangle,
12824           TranslateWindowSizeToXWindowSIze and
12825           TranslatedXWindowSizeToWindowSize to cope with this, and call them
12826           before every window creation and move. Update CalculateWIndowRect
12827           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
12828           In AddConfigureNotify don't do anything if the hwnd is a zombie
12829           (fixes the BadWindow we were getting while running the tests),
12830           always calculate the offsets when it's a parentless window, not
12831           only when reparented, and translate the window size, since we're
12832           getting the client size of the whole window, excluding entire
12833           window.
12834         * Theme.cs: Added BorderSizableSize.
12835         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
12836           anymore. Update calls to XplatUI.CalculateWindowRect due to API
12837           chang
12838         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
12839           change. Fake the window styles here instead of in XplatUIWin32 so
12840           that all back-ends get the same window styles (and it's Form that's
12841           deciding when to use wm, not the Win32 backend anyways)
12842         * Hwnd.cs: Completely reworked GetWindowRectangle and
12843           GetClientRectangle - they are now passed a CreateParams and they
12844           only use Style and ExStyle to determine the rectangles (they should
12845           now work just like Win32AdjustWindowRectEx - though quite a few
12846           special cases are probably missing). They should also be 100%
12847           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
12848           == rect), and all numbers (borders, menu sizes) are taken from the
12849           current theme. Added a GetBorders helper function that will return
12850           the borders for any given CreateParams (including captions and
12851           menus), and GetBorderSize that returns the given border size only.
12852         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
12853           Hwnd.GetClientRectangle.
12854
12855 2007-04-02  Chris Toshok  <toshok@ximian.com>
12856
12857         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
12858         logic between the values we present to the user and the values
12859         which are stored in the column's property.  Also, don't call
12860         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
12861
12862 2007-04-02  Jackson Harper  <jackson@ximian.com>
12863
12864         * TextBoxBase.cs: Scroll faster!
12865
12866 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
12867
12868         * StatusStrip.cs: Layout fixes for PDN.
12869         * ToolStrip.cs: Set item's available to true, and placement to main when
12870         added.
12871         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
12872         changing in setter before doing any work, add InternalVisible.
12873         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
12874         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
12875         infinite loop.
12876
12877 2007-04-02  Jackson Harper  <jackson@ximian.com>
12878
12879         * TextBox.cs: LBUTTON does not make the textbox select all of it's
12880         text on focus.
12881
12882 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12883
12884         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
12885           Makes ToolStripComboBoxes show up again.
12886
12887 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12888
12889         * ListView.cs: Add a hover_pending field in ListView
12890         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
12891         cycle (we are resetting the MouseHover logic in XplatUI
12892         to handle HoverSelection). Fixes #80429.
12893
12894 2007-04-02  Jackson Harper  <jackson@ximian.com>
12895
12896         * TextControl.cs: Make sure the attributes get set on the last
12897         tag.
12898         - Still have to do the end tag if we have stepped all the ways to
12899         the end.
12900
12901 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
12902
12903         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
12904         on an internal libgdiplus call when the information is already 
12905         available via the public API.
12906
12907 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12908
12909         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
12910           control is removed from a control collecftion.
12911         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
12912           Fixes FormPropertyTest (failed on rare occasions).
12913         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
12914           of Win32SetParent (when changing from no parent to a parent it
12915           might add the new parent's location in screen coordinates to this
12916           window's location).
12917         * Form.cs: Rework ChangingParent once again, now the handle is
12918           recreated whenever a FormWindowManager is added or removed (that is
12919           whenever a normal form is parented or abandoned). Also change
12920           CreateParams so that all non-toplevel windows always get the
12921           specified sice (StartupPosition is never considered for
12922           non-TopLevel forms).
12923         * ContainerControl.cs: Add ChildControlRemoved, the container control
12924           needs to be notified when a control is removed from it's
12925           collection, in the case the removed control is the active control.
12926
12927 2007-04-02  Jackson Harper  <jackson@ximian.com>
12928
12929         * RichTextBox.cs: Use the new methods for setting the font and
12930         color, these methods set the specified attribute without
12931         overriding the other attributes.
12932
12933 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
12934
12935         * ToolStripPanel.cs: Fixes for better layouts in PDN.
12936
12937 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
12938
12939         * TextBox.cs: Added internal ChangeBackColor method to special-case
12940         Color.Empty. Added check for invalid ScrollBars value.
12941         * TextBoxBase.cs: Added internal ChangeBackColor method.
12942         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
12943         internal ChangeBackColor method to special-case Color.Empty. Added
12944         check for invalid ScrollBars value.
12945
12946 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
12947
12948         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
12949
12950 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
12951
12952         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
12953         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
12954         [Based on submitted patch from Olivier Duff.]
12955
12956 2007-03-30  Jackson Harper  <jackson@ximian.com>
12957
12958         * TextBox.cs: Only select all on initial focus if the user has not
12959         specified a selection area.
12960
12961 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
12962
12963         * UserControl.cs: Override CreateParams.
12964
12965 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12966
12967         [ Fixes #80995 ]
12968
12969         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
12970         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
12971           check for is a mix of several styles (such as WS_CAPTION for instance).
12972         * Control.cs: Don't paint an area bigger than the client area when painting
12973           the background colour. Add an internal GetCreateParams. Update calls to
12974           XplatUI.CalculateWindowRect due to API change.
12975         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
12976           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
12977           hasn't been handled by any windows. When creating and moving windows, X
12978           wants the location of the entire window, but the size of the client
12979           window, so add TranslateClientRectangleToXClientRectangle,
12980           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
12981           to cope with this, and call them before every window creation and move.
12982           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
12983           removing DeriveStyles). In AddConfigureNotify don't do anything if the
12984           hwnd is a zombie (fixes the BadWindow we were getting while running the
12985           tests), always calculate the offsets when it's a parentless window, not
12986           only when reparented, and translate the window size, since we're getting
12987           the client size of the whole window, excluding entire window.
12988         * Theme.cs: Added BorderSizableSize.
12989         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
12990           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
12991         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
12992           Fake the window styles here instead of in XplatUIWin32 so that all
12993           back-ends get the same window styles (and it's Form that's deciding when
12994           to use wm, not the Win32 backend anyways)
12995         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
12996           they are now passed a CreateParams and they only use Style and ExStyle
12997           to determine the rectangles (they should now work just like
12998           Win32AdjustWindowRectEx - though quite a few special cases are probably
12999           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
13000           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
13001           sizes) are taken from the current theme. Added a GetBorders helper
13002           function that will return the borders for any given CreateParams
13003           (including captions and menus), and GetBorderSize that returns the given
13004           border size only.
13005         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13006           Hwnd.GetClientRectangle.
13007
13008 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13009
13010         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
13011           layout of the mdi children is handled by CreateParams. Fixes
13012           #79964,
13013
13014 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
13015
13016         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
13017         processed.
13018
13019         * Form.cs: When active tracker mouse down is not processed, send event 
13020         back to control inside mouse position. [Fixes #81227]
13021
13022 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
13023
13024         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
13025         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
13026         stealing focus from the active form on Windows.  (Control will be made
13027         visible in ShowWindow.)
13028
13029 2007-03-29  Mike Kestner  <mkestner@novell.com>
13030
13031         * ImageList.cs : add internal Changed event.
13032         * ListView.cs : hook up to StateImageList.Changed to perform
13033         invalidations when the the state icon list changes. [Fixes #81191]
13034
13035 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
13036
13037         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
13038         to prevent tooltips from stealing focus from the active form on Windows.
13039
13040 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
13041
13042         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
13043
13044         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
13045
13046 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
13047
13048         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
13049         balloons.
13050
13051 2007-03-29  Jackson Harper  <jackson@ximian.com>
13052
13053         * TextControl.cs: When deleting text from non multiline textboxes,
13054         we need to update the entire document, because line offsets will
13055         be shifting.
13056
13057 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
13058
13059         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
13060         added to theme, now we can create themes that uses diferent notify engines
13061         like notification-daemon from galago project or growl for Mac OS.
13062
13063 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
13064
13065         * NotifyIcon.cs: Prevent Balloon to show in task bar.
13066
13067 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
13068
13069         * XplatUIX11.cs: Prevent system to open more than one balloon.
13070
13071         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
13072         some compiler warning messages.
13073
13074 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
13075
13076         [Fixes #79149]
13077
13078         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
13079
13080         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
13081         implemented, this methods is used by NotifyIcon.BalloonWindow class.
13082
13083         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
13084         systems.
13085
13086 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13087
13088         * ListViewItem.cs: Forgot to make Invalidate internal.
13089
13090 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13091
13092         * ListView.cs: Add a InvalidateSelection method to
13093         invalidate methods which are currently selected, and call
13094         it when setting FullRowSelect and HideSelection, instead of
13095         calling Redraw.
13096
13097 2007-03-28  Chris Toshok  <toshok@ximian.com>
13098
13099         * XplatUIX11.cs (UnmapWindow): reindent this block.
13100
13101         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
13102         the selection_start if we're moving the selection (that is, not
13103         extending it). Fixes bug #80461.
13104
13105 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
13106
13107         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
13108         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
13109         create private ControlCollection.
13110
13111 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
13112
13113         * Control.cs: We need to call OnVisibleChanged for our implicit
13114         children as well as our normal children.  Fixes scrollbars in
13115         comboboxes not showing up.
13116
13117 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
13118
13119         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
13120         the check for IsHandleCreated first.  The check in CreateHandle is not
13121         good enough because CreateHandle can be overriden, and the override 
13122         should not be called if the handle is already created.
13123
13124 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
13125
13126         * ToolStrip.cs: Remove MonoTODO for tooltips.
13127         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
13128         * ToolStripContainer.cs: Add custom ControlCollection class.
13129         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
13130         * ToolStripDropDown.cs: Add some missing properties/methods.
13131         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
13132         * ToolStripItem.cs: Remove MonoTODO for tooltips.
13133         * ToolStripManager.cs: Add IsShortcutDefined.
13134         * ToolStripOverflow.cs: Override LayoutEngine.
13135         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
13136         * ToolStripSeparator.cs: Add ImageKey.
13137
13138 2007-03-28  Jackson Harper  <jackson@ximian.com>
13139
13140         * TextControl.cs: If a char delete removes a line ending, we need
13141         to update the ending style.
13142         - Make sure the line ending calcs get called.
13143
13144 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13145
13146         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
13147           it was making the new code not work. Fixed a typo in the new code
13148           as well. Fixes #79826.
13149
13150 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
13151
13152         * XplatUIWin32.cs:
13153         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
13154         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
13155         - SystrayBalloon method implemented.
13156         [Add support for notifyicon balloon on win32, #79149]
13157
13158 2007-03-27  Mike Kestner  <mkestner@novell.com>
13159
13160         * ThemeWin32Classic.cs : update StateImageList selection to mirror
13161         the ms behavior when only one image is added to the list.
13162         [Fixes #81191]
13163
13164 2007-03-27  Jackson Harper  <jackson@ximian.com>
13165
13166         * TextControl.cs: Improvements to non multiline line ending
13167         drawing/measuing.
13168
13169 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
13170
13171         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
13172
13173 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
13174
13175         * NotifyIcon.cs: 
13176         - Balloon message handling added.
13177         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
13178
13179         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
13180         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
13181         to SystrayBalloon to me like other Systray method, also a
13182         handle parameter added.
13183
13184 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13185
13186         * ListView.cs: Show scrollbars even when items.Count == 0
13187         but the columns Width is bigger than the ListView.Width.
13188         Also, when columns.Count == 0 set layout_wd and layout_ht
13189         to the ClientRectangle values, so we don't show any scrollbar
13190         in that case.
13191
13192 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
13193
13194         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
13195
13196 2007-03-27  Jackson Harper  <jackson@ximian.com>
13197
13198         * RichTextBox.cs: The RTF library decodes the text properly for us
13199         now.
13200
13201 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13202
13203         * ListView.cs: Display HeaderControl even when columns.Count == 0.
13204         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
13205         ListView header (HeaderControl), instead of Control.BackColor.
13206
13207 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
13208
13209         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
13210         Fixes tab control issues where controls would not show up because they
13211         never received their OnVisibleChanged call.
13212
13213 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
13214
13215         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
13216         BalloonTipShown).
13217
13218 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
13219
13220         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
13221         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
13222         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
13223         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
13224         the handle.  Fix WindowState by using the internal variable until we are 
13225         sure that we've been shown.
13226         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
13227         max or min.
13228         [Fixes bug #81198]
13229
13230 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13231
13232         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
13233           (at least borders). Fixes #79386 on Linux (with a small difference
13234           in behaviour: when trying to resize a caption-less window metacity
13235           shows the sysmenu. Resizing is still possible though).
13236         * XplatUIWin32.cs: When setting window styles send request an extra
13237           WM_NCCALCSIZE when it's a form without title (due to no text and no
13238           caption), since Win32 seems to calculate it wrong the first time we
13239           get the message, though the second time things work as they should.
13240         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
13241           newly reparented window might show up unparented. Update
13242           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
13243           there's no title text. Fixes #79386.
13244
13245 2007-03-27  Mike Kestner  <mkestner@novell.com>
13246
13247         * ListBox.cs : don't perform invalidations if the handle hasn't been
13248         created.  [Fixes #80753]
13249
13250 2007-03-27  Mike Kestner  <mkestner@novell.com>
13251
13252         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
13253         [Fixes #80428]
13254
13255 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
13256
13257         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
13258         needed to implement Balloon.
13259
13260 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13261
13262         * ListViewItem.cs: In the constructors that take
13263         an array of strings, don't use ListViewSubItemCollection.AddRange
13264         method to add items, since we need to have a different behaviour (in
13265         the constructors we add an item for each null string, opposed to
13266         the behaviour of AddRange, which adds nothing).
13267
13268 2007-03-26  Andreia Gaita  <avidigal@novell.com>
13269
13270         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
13271
13272 2007-03-26  Jackson Harper  <jackson@ximian.com>
13273
13274         * TextControl.cs: Draw and measure line endings when in non
13275         multiline mode.
13276         - When searching the text, count the end of the last line as a
13277         word boundary.
13278
13279 2007-03-26  Jackson Harper  <jackson@ximian.com>
13280
13281         * RichTextBox.cs: The selection_start and selection_end don't
13282         really track the correct tags for the selection. So we'll manually
13283         compute the correct tag here.
13284
13285 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13286
13287         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
13288           and Continuous styles. Fixes #79469.
13289
13290 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
13291
13292         * ToolStrip.cs: Implement Tooltips.
13293         * ToolStripItem.cs: Create internal method for determining tooltip.
13294
13295 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
13296
13297         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
13298
13299 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
13300
13301         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
13302         it prevents a problem thak keeps icon visible after application 
13303         closes on win32.
13304
13305 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
13306
13307         * NotifyIcon.cs: Balloon properties and methods created.
13308
13309         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
13310         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
13311
13312 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
13313
13314         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
13315
13316 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
13317
13318         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
13319         parameter indicates which aspects were explicit/user-set.
13320         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
13321
13322 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
13323
13324         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
13325         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
13326         SmallChange, and Value (2.0).
13327         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
13328
13329 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13330
13331         * ListView.cs: Always set item_control.Width in LayoutDetails
13332         if View is Details. Setting it later in CalculateScrollBars
13333         in a not-so-corner scenario (the sum of columns width is
13334         not bigger than the ListView width when handle is created, and then
13335         that sum gets bigger by increasing the width of the columns)
13336         causes a very weird recursion path (which shouldn't be happening,
13337         since header_control sets it in CalculateScrollBars too). This bug
13338         appeared after Chris' fixes for handle created issues, so probably
13339         it's related to some handle-creation time.
13340
13341 2007-03-23  Chris Toshok  <toshok@ximian.com>
13342
13343         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
13344         case where there's an add row, just so we don't end up in a case
13345         where it's not displayed (this happens when the row is partially
13346         obscured).  Fixes bug #79574.
13347
13348 2007-03-23  Jackson Harper  <jackson@ximian.com>
13349
13350         * TextControl.cs:
13351         * TextBoxBase.cs:
13352         * RichTextBox.cs: Preserve line endings in the lines text buffer,
13353         also added an enum that represents the line ending type. 
13354
13355 2007-03-23  Andreia Gaita  <avidigal@novell.com>
13356
13357         * NumericUpDown.cs: Fix logic so Text and Value properties are not
13358         messed with in every method call, but only from DownButton, 
13359         UpButton, UpdateEditText() and ValidateText. Fixes #80346
13360
13361 2007-03-23  Chris Toshok  <toshok@ximian.com>
13362
13363         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
13364         format objects if the format spec is "".  Fixes bug #80889.
13365
13366 2007-03-22  Miguel de Icaza  <miguel@novell.com>
13367
13368         * ToolStripPanel.cs (Join): added stubs to build PDN3
13369
13370         * Control.cs (AutoScrollOffset): Add.
13371
13372         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
13373         property, its only implemented for Win32, on X11 it defaults to
13374         some hardcoded value.
13375
13376         * ToolStripItem.cs (AllowDrop): Add property
13377
13378 2007-03-22  Mike Kestner  <mkestner@novell.com>
13379
13380         * ListView.cs : in FullRowSelect Details mode, only enable box
13381         selection if the user clicks over the "item" column outside of the
13382         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
13383
13384 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13385
13386         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
13387           handle is not created yet.
13388         * Form.cs: Select: Don't call CreateHandle if the handle is already
13389           created, avoids a stack overflow on Windows when we are recreating
13390           controls.
13391         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
13392           they are made visible, and override AfterTopMostControl to keep
13393           them on top when other controls are brought to front.
13394           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
13395           or force_*scroll_visible is true (old implementation always shows
13396           scrollbars when needed, no matter what auto_scroll was set to).
13397         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
13398           IsHandleCreated check.
13399
13400 2007-03-22  Andreia Gaita  <avidigal@novell.com>
13401
13402         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
13403         row or col separator.
13404         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
13405
13406 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
13407
13408         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
13409
13410 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
13411
13412         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
13413         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
13414         every time. Fixes #80410.
13415
13416 2007-03-22  Chris Toshok  <toshok@ximian.com>
13417
13418         * BindingSource.cs (AddNew): partially implement.
13419
13420         remove a couple of NotImplementedException's
13421         to get bug #81148 closed.
13422
13423 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
13424
13425         [Fixes #80380]
13426         
13427         * Control.cs:
13428         - UpdateCursor method added to update the screen cursor.
13429         - GetAvailableCursor method added to return cursor for enabled tree,
13430         it searches for cursor on control and it's parent's for enabled control.
13431         - Call UpdateCursor method on setter of Cursor property.
13432         - On setter of Enabled call UpdateCursor when it is false, we need to
13433         change cursor to normal (or to this parent cursor) because cursor 
13434         setting theres no effect to disabled controls.
13435         - Some minor source changes to follow the coding style guidelines.
13436
13437         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
13438         controls.
13439
13440 2007-03-22  Chris Toshok  <toshok@ximian.com>
13441
13442         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
13443         generates.
13444
13445 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13446
13447         * XplatUIX11.cs: Implement default locations for forms.
13448         * Form.cs: Completely rework startup location for forms. Fixes #79964.
13449         * Hwnd.cs: Add previous_child_startup_location (to track the current
13450           startup location for any child forms of the current form) and
13451           previous_main_startup_location (to track the startup location for
13452           the current toplevel form).
13453
13454 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
13455
13456         * Control.cs: Don't trigger a layout if an implicit control is added
13457         that isn't visible.  Also, don't notify the owner when an implicit control
13458         is added.  (Owners shouldn't even know about their implicit controls.)
13459
13460 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
13461
13462         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
13463         to save some re-layouts.
13464
13465 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
13466
13467         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
13468         [Fixes #81203]
13469
13470 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
13471
13472         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
13473         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
13474
13475 2007-03-21  Mike Kestner  <mkestner@novell.com>
13476
13477         * ListView.cs : disable selection update for non-left button clicks
13478         with mods and over selected items.  [Fixes #80524]
13479
13480 2007-03-20  Jackson Harper  <jackson@ximian.com>
13481
13482         * TextControl.cs:
13483         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
13484         \r\r\n, \n.
13485
13486 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13487
13488         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
13489           very probably a more complicated calculation there. Update the
13490           textbox' ForeColor and BackColor when the ComboBox' colors are
13491           changed. Change the border change in LayoutComboBox to only affect
13492           the textbox, not all the calculations there. Seems to fix most of
13493           #79436.
13494
13495 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13496
13497         * ComboBox.cs: Handle Home and End keys as well as all combinations of
13498           modifiers + navigation keys as input keys, enables advanced text
13499           selection in the combobox (like Shift+Left Arrow for instance).
13500           ComboTextBox now overrides Focused and returns whatever
13501           ComboBox.Focused returns, since it really should be focused
13502           whenever the ComboBox is. Fixes #80795. Also make the border around
13503           the text box one pixel bigger, as mentioned in #79436.
13504
13505 2007-03-20  Jackson Harper  <jackson@ximian.com>
13506
13507         * TreeView.cs: Don't offset the images, this was causing some
13508         artifacts when expanding/collapsing with images that were the
13509         exact height of the treenode.
13510
13511 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13512
13513         * TrackBar.cs: Query the theme for the correct value when the mouse
13514           moves and the thumb is pressed. 
13515         * Theme.cs: Added TrackBarValueFromMousePosition
13516         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
13517           implementation was updating the trackbar value when drawing, now
13518           the drawing methods only draw. Fixes #80900. Refactored the
13519           calculations out to TrackBarValueFromMousePosition and
13520           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
13521           according to the mouse position whenever it wants to. Changed the
13522           light coloured pen when drawing the thumb from ControlLight to
13523           ControlLightLight, because the ControlLight is the same colour as
13524           the background so the 3D effect is lost. 
13525
13526 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
13527
13528         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
13529         defined. Fixes #80784.
13530
13531 2007-03-20  Marek Habersack  <mhabersack@novell.com>
13532
13533         * ContextMenuStrip.cs: align with the change introduced in
13534         revision 74664.
13535
13536 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
13537
13538         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
13539         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
13540         in SetTopmost.
13541
13542 2007-03-19  Chris Toshok  <toshok@ximian.com>
13543
13544         * Control.cs (WmPaint): don't make use of the Handle property
13545         after an event is emitted, as the user could have closed the
13546         form/destroyed the control.  Store the Handle in a local variable
13547         and make use of that.  Fixes bug #80768.
13548
13549 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
13550
13551         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
13552         behavior in X11 environments.
13553
13554 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
13555
13556         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
13557         because on setter of topmost we dont call SetTopmost when handle is not
13558         created.
13559
13560 2007-03-20  Jackson Harper  <jackson@ximian.com>
13561
13562         * TextControl.cs: Need to use SelectionLength () not
13563         selection_length, since that var is reset to -1.
13564         - Draw the caret when we don't have focus.
13565         * TextBox.cs: The selectall actually doesn't occur until the first
13566         focus.
13567         * TextBoxBase.cs: Need to update the caret position after a
13568         selectall.
13569         
13570 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13571
13572         * ListView.cs: Enable scrolling when using Tile view.
13573
13574 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
13575
13576         [Fixes #80902]
13577
13578         * XplatUIDriver.cs: Abstract SetOwner method created.
13579
13580         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
13581         must be implemented and was masked as todo.
13582
13583         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
13584         GWL_HWNDPARENT.
13585
13586         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
13587         cheking for null owner to remove transient. The SetTopmost will be change
13588         on a decond step.
13589
13590         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
13591         SetTopmost. Now owned forms will work properly in win32 and X11.
13592
13593 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13594
13595         * MdiWindowManager.cs: Update function name.
13596         * Form.cs: After closing a form MdiParent is always null.
13597         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
13598           better what it should do: necessary book-keeping when the form is
13599           closed, it should not close the form itself.
13600
13601 2007-03-19  Andreia Gaita  <avidigal@novell.com>
13602
13603         * ListViewItem.cs: Fix back and fore color. The subitems only
13604         use their own colors if they are set, otherwise use the listview's
13605         colors. Don't set default colors on constructor for subitem.
13606         Fixes #79315.
13607
13608 2007-03-19  Mike Kestner  <mkestner@novell.com>
13609
13610         * ListView.cs : make box selection for Details views with 
13611         FullRowSelect conform to MS behavior when clicking in the "item" 
13612         column and clicking outside the defined columns.
13613         [Fixes case 5-6 of #80374]
13614
13615 2007-03-19  Chris Toshok  <toshok@ximian.com>
13616
13617         * ScrollableControl.cs: create the controls from within the ctor,
13618         but don't actually add them until our handle is created.  this
13619         fixes a NRE possibility jpobst found (if you override OnLayout in
13620         a subclass, it's called before your ctor).  Also, add a
13621         IsHandleCreated guard to UpdateSizeGripVisibility as well.
13622
13623 2007-03-19  Jackson Harper  <jackson@ximian.com>
13624
13625         * TextBox.cs: Reduce the amount of invalidation we do.
13626         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
13627         some of them are true by default on MS.
13628         - Add some functions to reduce the amount of invalidates we do.
13629         * TextControl.cs: Less invalidation.
13630
13631 2007-03-19  Chris Toshok  <toshok@ximian.com>
13632
13633         [ Fixes #81773, and *seems* to fix #81553 as well ]
13634
13635         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
13636         AccumulateDestroyedHandles.  We need to do it *after* we send
13637         WM_DESTROY, as the user's code can access Control.Handle in
13638         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
13639         move the WM_DESTROY/zombie handling to before the call to
13640         XDestroyWindow.  For some reason without this ordering
13641         FormTest.RecreateHandle hangs.  This ordering is semantically
13642         equivalent, however, as XDestroyWindow is async anyway.
13643
13644 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
13645
13646         * RichTextBox.cs: Reset backcolor_set after setting default.
13647
13648 2007-03-19  Chris Toshok  <toshok@ximian.com>
13649
13650         * ScrollableControl.cs: the scroll position should not effect the
13651         canvas size.  commit patch from georgegiolfan@yahoo.com, which
13652         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
13653         
13654 2007-03-19  Chris Toshok  <toshok@ximian.com>
13655
13656         * ScrollableControl.cs: clean this up a bit.  create the
13657         scrollbars in the ctor and just show/hide them as needed.  Also,
13658         make hscroll_visible/vscroll_visible internal to Recalculate, and
13659         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
13660         everywhere else.  This seems to fix the scrollbars appearing
13661         beneath the content for me (i have *no* idea why that is,
13662         however.)
13663
13664 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
13665
13666         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
13667         some redundacy for stuff in Anchor and Dock that base will take care of.
13668         [Fixes #80762]
13669
13670 2007-03-19  Mike Kestner  <mkestner@novell.com>
13671
13672         * ListView.cs : make box selection for Details views without 
13673         FullRowSelect dependent on the text bounds, not item bounds.
13674         * ListViewItem.cs : add an internal property to obtain the TextBounds
13675         in Details view.  [Fixes case 1-4 of #80374]
13676
13677 2007-03-19  Andreia Gaita  <avidigal@novell.com>
13678
13679         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
13680         we're < 2.0. #78448 && #80316
13681
13682 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
13683
13684         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
13685         have the same style available as the previously selected one.  Also,
13686         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
13687
13688 2007-03-19  Jackson Harper  <jackson@ximian.com>
13689
13690         * TextControl.cs: Add an alignment property that all new lines
13691         will be given.
13692         - Make sure to use the align shift when calculating the line's X
13693         position.
13694         * TextBox.cs: Set the alignment on the document as well as on all
13695         the document lines.
13696
13697 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13698
13699         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
13700           throw if setting the parent of an mdichild that already has an
13701           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
13702           AssemblyProductAttribute in the assembly, use the type's namespace (as
13703           MS seems to do). CreateControl: don't create the handle if the control
13704           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
13705           create handle if the control is not a form. Change FocusInternal to
13706           virtual so that it can be overriden by Form.
13707         * TextBox.cs: Update call to FocusInternal.
13708         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
13709           form is not a toplevel form when it's a mdi child, so update is_toplevel
13710           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
13711           hasn't been created. Show (IWin32Window): Don't allow this overload for
13712           toplevel windows. CenterToParent/CenterToScreen/Select: create the
13713           handle as MS does. SetVisibleCore: if called on a MdiChild and the
13714           parent isn't visible yet, save the visibility and restore it when the
13715           parent is made visible.
13716         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
13717           methods, since the visibility of the scrollbars can be changed from
13718           several places, not only from AutoScroll.
13719           [Fixes #81179]
13720
13721 2007-03-19  Jackson Harper  <jackson@ximian.com>
13722
13723         * RichTextBox.cs: Enable shortcuts by default.
13724         * TextBoxBase.cs: Add conditional shortcuts.  
13725
13726 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
13727
13728         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
13729
13730 2007-03-19  Chris Toshok  <toshok@ximian.com>
13731
13732         [ Fixes bug #80604]
13733         
13734         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
13735         swallow the message we're waiting on, instead of delivering it, as
13736         this is only used for the WM_SHOWWINDOW raised from
13737         MapWindow/UnmapWindow, and the message needs to be generated
13738         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
13739         before doing the Map/Unmap.  Also make sure that the Hwnd is still
13740         alive after the message has been handled.
13741
13742         *before* the window is shown.
13743
13744         * Control.cs (CreateControl): guard a few more things inside the
13745         if (!is_created) block, as we might end up being called again -
13746         yay .net.
13747         (WmShowWindow): call CreateControl if we're showing the control.
13748
13749 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13750
13751         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
13752           controls without a handle if they have any parent with a handle. In
13753           Dispose add a check whether the handle is created or not before
13754           calling BeginInvoke, this removes the need of the extra disposing
13755           parameter (which was bogus anyway since it didn't prevent the
13756           invoke from happening, it only skipped the check for an existing
13757           handle, meaning that the invoke would call on an inexistent
13758           handle).
13759
13760 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
13761
13762         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
13763         appears in taskbar.
13764
13765 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
13766
13767         * MessageBox.cs:
13768         - Fixed a problem that dont show help button for messages with 3 buttons.
13769         - Refactory button size and position calculations, now dont use fixed 
13770         values, also fixed button sizes (#80043) and form's border space.
13771         - AddButton method created, now all other AddButton methods call this one.
13772         - Some other source code cosmetic changes.
13773
13774 2007-03-18  Jackson Harper  <jackson@ximian.com>
13775
13776         * RichTextBox.cs: Don't do this all fonts must match check if
13777         there is only one char selected.
13778
13779 2007-03-18  Jackson Harper  <jackson@ximian.com>
13780
13781         * TreeView.cs: ScrollWindow works properly now, so we don't need
13782         to screw around with the scroll area.  This fixes some artifacts
13783         when expanding and collapsing.
13784
13785 2007-03-18  Jackson Harper  <jackson@ximian.com>
13786
13787         * TextBoxBase.cs: Allow updating the selection position when the
13788         cursor is outside the textarea, but we have a capture.
13789         * TextControl.cs: A special case for when the cursor is outside
13790         the bounds of the TB.
13791         
13792 2007-03-18  Jackson Harper  <jackson@ximian.com>
13793
13794         * TextBoxBase.cs: Remove image pasting code for now.  There is no
13795         way to get an image on the clipboard right now anyways.
13796         * TextControl.cs:
13797         * RichTextBox.cs: Use the new RTF Picture class for pictures.
13798
13799 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
13800
13801         * MessageBox.cs:
13802         - Set window properties in constructor intead of on CreateParams.
13803         - Remove topmost from Window ExStyle.
13804         - Set ShowInTaskbar to false.
13805         - Set form border to FixedDialog.
13806         - Some cosmetic changes and remove unneeded comments.
13807         - It fixes itens 2,3 and 4 of bug #80043.
13808
13809 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
13810
13811         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
13812         none was explicitly set. Fixes part of bug #79949.
13813
13814 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
13815
13816         * ToolStripComboBox.cs: Add AutoComplete*.
13817
13818 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
13819
13820         * ToolStripComboBox.cs: Add FlatStyle.
13821
13822 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
13823
13824         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
13825         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
13826
13827 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13828
13829         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
13830           CheckBox.cs, RadioButton.cs, BindingSource.cs,
13831           DataGridColumnStyle.cs: Remove warnings.
13832
13833 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13834
13835         * Menu.cs: MergeMenu: Check menu argument for null before looping over
13836           it.
13837         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
13838           visibility of mdi child forms. FormSizeChangedHandler: update the
13839           maximized size if size has changed while maximized.
13840         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
13841           creating the handle.
13842         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
13843           avoid creating the handle if not created.
13844         * XplatUI.cs: Update debug output.
13845         * XplatUIStructs.cs: Added ToString's for a couple of structs.
13846
13847 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
13848
13849         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
13850         ProcessCmdKey().
13851         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
13852         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
13853         Implement keyboard shortcuts.
13854
13855 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
13856
13857         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
13858         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
13859         ColorDialog and all derived classes.
13860
13861 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
13862
13863         [ Fixes bug #79828 ]
13864
13865         * ToolBar.cs:
13866         - Rename ToolBarButtonInfor to ToolBarItem.
13867         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
13868         - Maintain an array of ToolBarItem, used instead of ToolBarButton
13869         collection to be able add same button more than one time on a toolbar.
13870         - Refactory all properties and methods to use ToolBarItem. 
13871
13872         * ToolBarButton.cs: 
13873         - Remove all propeties and methods that is now in ToolBarItem.
13874         - Rectangle propery now gets the rectangle from first ToolBarItem to
13875         mimic win32 behavior.
13876         - Size calculation and layout methods also removed.
13877
13878         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
13879         ToolBarItem instead of ToolBarButton to right drawing buttons when
13880         same button/separator was added more than one time to ToolBar.
13881
13882         * ThemeNice.cs: Same as above. 
13883
13884 2007-03-15  Andreia Gaita  <avidigal@novell.com>
13885
13886         * XplatUIX11.cs: Fire extra MouseMove events right after
13887         MouseDown and MouseUp, emulating win32's <censored> behaviour
13888         for apps that rely on it.
13889
13890 2007-03-15  Jackson Harper  <jackson@ximian.com>
13891
13892         * TextControl.cs:
13893         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
13894         it is drawn on the controls client window and there is no NC
13895         area.
13896         - Set the background color to gray on 2.0 when we are readonly.
13897
13898 2007-03-15  Chris Toshok  <toshok@ximian.com>
13899
13900         [ Fixes bug #81144 ]
13901         
13902         * XplatUIX11.cs: implement VirtualScreen independently of
13903         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
13904         property.
13905
13906 2007-03-15  Chris Toshok  <toshok@ximian.com>
13907
13908         * Hwnd.cs: add an internal field for the cached_window_state.
13909
13910         * XplatUIX11.cs: cache the window state, invalidating the cache
13911         (and thus re-querying the X server) only when we see an update to
13912         the _NET_WM_STATE property.
13913
13914 2007-03-15  Chris Toshok  <toshok@ximian.com>
13915
13916         * BindingSource.cs: get a lot of the unit tests working.
13917
13918 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
13919
13920         * Control.cs: Modify UpdateStyles to store distances when bounds >=
13921         0 instead of just bounds > 0.  [Fixes bug #80912]
13922
13923 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
13924
13925         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
13926         and methods.
13927
13928 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
13929         
13930         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
13931         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
13932         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
13933         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
13934
13935 2007-03-15  Chris Toshok  <toshok@ximian.com>
13936
13937         [ Fixes #81101 ]
13938         
13939         * Control.cs: add Ivan's fix for 81101, with a slight modification
13940         - you can set control.Target to null.
13941
13942 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
13943
13944         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
13945         HideDropDown, use Hide instead to prevent an NRE.
13946         [Fixes bug #81147]
13947
13948 2007-03-14  Jackson Harper  <jackson@ximian.com>
13949
13950         * TextBoxBase.cs: Mess with the creation stuff a little. We need
13951         to calculate the document before the handle is created, in some
13952         cases. (Actually just one case).
13953
13954 2007-03-14  Jackson Harper  <jackson@ximian.com>
13955
13956         * TextBoxBase.cs: Need to display the caret after letting the base
13957         wndproc handle the focus methods, because the caret display
13958         methods check the focus state.
13959         - Try to display the caret after updating it's position with SelectWord.
13960         - Don't need to do an immediate update on this recalc, since there
13961         will be an invalidate anyways.
13962
13963 2007-03-14  Jackson Harper  <jackson@ximian.com>
13964
13965         * TreeView.cs: Some workarounds so that we can match event order a
13966         little better.
13967
13968 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
13969
13970         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
13971         #80803. Avoid NullReferenceException when Control does not have
13972         parent. Fixed different blinkstyle issues. Only subscribe to Tick
13973         event a single time. Only draw error icon when control is created and
13974         visible. Fixes failing unit tests.
13975
13976 2007-03-14  Andreia Gaita  <avidigal@novell.com>
13977
13978         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
13979         Selecting events. Fire Leave and Enter events when changing tabs.
13980
13981 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
13982
13983         * TreeView.cs: Add TreeViewNodeSorter.
13984         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
13985
13986 2007-03-14  Chris Toshok  <toshok@ximian.com>
13987
13988         * Form.cs: go ahead and remove the RecreateHandles that jpobst
13989         removed earlier and I had him add back it.  It turns out metacity
13990         *does* in fact handle the MOTIF_WM_HINTS property changing, it
13991         just doesn't redraw the window titlebar until you resize the
13992         window.  This also means we aren't recreating the entire window
13993         hierarchy on X when you change this property.  And it looks better
13994         on windows, too.
13995
13996 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13997
13998         * ListViewItem.cs:
13999         * ListView.cs: Collecting selection information
14000         is now done in SelectedIndexCollection rather than in
14001         SelectedListViewItemCollection. This is done so we can
14002         have the selection information code in one single place
14003         (virtual mode selection information entirely depends on
14004         SelectedIndexCollection).
14005
14006 2007-03-13  Miguel de Icaza  <miguel@novell.com>
14007
14008         * ErrorProvider.cs: Add stubs for ISupportInitialize
14009
14010 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14011
14012         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
14013         in the right order with the right values, from the Checked property, 
14014         just as MS does (instead of triggering them from ListView).
14015
14016         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
14017
14018 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14019
14020         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
14021         the correct handler in OnItemCheck method (ItemCheckEventHandler 
14022         instead of EventHandler). This used to throw an InvalidCastException.
14023
14024 2007-03-13  Jackson Harper  <jackson@ximian.com>
14025
14026         * TextBoxBase.cs: Calculate the document before the handle is
14027         created, so there isn't an extra invalidate called.
14028
14029 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
14030
14031         * Form.cs: Don't set owner in ShowDialog until we are sure
14032         that we aren't going to throw an exception.  [Fixes bug #80773]
14033
14034 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
14035
14036         * TreeView.cs: Make it compile.
14037
14038 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14039
14040         * Control.cs: Another place we don't call SizeFromClientSize.
14041         * Form.cs: Another place we don't call SizeFromClientSize.
14042         [Fixes bug #81125]
14043
14044 2007-03-12  Jackson Harper  <jackson@ximian.com>
14045
14046         * TreeView.cs: Basically emulating some strangness here with
14047         exanding nodes and setting node positions when windows aren't
14048         created.
14049         - Also attempting to walk the node tree less than previously, and
14050         just use visible order calculations for determining offsets.
14051         - oops made scrolling backwards.
14052         * TreeNode.cs: We need to start nodes with a zero visible order,
14053         because the order calcs are based on the first nodes order.
14054
14055 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14056
14057         * Form.cs: Don't exit the program if RecreateHandle is called on
14058         the main form.
14059
14060 2007-03-12  Chris Toshok  <toshok@ximian.com>
14061
14062         * XEventQueue.cs: remove the use of PostQuitState.
14063
14064         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
14065         WM_QUIT message in GetMessage, return false (and if we're in the
14066         nested WaitForHwndMessage, repost the WM_QUIT message).
14067
14068 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14069
14070         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
14071         or the MaximizeBox properties.  [Part of bug #80640]
14072
14073 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
14074
14075         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
14076         no links.
14077
14078 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14079
14080         * ToolStripItem.cs: Fix some tests I broke by checking Visible
14081         instead of visible.
14082
14083 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
14084
14085         * FileDialog.cs: Use text of File name combobox to determine what
14086         files the user selected. Added tokenizer to parse the file names.
14087         Fixes bug #81123.
14088
14089 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
14090
14091         * Control.cs: We can't call SizeFromClientSize in the constructor,
14092         but we still need to do the same work, so make an internal version.
14093         [Fixes bug #80621]
14094
14095 2007-03-12  Jackson Harper  <jackson@ximian.com>
14096
14097         * TreeView.cs:
14098         * TreeNode.cs:
14099         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
14100         IsExpanded.
14101
14102 2007-03-12  Jackson Harper  <jackson@ximian.com>
14103
14104         * TextBoxBase.cs: Now that the handles are being created a little
14105         later, we need to make sure that the document is recalculated when
14106         the handle is created.
14107
14108 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
14109
14110         * Theme.cs: GetLinkFont abstract method added.
14111         
14112         * LinkLabel.cs: 
14113         - Remove CalcTrimRectangle, no longer needed.
14114         - Factor also remove, position issues must be fixed in libgdiplus.
14115         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
14116         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
14117         care about font used to draw links.
14118         - Set TabStop to true when control is "Selectable", control is selectable
14119         when have one or more links. Fixes #80501 (test case is also added).
14120         - Set the LinkArea values after links change, LinkArea values must be
14121         based in first link position and size, a test case was created.
14122         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
14123         the attribute must be true LinkArea.Length > 0. The same was applied to
14124         TabStop.
14125         
14126         * ThemeWin32Classic.cs: 
14127         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
14128         in draw method.
14129         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
14130         color change.
14131         - Draw focus rectangle for every parts focused, including parts that 
14132         is on another line, its because regions returns various rectangles
14133         and not only one. Needed to mimic W32 look.
14134         - Uses Graphics.Clip to delimite region painted, it mean that now 
14135         complete text is passed to DrawString, with this we solve layout
14136         issues without create another text renderer.
14137         - Uses Region.Intersect to fix some flickers problems, now only needed
14138         parts will redrawed.
14139         - This changes fixes #79614 and some other unreported issues, on Linux 
14140         some layout problems still remain, the problem is under 
14141         MeasureCharacterRanges but it is an libgdiplus bug.
14142
14143 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
14144
14145         * TextBox.cs: Set for foreground color.
14146         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
14147         this is already done in Control.
14148
14149 2007-03-10  Jackson Harper  <jackson@ximian.com>
14150
14151         * TextBox.cs: Set the background color, but reset the
14152         backcolor_set flag which is just for the user setting the
14153         background color.
14154
14155 2007-03-09  Chris Toshok  <toshok@ximian.com>
14156
14157         * Control.cs: really remove the call to XplatUI.SetVisible from
14158         CreateHandle(), like I said I did when I merged the branch.
14159
14160         * BindingSource.cs: implement some more of this stuff.
14161
14162 2007-03-09  Jackson Harper  <jackson@ximian.com>
14163
14164         * TextBox.cs: Don't explicitly set our background colors.
14165         * TextControl.cs:
14166         * TextBoxBase.cs: Draw readonly text.
14167         - Need to invalidate when backcolor or readonly are changed.
14168         
14169 2007-03-09  Jackson Harper  <jackson@ximian.com>
14170
14171         * TextBoxBase.cs: Don't set the forecolor until the handle is
14172         created.
14173         - Do not raise OnPaint, and removed some old debug code.
14174
14175 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
14176
14177         * ScrollableControl.cs: Fix mouse wheel scrolling.
14178
14179 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
14180
14181         * Control.cs: Wire up MouseDoubleClick event.
14182
14183 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
14184
14185         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
14186         top or bottom.
14187         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
14188         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
14189         item is added.  This logic was moved to ToolStrip.OnItemAdded.
14190         [Fixes bug #81090]
14191
14192 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14193
14194         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
14195
14196 2007-03-08  Jackson Harper  <jackson@ximian.com>
14197
14198         * TreeView.cs: Show the correct image for selected node (this used
14199         to work, not sure how the code got deleted). Also implemented 2.0 feature
14200         SelectedImageKey.
14201
14202 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14203
14204         * ListView.cs:
14205         * ListViewItem.cs: Cache index in items when retrieving them
14206         in VirtualMode.
14207
14208 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
14209
14210         * ToolStripItem.cs: Don't return the explicit_size if we are using 
14211         AutoSize.  Fixes invalidation issue when user has explicitly set a
14212         size and has AutoSize = true.
14213
14214 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
14215
14216         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
14217
14218 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
14219
14220         * DataGridView.cs: Remove event handler from DataView when a
14221         DataTable is used as DataSource.
14222
14223 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
14224
14225         * Control.cs: Create internal setter for client_size to allow it to be
14226         set without triggering resizing code.
14227         * Form.cs: Calculate client_size in constructor, only change client_size
14228         in FormBorderStyle property if Handle has been created.
14229         [Fixes #80574, #80791]
14230
14231 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
14232
14233         * SystemInformation.cs: Add TerminalServerSession.
14234
14235 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
14236
14237         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
14238         TreeView code.
14239
14240 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
14241
14242         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
14243         Handle before we were supposed to.  Now checks ActivateOnShow property
14244         in Control.
14245         * Control.cs: Add internal ActivateOnShow property.
14246         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
14247         for ActivateOnShow.
14248         * Hwnd.cs Remove no longer needed no_activate field.
14249
14250 2007-03-07  Jackson Harper  <jackson@ximian.com>
14251
14252         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
14253         2.0 properties
14254         * DrawTreeNodeEventHandler.cs: Add
14255         * DrawTreeNodeEventArgs.cs: Correct default value.
14256         
14257 2007-03-07  Chris Toshok  <toshok@ximian.com>
14258
14259         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
14260         to be called before NativeWindow.WndProc.  Put the HwndCreating
14261         magic there to hook up our Hwnd's to handles.
14262
14263 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
14264
14265         * DataGridView.cs: Comment out debug code.
14266
14267 2007-03-07  Chris Toshok  <toshok@ximian.com>
14268
14269         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
14270         to make the rest of the world happy]
14271
14272         * Control.cs (CreateHandle): there's no need to call
14273         XplatUI.SetVisible here, it's effectively done by
14274         XplatUI.CreateWindow on X now, and always was on windows.
14275
14276         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
14277         shortcircuit out of the loop if we have a message loop running on
14278         this thread.
14279
14280         [Changelog from merge]
14281
14282         2007-03-05  Chris Toshok  <toshok@ximian.com>
14283
14284                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
14285                 causes handle creation.
14286
14287         2007-02-28  Chris Toshok  <toshok@ximian.com>
14288
14289                 * ApplicationContext.cs: Add a flag to make sure we only raise the
14290                 ThreadExit event once (ExitThreadCore can be indirectly called
14291                 from a few places.)  I don't like the additional flag, but it
14292                 makes the event ordering/count correct.
14293
14294                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
14295                 without locking the collection.  An enumerator doesn't give us any
14296                 protection from modification anyway.  Lock the thread hash and
14297                 replace the complicated enumerator loop with a foreach.
14298                 (Application.CloseForms): make internal so it can be called from
14299                 ApplicationContext.  This should probably be moved to MWFThread.
14300                 (Application.ExitThread): don't call MWFThread.Current.Exit()
14301                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
14302                 when the runloop exits (in response to WM_QUIT.)
14303                 (Application.RunLoop): add a comment (and check) for
14304                 context.MainForm being null after setting context.MainForm.Visible
14305                 = true.  This is because you're perfectly free to dispose of a
14306                 form in VisibilityChanged.  Chalk this up to another case where we
14307                 need to synchronously generate WM_ACTIVATE from Control.Show.
14308                 Also, add handling for WM_QUIT here so we'll exit the loop.
14309                 
14310                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
14311                 fact that we don't wait if we're only unmapping the whole_window
14312                 makes me a bit nervous, but it doesn't seem to cause any problems
14313                 yet.
14314
14315                 also, add a comment about the stupid, broken and wrong resetting
14316                 of PostQuitState to false in GetMessage().
14317
14318                 In PostQuitMessage, we need to add a WM_QUIT message to the
14319                 thread's queue.  We use the FosterParent to get the right
14320                 handle/hwnd/queue.
14321
14322                 Lastly, in SetVisible, we need to unmap both windows, since the
14323                 waiting only happens when we're unmapping the client window.  So
14324                 now, the *only* time we unmap just the whole_window is in the hack
14325                 for resizing a control to 0,0.
14326                 
14327         2007-02-21  Chris Toshok  <toshok@ximian.com>
14328
14329                 * Application.cs (CloseForms): rewrite this so that we don't
14330                 modify the list while we're traversing it.
14331
14332         2007-02-20  Chris Toshok  <toshok@ximian.com>
14333
14334                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
14335                 of OnHandleCreated.
14336                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
14337                 handle is created.  otherwise we'll create it here.
14338                 (VerticalScrollEvent): same here.
14339
14340                 * Application.cs (CloseForms): call Form.Dispose, don't post
14341                 WM_CLOSE_INTERNAL.
14342
14343                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
14344                 here. Application should Dispose() of the Form's.
14345
14346                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
14347                 WM_DESTROY as well.
14348                 (MapWindow,UnmapWindow): only actually do the waiting for
14349                 SHOWWINDOW if the control we're dealing with is a Form.
14350                 (CreateWindow): if the control isn't a form, SendMessage
14351                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
14352
14353                 * Control.cs (SetVisibleCore): always use is_visible here, not
14354                 value.  If we use value, we can end up re-setting something
14355                 visible if, for instance, you do Control.Hide() in a delegate
14356                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
14357
14358         2007-02-20  Chris Toshok  <toshok@ximian.com>
14359
14360                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
14361                 the message we need.  PeekMessage returning false should not be a
14362                 condition under which we exit the loop.
14363
14364         2007-02-15  Chris Toshok  <toshok@ximian.com>
14365
14366                 * Control.cs (Refresh): only refresh if we've got a handle and are
14367                 visible.
14368                 (CreateAccessibilityInstance): CreateControl() here.
14369                 (UpdateChildrenZOrder): complicate the code loop even more by
14370                 taking into account controls that haven't had their handle
14371                 created, and those that aren't visible.  But on the flip side,
14372                 simplify the code by splitting it into two loops.  one which
14373                 builds up the list of child controls we're interested in, and the
14374                 other that sets the z order of those children.
14375
14376         2007-02-14  Chris Toshok  <toshok@ximian.com>
14377
14378                 * Control.cs: Control.AccessibilityObject causes the control to be
14379                 created, not just the handle.
14380
14381         2007-02-14  Chris Toshok  <toshok@ximian.com>
14382
14383                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
14384                 problem on X where a window might have its handle created (and be
14385                 visible) while the window is unmapped.  calling XConfigureWindow
14386                 on an unmapped window is bad, and generates X errors.
14387
14388         2007-02-13  Chris Toshok  <toshok@ximian.com>
14389
14390                 * Control.cs (CreateHandle): don't loop over our children setting
14391                 their parent here.  do it when in WndProc when we're shown.
14392                 (UpdateChildrenZOrder): make this internal so we can call it from
14393                 ScrollableControl.
14394                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
14395                 creating its handle.  Also, remove the calls to PerformLayout from
14396                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
14397                 OnVisibleChanged only seems to be called directly here for the
14398                 toplevel control.  It's propagated down the window hierarchy by
14399                 calls to child.OnParentVisibleChanged.
14400                 (OnVisibleChanged): don't do layout here - it's done (oddly
14401                 enough, according to a glance at stack traces on ms.net..) in
14402                 ScrollableControl.
14403                 
14404                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
14405                 z order of our children before calling PerformLayout.
14406
14407         2007-02-12  Chris Toshok  <toshok@ximian.com>
14408
14409                 [big change, fixes #80020]
14410                 
14411                 * AccessibleObject.cs: we need to make owner internal again to fix
14412                 some of ControlAccessibleObject.
14413
14414                 * Control.cs: lots of changes here.  add support for WM_CREATE,
14415                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
14416                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
14417                 we create child controls.  leave the MonoTODO's for the
14418                 accessibility calls, but fix the exceptions so the tests pass.
14419
14420                 Add the InvalidOperationExceptions to Invoke methods, and remove a
14421                 couple of InvokeInternal methods we aren't using.
14422                 
14423                 Also, add a couple of CreateHandle calls in places where we know
14424                 the handles are being created but our code doesn't reference
14425                 .Handle.
14426
14427                 Make SetVisibleCore call OnVisibleChange if the handle isn't
14428                 created.  If the handle is created, we rely on XplatUI.SetVisible
14429                 generating the event synchronously.
14430                 
14431                 Lastly, make sure we don't use this.Handle inside CreateHandle,
14432                 because we can call back into client (and that code can dispose of
14433                 the control).
14434
14435                 * XplatUIStructs.cs: misc/cleanup.
14436
14437                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
14438                 although we don't populate the wParam properly.
14439                 (CreateWindow): generate WM_CREATE.
14440                 (MapWindow,UnmapWindow): make these calls synchronous, at great
14441                 performance expense (particularly in the unmap case), to match
14442                 win32 behavior.
14443
14444                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
14445                 to call it.
14446                 (set_MdiParent): don't recreate the handle unless it's been
14447                 created already.
14448                 
14449                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
14450                 it's created.
14451
14452                 * NativeWindow.cs: this is probably the weirdest part of the
14453                 patch.  We need a way to link up the window being created to the
14454                 WM_CREATE message.  Since we can only be creating one window at a
14455                 time on a given thread, we keep track of a per-thread reference so
14456                 we can dispatch it properly.  We also need to keep track of the
14457                 Hwnd currently being created so that the win32 backend doesn't
14458                 have problems.
14459                 
14460                 * XplatUIWin32.cs: a similar change to the one we made in
14461                 NativeWindow.cs.
14462
14463 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
14464
14465         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
14466         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
14467         to draw the menu shortcut string.
14468
14469 2007-03-07  Jackson Harper  <jackson@ximian.com>
14470
14471         * TreeNode.cs: Add the 2.0 collapse method.
14472
14473 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
14474
14475         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
14476
14477 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
14478
14479         * DataGridView.cs: Change DataSource will clear column and row
14480         lists. Call Invalidate() to reflect DataSource change.
14481
14482 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
14483
14484         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
14485         and a new row is added to it.
14486
14487 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
14488
14489         * DataGridView.cs: Add columns when DataSource is en empty list but
14490         is a System.Data.DataView (from a System.Data.DataTable).
14491
14492 2007-03-06  Andreia Gaita  <avidigal@novell.com>
14493
14494         * Label.cs: Implement AutoEllipsis (2.0)
14495
14496 2007-03-06  Jackson Harper  <jackson@ximian.com>
14497
14498         * TreeView.cs: Implement 2.0 TopNode setter property.
14499         - Use a local var instead of the skipped_nodes field for computing
14500         how many nodes to skip.  Otherwise we won't scroll because the
14501         valuechanged handler checks if skipped_nodes is equal to the new
14502         value.
14503         - Implement 2.0 Sort method.
14504         - Add useless 2.0 DoubleBuffer property
14505         - Implement 2.0 LineColors property.  Lets you change the color of
14506         the lines in the tree. Terribly useful for creating non cohesive
14507         desktops.
14508         - Implement 2.0 image key feature.
14509
14510 2007-03-06  Jackson Harper  <jackson@ximian.com>
14511
14512         * TreeView.cs: We can't get the bounds of the nodes before raising
14513         the AfterSelect event, because that event could change the node's
14514         bounds (scrolling, font change, etc).
14515
14516 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14517
14518         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
14519         * Form.cs: Don't recreate handle when creating FormWindowManager, just
14520           update window styles. In CreateParams us VisibleInternal instead of
14521           VIsible to get the actual visible flag set for this form.
14522         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
14523           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
14524           handle the case when the form is already maximized, in which case
14525           it should be restored. Fixes #81043.
14526
14527 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14528
14529         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
14530
14531 2007-03-05  Jackson Harper  <jackson@ximian.com>
14532
14533         * TreeViewHitTestInfo.cs: implement.
14534
14535 2007-03-05  Jackson Harper  <jackson@ximian.com>
14536
14537         * InternalWindowManager.cs: class status fix.
14538
14539 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14540
14541         * InternalWindowManager.cs: All windows that have a parent
14542         are confined to their parent when they're being moved.
14543         Fixes #80822.
14544
14545 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
14546
14547         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
14548         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
14549
14550 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14551
14552         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
14553           buttons invisible before deciding which ones should be visible
14554           (fixes minimize/maximize buttons showing up in toolwindows). Remove
14555           an unused variable.
14556         * InternalWindowManager.cs: Remove warning.
14557
14558 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14559
14560         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
14561         to throw an InvalidOperationException is virtual mode is being used.
14562
14563 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
14564
14565         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
14566         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
14567         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
14568         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
14569         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
14570         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
14571
14572 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14573
14574         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
14575           driver.KeyboardDelay from XplatUI.KeyboardDelay 
14576         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
14577           (patch by Sergey Volk)
14578
14579 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14580
14581         * ToolWindowManager.cs: Added, contains logic for
14582           tool windows.
14583         * CreateParams.cs: Add a few helper methods and an
14584           internal variable to know which control the CreateParams belongs
14585           to.
14586         * Control.cs: Call Form.ChangingParent when the
14587           parent is about to be changed.
14588         * XplatUIX11.cs: DeriveStyles (): Set
14589           caption_height for all windows that have captions and are children.
14590           Update to use ToolWindowManager instead of InternalWindowManager
14591           for ToolWindows.
14592         * XplatUIWin32.cs: Set fake window styles for all
14593           windows that have window managers.
14594         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
14595           now duplicated for mdi windows when they are
14596           maximized, first for the buttons the window itself has, then for
14597           the buttons that appear in the menu bar. Makes things a little
14598           easier). Updated UpdateWindowDecorations, SetWindowState and the
14599           mouse eventhandlers accordingly.
14600         * Form.cs: Add ChangingParent (), contains the
14601           logic of what should happen when the parent changes. In MdiParent
14602           don't set things that ChangingParent () is doing. When handling
14603           WM_CLOSE, we can close the form if there are any other modal forms
14604           and the current form is a descendent of the modal form.
14605         * InternalWindowManager.cs: A lot of refactoring,
14606           the title buttons are now extracted to a separate container class
14607           that takes care of all button code (clicks, tooltips, etc). Moved
14608           Iconic|Maximized|Normal Bounds properties to this class from
14609           MdiWindowManager, so that the window state logic can succeed for
14610           other than mdi wm's. Implemented general window state change logic.
14611           Moved CreateButtons to ThemeWin32Classic, since the theme might
14612           override which buttons are available when as well as the exact
14613           location.
14614         * FormWindowManager.cs: Added, contains logic for
14615           normal forms.
14616         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
14617           which buttons go where (and if they are at all visible). 
14618           Removed special handling of maximized windows, since they aren't special. 
14619           In DrawManagedWindowDecorations don't try to draw the text if it is
14620           empty.
14621         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
14622           use whatever the wm gives us.
14623
14624 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
14625
14626         * ButtonBase.cs: Add 2.0 properties.
14627         * Button.cs: Override Draw for 2.0.
14628         * Control.cs: Add Entered and Selected properties.
14629         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
14630         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
14631         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
14632         buttons.
14633         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
14634
14635 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
14636
14637         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
14638
14639 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
14640
14641         * XplatUIWin32.cs: Register a new class with Windows each time we get
14642         a new ClassStyle.  [Fixes bugs #79432, #80817]
14643         * Controls.cs: Set the correct ClassStyle in CreateParams.
14644         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
14645
14646 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
14647
14648         * ListView.cs: Add fireEvent argument to ReorderColumn since the
14649         ColumnReordered event must not be signaled when modifying DisplayIndex
14650         of a ColumnHeader. Added internal ReorderColumns method which takes
14651         care of drawing, and updating the internal DisplayIndex of the
14652         ColumnHeader. Added AddColumn method which is invoked from
14653         ColumnHeaderCollection when adding or inserting columns, and which
14654         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
14655         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
14656         Recalculated dispay indices after removing a ColumnHeader.
14657         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
14658         match MS. Allows last display index to be returned after ListView
14659         is disposed. Update actual location of ColumnHeader when DisplayIndex
14660         is modified.
14661
14662 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
14663
14664         * LinkLabel.cs: Improve CalcTrimRectangle.
14665         
14666         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
14667
14668 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
14669
14670         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
14671         get rectangle as a result value.
14672
14673 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
14674
14675         * LinkLabel.cs: Theres some diferences between rectangle return from 
14676         MeasureCharacterRanges and the area used for DrawString to fix this 
14677         CalcMeasurementFactor method was created, it calcules the diferences
14678         to be use later to adjust rectangle in draw operations. Fixes #80473.
14679         
14680         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
14681         to adjust draw rectangle.
14682
14683 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
14684
14685         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
14686         text and some other changes to reduce and optimize source code.
14687
14688 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
14689
14690         * RadioButton.cs: Implement 2.0 event.
14691         * RelatedImageListAttribute.cs: Implement new class.
14692
14693 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
14694
14695         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
14696
14697 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
14698
14699         * CheckBox.cs: Implement 2.0 functionality.
14700
14701 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14702
14703         * ListView.cs: Refactor Add and AddRange methods of
14704         ListViewItemCollection, to not update the ListView
14705         everytime an item is added in AddRange. Also move the update
14706         code to a new CollectionChanged method, and call it
14707         from other methods that need it as well (this should also fix some
14708         bugs when Sorting is used).
14709
14710 2007-02-27  Jackson Harper  <jackson@ximian.com>
14711
14712         * TextControl.cs: Try to never let the caret stay in a non-text
14713         tag.
14714         * TextBoxBase.cs: Update the caret.
14715
14716 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
14717
14718         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
14719         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
14720         delete POINT structure, duplicate of one in XplatUIStructs.
14721         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
14722
14723 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
14724
14725         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
14726         edit box since otherwise the Label would immediately be set (even if
14727         the user did not modify the label). In OnKeyDown set Handled to true
14728         if Return or Escape was pressed. In ColumnHeaderCollection unlink
14729         columns that are to be removed. In ListViewItemCollection unlink items
14730         that are to be removed.
14731
14732 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
14733
14734         * TextRenderer.cs: If we set a GDI clip region, we need to clear
14735         it when we are done.  [Fixes bug #80949]
14736
14737 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
14738
14739         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
14740
14741 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14742
14743         * ListView.cs: I forgot to commit the changes for ListView 
14744         in my previous patch.
14745
14746 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
14747
14748         * Clipboard.cs: Partially implement an overload of SetDataObject.
14749         * Form.cs: Implement ShowWithoutActivation.
14750         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
14751
14752 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14753
14754         This is a first set of changes to make the Virtual mode works,
14755         by avoiding the retrieval of ListViewItem instances until
14756         draw time.
14757
14758         * ListView.cs: Store item position in the ListView instead of the
14759         ListViewItem, this way we don't request the Bounds property of
14760         ListViewItem inside the ListView calculations, as well as cache the item
14761         size in item_size field. Store indexes instead of ListViewItem
14762         instances in the matrix used by icon view. Add a ItemMatrixLocation
14763         struct to hold the row and col info of the matrix info.
14764
14765         * ListViewItem.cs: Don't store the location anymore, and only cache
14766         the rectangles for GetBounds. Use the ListView.GetItemLocation
14767         method to retrieve the actual location.
14768
14769 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
14770
14771         * TextRenderer.cs: Add clipping support, thanks to George.
14772         [Fixes bug #80949]
14773
14774 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
14775
14776         * ListViewItem.cs: Cancel label edit when item is removed from 
14777         ListView.
14778         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
14779         event before the edit textbox is displayed.  Added CancelEdit method
14780         which is used end to editing while ignoring the value set by the
14781         user. In EndEdit, set focus to ListView to avoid losing focus to
14782         other controls. In ListViewItemCollection.Clear, cancel editing of
14783         any of the items.  In Remove, cancel editing of item being removed.
14784         Avoid udplicate code by modifing RemoveAt to invoke Remove.
14785
14786 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
14787
14788         * FileDialog.cs: Update FSEntry when move is successful. Fixes
14789         bug #80948.  
14790
14791 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
14792
14793         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
14794         compatible with non X11 systems. Fixes #80901.
14795
14796 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
14797
14798         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
14799         whether the item should be unselected and reselect. We do no want this
14800         when we're starting to edit the label. Do not fire the 
14801         SelectedIndexChanged event from ListView when its already been fired
14802         by modifying ListViewItem.Selected. Fixes bug #80943.
14803
14804 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
14805
14806         * TextRenderer.cs: Previos commit logic was backwards.
14807
14808 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
14809
14810         * TextRenderer.cs: Don't add padding on MeasureText if we were
14811         sent the NoPadding flag.
14812
14813 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
14814
14815         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
14816         after DrawButton. To prevent image overlaps button borders SetClip and 
14817         ResetClip added before and after draw image. Fixes #79129.
14818
14819 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
14820
14821         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
14822         window size, it fix problem when you run under win32 that theres
14823         Size diferent than ClientSize. Also fix controls size and positions
14824         to mimic Win32. Fixes #80837.
14825
14826 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
14827
14828         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
14829         menu area to fix some problems for non X11 systems. Fixes #80613.
14830
14831 2007-02-22  Jackson Harper  <jackson@ximian.com>
14832
14833         * TreeNode.cs: When a node is expanded, set its is_expanded flag
14834         even if it doesn't have any children.
14835
14836 2007-02-22  Jackson Harper  <jackson@ximian.com>
14837
14838         * TreeView.cs: Calculate the top node 'on the fly', this
14839         eliminates issues where you need to click on the tree before
14840         scrolling it to get the top node computed correctly.
14841         * TreeNodeCollection.cs: We don't need to mess with the top node
14842         anymore.
14843
14844 2007-02-22  Jackson Harper  <jackson@ximian.com>
14845
14846         * DataGridViewRow.cs: Fix typo so height can actually be set.
14847         Patch by Peter Grimm.
14848
14849 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
14850
14851         * FileDialog.cs: Fixed support for renaming files and directories.
14852         * ListView.cs: Do not lose focus when edit is canceled. Process
14853         Escape as regular key (to prevent closing of dialogs).
14854
14855 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
14856
14857         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
14858         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
14859
14860 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
14861
14862         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
14863         did not modify label.
14864         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
14865         modified the text. Reset Label when user presses Escape in edit mode.
14866         Move focus to ListView after having cancelled or finished editing the
14867         label.
14868
14869 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
14870
14871         * ComboBox.cs: Removed unnecessary initializations. Marked items field
14872         private. Clear textbox when Text is set to null and SelectedIndex is
14873         already -1.
14874         * FileDialog.cs: Removed unnecessary initializations. Removed 
14875         workarounds for ComboBox bugs that are now fixed. Modified
14876         DefaultExt, InitialDirectory and Title property to change null to
14877         zero-length string in getters. Avoid directly accessing fields.
14878
14879 2007-02-20  Jackson Harper  <jackson@ximian.com>
14880
14881         * TextControl.cs: Remove RecalAlignments call, that was some
14882         debugging leftovers.
14883         - Don't use the line indent when we shouldn't.
14884         * RichTextBox.cs: Add support for paragraph left indents.
14885
14886 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14887
14888         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
14889         Seems like the class status pages doesn't catch params differences.
14890
14891 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
14892
14893         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
14894
14895 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
14896
14897         * ComboBox.cs: Setting Text should have no effect if item text of
14898         selected item exactly matches value. First lookup text using
14899         case-sensitive comparison, and fallback to case-insensitive comparison.
14900         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
14901         allow startIndex to be last index. Changed ArgumentOutOfRangeException
14902         paramname to match MS. Restart from first item if string is not found
14903         after startIndex. Fixed paramname of ArgumentNullException that is
14904         thrown for null value in ObjectCollection.Contains.
14905
14906 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
14907
14908         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
14909
14910 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14911
14912         * ListControl.cs: In SelectedValue use value.Equals to compare for
14913         equality instead of ==, otherwise it will fail for strings.
14914         Fixes #80794.
14915
14916 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14917         
14918         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
14919         since the caret won't show up unless ShowSelection is true. 
14920         Fixes #80795.
14921
14922 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14923
14924         * Application.cs: When disabling all forms but the main form, do not
14925           disable any descendants of the main form (such as mdi children or
14926           other parented forms). Fixes #80822 on Windows.
14927         * Form.cs: If we have a parent, set the WS_CHILD style.
14928         * Control.cs: Update the window styles if the control whose parent has
14929           changed is a form (the WS_CHILD style has to be switched).
14930
14931 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
14932
14933         * XplatUIStructs.cs: MsgUIState structure added.
14934
14935 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
14936
14937         * FileDialog.cs: Removed need for separate fileName field. On 2.0
14938         profile, do not check filename(s) for illegal character if filename(s)
14939         were set non-interactively but always check on 1.0 profile. Fixed NRE
14940          in DefaultExt and only strip off first leading dot. Improve exception
14941         message when invalid Filter is set. Do not ignore InitialDirectory if
14942         it does no exist. Store specified Title, and if empty use default
14943         title (depending on type of dialog). Added an internal DialogTitle 
14944         property for retrieving dialog title. Fixed logic of displayed dir to
14945         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
14946         string as its buggy.
14947         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
14948         FileName is a zero-length string (it can never be null). Override 
14949         DialogTitle property to set default title of dialog box.
14950         * SaveFileDialog.cs: Override DialogTitle property to set default
14951         title of dialog box.
14952
14953 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
14954
14955         * FileDialog.cs: Modify default text of filename and filetype labels
14956         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
14957         after we've updated the SelectedIndex. Fixes part of bug #80887.
14958         * SaveFileDialog.cs: Set text of filetype label.
14959
14960 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14961
14962         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
14963         label field. Needed by latest Jackson's fixes for ListView.
14964
14965 2007-02-16  Andreia Gaita  <avidigal@novell.com>
14966
14967         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
14968         print preview images.
14969
14970 2007-02-16  Jackson Harper  <jackson@ximian.com>
14971
14972         * ListView.cs: Make AfterLabelEdit work correctly.
14973         * FileDialog.cs: After changing the name of the folder, we have to
14974         make sure that it is created, or that we pop up an error because
14975         it already exists.
14976
14977 2007-02-16  Jackson Harper  <jackson@ximian.com>
14978
14979         * X11Dnd.cs: Implement aliases on mime handlers, so things like
14980         System.String are mapped to text.
14981         - Handle dataobjects, getting all the possible formats out of them
14982         - We dont need the drag event args before we give feedback. This
14983         allows feedback cursors to be immediate before selections have
14984         been converted.
14985
14986 2007-02-16  Jackson Harper  <jackson@ximian.com>
14987
14988         * TextBoxBase.cs: Modified the method for inserting images to
14989         taking a line and position instead of tag and position.
14990         * RichTextBox.cs: Handle PngBlip data by inserting the png image
14991         into the RTF file.
14992         * TextControl.cs: Allow images to be inserted as the first tag of
14993         a line.
14994         - Fix some off by one issues when we assume the first tag is a
14995         text tag, not an image tag.
14996
14997 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14998
14999         * ListView.cs: Set focus to ListView when ItemControl gets a
15000         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
15001         Fixes part of #80467.
15002
15003 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15004
15005         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
15006           validate Text input (if null or empty string reset Value to default
15007           value). Fixes #80830.
15008
15009 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15010
15011         * ListView.cs: Set owner as null for columns and items when
15012         Dispose is invoked. Fixes #80607.
15013
15014 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
15015
15016         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
15017         showing DropDowns, don't show a Grip when doing Flow layout.
15018         [This fixes the toolbox in PDN 2.72.]
15019         * ToolStripItem.cs: Add Anchor property and some internal properties to
15020         reduces needed changes to FlowLayout.
15021         * ToolStripOverflow.cs: Remove unused variable.
15022         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
15023         use it in the layout calculations.
15024
15025 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
15026
15027         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
15028         reported in #79640.
15029         
15030         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
15031         size calculation.
15032
15033 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
15034
15035         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
15036         MeasureString format, it can make button very large in some cases, it is
15037         strange but is what win32 do.
15038
15039 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
15040
15041         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
15042         size calculation.
15043
15044         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
15045         rendering, the value is based on MenuAccessKeysUnderlined.
15046
15047 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
15048
15049         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
15050         for most themes.
15051         
15052         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
15053         
15054         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
15055         and use MenuAccessKeysUnderlined instead.
15056
15057 2007-02-13  Andreia Gaita  <avidigal@novell.com>
15058
15059         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
15060         A selected control would not get a Focus call if:
15061                 - the default active control of the container is the same as
15062                   the one that was selected
15063                 - we are switching from one container to another
15064         Under these conditions, the container being selected already has
15065         an active_control, which is the same as the one being activated, 
15066         so set_ActiveControl would always return and not send the Focus
15067         call. Fix to check if the currently active control of the container
15068         is actually focused.
15069
15070 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
15071
15072         * StatusStrip.cs: Implement the spring layout.
15073         * ToolStripControlHost.cs: Make sure the hosted control's visibility
15074         always matches the host.
15075         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
15076         and TextAfterImage.
15077
15078 2007-02-13  Andreia Gaita  <avidigal@novell.com>
15079
15080         * Control.cs: Code reorganization only.
15081           - Reorganize the WndProc cases so that each case has it's own handling method, 
15082           to help with the no-line-numbering stack traces.
15083           - Formatting changes (it's vstudio's fault, really :p)
15084
15085 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15086
15087         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
15088           Thread.CurrentUICulture to match DateTimePicker's (and MS)
15089           behaviour.
15090
15091 2007-02-12  Jackson Harper  <jackson@ximian.com>
15092
15093         * RichTextBox.cs:
15094         * TextBox.cs: By default we have a non multiline document
15095         - use the multiline property instead of the internal variable
15096         * TextBoxBase.cs: Treat multiline and non multiline the same in
15097         most places.
15098         - Use the documents multiline flag instead of tracking it ourself
15099         * TextControl.cs: Attempt at getting multiline to match MS
15100         behavior.  Lines now track an offset, which is either their X or Y
15101         offset depending on whether or not we are in multiline mode.
15102         - Update all the methods to understand that lines have an X value.
15103         - Fix crash in Undo::Duplicate when empty lines are deleted.
15104
15105 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
15106
15107         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
15108         code moved to properties PreferredHeight and PreferredWidth. It solve the
15109         all problems when preferred sizes must be recalculated. Fixes #80801.
15110
15111 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
15112
15113         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
15114         font height when compatible_text_rendering is false. Partially fix #80801.
15115
15116 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
15117
15118         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
15119
15120 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
15121
15122         * Form.cs: Improved exception messages in ShowDialog.
15123
15124 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
15125
15126         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
15127         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
15128         if not set. Fixes bug #80764. Avoid accessing current_settings field
15129         directly.
15130
15131 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
15132
15133         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
15134         false.
15135
15136         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
15137         public in 2.0 and for easy maintenance and dont break compatibility it is 
15138         internal in 1.1.
15139         
15140 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
15141
15142         * ToolStripItem.cs: Implement using images from ImageList.
15143
15144 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15145
15146         * DateTimePicker.cs: Change default date-formatting culture from
15147           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
15148           seems to be the way MS does it.
15149
15150 2007-02-08  Andreia Gaita  <avidigal@novell.com>
15151
15152         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
15153         (the 6 was cut off on the right side)
15154
15155 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
15156
15157         * Form.cs: Tell MenuStrips to close when the form is clicked.
15158         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
15159         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
15160         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
15161         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
15162         support for Overflow, where items that do not fit are automatically
15163         reparented to a drop down menu.
15164         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
15165         Also: fixes bug #80747.
15166
15167 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15168
15169         * ComboBox.cs: Remove warning (unused code).
15170         * ScrollableControl.cs: Remove warning for 1.1 profile.
15171
15172 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15173
15174         * Form.cs: Remove a warning.
15175
15176 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15177
15178         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
15179           'g' specifier, not documented anywhere, but seems to always show up
15180           as a single space (might have something to do with the DateTime 'g'
15181           specifier, which is the era format, but since DateTimePicker can't
15182           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
15183           won't crash if the format has an unmatched quote. Now shows
15184           single-character formats correctly. Fixes #80744.
15185
15186 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
15187
15188         * StatusStrip.cs: Stretch property needs to call base.Stretch,
15189         not this.Stretch to fix stack overflow. [Fixes bug #80760]
15190
15191 2007-02-07  Chris Toshok  <toshok@ximian.com>
15192
15193         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
15194         background color.  it overwrites the background image we've
15195         already painted.  Fixes #80599.
15196
15197 2007-02-07  Chris Toshok  <toshok@ximian.com>
15198
15199         * DataGrid.cs: return immediately from Edit() when there are no
15200         columns.  Fixes #80662.
15201
15202 2007-02-07  Chris Toshok  <toshok@ximian.com>
15203
15204         * MessageBox.cs: fix #80625.  don't always show the Help button in
15205         2.0.  use the displayHelpButton parameter to determine if we
15206         should show it. Also, make the internal show_help field private.
15207
15208 2007-02-07  Chris Toshok  <toshok@ximian.com>
15209
15210         * Control.cs (SetVisibleCore): check in the proposed patch for
15211         80604, and set is_visible before calling CreateControl.
15212
15213 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
15214
15215         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
15216         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
15217         on it.
15218
15219 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
15220
15221         * MenuAPI.cs: hotkey_active internal field added, it is required because
15222         we need to know when hotkeys must be draw, before this change a keystate
15223         Navigating was used but we can have menu in navigating state without
15224         hotkeys. Fixes #80694.
15225         
15226         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
15227
15228 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15229
15230         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
15231           corresponding events and methods to be internal for 1.1 profile and
15232           public for 2.0 profile (required by SizeGrip).
15233         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
15234           implicit control list). Don't set the size nor the location of the
15235           SizeGrip anymore as it's not needed.
15236         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
15237           draw directly on the captured control (fixes #80656). Removed
15238           ShowGrip (it wasn't used anywhere), redraw (always true), added
15239           GetDefaultSize and GetDefaultRectangle to calculate defaults.
15240         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
15241           be called from SizeGrip.
15242
15243 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15244
15245         * Timer.cs: Throw ArgumentException if Interval <= 0.
15246
15247 2007-02-05  Jackson Harper  <jackson@ximian.com>
15248
15249         * TreeView.cs: We need to check scrollbar visibility when window
15250         visibility is updated, because non visible trees don't ever add
15251         scrollbars.
15252         * Cursor.cs: We want the override cursor to be reset to NULL when
15253         we set current cursor to the default cursor.
15254
15255 2007-02-05  Jackson Harper  <jackson@ximian.com>
15256
15257         * TextControl.cs: Don't have crlfs when we are non multiline.
15258         - Consolidate the line position.
15259
15260 2007-02-05  Jackson Harper  <jackson@ximian.com>
15261
15262         * X11Keyboard.cs: BACK+CTRL gets a special char code.
15263
15264 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15265
15266         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
15267           handling LeaveNotify->NotifyUngrab in order to send
15268           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
15269           after calling XUngrabPointer, so we call WindowUngrabbed directly
15270           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
15271         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
15272           MouseCaptureChanged correctly. Also create handles if changing
15273           Capture (matches MS behaviour).
15274
15275 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15276
15277         * SizeGrip.cs: Make the last change 2.0 only.
15278
15279 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15280
15281         * SizeGrip.cs: If resizing and the capture is lost, revert any size
15282           changes to initial size (fixes #80597).
15283
15284 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15285
15286         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
15287
15288 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15289
15290         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
15291           background) and only allow dragging if enabled. This way the
15292           sizegrip can be used to fill the open square that otherwise would
15293           have been shown in the bottom right corner of ScrollableControl
15294           when ScrollableControl is not suppose to support sizing.
15295         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
15296           sizegrip is shown and enabled, and hook up with necessary events.
15297
15298 2007-02-01  Chris Toshok  <toshok@ximian.com>
15299
15300         * DataGridTextBoxColumn.cs: clean up the
15301         GetFormattedString/GetColumnValueAtRow combination of functions.
15302         Also fix UpdateUI, and the initial state of
15303         IsInEditOrNavigateMode.
15304
15305         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
15306         aren't supposed to scroll the textbox here, we're supposed to
15307         scroll the datagrid.
15308
15309 2007-02-01  Chris Toshok  <toshok@ximian.com>
15310
15311         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
15312         setting the position.
15313
15314 2007-02-01  Chris Toshok  <toshok@ximian.com>
15315
15316         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
15317         here, since the most recent focus fixes keep us from generating
15318         the Leave event when our textbox gets focus.
15319         (Edit): we should be passing null for the column style's
15320         instantText parameter.
15321         
15322 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
15323
15324         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
15325         raised.  Fixes menu text/icons not showing up in PDN.
15326
15327 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15328
15329         * Control.cs: Remove code in constructor that makes every
15330         control with WS_CHILD set have initial location -1, -1.
15331
15332 2007-01-31  Jackson Harper  <jackson@ximian.com>
15333
15334         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
15335         XplatUIX11.
15336         * XplatUIX11.cs: Give teh keyboard to teh dnd.
15337
15338 2007-01-31  Jackson Harper  <jackson@ximian.com>
15339
15340         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
15341         - Remove some debug code.
15342
15343 2007-01-31  Jackson Harper  <jackson@ximian.com>
15344
15345         * XplatUIX11.cs: If you set the override cursor during a grab, it
15346         should actually override the grab cursor.  This comes into play
15347         when you are setting custom cursors in a DND feedback method.
15348
15349 2007-01-31  Jackson Harper  <jackson@ximian.com>
15350
15351         * X11Dnd.cs: Add support for handling the QueryContinue and
15352         GiveFeedback events.
15353         - Cancel drag and drop actions when the escape key is clicked.
15354         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
15355         can handle the ESCAPE key.
15356         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
15357         done when dnd events are continued after the button is released.
15358         - Add a new helper method so that dnd can translate key events.
15359
15360 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
15361
15362         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
15363         make it more obvious what is happening.
15364
15365 2007-01-30  Jackson Harper  <jackson@ximian.com>
15366
15367         * XplatUIX11.cs: Don't break when handling button release in drag
15368         and drop operations. We need that BUTTONUP message to get through
15369         so capture is released.
15370         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
15371         this is handled automatically when the mouse is down.
15372
15373 2007-01-30  Jackson Harper  <jackson@ximian.com>
15374
15375         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
15376         is closed, so we need to make sure that we aren't changing the
15377         dialog result when the OK (Open or Save) button has been clicked
15378         and we are closing the window ourselves.  Note we don't need to
15379         worry about the cache being written in this case, because it was
15380         already done in the previous FilOk call.
15381
15382 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15383         
15384         * DateTimePicker.cs: Remove a warning.
15385         * ComboBox.cs: Remove a couple of warnings.
15386
15387 2007-01-29  Chris Toshok  <toshok@ximian.com>
15388
15389         * XplatUIX11.cs: don't crash, and remove the icon if the user has
15390         set one, if SetIcon is passed a null icon.
15391
15392 2007-01-29  Andreia Gaita  <avidigal@novell.com>
15393
15394         * TextBox.cs: Redraw when the password characters changes
15395         * TextControl.cs: Check if textbox has a password char and draw 
15396         a line of password chars instead of the text in the line. LineTag gets 
15397         an extra Draw() method which allows document.Draw to override the text 
15398         that will be drawn. Removes 1024 char limitation on length of passworded 
15399         lines.
15400
15401 2007-01-29  Jackson Harper  <jackson@ximian.com>
15402
15403         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
15404         single chars is not.
15405
15406 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
15407
15408         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
15409         one pixel.  Fix a StackOverflowException caused by an overload wrongly
15410         calling itself.
15411
15412 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
15413
15414         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
15415         also remove ProcessArrowKey and put the code inside ProcessKeys.
15416
15417 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
15418
15419         * PaddingConverter.cs: Added.
15420
15421 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15422         
15423         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
15424         ShowPanels is false (fixes #80600). Only draw up to 127 characters
15425         of text (fixes #80601). For panels clip the text to draw to the
15426         panel (fixes #80603).
15427
15428 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15429
15430         * ComboBox.cs: Fixed implementation of ResetText.
15431
15432 2007-01-25  Jackson Harper  <jackson@ximian.com>
15433
15434         * TextControl.cs: For the last char of a line we need to use the
15435         line size, not that chars width, since it won't actually be
15436         computed since the right side of a char is based on the start of
15437         the left side of the next char, and the next char does not exist.
15438
15439 2007-01-25  Chris Toshok  <toshok@ximian.com>
15440
15441         * Splitter.cs: fix the new unit tests, and reindent some switch
15442         statements.
15443
15444 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15445
15446         * ComboBox.cs: Implemented 2.0 methods and events.
15447         * TextBoxBase.cs: Added OnTextUpdate, so that
15448         ComboBox.ComboTextBox can inform ComboBox of it.
15449
15450 2007-01-25  Jackson Harper  <jackson@ximian.com>
15451
15452         * TextControl.cs: Respect ShowSelection when deciding whether or
15453         not to display the caret, this allows comboboxes to have carets
15454         when the combotextbox does not have focus.
15455
15456 2007-01-25  Jackson Harper  <jackson@ximian.com>
15457
15458         * TextControl.cs: Add a Suspend/Resume for updating, basically the
15459         same as the Suspend/Resume for recalc, except this will do actual
15460         Invalidates.
15461         - New Undo manager, works much like the MS version.
15462         - Implemented Redo
15463         * TextBoxBase.cs: The Cut operation is undoable.
15464
15465 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15466         
15467         * TextBoxBase.cs: Don't antialias text. Makes it look way better
15468         on Windows (no difference on Linux).    
15469
15470 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15471
15472         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
15473         we don't want to activate any windows. Fixes #79433.
15474
15475 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
15476
15477         - ButtonBase.cs: Fix capitalization of parameter: disposing.
15478         [Fixes bug #80609]
15479
15480 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
15481
15482         * FileDialog.cs:
15483         - Move to using System.ComponentModel.EventHandlerList
15484         - Replace Refresh with Invalidate
15485         - Clear the mime filecache on closing
15486         - Some other memory reducing work. After beeing closed FD now uses
15487           only about 300 KB for the fdo mime stuff plus the memory of the
15488           cached icons.
15489         * Mime.cs: Changed coding style and removed unnecessary commented
15490         code. Some more memory memory reducing work.
15491
15492 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15493
15494         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
15495         a few other missing 2.0 properties.
15496         * Theme.cs: Added DrawFlatStyleComboBox.
15497         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
15498
15499 2007-01-24  Chris Toshok  <toshok@ximian.com>
15500
15501         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
15502         wake_waiting flag, not just when there's data to be read.  if we
15503         don't, then future wakeup's won't reach us and we'll be doomed to
15504         wait for the entire 1 second timeout forever (unless there are X
15505         events to be had).
15506
15507 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
15508
15509         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
15510         until you pass Items.Count, not Items.Count - 1 like 1.1.
15511
15512 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
15513
15514         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
15515
15516 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
15517
15518         * ToolStripContainer.cs: The recent Dock fix exposed that I was
15519         adding the panels in the wrong order.
15520
15521 2007-01-24  Jackson Harper  <jackson@ximian.com>
15522
15523         * TextBoxBase.cs: When we move the caret we also need to move the
15524         selection, this fixes some random crashing after doing select
15525         text, unselect, delete a char, paste.
15526
15527 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15528
15529         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
15530
15531 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
15532
15533         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
15534         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
15535         * ToolBar.cs: Force redraw in BackgroundImageChanged.
15536
15537 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
15538
15539         * ToolBar.cs:
15540         - Implement support for vertical toolbars. Fixes #80539;
15541         - Call LayoutToolBar when resize, it fix some other problems in layout.
15542         - Rename requested_height to requested_size, as we can have width on it
15543         when toolbar is vertical.
15544         - Create a private property "Vertical" that uses Dock to verify when 
15545         toolbar is vertical or not.
15546         - Set ControlStyles when change Dock property.
15547         - Refactory in LayoutToolBar to have better variables names and to support
15548         vertical toolbars.
15549         - Fixes default value for ButtonSize when button count is equal zero, size
15550         must be (39, 36) test case writed.
15551
15552 2007-01-23  Chris Toshok  <toshok@ximian.com>
15553
15554         * Control.cs: fix the checks so that they work correctly for mdi
15555         parents/children.
15556
15557 2007-01-23  Chris Toshok  <toshok@ximian.com>
15558
15559         * Control.cs: ControlCollection seems to have super-secret
15560         abstraction breaking knowledge of Mdi containers.  allow MdiClient
15561         to add toplevel controls.
15562
15563 2007-01-23  Chris Toshok  <toshok@ximian.com>
15564
15565         * Control.cs: throw an ArgumentException if a toplevel control is
15566         added to our control collection from ControlCollection.Add, as
15567         well as from ControlCollection.IList.Add.  This fixes the
15568         ControlSetTopLevelTest.TestTopLevelAdd unit test.
15569
15570         Also, in ControlCollection.IList.Add, don't through an
15571         ArgumentNullException, throw an ArgumentException, when value ==
15572         null.  This matches MS.
15573
15574 2007-01-23  Chris Toshok  <toshok@ximian.com>
15575
15576         * BindingSource.cs: initial, incomplete, implementation of
15577         BindingSource.
15578
15579 2007-01-23  Jackson Harper  <jackson@ximian.com>
15580
15581         * TextControl.cs:
15582         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
15583         that I can fix a broken unit test (TextBoxTest::ClearUndo)
15584         
15585 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
15586
15587         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
15588
15589 2007-01-23  Andreia Gaita  <avidigal@novell.com>
15590
15591         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
15592         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
15593         IndexOfKey() for 2.0
15594
15595 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15596
15597         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
15598         to prevent it from changing z-order.
15599         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
15600         leave UI updates in MdiWindowManager.
15601         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
15602         1 sized (NC handling goes weird on Linux otherwise).
15603         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
15604         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
15605         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
15606         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
15607         and SetWindowState(s) to allow for changing the size of an activated child
15608         before activating it (reduces a lot of flicker).
15609
15610 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
15611
15612         * Form.cs: Changing FormBorderStyle has different semantics based
15613         on whether the Form is visible or not.  If not visible, don't change
15614         the Size.  But InvalidateNC needs to be called to force the window
15615         to pick up the changes and redraw itself.  [Fixes bug #80574]
15616
15617 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
15618
15619         [Moma work]
15620         * ContainerControl.cs: ProcessCmdKey.
15621         * ErrorProvider.cs: new constructor.
15622         * Form.cs: fix AutoValidateEvent compiler warning.
15623         * Label.cs: fix OnAutoSizeChanged compiler warning.
15624         * MenuStrip.cs: fix CanOverflow compiler warning.
15625         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
15626         * TextBox.cs: Dispose.
15627         * ToolStrip.cs: CanOverflow, re-enable double buffering.
15628         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
15629         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
15630         * ToolStripItem.cs: Overflow, RightToLeft properties.
15631
15632 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15633
15634         * Form.cs: Move the layout of the main form to MdiWindowManager.
15635         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
15636         do a layout of the main window to update MdiClient's client area to
15637         the right area. Fixes #80533. Remove the calculation of nc size, 
15638         it was just wrong and the correct one is the same as for 
15639         InternalWindowManager. 
15640
15641 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
15642
15643         * Control.cs: Setting Anchor or Dock needs to reset the other
15644         to its default.  [Fixes bug #80556]
15645
15646 2007-01-20  Chris Toshok  <toshok@ximian.com>
15647
15648         * CheckedListBox.cs: class status changes.
15649
15650         * ScrollableControl.cs: same.
15651
15652         * RichTextBox.cs: same.
15653
15654         * ContainerControl.cs: same.
15655
15656         * ListView.cs: same.
15657
15658         * NotifyIcon.cs: same.
15659
15660         * MenuStrip.cs: same.
15661
15662         * RadioButton.cs: same.
15663
15664         * CheckBox.cs: same.
15665
15666         * PrintPreviewDialog.cs: same.
15667
15668         * Form.cs: same.
15669
15670 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
15671
15672         * TreeNode.cs: Apply Alan's patch for Name property.
15673
15674 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15675         
15676         * Form.cs: Implemented SizeGripStyle.
15677         * SizeGrip.cs: Check for minimum and maximum size for the
15678         control being resized and only resize if size has actually
15679         changed.
15680
15681 2007-01-19  Chris Toshok  <toshok@ximian.com>
15682
15683         * DataGridColumnStyle.cs: stop setting _readonly in the
15684         PropertyDescriptor setter.  fixes a unit test failure.
15685
15686         also, rename ParentReadOnly to TableStyleReadOnly, and have it
15687         just consult our table style (if we have one).  We don't need to
15688         consult the datagrid readonly attribute because that's passed in
15689         as the _ro arg to Edit.  this simplifies things a little.
15690         
15691         * DataGrid.cs: use CurrentColumn instead of
15692         current_cell.ColumnNumber just to simplify some of the code.
15693
15694         switch the order of some things in the CurrentCell setter to keep
15695         the previous cell from getting a textbox again -
15696         EnsureCellVisibility causes scrolling to happen, which calls Edit.
15697         So we need to set the new cell before calling it.
15698         
15699         call Edit in OnEnter, as does Microsoft.
15700         
15701         also, make sure the current table style isn't the one we create
15702         initially when checking to see if it's different than the one
15703         we're setting it to in BindColumns (this fixes #80421).
15704
15705         * GridTableStylesCollection.cs: table styles can have "" for a
15706         mapping name.  part of the fix for #80421.
15707
15708         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
15709         Edit significantly.
15710
15711 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
15712
15713         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
15714         and less GDI object leaky-er.
15715
15716 2007-01-18  Andreia Gaita  <avidigal@novell.com>
15717
15718         * LinkLabel.cs: Add opaque control style
15719
15720 2007-01-18  Jackson Harper  <jackson@ximian.com>
15721
15722         * TextControl.cs: Calculate width properly.
15723         - Don't store the tag's X offset, this can be figured out very
15724         easily.
15725         - When getting the caret tag make sure to get the last empty tag.
15726
15727 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
15728
15729         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
15730         [Fixes bug #79959]
15731
15732         * Control.cs: Color.Empty shouldn't count for previous transparent
15733         redraw changes.
15734
15735 2007-01-18  Jackson Harper  <jackson@ximian.com>
15736
15737         * TextBox.cs:
15738         * RichTextBox.cs:
15739         * TextControl.cs: Starting to merge in some pieces of my older
15740         undo work.  Basically just some slight cleanup of the undo API.
15741
15742 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15743
15744         * TrackBar.cs: Fix signature of RightToLeftLayout.
15745         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
15746         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
15747         * Application.cs: Implemented UseWaitCursor.
15748
15749 2007-01-18  Jackson Harper  <jackson@ximian.com>
15750
15751         * TextControl.cs: We can't skip tags if any part of the tag is
15752         visible.
15753
15754 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
15755
15756         * ContainerControl.cs: Override OnLayout.
15757
15758 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
15759
15760         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
15761
15762         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
15763         everything else.
15764
15765 2007-01-18  Chris Toshok  <toshok@ximian.com>
15766
15767         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
15768         (leftover from the container_selected days, I'd wager).  fixes bug
15769         #80546.
15770
15771 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
15772
15773         * Control.cs: Apply patch from George to fix the new testcase on
15774         bug #80451.  We can't just check for Color.Transparent, we need 
15775         to check if the back color's alpha channel is < 255.
15776
15777 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
15778
15779         * Form.cs: Move setting show_icon = true to before the constructor
15780         so that the base constructor has that information when it calculates
15781         the form's size.  Was causing forms to be (6, 6) bigger than they
15782         were supposed to be.  Thanks for catching this Rolf!
15783
15784 2007-01-18  Jackson Harper  <jackson@ximian.com>
15785
15786         * TextControl.cs: When replacing a selection we need to invalidate
15787         from the initial selection start, because selection start is moved
15788         to the end of the replacement.
15789
15790 2007-01-18  Andreia Gaita  <avidigal@novell.com>
15791
15792         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
15793
15794 2007-01-18  Chris Toshok  <toshok@ximian.com>
15795
15796         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
15797         I just added.
15798
15799 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
15800
15801         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
15802         layout methods and properties from ToolBarButton must be available
15803         into ToolBarButtonInfo.
15804
15805 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
15806
15807         * Control.cs: If the control has a transparent background, we
15808         need to refresh it when it moves and when it's parent's background
15809         image changes.  [Fixes bug #80451]
15810
15811 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
15812
15813         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
15814
15815 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
15816
15817         * XplatUIWin32.cs: Implement proper double buffering for Windows.
15818         [Fixes bug #80447, and probably speeds up things as well]
15819
15820 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15821
15822         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
15823         * XplatUIWin32.cs: We need to recalculate NC size after changing 
15824         window style to toolwindow (otherwise the client rectangle will be
15825         3 pixels to small for some reason).
15826         * MdiWindowManager.cs: Revert NC size calculations to match how
15827         they are calculated only based on window styles (to match
15828         Win32AdjustWindowRectEx, since otherwise when setting size or 
15829         location, Control will call Win32AdjustWindowRectEx to update client 
15830         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
15831         calculate a different value of client size causing another paint 
15832         (and flickering))
15833         * InternalWindowManager.cs: When moving or resizing a window only
15834         update size or location if they actually changed.
15835         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
15836         (seems to match Windows behaviour better). Cleaned up 
15837         ManagedWindowDecorations to draw what's needed and nothing else
15838         (was drawing borders and lines where they shouldn't be)
15839         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
15840         (style = 0xFFFF) and takes into account caption height when 
15841         calculating window rectangle.   
15842
15843 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
15844
15845         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
15846         can be added to toolbar multiple times, we need to maintain a list of 
15847         button information for each positions.
15848
15849 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
15850
15851         * ToolBar.cs: Some small stetic changes.
15852
15853 2007-01-16  Jackson Harper  <jackson@ximian.com>
15854
15855         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
15856         that allow us to have nested recalc = false blocks.
15857         - Add paste support for images in the RichTextBox
15858         * RichTextBox.cs: flush the text after the color is changed, so
15859         the change takes effect.
15860         - Use SuspendRecalc
15861         - Some extra debugging info
15862         * TextControl.cs: Tags no longer track their length, it is just
15863         computed from the next tags length, this makes things a little
15864         simpler and reduces places that we have to track length changes.
15865         - Refactored the linetag class a little so we could make it
15866         a base class for different kinds of tags
15867         - Created a image tag, a tag that can have a single image inserted
15868         into it
15869         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
15870         that we can call suspend multiple times.
15871         - Add some debugging methods
15872
15873 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15874
15875         * MdiClient.cs: Add ActivatePreviousChild for 
15876         mdi child window navigation.
15877         * Form.cs: Use MdiClient.ActivateNextChild/
15878         ActivatePreviousChild instead of Form.SelectNextControl
15879         to select the next/previous child since 
15880         SelectNextControl doesn't do it in the same order
15881         as mdi children should do it.
15882
15883 2007-01-16  Chris Toshok  <toshok@ximian.com>
15884
15885         * Control.cs: remove container_selected field.
15886
15887 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15888
15889         * MdiClient.cs: Update main form's ActiveChild when
15890         updating keyboard focus for the mdi child.
15891
15892 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
15893
15894         * Control.cs: PreferredSize fix.
15895
15896         * Form.cs: Add several 2.0 events, properties, and methods.
15897
15898 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
15899
15900         * Form.cs: Provide meaningful message when MdiParent is assigned a
15901         Form that is not an MdiContainer.
15902
15903 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15904
15905         * MdiClient.cs: Update main form's ActiveChild when
15906         activating a mdi child.
15907
15908 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15909
15910         * MdiWindowManager.cs: Fix NRE when merging menus and main form
15911         doesn't have a menu.
15912
15913         * Form.cs: Request NCRecalc after creating a mdi child window.
15914         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
15915         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
15916         
15917         * MdiClient.cs: Add new method SendFocusToActiveChild that either
15918         sends keyboard focus to the active child, or to the MdiClient
15919         if there are no child forms.
15920         
15921 2007-01-15  Chris Toshok  <toshok@ximian.com>
15922
15923         * ListView.cs: drop the *Internal overrides, just do our work in
15924         ItemControl's WndProc instead.
15925
15926         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
15927         of the various controls, and forward the events properly (in the
15928         same manner as MS) from the textbox to the UpDown.  Also the
15929         ActiveControl of the UpDownBase gets set properly now.  Finally,
15930         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
15931
15932         * NumericUpDown.cs: set Text in the ctor.
15933
15934         * DomainUpDown.cs: call UpdateEditText in the ctor.
15935         
15936         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
15937         so even a Selectable = false textbox can be focused if you click
15938         in it.  Go figure.
15939
15940         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
15941         just add their handling in their respective WndProc's.  Also add
15942         an explicit FocusInternal method that doesn't consult CanFocus
15943         before calling Select(this).
15944
15945         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
15946         do our work in WndProc instead.
15947
15948         * TabControl.cs: same.
15949
15950         * ComboBox.cs: same.
15951
15952 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
15953
15954         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
15955         Fixes #80006.
15956
15957 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15958
15959         * ListViewItem.cs:
15960         * ThemeWin32Classic.cs: Don't draw the item text outside
15961         item bounds in Details view, as well as use trimming.
15962         Fixes bug #80376.
15963
15964 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
15965
15966         * Form.cs: Implement Form.ShowIcon.
15967         
15968         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
15969         null, which when combined with the DlgModalFrame window style removes
15970         the icon from the title bar.
15971
15972 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
15973
15974         * Control.cs: Call OnMouseClick after OnClick. (2.0)
15975
15976 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
15977
15978         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
15979         menu when mdi child windows theres a menu, uses insert to get icon
15980         at first position. Partially fix #80006.
15981
15982 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
15983
15984         * Clipboard.cs: Implement 2.0 methods.
15985
15986 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
15987
15988         * Menu.cs: Implement Insert method of MenuItemCollection class
15989         to fix MenuMerge.
15990
15991 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15992
15993         * ListView.cs: Implement 2.0 FindItemWithText method.
15994
15995 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
15996
15997         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
15998         to calculate menu bar size. Fixes #80290.
15999
16000 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
16001
16002         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
16003
16004 2007-01-11  Chris Toshok  <toshok@ximian.com>
16005
16006         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
16007         initial form.
16008
16009 2007-01-11  Chris Toshok  <toshok@ximian.com>
16010
16011         * LinkLabel.cs: make sure to call base.Select in our Select method
16012         if it turns out we're going to be selected (i.e. if we have a link
16013         that is going to receive focus).  That way our container's
16014         ActiveControl is updated properly.
16015
16016 2007-01-11  Chris Toshok  <toshok@ximian.com>
16017
16018         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
16019         they have 1 or more links.  this fixes the crash gert reported.
16020
16021 2007-01-11  Andreia Gaita  <avidigal@novell.com>
16022
16023         * ContainerControl.cs: Remove ContainerSelected flag, not needed
16024         anymore.
16025
16026         * Control.cs (Controls.Add): Check if control to be added to the collection
16027         is a top level control, and throw an ArgumentException if it is.
16028         Remove ContainerSelectedFlag, not needed anymore.
16029
16030         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
16031         top most control doesn't activate the form. This fixes a problem in the
16032         MessageBox, where the default button wouldn't get focus because the form
16033         was activated before being Loaded - when the Owner is set, SetTopMost is
16034         called, and it would activate it.
16035
16036 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
16037
16038         * Button.cs: When clicked and setting the parent form's DialogResult,
16039         use FindForm instead of Parent, since parent could be a container
16040         control and not the Form.  Fixes bug #80495.
16041
16042 2007-01-10  Chris Toshok  <toshok@ximian.com>
16043
16044         * Form.cs: move the call to SendControlFocus into the same
16045         is_loaded check.
16046
16047 2007-01-10  Chris Toshok  <toshok@ximian.com>
16048
16049         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
16050         It breaks in the face of the new ActiveControl stuff, and should
16051         be unnecessary.
16052
16053         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
16054         activecontrol's focus if it's not already set, after we set
16055         ActiveControl, but before we call OnActivated.  Re-fixes #79667
16056         after the previous focus/active control fixes regressed it.
16057
16058         * Control.cs: reindent some code.
16059         
16060 2007-01-10  Chris Toshok  <toshok@ximian.com>
16061
16062         * Splitter.cs: clearing some outstanding changes from my tree.
16063         Replace all accesses (not writes) to the internal dock_style field
16064         with the Dock property.
16065
16066 2007-01-10  Chris Toshok  <toshok@ximian.com>
16067
16068         * Control.cs: make FireEnter, FireLeave, FireValidating, and
16069         FireValidated virtual.
16070
16071         * Form.cs: override and don't chain up calls to FireEnter and
16072         FireLeave.
16073
16074 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16075
16076         * ListView.cs: Add more text padding space when using
16077         auto resize for columns (the previous value didn't work fine).
16078
16079         * ThemeWin32Classic.cs: Update text position inside columns,
16080         to match the appeareance of .Net.
16081
16082         * ColumnHeader.cs: When using auto resize, only the Width should
16083         depend on the sub items, not the Height. Also, set width after
16084         auto resizing (the value of Width should never remain as -1 or -2).
16085
16086 2007-01-10  Chris Toshok  <toshok@ximian.com>
16087
16088         * Application.cs: fix compilation errors when debug is enabled.
16089
16090 2007-01-10  Chris Toshok  <toshok@ximian.com>
16091
16092         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
16093         add some nice ascii art pictures and explanation of the process).
16094         (GetMostDeeplyNestedActiveControl): new utility function we need
16095         because our ActiveControl can refer to a child container with its
16096         own ActiveControl.
16097
16098         * Form.cs (OnActivated): remove the call to SelectActiveControl
16099         from here, since you can override this method and not chain up,
16100         and winforms still sets the active control.
16101         (OnCreateControl): also remove the unnecessary SelectActiveControl
16102         call from here.
16103         (WndProc): it's actually called from the WM_ACTIVATE block, just
16104         before calling OnActivated.
16105
16106         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
16107         inside the else.  the ActiveControl setter will end up setting
16108         focus on @control.  This keeps us from setting it again (and
16109         generating an extra LostFocus/GotFocus pair).
16110         (Select (bool, bool)): reindent.
16111
16112 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
16113
16114         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
16115         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
16116         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
16117         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
16118         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
16119         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
16120         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
16121         ToolStripTextBox.cs: Another wave of corcompare work.
16122
16123 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16124
16125         * ColumnHeader.cs: Implement 2.0 AutoResize method using
16126         the Width property.
16127
16128         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
16129         methods by callling Column.AutoResize method on columns.
16130
16131 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
16132
16133         * Control.cs: Provide proper implementations of PreferredSize
16134         and GetPreferredSize (2.0).
16135
16136 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
16137
16138         * Form.cs: Remove one character (!) to make my previous OnClosing
16139         stuff work for modal windows like MessageBox.
16140
16141 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16142
16143         * ListView.cs:
16144         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
16145         ListView.Columns to get the last displayed column. Fixes #80452.
16146
16147 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
16148
16149         * Label.cs, LinkLabel.cs: Source code identation fixes.
16150
16151 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
16152
16153         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
16154         we dont need to invalidate only borders because when we invalidate four
16155         border lines the invalidate's generates a complete redraw of button, 
16156         because it now invalidate a complete rect some other redraws operations
16157         are fixed. Fixes #80196.
16158         
16159         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
16160         Remove ToolBarInvalidateEntireButton as it is not used.
16161
16162 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
16163         
16164         * Form.cs: Make sure that both OnClosing and OnFormClosing are
16165         called for 2.0 profile.
16166         * CloseReason.cs: Make class internal for 1.1.
16167
16168 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
16169
16170         * ToolStripManager.cs: Implement FindToolStrip functionality.
16171         * ToolStrip.cs: Register and unregister with ToolStripManager.
16172
16173 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
16174
16175         * Control.cs: This was messy.  2.0 moves much of ControlCollection
16176         to ArrangedElementCollection.  Implemented this with as few #if's as 
16177         possible (which is still too many).
16178
16179 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
16180
16181         * Control.cs: Implement SizeFromClientSize() [2.0].
16182
16183 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
16184
16185         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
16186         use Theme.BorderSize to calculate area instead of static value 1, 
16187         by the way use new BorderStaticSize instead     Border3DSize when 
16188         border_static is true. Fixes #79537.
16189         
16190         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
16191         
16192         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
16193         it is not needed.
16194
16195 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
16196
16197         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
16198
16199 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
16200
16201         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
16202         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
16203         
16204         * Hwnd.cs: 
16205         - border_static field added, it will used to define when a control 
16206         theres 3D border but it must be static (thin).
16207         - In GetWindowRectangle use Theme.BorderSize to calculate area 
16208         instead of static value 1, by the way use new BorderStaticSize instead
16209         Border3DSize when border_static is true.
16210
16211         * XplatUIX11.cs, XplatUIOSX.cs: 
16212         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
16213         
16214         * Theme.cs: BorderStaticSize field added.
16215
16216 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
16217
16218         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
16219
16220 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
16221
16222         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
16223         mimic same behavior than win32 that set border only in CreateParams,
16224         it fix problems under CreateParams overrides. Fix #79442 and partial
16225         fix #79537.
16226         
16227         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
16228         of thi control you must call recreate handle. 
16229         
16230         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
16231         need to do anything as RecreateHangle will take care about borders.
16232
16233 2007-01-05  Mike Kestner  <mkestner@novell.com>
16234
16235         * ListView.cs: hack to eliminate Lost/Got focus notifications on
16236         cycles between the ItemControl and parent.  Fixes #80388.
16237
16238 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
16239
16240         * Control.cs: Lazy init layout engine. Do not directly use 
16241         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
16242
16243 2007-01-05  Chris Toshok  <toshok@ximian.com>
16244
16245         * DataGrid.cs: don't forceably rebind columns in SetDataSource
16246         unless our list manager has changed (i.e. unless we have reason to
16247         believe our columns have changed).  Fixes #80422.
16248         
16249         also, disable the call do BindColumns in
16250         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
16251         1.1 the event isn't raised in response to a column addition on a
16252         table.)
16253
16254 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
16255
16256         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
16257         that inheritors can not call it if they choose.  Fixes bug #80456.
16258
16259 2007-01-05  Andreia Gaita  <avidigal@novell.com>
16260
16261         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
16262         doesn't blow up with a null exception on marshalling.
16263         
16264 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
16265
16266         * Control.cs: Implement several 2.0 protected properties and methods.
16267         Ensure that all necessary events are being called when properties
16268         are set.
16269
16270 2007-01-05  Mike Kestner  <mkestner@novell.com>
16271
16272         * ListView.cs: implement PgUp/PgDn for Details view.  Also
16273         fixes First/LastVisibleIndex to use the item_control.ClientRect 
16274         instead of the parent control.  Fixes #80378.
16275
16276 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
16277
16278         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
16279           determine whether to use yard-pound or not (bug #78399).
16280
16281 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
16282
16283         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
16284         problems. So it is time to bring back the old popupbutton colors.
16285
16286 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16287
16288         * ColumnHeader.cs:
16289         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
16290         property by using the internal information of the
16291         columns order in ListView.
16292
16293 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
16294
16295         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
16296         Add 2.0 Tag properties.
16297
16298         * LinkArea.cs: Add 2.0 ToString method.
16299
16300 2007-01-03  Chris Toshok  <toshok@ximian.com>
16301
16302         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
16303         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
16304         when we're editing, which fixes #80047.
16305
16306 2007-01-03  Chris Toshok  <toshok@ximian.com>
16307
16308         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
16309         #80404.
16310
16311 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
16312
16313         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
16314         property and implementation.
16315
16316         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
16317         for MdiWindowListItem property.
16318
16319         * ToolStripDropDown.cs: Don't consider hidden menu items while
16320         laying out the menu.
16321
16322 2007-01-03  Andreia Gaita  <avidigal@novell.com>
16323
16324         * SendKeys.cs: window handle is not needed in win32, so just
16325         get the active window for X after parsing keys and don't use
16326         it when building the message; it is passed by parameter to the 
16327         Xplat method and used there to build the message instead. Also,
16328         wait for events to be processed on SendWait, as opposed to Send,
16329         which doesn't wait :) Playing with threads and Send() completely 
16330         hangs on ms.net, only SendWait() works.
16331         
16332         XplatUIX11.cs
16333         X11Display.cs: Check for valid window handle.
16334
16335 2007-01-03  Jackson Harper  <jackson@ximian.com>
16336
16337         * TextControl.cs: Need to prevent wrap calculations when replacing
16338         text (this was there before i removed it accidently).
16339         - Don't update the cursor during the positioning, just set it to
16340         selection_start at the end of the operaion.
16341
16342 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16343
16344         * Control.cs:
16345         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
16346         
16347 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16348
16349         * MonthCalendar.cs: Added Click and DoubleClick events again,
16350         but this time they only hide Control's Click and DoubleClick.
16351         
16352 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
16353
16354         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
16355         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
16356
16357 2007-01-02  Jackson Harper  <jackson@ximian.com>
16358
16359         * TextBoxBase.cs: We move the caret with the split now, so we
16360         don't need to explicitly move the caret after splitting.  This
16361         fixes the caret bumping down an extra line on Enter.
16362
16363 2007-01-02  Miguel de Icaza  <miguel@novell.com>
16364
16365         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
16366         2.72). 
16367
16368         * ScrollableControl.cs: Add Scroll event.
16369
16370 2007-01-02  Mike Kestner  <mkestner@novell.com>
16371
16372         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
16373         to fix all hdr height padding codepaths.  Fixes #80207.
16374
16375 2007-01-02  Chris Toshok  <toshok@ximian.com>
16376
16377         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
16378         setting it to the Control defaults anyway, and it being after the
16379         Dock set was screwing up layout.
16380         (set_Dock): don't short circuit out of setting base.Dock.  Also,
16381         no need to call UpdateStatusBar here, as it'll be re-layed out if
16382         it needs to be.
16383
16384 2007-01-02  Mike Kestner  <mkestner@novell.com>
16385
16386         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
16387         to header height for width == -1. Fixes the rest of #80207.
16388
16389 2007-01-02  Mike Kestner  <mkestner@novell.com>
16390
16391         * ListView.cs: rework the mouse event forwarding everaldo added
16392         to translate the coordinates to the parent control not
16393         raise the parent events until after we've done our work. Hover
16394         needs more work, in the case where HoverSelection is on, because
16395         the item control receives more than one MouseHover per Enter
16396         event, so we need to ensure only the "first" hover gets forwarded.
16397         Opening a minor bug for that.
16398
16399 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
16400
16401         * CheckedListBox.cs: Fixed SelectionMode to match MS.
16402         * ListControl.cs: Implemented AllowSelection property. Removed extra
16403         tabs.
16404         * ListBox.cs: Implemented AllowSelection property.
16405
16406 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
16407
16408         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
16409         SelectedItem, it prevent for errors when you must disable item
16410         before perform click. Fixes #80409.
16411
16412 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
16413
16414         * MenuAPI.cs: Prevent second level and beyond submenus to close
16415         until first level when move out side of popup.
16416         
16417 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
16418
16419         * MenuAPI.cs:
16420         - Down submenu positin in three pixels.
16421         - Closes sub menu when mouse leaves from menu. Fixes #80402.
16422
16423 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
16424
16425         * ThemeWin32Classic.cs:
16426         - Fix popup menu size adding one pixel on the top.
16427         - Down menu item border from two to one to mimic Win32.
16428         - Some source identation fixes. 
16429
16430 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
16431
16432         * ThemeWin32Classic.cs: Use float numbers to calculate size and
16433         position of menu arrows, it fix wrong arrow size.
16434
16435 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
16436
16437         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
16438         instead of line, it simplify draw operation and fix it using 3D
16439         borders to mimic Win32.
16440
16441 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
16442
16443         * StatusStrip.cs: Add implementation of the sizing grip.
16444
16445         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
16446         StatusStrip rendering.
16447
16448 2006-12-31  Chris Toshok  <toshok@ximian.com>
16449
16450         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
16451         override the layout style (anchor/dock) of the control.  assign to
16452         Dock instead.  Fixes bug #80416.
16453
16454         * ToolStrip.cs: same.
16455
16456 2006-12-31  Andreia Gaita  <avidigal@novell.com>
16457
16458         * ContainerControl.cs: Use ContainerSelected flag to check if 
16459         a Container is directly selected, or if Select is called on a 
16460         non-container. If a container is directly selected, focus events 
16461         should not be raised.
16462         Apply #80411 patch to throw exception on set_ActiveControl if 
16463         control is the same as the current one.
16464         
16465         * Control.cs: Use ContainerSelected flag (see above).
16466         Add invalidation check to raise event but not invalidate if 
16467         dimensions are 0.       
16468         Apply #80411 patch.
16469         
16470
16471 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
16472
16473         * MenuAPI.cs: After click, dont close popup menu when menu is
16474         ContextMenu. Fixes #80399.
16475
16476 2006-12-30  Chris Toshok  <toshok@ximian.com>
16477
16478         * ContainerControl.cs: make sure we throw the exception if the
16479         container control doesn't contain the control we're setting
16480         ActiveControl to.
16481
16482 2006-12-30  Chris Toshok  <toshok@ximian.com>
16483
16484         * Control.cs (SetTopLevel): fix the exception raised by
16485         SetTopLevel for child controls.
16486         (set_Anchor): call UpdateDistances when setting the anchor type.
16487         This fixes bug #80336.
16488
16489 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
16490
16491         * Theme.cs: For now, revert back to 8pt font.
16492
16493 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
16494
16495         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
16496         Fixes #80395.
16497
16498 2006-12-29  Chris Toshok  <toshok@ximian.com>
16499
16500         * Control.cs: reorder the code in OnResize to give the same event
16501         ordering as MS.
16502
16503 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16504
16505         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
16506         TileHorizontally and TileVertically.
16507         
16508 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
16509
16510         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
16511         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
16512         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
16513         Corrected copyright and email adress.
16514
16515 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
16516
16517         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
16518         of Exception in FullPath property if no TreeView is associated with
16519         the TreeNode.
16520
16521 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
16522
16523         * Theme.cs: Marked default_font as private, and initialize it in ctor
16524         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
16525         on 2.0 profile.
16526         * ThemeGtk.cs: Removed default_font intialization.
16527         * ThemeWin32Classic.cs: Removed default_font initialization.
16528
16529 2006-12-28  Chris Toshok  <toshok@ximian.com>
16530
16531         * Control.cs: fix a couple of place where we were creating handles
16532         more aggressively than we should be.  Fixes ControlRefresh unit
16533         tests.
16534
16535 2006-12-28  Chris Toshok  <toshok@ximian.com>
16536
16537         * Control.cs: contrary to what the comment said, Control.Dock does
16538         not supercede Control.Anchor - the last one you assign to decides
16539         the layout behavior.  so we need to keep track of which was the
16540         last set.  Also, fix some of the affected property arguments in
16541         PerformLayout calls, and remove an redundant parent.PerformLayout
16542         call in OnResized.
16543
16544         Add a VisibleInternal property, which returns is_visible.  We
16545         can/should get rid of all the usage of this field elsewhere.
16546
16547 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16548         
16549         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
16550         control style, not DoubleBuffer. Added UseDoubleBuffering property
16551         that indicates whether doublebuffering is enabled and supported.
16552         (comment from and code based on Gert Driesen's patch in #80324).
16553         Fixes #80324.
16554
16555 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16556         
16557         * Control.cs: Fixed a NRE.
16558
16559 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16560
16561         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
16562         for 2.0.
16563
16564 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16565
16566         * Control.cs: Rewrote double buffering, now a seperate
16567         class handles all the buffering, no Graphics is disposed of
16568         until the painting is finished (earlier implementation 
16569         would crash if the control was resized in the OnPaint, 
16570         since it would cause the double buffer to be recreated
16571         and the old one disposed), a separate Graphics is 
16572         created for every paint (MS behaviour and anyways the state
16573         of the Graphics would have to be saved and restored otherwise)
16574         
16575         * XplatUIDriver.cs: 
16576         * XplatUIX11.cs:
16577         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
16578         so that we can get the graphics for the back buffer without
16579         having to create a new one and remove the offscreen_dc parameter
16580         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
16581         
16582 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16583
16584         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
16585         Also make virtual all the key-related methods.
16586
16587         * ListViewItem.cs: Make virtual the key related methods for
16588         ListViewSubItemCollection.
16589
16590 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16591
16592         * ListView.cs:
16593         * ListViewItem.cs:
16594         * ThemeWin32Classic.cs:
16595         * Theme.cs: Initial support for Tile view in ListView,
16596         as well as the implementation of the required bits for it (Item
16597         and Subitem).
16598
16599 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
16600
16601         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
16602         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
16603         Provide useful exception messages.
16604
16605 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16606
16607         * TrackBar.cs: Remove a warning.
16608         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
16609         when used by DateTimePicker, fixes #80287. This also requires that 
16610         MonthCalendar implements it's own drawing for the yearly updown control,
16611         otherwise the Capture tracking would be too complicated. Removed the Click 
16612         and DoubleClick events (according to comments they were hiding the base class
16613         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
16614         raise these events, not that they cannot be raised. It is possible to raise 
16615         them by calling OnClick and OnDoubleClick). Added two internal fields in 
16616         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
16617         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
16618         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
16619         event, no longer needed.
16620         
16621 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
16622
16623         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
16624         true if new value differs from current value.
16625
16626 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
16627
16628         * Control.cs: ControlCollection.Count must be public. Fixed build of
16629         unit tests.
16630
16631 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
16632
16633         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
16634
16635 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
16636
16637         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
16638
16639 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
16640
16641         * Control.cs: Invalidates control including when Width and Height is 
16642         equal zero or is not visible, only Paint event must be care about 
16643         this. Fixes #79913.
16644
16645 2006-12-26  Chris Toshok  <toshok@ximian.com>
16646
16647         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
16648         more corcompare work.
16649
16650         * DataGridView.cs: fix compiler warning.
16651
16652         * ColumnHeader.cs: some corcompare work, and also take the
16653         opportunity to make the internal fields private.
16654
16655         * ListView.cs: fix the fallout from the above field change.
16656
16657 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
16658
16659         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
16660         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
16661         ToolStripTextBox.cs: Fixes to events and corcompare.
16662
16663 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
16664
16665         * ListView.cs: Call owner.OnMousexx event to propagate events from
16666         item to ListView. Fixes #80367.
16667
16668 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
16669
16670         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
16671         if value is less than one. ItemHeight should not be set to a value
16672         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
16673         Removed extra tabs.
16674
16675 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
16676
16677         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
16678         * ToolStripStatusLabel.cs: Add Spring for Moma.
16679
16680 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
16681
16682         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
16683         Fixed code formatting. Removed debug code.
16684         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
16685
16686 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
16687
16688         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
16689         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
16690         ArgumentOutOfRangeException if ColumnCount is negative. In 
16691         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
16692         less than 4 or higher than 32768.
16693         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
16694         Fixed FormatProvider to return CurrentCulture unless explicitly set.
16695         Fixed IsFormatProviderDefault to return true if FormatProvider has
16696         not been explicitly set.
16697
16698 2006-12-25  Chris Toshok  <toshok@ximian.com>
16699
16700         * Application.cs: add a couple of 2.0 events.
16701
16702 2006-12-25  Chris Toshok  <toshok@ximian.com>
16703
16704         * Control.cs: fix compiler warning.
16705
16706         * AxHost.cs: corcompare fixes.
16707
16708         * ApplicationContext.cs: corcompare fixes.
16709
16710 2006-12-25  Chris Toshok  <toshok@ximian.com>
16711
16712         * Control.cs: only update dist_right/dist_bottom if the
16713         width/height is > 0.  this fixes anchored controls being resized
16714         smaller until they disappear and then resized larger again.
16715
16716 2006-12-25  Chris Toshok  <toshok@ximian.com>
16717
16718         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
16719         since they're nothing more than X/Left and Y/Top, respectively.
16720
16721         Also, move back to a per-control Bitmap/Graphics for
16722         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
16723         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
16724         Height.
16725
16726 2006-12-25  Miguel de Icaza  <miguel@novell.com>
16727
16728         * MessageBox.cs: Implemented overload that takes a new "bool
16729         displayHelpButton" by adding a new internal field "show_help".
16730         When clicked this will raise the HelpRequested on the owner or the
16731         main form. 
16732
16733         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
16734         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
16735
16736         * ListView.cs: Add support ColumnWidthChanged and
16737         ColumnWidthChanging. 
16738
16739         Add support for ColumnReordered event.
16740         (ReorderColumn): Add NET_2_0 specific support for cancelling the
16741         reorder.
16742
16743         Very nice codebase!
16744
16745         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
16746
16747         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
16748
16749 2006-12-24  Chris Toshok  <toshok@ximian.com>
16750
16751         * GridTablesFactory.cs: 2.0 corcompare work.
16752
16753         * ToolStripContainer.cs: add "override" to
16754         ContextMenuStripChanged, and remove the local event object.
16755
16756         * ToolStripDropDown.cs: same with a couple properties.
16757
16758         * ToolStripPanel.cs: same with AutoSizeChanged event.
16759
16760         * TextBoxBase.cs: add "override" to AutoSizeChanged.
16761
16762         * Form.cs: add the remaining 2.0 events, and do some corcompare
16763         attribute work.
16764
16765         * DateTimePicker.cs: add "new" to padding.
16766
16767         * ButtonBase.cs: use Control's use_compatible_text_rendering.
16768
16769         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
16770
16771         * DataGridView.cs: PaddingChanged is overridden.
16772
16773 2006-12-24  Chris Toshok  <toshok@ximian.com>
16774
16775         * Control.cs: corecompare work here too.
16776
16777         * DataGridViewElement.cs, DataGridView.cs,
16778         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
16779         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
16780         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
16781         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
16782         work.
16783
16784 2006-12-24  Miguel de Icaza  <miguel@novell.com>
16785
16786         * Control.cs: Switched the error message on the console for a
16787         todo.  A review of the code will have to cope with this anyways
16788         (since its a large feature, it is in our radar) and it was
16789         producing too much output when running PDN.
16790
16791         * ToolStripComboBox.cs: Set the text when the SelectedIndex
16792         changes.  Applications depend on this (PDN 2.72)
16793
16794 2006-12-23  Chris Toshok  <toshok@ximian.com>
16795
16796         * TableLayoutSettings.cs: finish up the corcompare work for this
16797         class.
16798
16799 2006-12-23  Chris Toshok  <toshok@ximian.com>
16800
16801         * Control.cs: make SetImplicitBounds internal, do some futzing
16802         with LayoutEngine so that it's available in 1.1, and remove the
16803         entire duplicated code mess from PerformLayout.  Use
16804         System.Windows.Forms.Layout.DefaultLayout instead.
16805
16806         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
16807
16808 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
16809
16810         * Form.cs: Add MainMenuStrip property.
16811
16812 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
16813
16814         * Control.cs: Add ContextMenuStrip property and implementation.
16815         Fix ContextMenu implementation to show menu centered on control when
16816         activated using the keyboard instead of showing at screen (0,0).
16817
16818         * ToolStripDropDown.cs: Fix needed overload of Show ().
16819
16820 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
16821
16822         * Menu.cs: Name property added for 2.0 profile.
16823         
16824 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
16825
16826         * Menu.cs: Update information about FindMenuItem, method to be
16827         implemented soon.
16828
16829 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
16830
16831         * MenuAPI.cs: When deselect items deselect also selected subitems.
16832         
16833 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
16834
16835         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
16836         FindSubItemByCoord to found itens that is not active, also an
16837         cheking added to FindSubItemByCoord to search for items only 
16838         in visible popup windows. Fixes #80274.
16839
16840 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
16841
16842         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
16843         internal property, it be care about change ExStyle. 
16844
16845 2006-12-22  Andreia Gaita  <avidigal@novell.com>
16846
16847         * ContainerControl.cs: set activeControl for parent forms up the 
16848         tree when the new activecontrol is a container.
16849         When validating the active control, if it is a container, also
16850         raise up the validation for it's active control. Fixes #80280
16851         
16852         * Control.cs: Add internal property flag and check to prevent
16853         Focus events from getting raised when Select() is called for
16854         a ContainerControl. There are still too many focus events being
16855         raised at the moment though.
16856         Cleaned up the code a bit.
16857
16858 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16859
16860         * Control.cs: Added all missing 2.0 events.and
16861         fixed a couple of corcompare issues.
16862         * TrackBar.cs: Implemented missing 2.0 bits.
16863         * MonthCalendar.cs, 
16864         * DateTimePicker.cs, 
16865         * MdiClient.cs: Fixed some corcompare issues.
16866
16867 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
16868
16869         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
16870         SplitterPanel.cs: corecompare work.
16871
16872 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
16873
16874         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
16875         Clean up warnings for BackgroundImageChanged and PaddingChanged
16876         events now that they are implemented in Control.cs.
16877
16878 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
16879
16880         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
16881         
16882         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
16883         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
16884         of TableLayoutPanel and supporting cast.
16885
16886 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16887
16888         * XplatUIWin32.cs: 
16889         - GrabWindow now confines the mouse pointer to the confine window.
16890         - Added Win32ClipCursor and Win32GetClipCursor.
16891
16892         * Control.cs: 
16893         - Added CaptureWithConfine to be able to capture and confine 
16894         mouse pointer.
16895         
16896         * InternalWindowManager.cs: 
16897         - Call CaptureWithConfine instead of Capture if we're an
16898         MdiChild (fixes #79982).
16899
16900 2006-12-21  Chris Toshok  <toshok@ximian.com>
16901
16902         * DataGrid.cs: guard against the initial state of selection, where
16903         selection_start == -1.  make sure we only select from index >= 0.
16904         Fixes bug #80291.
16905
16906 2006-12-21  Chris Toshok  <toshok@ximian.com>
16907
16908         * Control.cs: we don't need to be so draconian with
16909         UpdateDistances, and we thusly don't need to call it before
16910         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
16911
16912 2006-12-21  Daniel Nauck  <dna@mono-project.de>
16913
16914         * ComboBox.cs,
16915         TextBox.cs: Implemented AutoComplete properties.
16916
16917 2006-12-20  Chris Toshok  <toshok@ximian.com>
16918
16919         * DataGridView*.cs: some corecompare work.
16920
16921 2006-12-20  Jackson Harper  <jackson@ximian.com>
16922
16923         * XplatUIX11.cs: We need to hide the caret when deleting it,
16924         otherwise you get carets left lying around everywhere.
16925         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
16926         prevents getting some weird half drawn caret tracers when
16927         scrolling.
16928         * TextControl.cs: Attempt to reduce the number of times we need to
16929         recreate the caret.
16930
16931 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
16932
16933         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
16934
16935 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16936
16937         * DateTimePicker.cs:
16938         - Implemented missing 2.0 bits.
16939         - Changed some default values to match MS.
16940         
16941 2006-12-20  Jackson Harper  <jackson@ximian.com>
16942
16943         * TextBoxBase.cs: When changing the font across the document we
16944         can't recalculate after changing each line, since that will cahnge
16945         the line count.
16946         - PreferredHeight is a little different than i thought.
16947         - When backspacing, move the caret before we do the actual char
16948         delete, because when that delete crosses a wrap boundary the
16949         positional information will change.
16950
16951 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16952
16953         * Control.cs: Added some missing 2.0 bits: 
16954         BackgroundImageLayout, BackgroundImageLayoutChanged, 
16955         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
16956         add IBindableComponent and IDropTarget implementation.
16957         
16958         * MonthCalendar.cs: 
16959         - Added all missing 2.0 features:
16960         BackgroundImageLayout, RightToLeftLayout, 
16961         OnHandleDestroyed, RightToLeftLayoutChanged, 
16962         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
16963         PaddingChanged.
16964         - Rewrote all the BoldDate code, it was completely broken.
16965         - Fixed all the tests (the tests can now be re-enabled, the
16966         problems were not with the tests, but with the control, it was
16967         mostly broken).
16968         
16969         * DateTimePicker.cs: Changed the location where the 
16970         MonthCalendar is shown.
16971         
16972 2006-12-19  Chris Toshok  <toshok@ximian.com>
16973
16974         * DataGridView.cs: add IDropTarget implementation.
16975
16976         * ToolStripPanel.cs: add IDropTarget implementation.
16977
16978 2006-12-19  Jackson Harper  <jackson@ximian.com>
16979
16980         * TextControl.cs: soft now means something different than what it
16981         used to mean, we want to move the caret regardless of whether or
16982         not this break was soft (would we really have wanted the caret
16983         to not move with the break in the old context?)
16984         * TreeView.cs: Make sure we factor in the vert scrollbar when
16985         calculating the horizontal scrollbar's maximum.
16986
16987 2006-12-19  Andreia Gaita  <avidigal@novell.org>
16988
16989         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
16990         check for keywords in alternate casing, close bug #80049.
16991
16992 2006-12-19  Chris Toshok  <toshok@ximian.com>
16993
16994         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
16995         methods (which all do nothing).
16996
16997         * IDropTarget.cs: add the 4 missing methods.
16998
16999 2006-12-19  Chris Toshok  <toshok@ximian.com>
17000
17001         * TableLayoutRowStyleCollection.cs: corcompare work.
17002         
17003         * TableLayoutSettings.cs: same.
17004
17005         * TableLayoutStyle.cs: same.
17006
17007         * TableLayoutColumnStyleCollection.cs: same.
17008
17009 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
17010
17011         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
17012         TableLayoutPanel I've had in my local tree for way too long.
17013
17014 2006-12-19  Miguel de Icaza  <miguel@novell.com>
17015
17016         * TableLayoutSettings.cs: Finish the public API (still needs all
17017         the logic to update on changes). 
17018
17019         * TableLayoutPanelCellPosition.cs: new file.
17020         
17021         * TableLayoutRowStyleCollection.cs,
17022         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
17023         TableLayoutSettings.cs: Track the final 2.0 table api.
17024
17025 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17026
17027         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
17028         and Image List 2.0 members for ColummnHeader.
17029         * ListView.cs: Add key-related 2.0 methods for
17030         ColumnHeaderCollection.
17031
17032 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
17033
17034         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
17035         ArgumentNullException if items argument is null. Ignore null item in
17036         arrays. Removed extra tabs.
17037
17038 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
17039
17040         * MonthCalendar.cs: Fixed InvalidCastException.
17041
17042 2006-12-19  Jackson Harper  <jackson@ximian.com>
17043
17044         * TextControl.cs: Don't increment the position here.
17045         - When calculating char positions only add in the line break size
17046         for hard line breaks.
17047
17048 2006-12-19  Andreia Gaita  <avidigal@novell.org>
17049
17050         * SendKeys.cs: Changed some things to match ms.net behaviour
17051         when parsing shifted capital letters.
17052         
17053         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
17054         Add window handle as parameter to SendInput. X11 needs the 
17055         window handle, and the handle being passed      to it in the keys 
17056         queue is the active control handle (which windows needs), not 
17057         the window handle.
17058         
17059         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
17060         to support SendKeys on X.       
17061         
17062         * X11Keyboard: Implement helper method to lookup a linux keycode
17063         given the virtual keycode. Added table of keycode-2-virtualkey
17064         values to support this.
17065
17066 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17067
17068         * ListView.cs: Add support for SelectedIndexCollection
17069         and SelectedItemCollection 2.0 methods. Implement support
17070         for ImageKey too.
17071         * ListViewItem.cs: Add support for ListViewSubItemCollection
17072         2.0 methods. Also, fix an incorrect behavior of AddRange method
17073         (it shouldn't call Clear).
17074         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
17075
17076 2006-12-19  Jackson Harper  <jackson@ximian.com>
17077
17078         * RichTextBox.cs: 
17079         * TextBoxBase.cs: New args for FormatText
17080         * TextControl.cs: Rewrote the main drawing method, this version
17081         feels a little easier to understand and debug to me.  Hopefully it
17082         does to others also
17083         - Fix FormatText to OR in the new formating values.  Added
17084         FormatSpecified param, basically this works in the same way as
17085         BoundsSpecified in Control.
17086         - Set the caret properties when the caret is positioned.
17087         - When wrapping text make sure that we calculate the width of the
17088         last character
17089         - when calculating alignments we might have wrapped down to the
17090         next line, so don't search for an individual tag, search for the
17091         end of the line
17092         - We need to invalidate the selection area when we replace the
17093         selection.
17094         
17095 2006-12-19  Daniel Nauck  <dna@mono-project.de>
17096
17097         * Application.cs: add Restart () 2.0 support
17098
17099 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
17100
17101         * MenuItem.cs: Invalidate menu item rectangle after change Enable
17102         property. Fixes #80268.
17103         
17104 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
17105
17106         * MenuAPI.cs: Dont trigger select event when closes top menu
17107         item. Fixes #80270.
17108
17109 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
17110
17111         * MenuAPI.cs: When you click on menuitem only trigger onselect
17112         event for top menu itens. Fixes #80271.
17113         
17114 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17115
17116         * MdiWindowManager.cs: Make IconicBounds depend on
17117         the bottom of MdiClient, not the top (fixes #80267)
17118         
17119 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17120
17121         * MdiClient.cs: Added missing 2.0 attribute
17122
17123 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17124
17125         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
17126         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
17127
17128 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
17129
17130         * MenuAPI.cs: Fix click when menuitem is not popup,
17131         this regression was caused by last commit (#80272).
17132
17133 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
17134
17135         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
17136         fire click event or close menu. Fixes #80272.
17137
17138 2006-12-17  Daniel Nauck  <dna@mono-project.de>
17139
17140         * ListViewHitTestInfo.cs: add
17141
17142 2006-12-17  Daniel Nauck  <dna@mono-project.de>
17143
17144         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
17145         * FlatButtonAppearance.cs: add
17146         * DockingAttribute.cs: add
17147
17148 2006-12-17  Chris Toshok  <toshok@ximian.com>
17149
17150         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
17151         and rebind our columns when it does - this way, if you make
17152         changes to the DataTable (or set the Table attribute on a DataView
17153         after setting it as the DataGrid's DataSource, the changes are
17154         made visible.)  Fixes bug #80107.
17155
17156 2006-12-17  Daniel Nauck  <dna@mono-project.de>
17157
17158         * ListViewGroup.cs: add internal Location property for layouting.
17159         * Theme.cs: add abstract ListViewGroupHeight function.
17160         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
17161
17162 2006-12-16  Andreia Gaita  <avidigal@novell.com>
17163
17164         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
17165         Added reset of selected index to 0 when adding first tab page.
17166         Fixes #80264
17167         
17168         * NumericUpDown.cs: Fix NET_2_0 check
17169
17170 2006-12-16  Daniel Nauck  <dna@mono-project.de>
17171
17172         * ListViewGroup.cs: fixed DefaultValueAttribute value
17173
17174 2006-12-16  Daniel Nauck  <dna@mono-project.de>
17175
17176         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
17177
17178 2006-12-15  Miguel de Icaza  <miguel@novell.com>
17179
17180         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
17181         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
17182         ScrollableControl.cs: Add a handful of methods that are
17183         overwritten in 2.0 
17184
17185 2006-12-15  Chris Toshok  <toshok@ximian.com>
17186
17187         * XplatUIWin32.cs: initial implementation of the Reversible
17188         drawing functions.  there are some problems.  DrawReversibleFrame
17189         doesn't seem to work at all for Dashed FrameStyle, and in the
17190         Thick case there are drawing errors at the corners (we probably
17191         need to bind Rectangle instead of doing moveto/lineto's.)
17192
17193 2006-12-16  Andreia Gaita  <avidigal@novell.com>
17194         
17195         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
17196         to send blocks of key messages. Send accumulates keys to send with Flush, 
17197         while SendWait sends all keys immediately.
17198                 
17199         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
17200         XplatUIX11.cs,  XplatUIX11-new.cs:
17201         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
17202         to Win32 SendInput.
17203         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
17204         
17205         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
17206         testing for ms.net on this class is very tricky, as the tests run too fast 
17207         to allow the hook to release, essentially freezing the keyboard and the 
17208         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
17209         category :p
17210
17211 2006-12-16  Daniel Nauck  <dna@mono-project.de>
17212
17213         * Padding.cs: fixed serialization compability to MS ("_var" field names),
17214                         added missing attributes.
17215  
17216 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17217
17218         * ListViewGroup.cs: Added missing attributes.
17219         * ListViewGroupCollection.cs: Added missing attributes.
17220
17221 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17222
17223         * ListViewItem.cs: fixed ListViewSubItem text property.
17224
17225 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17226         
17227         * Control.cs: Added missing 2.0 attributes
17228         
17229 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17230         
17231         * MdiClient.cs: Added missing 2.0 attribute.
17232         * MonthCalendar.cs: Added some missing 2.0 attributes 
17233         and properties.
17234         
17235 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17236
17237         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
17238
17239 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
17240
17241         * MainMenu.cs: Add the new 2.0 constructor to help out people
17242         using the MainMenu in VS2005.
17243
17244 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17245         
17246         * MdiChildContext.cs: Removed it, no longer used.
17247         * MdiClient.cs: Added missing 2.0 attributes.
17248         
17249 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17250         
17251         * InternalWindowManager.cs: Fix a NullRef with previous 
17252         changes for toolwindows.
17253         
17254 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17255
17256         * Control.cs: 
17257         - Added AfterTopMostControl to allow for certain controls 
17258         to always stay on top when normal controls are brought to 
17259         front.
17260         
17261         * XplatUIWin32.cs: 
17262         - (DrawInversibleRectangle): Get window rectangle from Win32 
17263         in stead of from control, since Win32 doesn't calculate
17264         screen coords correctly from control's Location if it 
17265         have docked siblings.
17266         
17267         * MdiWindowManager.cs:
17268         - Correct the control menu popup location when clicked on
17269         the maximized form icon. (fixes #80223.1)
17270         - Don't show moving rectangle if mouse hasn't moved from
17271         the original clicked point.
17272         - Removed FormGotFocus handler (not used).
17273         - Calculate the control buttons location from the main
17274         window's size and not client size (fixes #79770).
17275         - Form is now closed when the form icon is double-clicked
17276         (fixes #79775). 
17277         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
17278         
17279         * InternalWindowManager.cs:
17280         - Moved some MDI-only methods to MdiWindowManager.
17281         - Removed unused properties and methods.
17282         - Unified method naming for methods handling wm messages.
17283         - Moved all message handling to seperate methods for
17284         each message.
17285         
17286         * ThemeWin32Classic.cs:
17287         - DrawManagedWindowDecorations now draws the title bar 
17288         with a gradient brush.
17289         - Add a CPDrawButtonInternal that allows us to specify
17290         light, normal and dark colors for the buttons (control 
17291         buttons for MDI children were drawn with the same light
17292         color as the background, therefore loosing the 3D effect).
17293         
17294         * SizeGrip.cs:
17295         - Add a CapturedControl property that is used to 
17296         determine the control to resize (defaults to parent). 
17297         Needed for MdiClient, since its SizeGrip's parent is
17298         MdiClient, but the control to resize is the main form.
17299         
17300         * MdiClient.cs:
17301         - Set SizeGrip's CapturedControl to the main form in order
17302         to resize the main form and not the MdiClient.
17303         - Override AfterTopMostControl to leave the scrollbars 
17304         always on top.
17305
17306 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17307
17308         * ListView.cs: fixed ListViewItemCollection AddRange and
17309                         implemented ListViewItemCollection AddRange 2.0 support.
17310
17311 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17312
17313         * ListViewGroup.cs: Add.
17314         * ListViewGroupCollection.cs: Add
17315         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
17316         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
17317                                 stub for ImageKey 2.0 support.
17318
17319 2006-12-14  Mike Kestner  <mkestner@novell.com>
17320
17321         * ListView.cs: add text padding to the autocalculation for columns
17322         of width -2.  Fixes #80207.
17323  
17324 2006-12-14  Mike Kestner  <mkestner@novell.com>
17325
17326         * ListView.cs: add some index guarding for partial row navigation 
17327         logic.  Fixes #80250.
17328
17329 2006-12-14  Mike Kestner  <mkestner@novell.com>
17330
17331         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
17332         are added or inserted to the collection.  Fixes #81099.
17333
17334 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
17335
17336         * MenuAPI.cs: Closes menu when right click out side of popup
17337         it fix problem in ContextMenu and MainMenu. Fixes #80252.
17338
17339 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17340
17341         * ListViewItem.cs: Fix dumb error.
17342
17343         * ListView.cs: Add Find and ContainsKey methods in 
17344         ListViewItemCollection, and also return true for IsReadOnly
17345         and IsFixedSize (changes for 2.0). 
17346
17347 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
17348
17349         * Control.cs: Allow Region to be set to null.
17350
17351 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17352
17353         * MdiWindowManager.cs: Remove unused (commented out) code.
17354         * Form.cs: When the MdiChild is maximized, the form needs 
17355         WM_NCMOUSELEAVE, so request it.
17356         * InternalWindowManager.cs: 
17357         - Added tooltips to control buttons.
17358         - Removed duplicated control button handling code.
17359         - Removed unused (commented out) code.
17360         
17361 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
17362
17363         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
17364         was used because we must set cursor without trigger ChangeCursor event
17365         and without change Cursor control property. Fixes #79963.
17366
17367 2006-12-12  Andreia Gaita  <avidigal@novell.com>
17368         
17369         * Control.cs: Check if Region setter value is null, and ignore
17370
17371 2006-12-12  Jackson Harper  <jackson@ximian.com>
17372
17373         * TextControl.cs: We were almost always drawing one more line then
17374         needed, since the GetLineByPixel will return the last line found
17375         at that pixel. In most cases though, we were invalidating up to
17376         the junction between two lines.
17377         - Improve debug code.
17378
17379 2006-12-12  Chris Toshok  <toshok@ximian.com>
17380
17381         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
17382         and FillReversibleRectangle.
17383
17384         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
17385         and FillReversibleRectangle.
17386
17387         * XplatUIWin32.cs: add stubs which do nothing for
17388         DrawReversibleFrame, DrawReversibleLine, and
17389         FillReversibleRectangle.
17390
17391         * XplatUIOSX.cs: add stubs which raise NIE for
17392         DrawReversibleFrame, DrawReversibleLine, and
17393         FillReversibleRectangle.
17394
17395         * XplatUIX11.cs: add working implementation for
17396         DrawReversibleFrame, DrawReversibleLine, and
17397         FillReversibleRectangle.
17398         
17399         * ControlPaint.cs: implement DrawReversibleFrame,
17400         DrawReversibleLine, and FillReversibleRectangle, by calling into
17401         the appropriate XplatUI method.
17402
17403 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17404
17405         * Form.cs: Make MdiClient have the focus even if it's
17406         not selectable, since it should receive WM_KEY* and WM_MOUSE 
17407         messages. Fixes #79907.
17408         
17409 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17410
17411         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
17412         queried after the window is created.
17413         
17414         * XplatUIX11.cs: Added SendParentNotify to implement 
17415         WM_PARENTNOTIFY logic. Fixes #79965.
17416         
17417         * Control.cs: Added MakeParam.
17418         
17419 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17420
17421         * MdiClient.cs: Resume Layout before setting window
17422         states (fixes #80201).
17423
17424 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17425
17426         * MenuAPI.cs: Deselect a menu item after performing
17427         the click (fixes #80197).
17428
17429 2006-12-11  Jackson Harper  <jackson@ximian.com>
17430
17431         * TextBoxBase.cs: We need to cap this value, since Maximum -
17432         ViewPortHeight can be less than zero.
17433         - Only do selection with the left mouse button.
17434         * TextBox.cs: Don't tell the world that we have a context menu.
17435         * Control.cs: New method so that we can control whether or not the
17436         context menu is visible outside MWF.
17437
17438 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
17439
17440         * ToolBarButton.cs: Fix text positon. 
17441
17442 2006-12-11  Miguel de Icaza  <miguel@novell.com>
17443
17444         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
17445
17446         * Control.cs (DoubleBuffered): Add implementation.
17447
17448         * Application.cs (OpenForms): Add.
17449
17450 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
17451
17452         * Form.cs: Use opacity instead of Opactiy to determine if we need
17453         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
17454
17455 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
17456
17457         * Control.cs: Fix NRE if Control.Site was set to null.
17458
17459 2006-12-11  Chris Toshok  <toshok@ximian.com>
17460
17461         * Control.cs: ControlCollection.Remove should return if the arg is
17462         null, and ControlCollection.SetChildIndex should raise a ANE.
17463
17464 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
17465
17466         * Control.cs: Verify value set for Dock property. Code formatting
17467         updates.
17468
17469 2006-12-11  Jackson Harper  <jackson@ximian.com>
17470
17471         * TextControl.cs: Draw the caret and the selection when a flag is
17472         set on the owner.
17473         * TextBoxBase.cs: We want to draw the caret and the selection for
17474         TextBox but not for TextBoxBase.
17475         - If the window is resized and scrolling is no longer needed (the
17476         whole doc is visible) set the scroll position to zero.
17477         - The default SelectWord (the one TextBox uses) should move the
17478         caret to the end of the word.
17479         - SelectAll moves the caret to the end of the selection.
17480         * TextBox.cs: We don't selectall on focus, we just do it when the
17481         control is created.
17482         
17483 2006-12-11  Mike Kestner  <mkestner@novell.com>
17484
17485         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
17486
17487 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17488
17489         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
17490         2.0 support.
17491         * ListViewItem.cs: Add Name 2.0 property.
17492
17493 2006-12-11  Andreia Gaita  <avidigal@novell.com>
17494
17495         * TabControl.cs: Set visibility on selected or default tab 
17496         when tabcontrol handle is created, so that it's contents
17497         actually show up (duh). Fixes #80193
17498         Don't redraw the control if there is no handle created, as
17499         the selected index might be completely invalid. Added some tests
17500         to check for this.
17501
17502 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
17503
17504         * ToolBar.cs: Uses maximun width and height of all buttons as 
17505         button rectangle when ButtonSize specified, it looks strange but
17506         is what happens in Win32. Fixes #80189.
17507
17508 2006-12-11  Jackson Harper  <jackson@ximian.com>
17509
17510         * TextControl.cs: Need to track undo levels ourself, since
17511         compound actions will mess them up.
17512
17513 2006-12-10  Andreia Gaita  <avidigal@novell.com>
17514
17515         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
17516         SelectedIndex value is changed (even if it's not valid).
17517         Reset SelectedIndex to 0 when the handle is created and if
17518         the current index is invalid.
17519         Fixes SelectdeIndex unit tests and #80128
17520
17521 2006-12-08  Chris Toshok  <toshok@ximian.com>
17522
17523         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
17524         calls EndEdit, it needs to be called before we set current_cell to
17525         its new value.  Otherwise, we end up committing the value in the
17526         textbox to the new cell as well.  Fixes bug #80160.
17527
17528 2006-12-08  Chris Toshok  <toshok@ximian.com>
17529
17530         * Form.cs (set_CancelButton): if the button's DialogResult is
17531         None, set it to Cancel.  Fixes bug 80180.
17532
17533 2006-12-08  Jackson Harper  <jackson@ximian.com>
17534
17535         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
17536         to watch ourselves when setting the canvas size and setting the
17537         scrollbar values.
17538
17539 2006-12-08  Chris Toshok  <toshok@ximian.com>
17540
17541         * DataGrid.cs: comment out the two MakeTransparent calls for the
17542         time being so people using trunk (and not 1.2.2) on windows can
17543         actually use the datagrid.  This deals with bug #80151.
17544
17545 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
17546
17547         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
17548         Graphics.DrawImage (image, int, int, int, int) overload instead
17549         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
17550         the dpi difference and was blurring images it drew.
17551         [Fixes bug #79960]
17552
17553 2006-12-08  Chris Toshok  <toshok@ximian.com>
17554
17555         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
17556         rowcnt is 0 (such as with an empty datasource), and make sure we
17557         initialize not_usedarea.Y to cells.Y, so we don't draw over the
17558         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
17559
17560 2006-12-08  Chris Toshok  <toshok@ximian.com>
17561
17562         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
17563         grid.
17564
17565 2006-12-08  Chris Toshok  <toshok@ximian.com>
17566
17567         [ Fixes bug #80167 ]
17568         
17569         * ThemeWin32Classic.cs: don't draw the image if the button's flat
17570         style is FlatStyle.System.
17571
17572         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
17573         ButtonBase.flat_style private, and switch uses of it to the public
17574         property.
17575         
17576 2006-12-08  Chris Toshok  <toshok@ximian.com>
17577
17578         [ Fixes bug #80121 ]
17579         
17580         * ThemeWin32Classic.cs: center the caption text in the datagrid
17581         when we draw it.
17582
17583         * DataGrid.cs: lessen the amount we add to the caption height from
17584         6 to 2.  6 was making it huge.
17585
17586 2006-12-08  Andreia Gaita  <avidigal@novell.com>
17587
17588         * UpDownBase: Handle MouseWheel call directly instead of capturing
17589         the inner textbox's OnMouseWheel. Fixes #80166
17590
17591 2006-12-08  Jackson Harper  <jackson@ximian.com>
17592
17593         * TextControl.cs: We need to invalidate the textbox when we empty
17594         it (how had this not been discovered before?)
17595
17596 2006-12-08  Jackson Harper  <jackson@ximian.com>
17597
17598         * TextBoxBase.cs: Reworked the mouse down code so I could get it
17599         to behave like MS, we now ignore the eventargs.Click and just
17600         track state ourself, which we were already doing anyways.
17601         - Constrain the double click handler to the double click size.
17602         
17603 2006-12-08  Chris Toshok  <toshok@ximian.com>
17604
17605         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
17606         direction if that scrollbar isn't shown.  fixes bug #80158.
17607
17608 2006-12-08  Andreia Gaita  <avidigal@novell.com>
17609
17610         * NumericUpDown.cs: Update value on getter. Fixes #79950
17611
17612 2006-12-08  Chris Toshok  <toshok@ximian.com>
17613
17614         * MenuItem.cs: add back in the event cloning code.  I didn't know
17615         how to do it in the face of the EventHandlerList work i'd done
17616         last week.  Fixes bug #80183.
17617
17618 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
17619
17620         * Control.cs: Add an invalidate to the BackgroundImage setter.
17621         [Fixes 80184]
17622
17623 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
17624
17625         * ToolStrip*: Add some small properties reported by MoMA, fix event
17626         firing and default properties based off of unit tests, and add some
17627         attributes based off of the class status page.
17628
17629 2006-12-07  Jackson Harper  <jackson@ximian.com>
17630
17631         * TextBoxBase.cs: Take HideSelection into account when determining
17632         whether or not to show the selection.
17633         * RichTextBox.cs: After inserting the RTF into the document move
17634         the cursor to the beginning of the document.
17635
17636 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
17637
17638         * Control.cs: Remove static ArrayList "controls" which maintained
17639         a reference to every control created.
17640         * Application.cs: Create a static FormCollection to maintain a reference
17641         to every form created.  Use it in places that formerly enumerated through
17642         the controls one looking for forms.
17643         * Form.cs: Add and remove self from above FormCollection.
17644
17645 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
17646
17647         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
17648           not libgdk (though it makes me wonder why I didn't have any
17649           problems)
17650
17651 2006-12-07  Chris Toshok  <toshok@ximian.com>
17652
17653         [ you had to know this was coming after that last commit...]
17654         
17655         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
17656         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
17657         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
17658         XCopyArea).
17659
17660 2006-12-07  Chris Toshok  <toshok@ximian.com>
17661
17662         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
17663         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
17664         all the behavior we need for double buffering.
17665
17666         * XplatUIDriver.cs: implement the 3 double buffer methods using a
17667         client side Bitmap, just like the old Control-based double buffer
17668         code did.  The methods are virtual, so each XplatUI driver
17669         subclass can replace the implementation to use a faster, platform
17670         specific approach.
17671
17672         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
17673         double buffer code, and clean things up a bit in the process.
17674
17675 2006-12-06  Chris Toshok  <toshok@ximian.com>
17676
17677         * Control.cs: reindent WndProc.
17678
17679 2006-12-06  Chris Toshok  <toshok@ximian.com>
17680
17681         [ I wanna be like BenM when I grow up ]
17682         
17683         * Hwnd.cs: create a single static Graphics object on the static
17684         Bitmap we create.  use this for our text measurements.
17685
17686         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
17687         This was causing us to allocate a backbuffer for every control,
17688         even when it wasn't flagged as double buffered.  Instead use the
17689         single graphics instance.  This might have implications for
17690         multithreaded applications.  If we run into problems we can switch
17691         to creating 1 Graphics per control, on the static Hwnd bitmap.
17692
17693         this change nets us a 7M savings in private dirty mappings when
17694         running FormsTest.exe.
17695
17696 2006-12-06  Chris Toshok  <toshok@ximian.com>
17697
17698         * ListView.cs: the BackgroundImage override is just to set
17699         attributes.  chain up to base.BackgroundImage.
17700
17701         * RichTextBox.cs: same.
17702
17703         * ToolBar.cs: same, but we need to also redraw the toolbar when it
17704         changes, so instead a handler for BackgroundImageChanged.
17705         
17706         * Control.cs: make background_image private.
17707
17708 2006-12-06  Chris Toshok  <toshok@ximian.com>
17709
17710         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
17711         sure we even need this assignment, but roll with it for now.
17712
17713         * Control.cs: make the cursor field private.
17714
17715 2006-12-06  Chris Toshok  <toshok@ximian.com>
17716
17717         * Form.cs: we don't need to explicitly set ImeMode to
17718         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
17719         behavior in the face of ImeMode.Inherit.
17720
17721         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
17722         change the ctor's assignment to use ImeMode instead of ime_mode.
17723
17724         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
17725         ImeModeInherit.  Only check for the parent's imemode (and return
17726         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
17727         This fixes the button unit test, which sets both ImeMode and
17728         DefaultImeMode to ImeMode.Disable.
17729
17730         also make the ime_mode field private.
17731
17732 2006-12-06  Chris Toshok  <toshok@ximian.com>
17733
17734         * Control.cs: make control_style private.
17735
17736         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
17737         setting the styles to true, then setting them to false instead of
17738         reverting to their previous values.
17739
17740         also, call SetStyle on the scrollbars instead of using
17741         control_style directly.
17742
17743 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
17744
17745         * FormCollection.cs: Implement. [2.0]
17746
17747 2006-12-06  Chris Toshok  <toshok@ximian.com>
17748
17749         * Control.cs: make tab_stop private.
17750
17751         * Label.cs: set TabStop, not tab_stop.  reformat some event
17752         add/remove methods to make them more compact.
17753
17754 2006-12-06  Chris Toshok  <toshok@ximian.com>
17755
17756         * RadioButton.cs: fix TabStop handling.
17757
17758 2006-12-06  Chris Toshok  <toshok@ximian.com>
17759
17760         * TextBox.cs: remove the explicit assignments to has_focus.
17761         Control does that.
17762
17763         * ButtonBase.cs: remove the assignment to has_focus.  Control will
17764         manage that.
17765         
17766 2006-12-06  Chris Toshok  <toshok@ximian.com>
17767
17768         * ButtonBase.cs: remove all uses of is_enabled from this code.
17769         it's always true when any of the code containing the checks is
17770         executed.
17771
17772 2006-12-06  Chris Toshok  <toshok@ximian.com>
17773
17774         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
17775         with different semantics (some are present in both 1.1 and 2.0
17776         profiles) so that we match MS's behavior in our unit tests.
17777
17778 2006-12-06  Jackson Harper  <jackson@ximian.com>
17779
17780         * TextControl.cs: Make this operation undoable.
17781         * TextBoxBase.cs: Factor the border width into the preferred
17782         height.
17783         - implement Modified as per the spec.
17784
17785 2006-12-06  Chris Toshok  <toshok@ximian.com>
17786
17787         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
17788
17789 2006-12-06  Chris Toshok  <toshok@ximian.com>
17790
17791         * Control.cs: make right_to_left and context_menu fields private.
17792
17793 2006-12-06  Chris Toshok  <toshok@ximian.com>
17794
17795         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
17796         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
17797         Control.child_controls private.  switch all uses over to
17798         Control.Controls.
17799
17800 2006-12-06  Chris Toshok  <toshok@ximian.com>
17801
17802         * System.Windows.Forms/GroupBox.cs,
17803         System.Windows.Forms/AccessibleObject.cs,
17804         System.Windows.Forms/ErrorProvider.cs,
17805         System.Windows.Forms/Control.cs,
17806         System.Windows.Forms/UpDownBase.cs,
17807         System.Windows.Forms/ScrollBar.cs,
17808         System.Windows.Forms/DateTimePicker.cs,
17809         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
17810         System.Windows.Forms/ToolTip.cs,
17811         System.Windows.Forms/RadioButton.cs,
17812         System.Windows.Forms/LinkLabel.cs,
17813         System.Windows.Forms/Splitter.cs,
17814         System.Windows.Forms/TextBoxBase.cs,
17815         System.Windows.Forms/ToolStripTextBox.cs,
17816         System.Windows.Forms/ContainerControl.cs,
17817         System.Windows.Forms/ThemeWin32Classic.cs,
17818         System.Windows.Forms/SizeGrip.cs,
17819         System.Windows.Forms/ToolStripDropDown.cs,
17820         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
17821         private.  switch all uses over to Control.Parent.
17822
17823 2006-12-06  Chris Toshok  <toshok@ximian.com>
17824
17825         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
17826         Control does this before calling emitting these events.
17827
17828         * TabControl.cs: same.
17829
17830         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
17831         Control.client_rect.
17832
17833         * ButtonBase.cs: use the ClientSize property instead of the
17834         client_size field.
17835
17836         * ScrollableControl.cs: same.
17837
17838         * Control.cs: another pass at making properties private.  also,
17839         move the initialization of tab_stop to the ctor.
17840
17841 2006-12-05  Andreia Gaita <avidigal@novell.com>
17842
17843         * TabControl.cs: Let the selected index be set freely if the 
17844         control handle is not yet created.
17845
17846 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
17847
17848         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
17849         internal until I can rewrite DefaultLayout.
17850         * ToolStrip.cs: Fix build error and some general cleaning.
17851         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
17852         Fix build errors caused by making some of Control's fields private.
17853
17854 2006-12-05  Jackson Harper  <jackson@ximian.com>
17855
17856         * TextControl.cs: Redo Insert a little so that it use IndexOf
17857         instead of Split, this prevents it from messing up on things like
17858         \n\n\n. Also more effecient since the split array doesn't need to
17859         be created.
17860         * TextBoxBase.cs: AppendText doesnt handle multiline and non
17861         multiline text differently, this is the first of many fixes that
17862         will make multiline/non-multiline the same thing as far as the
17863         TextBoxBase is concerned.
17864         - Don't split the text and insert lines, this can lose some line
17865         endings (like is the last line a soft or hard break). Instead use
17866         the new Insert.
17867         - Fix an off by one when combining all the lines in the Text
17868         getter.
17869         - Remove separate multiline handling from the Text getter/setter.
17870
17871 2006-12-05  Chris Toshok  <toshok@ximian.com>
17872
17873         * ButtonBase.cs: a few changes:
17874
17875         - don't reinitialize internal Control fields in the ctor when they
17876         have the same values as Control sets them.
17877
17878         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
17879         this before calling those methods.
17880
17881         - we don't need to call Refresh for anything.  use Invalidate
17882         instead.
17883
17884         - OnEnabledChanged doesn't need to redraw at all - Control.cs
17885         calls Refresh in its OnEnabledChanged.
17886         
17887         - several of the events we were registered for in the ctor to
17888         redraw ourselves already include calls to Invalidate in the
17889         property setters that raise the events.  remove the extra
17890         invalidation.
17891
17892         - reformat a switch statement that was 83274658 columns wide.
17893         
17894 2006-12-05  Mike Kestner  <mkestner@novell.com>
17895
17896         * ComboBox.cs: fix a unit test regression from a TextBox
17897         SelectionLength return of -1 when there's no selection.  
17898
17899 2006-12-05  Chris Toshok  <toshok@ximian.com>
17900
17901         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
17902         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
17903         cleaning up some of the internal Control fields being used by
17904         subclasses.
17905
17906 2006-12-05  Mike Kestner  <mkestner@novell.com>
17907
17908         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
17909         listbox after AddImplicit calls since it defaults to hidden. Add a 
17910         hack to preserve requested heights across DropDownStyle changes.
17911
17912 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
17913
17914         * PropertyGrid.cs: Hide FindFirstItem method from public API.
17915
17916 2006-12-05  Chris Toshok  <toshok@ximian.com>
17917
17918         * DataGridView.cs: fix compiler warnings.
17919
17920         * PrintControllerWithStatusDialog.cs: same.
17921
17922         * ToolBar.cs: same.
17923
17924         * FolderBrowserDialog.cs: same.
17925
17926         * Splitter.cs: same.
17927
17928         * DataGridViewComboBoxCell.cs: same.
17929
17930         * XplatUIWin32.cs: same.
17931
17932         * PictureBox.cs: same.
17933
17934         * Win32DnD.cs: same.
17935
17936         * PageSetupDialog.cs: same.
17937
17938         * FileDialog.cs: same.
17939
17940         * PrintDialog.cs: same.
17941
17942         * DataGridTextBoxColumn.cs: same.
17943
17944         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
17945
17946 2006-12-05  Chris Toshok  <toshok@ximian.com>
17947
17948         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
17949         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
17950         System.ComponentModel.EventHandlerList work.
17951
17952 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
17953
17954         * DrawTreeNodeEventArgs.cs: Added.
17955
17956 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17957         
17958         * InternalWindowManager.cs: Remove an unused field.
17959         
17960 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17961
17962         * InternalWindowManager.cs:
17963         - Save the point where the title bar is clicked.
17964         
17965         * MdiWindowManager.cs:
17966         - Only allow moving of the window as long as the 
17967         clicked point on the title bar does not get out of
17968         MdiClient's rectangle. Fixes #79982.
17969         
17970         * MdiClient.cs:
17971         - Added Horizontal/VerticalScrollbarVisible.
17972         - Simplified the scrollbar sizing algorithm.
17973         - Cache the difference in scrolled value in
17974         H/VBarValueChanged and move the calculation out
17975         of the for loop.
17976
17977 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17978
17979         * Control.cs: Make the Console.WriteLine in WndProc 
17980         write more info.
17981
17982 2006-12-05  Chris Toshok  <toshok@ximian.com>
17983
17984         * ToolStripManager.cs, ToolStripButton.cs,
17985         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
17986         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
17987         ToolStripSplitButton.cs, ToolStripSeparator.cs,
17988         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
17989         ToolStripProgressBar.cs, ToolStripContainer.cs,
17990         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
17991         to using System.ComponentModel.EventHandlerList.
17992
17993 2006-12-04  Chris Toshok  <toshok@ximian.com>
17994
17995         * LinkLabel.cs: fix up compiler warnings.
17996
17997         * TableLayoutSettings.cs: same.
17998
17999         * TreeView.cs: same.
18000
18001         * ToolBar.cs: same.
18002
18003         * TabControl.cs: same.
18004
18005         * RichTextBox.cs: same.
18006
18007         * ListViewItem.cs: same.
18008
18009         * PropertyGrid.cs: same.
18010
18011         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
18012
18013         * ToolTip.cs same.
18014
18015         * TextRenderer.cs: fix up compiler warnings.
18016
18017         * Label.cs: same.
18018
18019         * Form.cs: corcompare fixes.
18020
18021         * PictureBox.cs: fix up compiler warnings.
18022
18023         * ImageListStreamer.cs: same.
18024
18025         * TrackBar.cs: corcompare fix.
18026
18027         * Control.cs: fix up compiler warnings.
18028
18029         * SplitterPanel.cs: same.
18030
18031         * NumericTextBox.cs: same.
18032
18033         * ImageList.cs: same.
18034
18035         * StatusStrip.cs: same.
18036
18037         * ProgressBar.cs: corcompare fix.
18038
18039         * ToolStripButton.cs: fix up compiler warnings.
18040
18041         * ToolStripStatusLabel.cs: same.
18042
18043         * ToolStripSplitButton.cs: same.
18044
18045         * ToolStripSeparator.cs: same.
18046
18047         * ToolStripProgressBar.cs: same.
18048
18049         * ToolStripDropDownMenu.cs: same
18050
18051         * ToolStripDropDown.cs: same.
18052
18053         * ToolStripDropDownButton.cs: same.
18054
18055         * ToolStrip.cs: same.
18056
18057         * ToolStripControlHost.cs: same.
18058
18059         * ToolStripContentPanel.cs: same.
18060
18061         * ToolStripDropDown.cs: same.
18062
18063         * ToolStripContainer.cs: same.
18064
18065         * ToolStripPanel.cs: same, and add "new" where we need it to work
18066         with the new ArrangedElementCollection.
18067
18068         * ToolStripItemCollection.cs: add "new" where we need it to work
18069         with the new ArrangedElementCollection.
18070
18071 2006-12-04  Andreia Gaita <avidigal@novell.com>
18072
18073         * TabControl.cs: Fix default tab selection to after TabControl
18074         gets focus and not before. Fixes #80128
18075
18076 2006-12-04  Chris Toshok  <toshok@ximian.com>
18077
18078         * DataGridTableStyle.cs: remove the gross calling of
18079         datagrid.Refresh from here.  It's a broken idea and it doesn't
18080         work anyway.
18081
18082         * DataGrid.cs: instead, just register/unregister from the
18083         DataGridTableStyle events in CurrentTableStyle.  we play it
18084         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
18085         even though some would most likely not require it.  Fixes bug
18086         #80115 (and one portion of #80117 as a side effect).
18087
18088 2006-12-04  Chris Toshok  <toshok@ximian.com>
18089
18090         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
18091         so the textbox (if any) goes away.  Fixes bug #80117.
18092
18093 2006-12-04  Chris Toshok  <toshok@ximian.com>
18094
18095         * DataGridColumnStyle.cs: set the column's readonly property
18096         initially based on the property descriptor's IsReadOnly.  Fixes
18097         bug #80044.
18098
18099 2006-12-04  Chris Toshok  <toshok@ximian.com>
18100
18101         * ComboBox.cs: wrap the dropdown style changing work in
18102         SuspendLayout/ResumeLayout.  Fixes bug #79968.
18103
18104 2006-12-04  Jackson Harper  <jackson@ximian.com>
18105
18106         * TextBoxBase.cs: Fix off by one, since these are one-based.
18107         * TextBox.cs: Select all the text when we get focus.  The TextBox
18108         does this but the RTB does not.
18109
18110 2006-12-04  Chris Toshok  <toshok@ximian.com>
18111
18112         * DataGridTextBoxColumn.cs: remove some spew.
18113
18114         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
18115         but some part of me is saying "it shouldn't be here.."  At any
18116         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
18117         setting the value.
18118
18119 2006-12-04  Chris Toshok  <toshok@ximian.com>
18120
18121         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
18122         to reassign the propertydescriptor.
18123
18124 2006-12-04  Jackson Harper  <jackson@ximian.com>
18125
18126         * TextBoxBase.cs:
18127         * TextControl.cs: Remove some unused variables.  Maybe this will
18128         patch things up between mike and I.
18129         - don't split lines less then one char wide, if the viewport is
18130         that small text won't be visible anyways.
18131         
18132 2006-12-04  Jackson Harper  <jackson@ximian.com>
18133
18134         * TextBoxBase.cs: Default selection length is -1, need to do some
18135         more testing on windows to see when this is used for the property.
18136         - Redid the Lines [] property to that we properly remove soft line
18137         breaks
18138         - added support for preserving carriage returns
18139         -  CanUndo is not a variable like 'is undo enabled' it just returns
18140         true if there is undo operations available.
18141         - AppendText doesn't need to grab the last tag itself anymore,
18142         this happens automatically when we move the cursor.
18143         * TextControl.cs: Add CompoundActions to the undo class. This
18144         allows combining the other operations into one big option.  ie a
18145         paste will combine { delete old, insert new, move cursor }
18146         - Add InsertString undo operation
18147         - New method for deleting multiline text
18148         - Add carriage returns to lines. So we can preserve carriage
18149         returns when text is 'roundtripped'
18150
18151 2006-12-04  Chris Toshok  <toshok@ximian.com>
18152
18153         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
18154         minimum 0.  Fixes the scrollbar exception in bug #80136.
18155
18156 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18157
18158         * MdiClient.cs: 
18159         * MdiWindowManager: Removed unused fields and methods.
18160         
18161 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18162         
18163         * StatusBar.cs: Update all panels when a AutoSize=Contents
18164         panel needs updating.
18165         
18166         * StatusBarPanel.cs: Remove twidth and only use initialize.
18167         Fixes #80031.
18168                 
18169 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18170
18171         * Form.cs: When a form's MdiParent is set add it directly
18172         on top of the z-order in stead of relying on MdiClient's
18173         ActivateChild to do it. Fixes #80135.
18174         
18175         * MdiClient.cs: 
18176         - Remove original_order, mdi_child_list is already doing
18177         the same thing.
18178         - Create mdi_child_list on construction in
18179         stead of first use (avoids a few null checks).
18180
18181         * MenuItem.cs: Use an already existing list of mdi children
18182         to get the correct order of children and remove the other
18183         redundant list.
18184
18185 2006-12-04  Chris Toshok  <toshok@ximian.com>
18186
18187         * PropertyGridView.cs: cached_splitter_location is only used in
18188         !DOUBLEBUFFER code.
18189
18190         * PropertyGrid.cs: implement the ComComponentNameChanged event
18191         using Events, hoping that would fix the warning.  Looks like a
18192         compiler bug instead (#80144).
18193
18194         * PropertyManager.cs: remove unused method.
18195
18196 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
18197
18198         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
18199         include parentesis to fix expression evaluation. Fixes #79634.
18200
18201 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
18202         
18203         * MenuAPI.cs:
18204         - Changes to fix behavior in Menu control, some reported in #80097
18205         and other detected during behavior refactory like a select event
18206         problems.
18207         - Remove unneded "if's" conditions.
18208         - Created an internal to flag when popup is active in control, we need 
18209         it because in .NET you can have menu active but without popup active
18210         when you active menu using popup without visible items.
18211         - Mimic win32 behavior for Select and Popup events.  
18212         - Dont open popup menu when you dont have visible subitems.
18213         - Do nothing when click on disabled menu item.
18214         - Some small changes to follow the coding style guidelines.
18215         - Unselect menu only when another control gives focus. Fixes #80097.
18216         - Remove unused code.
18217         
18218         * MenuItem.cs: internal VisibleItems method to check if menu
18219         theres visible subitems, it will be usefull to fix some 
18220         behavior in Menu control.
18221         
18222 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
18223         
18224         * Timer.cs: Tag property for 2.0 profile.
18225         
18226 2006-12-01  Chris Toshok  <toshok@ximian.com>
18227
18228         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
18229         
18230         * Win32DnD.cs: comment out some unused fields.
18231
18232         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
18233         some unused properties/methods.
18234
18235         * XplatUIX11.cs: fix MousePosition so we override the base class's
18236         property instead of conflicting with it.
18237
18238         * PictureBox.cs: comment out some unused fields
18239
18240         * OSXStructs.cs: make some struct fields public.
18241
18242         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
18243         MousePosition so we override the base class's property instead of
18244         conflicting with it.
18245
18246         * X11Dnd.cs: comment out some unused fields
18247
18248         * X11DesktopColors.cs: fix some struct field visibility to quiet
18249         the compiler.
18250
18251         * X11Dnd.cs: remove some debug code.
18252
18253         * ThemeClearlooks.cs: comment out unused field.
18254
18255         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
18256
18257         * ThemeGtk.cs: comment out some unused pinvokes.
18258
18259         * Timer.cs: remove some unused fields.
18260
18261         * ThemeClearlooks.cs: comment out unused field.
18262
18263         * UpDownBase.cs: comment out unused field.
18264
18265         * DataObject.cs: comment out unused field.
18266
18267         * DataGridBoolColumn.cs: reomve unused field.
18268
18269         * DataGrid.cs: remove unused field.
18270
18271         * Cursor.cs: remove old ToBitmap code.
18272
18273         * ControlPaint.cs: remove unused method.
18274
18275         * ScrollBar.cs: remove unused fields.
18276
18277         * ComboBox.cs: remove unused field, and chain up to
18278         AccessibleObject ctor.
18279
18280         * ListBox.cs: remove unused field.
18281
18282         * ButtonBase.cs: wrap a couple fields in NET_2_0.
18283
18284         * GridEntry.cs: remove unused fields.
18285
18286         * Binding.cs: remove unused fields.
18287
18288         * AxHost.cs: remove unused method.
18289
18290         * ContainerControl.cs: remove unused field.
18291
18292         * ScrollableControl.cs: remove unused fields.
18293
18294 2006-12-01  Chris Toshok  <toshok@ximian.com>
18295
18296         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
18297         the Where/WhereString stuff.  it's easy enough to CWL
18298         Environment.StackTrace.
18299
18300         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
18301         unused private fields.
18302
18303 2006-12-01  Jackson Harper  <jackson@ximian.com>
18304
18305         * TextControl.cs: Do not update the view while inserting multiline
18306         text. If we update the view we might wrap lines, before entering
18307         the new lines, which causes the new line insertion calculations to
18308         be totally fubared.
18309         - Remove an old TODO
18310         - Make debug output a little nicer
18311         
18312 2006-12-01  Chris Toshok  <toshok@ximian.com>
18313
18314         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
18315
18316 2006-12-01  Chris Toshok  <toshok@ximian.com>
18317
18318         [ fix the majority of the CS0108 warnings we've been suppressing ]
18319         
18320         * TreeView.cs: mark BackgroundImageChanged as 'new'.
18321
18322         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
18323         to "LayoutToolBar" to quiet mcs.
18324         
18325         * TabControl.cs: mark our ControlCollection class as 'new'.
18326
18327         * TextBoxBase.cs: mark some events as 'new'.
18328
18329         * Splitter.cs: TabStop is 'new'.
18330
18331         * ControlBindingsCollection.cs: mark a few methods as new since
18332         they change the visibility from protected to public.
18333
18334         * RadioButton.cs: DoubleClick -> base class, and remove unused
18335         HaveDoubleClick.
18336
18337         * MonthCalendar.cs: ImeMode property -> base class, and mark many
18338         events as new.
18339
18340         * NumericUpDown.cs: TextChanged -> base class.
18341
18342         * CheckedListBox.cs: mark our ObjectCollection class as new to
18343         quiet mcs.
18344
18345         * FolderBrowserDialog.cs: make HelpRequest event new and have it
18346         muck with the base class.
18347
18348         * StatusBar.cs: fix some mcs warnings about Update being the same
18349         name as a base class method.
18350
18351         * RichTextBox.cs: mark some events as new, and make them do things
18352         to the base class impl.
18353
18354         * UserControl.cs: mark TextChanged as new, and have it manipulate
18355         base.TextChanged.
18356
18357         * UpDownBase.cs: mark some things new.
18358
18359         * CheckBox.cs: mark DoubleClick "new", and add some text about
18360         what we need to look at.
18361
18362         * Panel.cs: make the events "new", and manipulate the base
18363         version.  these are just here for attributes.
18364
18365         * AccessibleObject.cs: make owner private.
18366
18367         * Control.cs: deal with AccessibleObject.owner being private.
18368         cache our own copy if we need it.
18369
18370         * Button.cs: add "new" to the DoubleClickEvent.
18371
18372         * ListBox.cs: no need to track our own has_focus here.  let
18373         Control.has_focus do it for us.  Also some other work to clear up
18374         warnings about not overriding base class methods of the same name.
18375         
18376         * ComboBox.cs: clear up some warnings about not override base
18377         class methods of the same name.
18378
18379 2006-12-01  Chris Toshok  <toshok@ximian.com>
18380
18381         * Form.cs: flag a few things as "new" to quiet some of the mcs
18382         warnings.
18383
18384         * AxHost.cs: same.
18385
18386         * PrintPreviewDialog.cs: same.
18387
18388         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
18389         now DGV isn't so horrible on the class status page.  also, move
18390         all events to using System.ComponentModel.EventHandlerList.  my
18391         wrists hurt.
18392
18393 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18394
18395         * MdiWindowManager.cs:
18396         - Set form to active mdi child if shown,
18397         and update the active mdi child to the next 
18398         remaining child in the z-order if the form is hidden.
18399
18400         * Form.cs: 
18401         - Track if the form has been visible and if its 
18402         visibility is beeing changed, so that the MdiClient
18403         can properly decide the ActiveMdiChild. The MdiClient 
18404         cannot track this since the form can change visibility 
18405         before MdiClient is created.
18406
18407         * MdiClient.cs:
18408         - Don't activate anything of the parent form is changing
18409         its visibility.
18410         - Rework ActiveMdiChild to only return visible mdi 
18411         children and take into account several other corner 
18412         cases.
18413
18414 2006-12-01  Chris Toshok  <toshok@ximian.com>
18415
18416         * IBindableComponent.cs: new 2.0 interface.
18417
18418 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
18419
18420         * DataGrid.cs: Font for caption area is bold by default.
18421
18422 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
18423
18424         * Menu.cs: Tag property for 2.0.
18425         
18426 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
18427
18428         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
18429         
18430 2006-12-01  Chris Toshok  <toshok@ximian.com>
18431
18432         * TreeView.cs: doh, the Begin* events should be
18433         TreeViewCancelEventHandler.
18434
18435 2006-12-01  Chris Toshok  <toshok@ximian.com>
18436
18437         * Form.cs: Form.ControlCollection already stores off the
18438         form_owner field.  don't access the base class's internal "owner"
18439         field.
18440
18441         * Control.cs: make all the fields in Control.ControlCollection
18442         private.  there's no need for any internal fields here.
18443
18444 2006-12-01  Chris Toshok  <toshok@ximian.com>
18445
18446         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
18447         OnHandleCreated.  Fixes bug #80109.
18448
18449 2006-12-01  Chris Toshok  <toshok@ximian.com>
18450
18451         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
18452         SplitContainer.cs, Control.cs, StatusStrip.cs,
18453         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
18454         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
18455         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
18456         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
18457         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
18458         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
18459         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
18460         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
18461         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
18462         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
18463
18464         do most of the work to convert our code over to use
18465         System.ComponentModel.Component.Events for
18466         adding/removing/dispatching events.
18467
18468
18469 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
18470
18471         * DataGridView.cs: Fix an ArgumentNullException reported 
18472         twice today in IRC.
18473
18474 2006-11-30  Mike Kestner  <mkestner@novell.com>
18475
18476         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
18477         grabbed listbox.  Fixes #80036 and #80101.
18478
18479 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
18480
18481         * Message.cs: Changed ToString() to match MS.
18482         
18483 2006-11-30  Jackson Harper  <jackson@ximian.com>
18484
18485         * TextBoxBase.cs: You can still change the selected text on a read
18486         only textbox.
18487         * TextControl.cs: Lower magic number for wrap calculations. This
18488         lets text get closer to the right (far) edge.
18489
18490 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
18491
18492         * Control.cs: Tweak 2.0 layout properties.
18493         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
18494         * TextRenderer.cs: Add a new overload.
18495         * ToolStrip*: Huge amount of changes and new features.
18496
18497 2006-11-30  Mike Kestner  <mkestner@novell.com>
18498
18499         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
18500         scroll range correct.  Fixes #79994.
18501
18502 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
18503
18504         * MdiWindowManager.cs: Update main form's text when
18505         a form is closed. (fixes #80038)
18506         
18507 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
18508
18509         * ToolBar.cs:
18510         - Fix an regression in ButtonSize.
18511         - Get ImeMode default value change to "Disable".
18512         - Get ShowTooltips default value change to true, default value is 
18513         "false" but after make a test in .NET we get "true" result as default.
18514         
18515 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
18516
18517         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
18518
18519 2006-11-29  Chris Toshok  <toshok@ximian.com>
18520
18521         * XplatUIWin32.cs (GetWindowTransparency): check return value of
18522         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
18523         SetWindowTransparency hasn't been called.
18524
18525 2006-11-29  Chris Toshok  <toshok@ximian.com>
18526
18527         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
18528         if it's supported.
18529         (set_AllowTransparency): reorder things a little so that the
18530         WS_EX_LAYERED style is removed properly.
18531
18532 2006-11-29  Chris Toshok  <toshok@ximian.com>
18533
18534         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
18535         
18536         * Form.cs: only call the XplatUI transparency method (get/set) if
18537         SupportsTransparency says it's supported. Otherwise fallback to
18538         doing nothing (in the set case) or returning the instance field we
18539         cache (in the get case).
18540
18541         * XplatUIStructs.cs: add TransparencySupport flag enum.
18542         
18543         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
18544         change to SupportsTransparency.
18545
18546         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
18547         TransparencySupport.None from SupportsTransparency.
18548
18549         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
18550         TransparencySupport.Set from SupportsTransparency.
18551
18552         * XplatUIWin32.cs: implement GetWindowTransparency calling
18553         GetLayeredWindowAttributes, and implement SupportsTransparency by
18554         checking whether or not both
18555         GetWindowTransparency/SetWindowTransparency are available
18556         entrypoints.  We need to do this since SetWindowTransparency is
18557         available as of win2k, but GetWindowTransparency requires winxp.
18558         yay win32 api.
18559
18560         * XplatUI.cs: Add GetWindowTransparency, and change
18561         SupportsTransparency to allow for either/both Get/Set.
18562
18563 2006-11-29  Chris Toshok  <toshok@ximian.com>
18564
18565         * DataGrid.cs: keep from going into an infinite loop redrawing a
18566         datagrid that has no datasource.  Fixes bug #80033.
18567
18568 2006-11-29  Chris Toshok  <toshok@ximian.com>
18569
18570         * MenuItem.cs: fix the NRE when we assign text (and therefore call
18571         Invalidate) before the mainmenu has been assigned to a control.
18572
18573 2006-11-29  Chris Toshok  <toshok@ximian.com>
18574
18575         * DataGrid.cs: detect when we should be double the double click
18576         row/column autosize stuff, although that codepath has yet to be
18577         written.  part of the work for bug #79891.
18578
18579 2006-11-29  Chris Toshok  <toshok@ximian.com>
18580
18581         * Binding.cs (SetControl): fix unit test.
18582
18583 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18584
18585         * PageSetupDialog.cs: Validate the margins and set them in
18586         PageSettings. 
18587         * NumericTextBox.cs: New class to mimic the behavior of the
18588         textboxes used in the printing dialogs.
18589
18590 2006-11-29  Andreia Gaita  <avidigal@novell.com>
18591         
18592         * Form.cs: Revert previous change (remove call UpdateBounds
18593         from form constructor), because it messes with the handle creation
18594         order, and that one needs lots and lots of love.
18595         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
18596         for valid printer and throw InvalidPrinterException if document
18597         is set but printer not valid), adding a MonoTODO. Once 
18598         handle creation is done properly, we can put this back in.
18599
18600 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
18601
18602         * MenuItem.cs: Create a invalidate method for menu item, to be
18603         calling from set text, it make text changes to imadiate update
18604         on screen. Fixes #80013. 
18605         
18606 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
18607
18608         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
18609         fixes bug #80070 and some other problem on toolbar buttons
18610         layout.
18611
18612 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
18613
18614         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
18615         with dotted brush.      Fixes #79564
18616         
18617 2006-11-28  Andreia Gaita  <avidigal@novell.com>
18618
18619         * Form.cs: Removed call to UpdateBounds on Form
18620         constructor, it was causing a call to CreateHandle
18621         before it was supposed to.
18622         * PrintControllerWithStatusDialog: Applied patch
18623         by Chris Toshok to hide controller when there are
18624         no printers available.
18625         PrintDialog.cs: initialize printer settings to 
18626         null - correct DefaultValues test #5
18627         * PrintPreviewControl.cs: Move PrintController
18628         initialization to GeneratePreview
18629         * PrintPreviewDialog.cs: 
18630         - Remove Preview generation     from Document_set(). It is 
18631         called on OnPaint
18632         - Throw InvalidPrinterException on CreateHandle if
18633         a Document is set but there are no printers or 
18634         printer is not valid.
18635         * ThemeWin32Classic: don't paint PrintPreviewControl
18636         if there is nothing to paint    
18637
18638 2006-11-28  Miguel de Icaza  <miguel@novell.com>
18639
18640         * Form.cs: Add another popular method.
18641
18642         * TabPage.cs: ditto.
18643
18644 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18645
18646         * MenuItem.cs: Fixed a warning.
18647         * InternalWindowManager: Fixed a warning.
18648
18649 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18650
18651         * MenuItem.cs:
18652         - When cloning a menu also clone MdiList and clone the 
18653           window menu items properly (as the forms and menuitems
18654           are kept in an internal hashtable, these need updating 
18655           as well)
18656         - Rewrote the window menu code, menu items are added in the
18657           order the forms were added to their parent, and they are
18658           updated every time the window menu is shown (before the
18659           list was only generated once, in the current order of the
18660           forms, and would never be updated). A checkmark is shown
18661           next to the item corresponding to the active mdi child.
18662
18663 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18664
18665         * XplatUIStructs.cs: 
18666         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
18667         
18668         * XplatUIWin32.cs: 
18669         - Added TME_NONCLIENT to TMEFlags.
18670         - Handles WM_NCMOUSEMOVE in GetMessage to 
18671           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
18672
18673         * MdiWindowManager:
18674         - Now merges mdi child menu to parent menu when maximized.
18675         - Recalculate NC areas of both mdi child and mdi parent. 
18676           Fixes #79757 (4).
18677           on window state and size changes.Fixes #79844 (3).
18678         - Handle WM_NCCALCSIZE to properly calculate borders.
18679
18680         * Form.cs:
18681         - Add/remove to the mdi containers list of mdi children 
18682           in the order they are added.
18683         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
18684           to the maximized mdi child.
18685         
18686         * InternalWindowManager.cs:
18687         - Only execute a click on the control buttons on the mouse up,
18688           not on the mouse down. Show the state of the button 
18689           (was only showing Normal state, never Pressed state). The
18690           pressed button now follows the mouse (if you click the Close 
18691           button and move the mouse over the Maximize button, the 
18692           Maximize button will be shown as pressed). Since Win32 does
18693           not generate WM_NCLBUTTONUP if you release the button outside
18694           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
18695           it as a mouse up.
18696         
18697         * ThemeWin32Classic.cs:
18698         - Draw a missing border around mdi child forms. Fixes #79844 (2).
18699
18700         * MdiClient.cs:
18701         - Added a list of forms which contains the order the forms are
18702           added to the mdi parent.
18703         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
18704         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
18705         - If the active form changes set the scrollbars to the top
18706           of the Z order, otherwise the form could hide them.
18707         - Scrollbars are now sized according to ClientSize, not 
18708           to Size, and they take into account the other scrollbar
18709           to determine maximum.
18710         
18711 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
18712         
18713         * XplatUI.cs:
18714         * XplatUIDriver.cs:
18715         * XplatUIX11.cs:
18716         * XplatUIWin32.cs:
18717         * XplatUIOSX.cs:
18718         - Added RequestAdditionalWM_NCMessages for windows to 
18719           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
18720           Currently only implemented in XplatUIWin32.
18721
18722 2006-11-27  Chris Toshok  <toshok@ximian.com>
18723
18724         * Hwnd.cs: only add the hwnd to the windows hash in
18725         set_WholeWindow and set_ClientWindow if whole_window/client_window
18726         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
18727
18728 2006-11-27  Mike Kestner  <mkestner@novell.com>
18729
18730         * ComboBox.cs: remove redundant OnDropDown call.  It is called
18731         from the ComboListBox.ShowWindow code. Fixes #79969.
18732
18733 2006-11-27  Chris Toshok  <toshok@ximian.com>
18734
18735         * Hwnd.cs: remove the setters for ExposePending and
18736         NCExposePending - noone uses them.
18737
18738 2006-11-27  Jackson Harper  <jackson@ximian.com>
18739
18740         * TextControl.cs: new param for ReplaceSelection which determines
18741         whether we select the new selection, or set the cursor to the end
18742         of the new selection.
18743         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
18744         pasting, select the new text.
18745         * RichTextBox.cs: Use new param for ReplaceSelection.
18746
18747 2006-11-27  Jackson Harper  <jackson@ximian.com>
18748
18749         * TextBoxBase.cs: Set the selection to the caret after the caret
18750         is moved, otherwise they get out of sync.
18751
18752 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
18753
18754         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
18755         it fixes #80015
18756
18757 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
18758
18759         * ThemeWin32Classic.cs: 
18760         - Fix toolbar drop down arrow position.
18761         - Fix drop down appearance when ToolBar.Appearance is normal,
18762         it fixes #80018.
18763         
18764 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
18765
18766         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
18767         * Control.cs: Same.
18768         * UpDownBase.cs: Same.
18769         * ButtonBase.cs: Same.
18770         * ScrollBar.cs: Same.
18771         * TrackBar.cs: Same.
18772         * PictureBox.cs: Same.
18773         * UserControl.cs: Same.
18774         * Label.cs: Same.
18775         * ListControl.cs: Same.
18776         * TextBoxBase.cs: Same.
18777         * ListView.cs: Same.
18778         * RichTextBox.cs: Same.
18779         * TreeView.cs: Same.
18780
18781 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
18782
18783         * PrintDialog.cs:
18784         - Text label for where 
18785         - Text label comment was not shown
18786
18787 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
18788
18789         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
18790
18791 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
18792
18793         * InternalWindowManager.cs: 
18794         - Handle WM_PARENTNOTIFY to activate the form
18795         if any child control is clicked.
18796         - The form is only sizable if not minimized.
18797
18798         * MdiWindowManager.cs:
18799         - Save the IconicBounds if the form is moved.
18800         - Rework SetWindowState, now the window bounds 
18801         are stored only if the old window state is Normal.
18802         
18803         * MdiClient.cs:
18804         - In SetWindowStates store the old window state if 
18805         the window is maximized and restore window state if
18806         the window looses focus.
18807         - Don't handle any scrollbar value changes if 
18808         initializing the scroll bars. Fixes #79771.
18809         - Reworked ArrangeIconicWindows. Current algorithm
18810         tests bounds agains all other minimized windows, if
18811         any intersections create new bounds (going left to 
18812         right, bottom to top) and then test again. When 
18813         successful the bounds are saved and never computed
18814         again. Fixes #79774.
18815
18816 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
18817
18818         * InternalWindowManager.cs: Added HandleTitleBarUp.
18819
18820 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
18821
18822         * NumericUpDown.cs: In .NET 1.1, user entered text is still
18823         hexadecimal in ParseUserEdit.
18824
18825         
18826 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
18827
18828         * MdiWindowManager.cs: 
18829         - Handle a click on the form's icon to show the 
18830         system menu (when maximized). Fixes #79775.
18831         - Change the existing click handler for the form's
18832         icon when not maximized to show on MouseUp.
18833         Fixes #79776.
18834
18835         * Form.cs: In OnResize only layout the mdi child's
18836         parent if it actually has a parent. Might not if
18837         the window is closing.
18838
18839
18840 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
18841
18842         * MdiClient.cs: Ignore active MDI client for text of parent, if
18843         child has no text set.
18844
18845 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
18846
18847         * ToolBar.cs: Fixed ToString to match MS.
18848
18849 2006-11-22  Andreia Gaita  <avidigal@novell.com>
18850
18851         * NumericUpDown: 
18852         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
18853         update inner values on set. Fixes #79966.
18854         - Override OnLostFocus to update value on NET 2. Fixes #79950.
18855         - Fix hexadecimal parsing.
18856         
18857         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
18858         parent. Fixes #79957
18859
18860 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18861
18862         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
18863         the actual size has to be queried, since if height /
18864         width is negative Win32 changes it to 0. 
18865         Fixes #79999 on Windows.
18866         
18867         * XplatUIX11.cs: Set height / width to 0 if negative
18868         in SetWindowPos. Fixes #79999 on Linux.
18869         
18870 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
18871
18872         * ThemeWin32Classic.cs: Fix text redenring when button is
18873         pressed.
18874
18875 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
18876
18877         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
18878         and later navigate by mouse. Fixes #79528.
18879
18880 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
18881
18882         * ToolBar.cs: Set default value for TabStop to false in
18883         constructor, it fixes remaining behavior of bug #79863.
18884
18885 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18886
18887         * MdiWindowManager.cs:
18888         * InternalWindowManager.cs:
18889         - Moved a few methods specific to Mdi from 
18890         InternalWindowManager to MdiWindowManager.
18891         Fixes #79996.
18892         
18893 2006-11-21  Chris Toshok  <toshok@ximian.com>
18894
18895         * XplatUIOSX.cs: stub out InvalidateNC.
18896
18897         * XplatUIWin32.cs: implement InvalidateNC using the call I found
18898         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
18899
18900         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
18901
18902         * XplatUIDriver.cs: add InvalidateNC abstract method.
18903
18904         * XplatUI.cs: add InvalidateNC.
18905
18906 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
18907
18908         * ToolBar.cs: Invalidate complete button area when pressed status 
18909         was changed.
18910         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
18911         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
18912         by 1 when button is pressed.
18913
18914 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
18915
18916         * ToolButton.cs: Invalidate middle of DropDown button when
18917         ToolBar theres DropDownArrows.
18918         * ThemeWin32Classic.cs: Change position of DropDown arrow and
18919         fix DropDown drawing operations.
18920
18921 2006-11-20  Chris Toshok  <toshok@ximian.com>
18922
18923         * NativeWindow.cs: fix the formatting of functions ('{' on the
18924         following line), and enable the thread exception dialog.
18925
18926         * Application.cs: remove the duplicate exception catching from
18927         here.
18928
18929 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
18930
18931         * Toolbar.cs: Triggers button click event when click on icon
18932         of dropdown ToolBarButton. Fixes #79912.
18933         
18934 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18935
18936         * Theme.cs:
18937         * ThemeWin32Classic.cs:
18938         - Added a property WindowBorderFont to enable themeing
18939           of mdi child windows' Text.
18940           
18941 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18942
18943         * InternalWindowManager.cs:
18944         * Form.cs:
18945         * MdiClient.cs:
18946         * MdiWindowManager.cs: 
18947         - If mdi child is maximized, set mdi parent's
18948           text to "Parent - [Child]". Fixes #79770.
18949         - If there is any maximized mdi child windows, only the active 
18950           window (and any new windows) is maximized, the rest are normal.
18951         - On a WindowState change only save mdi child's window bounds 
18952           if the old window state was normal. Fixes #79774.
18953         - The scroll bars are now calculated on hopefully all
18954           necessary events. Fixed #79771 / #79844->6 / #79906.
18955         - MdiClient.SizeScrollBars() now takes into account docked 
18956           controls in the parent when calculating available space.
18957         - InternalWindowManager now always repaints the entire title
18958           area. Fixes #79844->1/4/5.
18959         - Added RequestNCRecalc on mdi child windowstate changes.
18960           Fixes #79772.
18961
18962 2006-11-20  Mike Kestner  <mkestner@novell.com>
18963
18964         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
18965         in the MouseUp handler of the listbox and move the return handling
18966         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
18967
18968 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
18969
18970         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
18971
18972 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
18973
18974         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
18975           working in 1.2.x anymore. So, updated.
18976
18977 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
18978
18979         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
18980         NumberGroupSeparator of current culture instead of assuming en-US.
18981         Fixed bug #79967.
18982
18983 2006-11-17  Mike Kestner  <mkestner@novell.com>
18984
18985         * Control.cs: Add the concept of implicit bounds setting so that
18986         dock/undock round trips preserve explicitly set size/locations.
18987         Fixes #79313.
18988
18989 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
18990
18991         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
18992           can't handle those filters. (Fixes bug #79961)
18993
18994 2006-11-17  Chris Toshok  <toshok@ximian.com>
18995
18996         [ fixes the exit/crashes associated with #79835.  it's clearly
18997         suboptimal though, we need to figure out a better way to solve
18998         this. ]
18999         
19000         * PrintPreviewControl.cs: deal with the new invalid printer
19001         exceptions.
19002
19003         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
19004         and return false (so CommonDialog.ShowDialog doesn't actually show
19005         the form.)
19006
19007         * PrintDialog.cs: enable/disable the Ok button depending on
19008         whether or not the printer is valid.
19009
19010         * CommonDialog.cs (ShowDialog): only actually show the form if
19011         RunDialog returns true.
19012
19013 2006-11-17  Jackson Harper  <jackson@ximian.com>
19014
19015         * TextControl.cs: When soft splitting a line, mark it as a soft
19016         split line. Also carry over the current line break to the next
19017         line.
19018
19019 2006-11-17  Chris Toshok  <toshok@ximian.com>
19020
19021         * XplatUIX11.cs: when scrolling a window with an invalid area, we
19022         only want to shift the part of the invalid area that overlaps the
19023         area we're scrolling.  we also don't want to clear the invalid
19024         area unless the invalid area was entirely contained within the
19025         scrolling area.
19026
19027 2006-11-16  Chris Toshok  <toshok@ximian.com>
19028
19029         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
19030         also make sure to free the memory returned by XGetWindowProperty
19031         in GetText().
19032
19033         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
19034
19035 2006-11-16  Chris Toshok  <toshok@ximian.com>
19036
19037         * XplatUI.cs: add a new super secret way to get at the totally
19038         unsupported X11 backend.
19039
19040 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
19041
19042         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
19043
19044 2006-11-16  Jackson Harper  <jackson@ximian.com>
19045
19046         * TreeView.cs: Allow more explicit setting of top node position
19047         for scrollbars. Slower algo, but more accurate.
19048         - CollapseAll should maintain the current top node.
19049         * TextBoxBase.cs: When positioning the caret, use the line, pos
19050         method, since the x, y method does not grab the correct tag, and
19051         the caret height never gets set correctly. (Maybe I should just do
19052         away with the caret having its own height, and always use the
19053         carets current tag for height).
19054
19055 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
19056
19057         [Fixes 79778, 79923]
19058
19059         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
19060         Parent to the FosterParent instead.
19061
19062 2006-11-16  Jackson Harper  <jackson@ximian.com>
19063
19064         * TreeView.cs: Need to recalc the topnode when we expand or
19065         collapse. The scrolling methods can't handle this on their own,
19066         since they use differences between the last scroll position, and
19067         those difference get completely messed up since we are expanding
19068         nodes.  This problem should probably be fixed in the scrolling
19069         methods, so they can figure out exactly where they are, but this
19070         will slow things down a little.
19071         * ThemeWin32Classic.cs: Special case for groupboxes with empty
19072         strings, makes nunit-gui look a lot nicer.
19073
19074 2006-11-16  Chris Toshok  <toshok@ximian.com>
19075
19076         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
19077         the broken multithreaded event handling we have in here.  File
19078         this entry under "Why we should move to the new X11 backend".
19079
19080         Any thread can make it into UpdateMessageQueue, which gets events
19081         from the X socket - some of which could belong to hwnds being
19082         managed by a different thread.  We can also have multiple threads
19083         in UpdateMessageQueue at the same time, with each one reading from
19084         the X socket.  This leads to many problems, with the following
19085         solutions:
19086
19087         We can't use hwnd.Queue.Enqueue anywhere in here and must use
19088         EnqueueLocked.
19089
19090         The MotionNotify compression we do can't work across threads
19091         (without locking the entire queue, perhaps) since we call
19092         hwnd.Queue.Peek, so we just punt and don't compress motion events
19093         unless the owning thread is the one which got the X event.
19094
19095         ConfigureNotify is another fun one, since it modifies the hwnd's
19096         bounds and then enqueues the event.  We add a lock to Hwnd which
19097         is held when setting configure_pending to true (and enqueuing the
19098         event).
19099
19100         There is a race wrt the wake socket.  we need to make sure that
19101         only 1 thread is waiting on that socket, or else a thread could
19102         sleep waiting for data that never comes.  It's difficult (but not
19103         impossible) to make happen, because it seems to require something
19104         like the following:
19105
19106             1. Thread 1 polls on wake_receive
19107         
19108             2. poll returns saying there's data to be read on
19109                wake_receive.
19110         
19111             3. Thread 2 polls on wake_receive and immediately returns
19112                saying there's data to be read.
19113
19114             4. Thread 2 reads the wakeup byte from wake_receive
19115
19116             5. Thread 1 attempts to read the wakeup byte from
19117                wake_receive.
19118
19119             6. Thread 2 exits (due to a form closing, perhaps).
19120
19121             7. Thread 1 blocks forever.
19122         
19123         Fun, eh?
19124
19125         Fixing the Expose handling isn't done yet, and the races inherent
19126         in that piece of code are responsible for the drawing mistakes you
19127         see when generating expose events in a MT app (like NPlot).  This
19128         one is the likely to be the hardest to bandaid, and it doesn't
19129         appear to cause anything but drawing problems.  The other issues
19130         caused apps to exit or hang.
19131
19132         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
19133         called from a different thread than the one that should be calling
19134         these functions.
19135
19136         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
19137
19138 2006-11-15  Chris Toshok  <toshok@ximian.com>
19139
19140         * Application.cs: null out the context's MainForm when we exit
19141         RunLoop.  Fixes a newly checked in unit test as well as the last
19142         ODE from bug #79933.
19143
19144 2006-11-15  Chris Toshok  <toshok@ximian.com>
19145
19146         * Form.cs (set_Owner): allow a null value so we can clear the
19147         form's owner.
19148         (Dispose): set all our owned_form's Owner properties to null, and
19149         clear the owned_forms collection.
19150         (WM_CLOSE): clean up this a little bit.. still not right though.
19151
19152         * ApplicationContext.cs: OnMainFormClosed should only call
19153         ExitThreadCore if the main form isn't recreating.  Fixes unit
19154         test.
19155
19156 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
19157
19158         [Fixes 78346]
19159
19160         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
19161
19162 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
19163
19164         [Fixes 79433]
19165
19166         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
19167         keep popup window types from stealing focus from the main form
19168         on Windows.
19169
19170         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
19171
19172         * MenuAPI.cs: Set above flag to true.
19173
19174 2006-11-15  Chris Toshok  <toshok@ximian.com>
19175
19176         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
19177         the button being released is not in wParam.
19178
19179 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
19180
19181         * Form.cs: Add the released button to MouseEventArgs.Button
19182         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
19183         on Win32.
19184
19185 2006-11-15  Chris Toshok  <toshok@ximian.com>
19186
19187         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
19188         GetText().  untested because it's unused in our implementation.
19189         Control.Text always caches the text, even if
19190         ControlStyles.CacheText is not set.
19191
19192         fixes bug #79939.
19193
19194 2006-11-15  Chris Toshok  <toshok@ximian.com>
19195
19196         [ fixes #79933 ]
19197         
19198         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
19199         message.  no hiding, no disposing.
19200
19201         in the WM_CLOSE handler, hide the form if it's modal.
19202
19203 2006-11-15  Chris Toshok  <toshok@ximian.com>
19204
19205         * XplatUIX11.cs: use AddExpose instead of sending a message.
19206         fixes textbox border drawing.
19207
19208 2006-11-15  Chris Toshok  <toshok@ximian.com>
19209
19210         * PropertyGridView.cs: keep from crashing on mouse move/down when
19211         the property grid is empty.
19212
19213 2006-11-14  Jackson Harper  <jackson@ximian.com>
19214
19215         * TextControl.cs: Make PageUp and PageDown more like the MS
19216         versions.
19217         * TextBoxBase.cs: When we set the text property position the
19218         cursor at the beginning of the document.
19219
19220 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19221
19222         * Form.cs: if a mdi child's WindowState has changed
19223         before it's creation, it would display wrong control
19224         buttons.
19225         
19226 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
19227
19228         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
19229           (Fixes bug #79927)
19230
19231 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
19232
19233         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
19234         the window gets to paint its borders even if the window is
19235         getting smaller.
19236         
19237         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
19238         otherwise the old control buttons would still be painted 
19239         if the window gets bigger.
19240         
19241         * PaintEventArgs.cs: add an internal method so that the clip 
19242         rectangle can be changed.
19243         
19244 2006-11-13  Chris Toshok  <toshok@ximian.com>
19245
19246         [ fixes bug #79745 ]
19247         
19248         * NotifyIcon.cs: lots of cleanup.
19249
19250         * X11Structs.cs: add an enum for XEMBED messages.
19251
19252         * XplatUIX11.cs: reindent one of the giant switch statements, it
19253         was taking up an additional tab stop, and this file is already way
19254         too wide for my laptop's screen.
19255
19256         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
19257         we get it, resize the hwnd to the WMNormalHints max_width/height.
19258
19259 2006-11-13  Jackson Harper  <jackson@ximian.com>
19260
19261         * TextBoxBase.cs: Compute the value changes for the mouse wheel
19262         teh simple way.
19263
19264 2006-11-13  Chris Toshok  <toshok@ximian.com>
19265
19266         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
19267         #79898.  force a reference to the Region to stick around so the
19268         unmanaged object isn't collected (rendering our handle in the MSG
19269         stale).
19270
19271 2006-11-13  Chris Toshok  <toshok@ximian.com>
19272
19273         * XplatUIX11.cs: fix #79917 for window managers which support
19274
19275         using XStoreName on the raw utf8, and we need to convert to
19276         COMPOUND_TEXT if it's non-latin1.
19277
19278 2006-11-13  Chris Toshok  <toshok@ximian.com>
19279
19280         * Form.cs (set_DialogResult): we need to set closing to false if
19281         we're setting our result to None.  fixes bug #79908.
19282
19283 2006-11-13  Jackson Harper  <jackson@ximian.com>
19284
19285         * TextControl.cs: When formatting text, compute the adjusted tag
19286         lengths correctly, using FindTag for the end tag instead of trying
19287         to figure it out outselves.
19288         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
19289         the item, ItemHeight doesn't work, because trees with large
19290         imagelists use those for their height
19291         * TreeView.cs: ActualItemHeight factors in the image height
19292         - compute left edge of checkboxes correctly
19293         - when expanding/collapsing move the bottom down one pixel, so we
19294         aren't moving part of the node
19295
19296 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19297
19298         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
19299         stack in PaintEventStart so that it won't get disposed by the gc
19300         before reaching PaintEventEnd.
19301
19302 2006-11-13  Jackson Harper  <jackson@ximian.com>
19303
19304         * TextBoxBase.cs: Don't select the word if we are on a line with
19305         no text.
19306         - We don't need to position the caret on mouse up, since the mouse
19307         move handler should be doing this
19308         - When double clicking a blank line, the caret is advanced to the
19309         next line.
19310
19311 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
19312
19313         * TreeNodeCollection.cs: Avoid duplicating indexer code.
19314
19315 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
19316
19317         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
19318         Fixes part of bug #79910.
19319
19320 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
19321
19322         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
19323           (bug #79903). Some minor string updates to match ms.
19324
19325 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
19326
19327         * FileDialog.cs: Don't add an extension if the filename
19328           already ends with that extension.
19329
19330 2006-11-10  Jackson Harper  <jackson@ximian.com>
19331
19332         * TreeView.cs: Use the currently highlighted node for the
19333         BeforeSelect event.
19334         * TextBoxBase.cs: There is no need to expand selection on
19335         MouseMove.
19336         - CanUndo means 'is there any undo operations', not 'is undo
19337         allowed on this textcontrol. Fixed ClearUndo unit test.
19338
19339 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
19340
19341         * Button.cs: only perform click when button is Selectable (so as 
19342         not to activate default buttons when they're disabled)
19343         
19344         * Control.cs: Rewrite of the SelectNextControl and related 
19345         methods. HandleClick now selects next control if the current one
19346         is being disabled.
19347         
19348         * Form.cs: OnActivated selects next active control only if Load 
19349         has already occurred. If Load hasn't run, there's no point in 
19350         selecting here, Load might change the state of controls.
19351         
19352         * FocusTest.cs: Tests marked as working again for these fixes
19353
19354 2006-11-10  Chris Toshok  <toshok@ximian.com>
19355
19356         * XplatUIX11.cs: a couple of fixes.
19357
19358         - use XInternAtoms with almost all the atoms we need to register,
19359         instead of many, many calls to XInternAtom.  should help a bit on
19360         startup time, at the expense of making the code look a little
19361         worse.
19362
19363         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
19364         isn't reparented (which seems to be a clue that we're running fon
19365         compiz) and they have an Owner form.  This fixes the tool windows
19366         in paint.net when running under compiz.
19367
19368         - when setting the opacity of a window, support both the case
19369         where the window has been reparented and also when it hasn't been.
19370         Since compiz/beryl doesn't seem to reparent windows, and these are
19371         the only window managers which support translucency, I'm not sure
19372         why we need the hwnd.reparented case at all.. but leave it in.
19373         now we get translucent windows in paint.net under compiz/beryl.
19374
19375 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
19376
19377         * FileDialog.cs: Always return the value for FilterIndex that
19378           was set. Internally convert it to values that make sense.
19379
19380 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
19381         
19382         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
19383
19384 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
19385
19386         * Toolbar.cs: Change default value of DropDownArrows to true, the 
19387         signature still using false to make it compatible with MS but the 
19388         initial value is true. Fixes #79855.
19389
19390 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
19391
19392         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
19393           only available on Linux.
19394
19395 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
19396
19397         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
19398         reduce number of calls to redraw method during toolbar creation.
19399
19400 2006-11-09  Mike Kestner  <mkestner@novell.com>
19401
19402         * ListView.cs : raise SelectedIndexChanged when an item is selected
19403         programmatically via the Item.Selected property.  Gert's nice 
19404         ListViewSelectedIndexChanged test fixture now runs clean.
19405
19406 2006-11-09  Mike Kestner  <mkestner@novell.com>
19407
19408         * ListView.cs : raise SelectedIndexChanged when a selected item is
19409         removed from the item collection using Remove or RemoveAt.
19410
19411 2006-11-09  Mike Kestner  <mkestner@novell.com>
19412
19413         * ListView.cs : raise SelectedIndexChanged once per selected item
19414         for compat with MS.  Fixes #79849+.
19415
19416 2006-11-09  Chris Toshok  <toshok@ximian.com>
19417
19418         * TabControl.cs: initialize row_count to 0, and set it to 1 when
19419         we need to (if we have any tab pages).  Fixes unit test.
19420
19421 2006-11-09  Chris Toshok  <toshok@ximian.com>
19422
19423         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
19424         width is 0, not 3.  Fixes a unit test.
19425
19426 2006-11-09  Mike Kestner  <mkestner@novell.com>
19427
19428         * ListView.cs : use Implicit scrollbars so that focus isn't 
19429         stolen from the listview when they are clicked. Fixes #79850.
19430
19431 2006-11-09  Chris Toshok  <toshok@ximian.com>
19432
19433         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
19434         have a root item.  Fixes #79879.
19435
19436 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
19437
19438         * FileDialog.cs:
19439           - Fix ToString ()
19440           - An ArgumentException is now thrown if a wrong filter
19441             is applied (matches ms). The previous filter doesn't change
19442             anymore if an exception is thrown.
19443           - Changing the FileName property also affects FileNames
19444         * ColorDialog.cs: The length of the CustomColors array is always
19445           16. It doesn't matter if we use a smaller array or null to update
19446           or change the custom colors property.
19447         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
19448           for RootFolder if we get a undefined value.
19449
19450 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19451
19452         * StatusBarPanel.cs: 
19453         - Width is set to MinWidth if Width is smaller than
19454         MinWidth. Fixes #79842.
19455         - MinWidth now always overrides Width (MSDN says MinWidth
19456         is set to Width when AutoSize = None, but they do not 
19457         behave like that).
19458         - Style has now the the correct default value.
19459         
19460 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19461  
19462         * TrackBar.cs: 
19463         - The control is completely invalidated on 
19464         Got/LostFocus to draw the focus rectangle correctly.
19465         - When AutoSize then height is always 45 (width for 
19466         vertical controls).
19467         
19468         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
19469         on the mouse when moved and it doesn't move when grabbed
19470         until the mouse moves as well. Also fixed some wrong 
19471         calculations when clicking on the thumb (control thought
19472         click was outside of thumb and didn't grab it).
19473         Fixes some of the issues in #79718.
19474
19475 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
19476
19477         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
19478
19479 2006-11-08  Chris Toshok  <toshok@ximian.com>
19480
19481         * PropertyGridView.cs: only call ToggleValue if the item is not
19482         readonly.
19483
19484 2006-11-08  Jackson Harper  <jackson@ximian.com>
19485
19486         * TextBoxBase.cs: The RichTextBox and textbox have very different
19487         word selection methods.  Implement the textbox's simple word
19488         selection here, and let the RichTextBox override and provide it's
19489         own.
19490         - Don't do extra selection on mouseup
19491         * RichTextBox.cs: Use the documents word selection algorithm, I
19492         think ideally, this function will be pulled into the
19493         RichTextBox.cs code someday.
19494
19495 2006-11-08  Chris Toshok  <toshok@ximian.com>
19496
19497         * RootGridEntry.cs: new class to represent GridItemType.Root.
19498
19499         * CategoryGridEntry.cs: reformat, and add boilerplate.
19500         
19501         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
19502         returns the UI parent anyway, and we need special handling to
19503         implement the GetTarget method in the face of it.  Also, implement
19504         Select().
19505
19506         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
19507         a root grid item, and use that instead of PropertyGrid.grid_items.
19508         Also, make use of TypeConverters (and add limitted support for
19509         ICustomTypeDescriptors) when initially populating the grid.
19510         Arrays now show up more or less properly.
19511
19512 2006-11-08  Chris Toshok  <toshok@ximian.com>
19513
19514         * Application.cs: set the modal dialog to non modal after we close
19515         it.  Fixes bug #79866.
19516
19517 2006-11-08  Jackson Harper  <jackson@ximian.com>
19518
19519         * TextControl.cs: When combining lines carry over the line end
19520         style from the end line.
19521         - Invalidate the selected area when setting it, if it is visible.
19522         * TextBoxBase.cs: Only rich text box can do full line selects.
19523         - Make sure to set the cursor position when there is a click,
19524         otherwise two clicks in separate areas could cause a large chunk
19525         to be selected.
19526
19527 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19528
19529         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
19530         Fixes #79863.
19531
19532 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19533
19534         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
19535         time. Remove tooltips when ToolButton click events.  Fixes #79856.
19536
19537 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19538
19539         * MenuAPI.cs: Ignore right click for menu actions and fixes
19540         menu border when clicked.  Fixes #79846.
19541
19542 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19543
19544         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
19545         MouseState after create wParam for message, this fixes mouse button 
19546         equal none in mouse up events.
19547         
19548 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
19549
19550         * Control.cs : Focus() now calls Select to set the Container's
19551         Active Control and to give it focus. To avoid infinite recursion
19552         (because ActiveControl also calls Focus at one point), a check 
19553         is made in Focus with the help of a new internal variable
19554         is_focusing.
19555
19556 2006-11-07  Mike Kestner  <mkestner@novell.com>
19557
19558         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
19559         if there's a selection.  Fixes #79849.
19560
19561 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
19562
19563         * PropertyGrid.cs: Avoid fixed height of help description label.
19564         Fixes part of bug #79829.
19565
19566 2006-11-07  Chris Toshok  <toshok@ximian.com>
19567
19568         * XplatUIX11.cs: fix #79790 again, by using the
19569         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
19570
19571 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19572
19573         * ToolBar.cs: Fix left click checking.
19574
19575 2006-11-07  Chris Toshok  <toshok@ximian.com>
19576
19577         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
19578
19579 2006-11-07  Chris Toshok  <toshok@ximian.com>
19580
19581         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
19582         PropertyManager unit tests.
19583
19584         * PropertyManager.cs: make property_name internal.
19585
19586 2006-11-07  Chris Toshok  <toshok@ximian.com>
19587
19588         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
19589         pass a unit test.  Also, don't set image_index to anything in
19590         response to setting the ImageList property.
19591
19592 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19593
19594         * ToolBar.cs: Ignore click events when mouse button is not a
19595         left button, only accepts other button for dropdown menus.  
19596         Fixes #79854.
19597
19598 2006-11-07  Chris Toshok  <toshok@ximian.com>
19599
19600         * DataGrid.cs: make the back and parent row buttons a little less
19601         ugly.
19602
19603 2006-11-07  Jackson Harper  <jackson@ximian.com>
19604
19605         * TextBoxBase.cs: When converting to Text don't put line breaks in
19606         for soft line breaks.
19607         * TextControl.cs: There is an initial "fake" line in the document,
19608         this is now a soft break line, so that an extra line feed doesn't
19609         get added to the end of documents.
19610
19611 2006-11-07  Chris Toshok  <toshok@ximian.com>
19612
19613         [ fix bug #79778 ]
19614         
19615         * CurrencyManager.cs: if the list is readonly, don't bother
19616         checking if IBindingList.AllowNew is true.
19617
19618         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
19619         for non-DataRowView datasources..  or rather, make it not crash.
19620         (DataGridPaintRelationRow): make sure we limit the row painting to
19621         the area not covered by the row header, and make our cell width at
19622         least large enough to cover the relation area.  This allows grids
19623         that have relations but no rows to render correctly.
19624         (DataGridPaintRowContents): same type of changes here.
19625         (SetDataSource): move back to always calling
19626         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
19627         navigating back through relations.
19628         (HitTest): handle the case where we have no cells but have
19629         relations.  Right now we generate a hit in cell 0 of whatever the
19630         row is, not sure if this is strictly correct, but it works for our
19631         purposes.
19632         
19633         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
19634         bother doing anything.
19635
19636 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
19637
19638         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
19639         early version of StatusStrip.  Not responsible for eaten
19640         application or firstborn children.
19641
19642 2006-11-06  Chris Toshok  <toshok@ximian.com>
19643
19644         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
19645         call GetTabRect with a -1 index.  Fixes #79847.
19646
19647 2006-11-06  Jackson Harper  <jackson@ximian.com>
19648
19649         * TreeNodeCollection.cs: Update scrollbars after clearing.
19650
19651 2006-11-06  Chris Toshok  <toshok@ximian.com>
19652
19653         * NumericUpDown.cs: fix the ToString method for some unit test
19654         love.
19655
19656 2006-11-06  Chris Toshok  <toshok@ximian.com>
19657
19658         * PropertyGrid.cs:
19659         - set the initial SelectedGridItem if we can.
19660
19661         - Exclude non-mergable properties only if we're merging > 1
19662         object.  Merging 1 object isn't really merging, obviously.
19663
19664         - Handle PropertySort.NoSort just like Alphabetical, which is
19665         wrong of course, but at least gets things on the screen.
19666         
19667         * PropertyGridView.cs:
19668         - Add method "FindFirstItem" which finds the first property grid
19669         item, so we can select it by default.
19670
19671         - make use of GridEntry.CanResetValue.
19672
19673         - Don't call RedrawBelowItemOnExpansion here anymore, the
19674         individual GridEntry's will do that.
19675
19676         - Remove the ITypeDescriptorContextImpl internal class.
19677         
19678         * GridEntry.cs:
19679         - this class needs to implement ITypeDescriptorContext, as it's
19680         what MS's PropertyDescriptorGridEntry does, which means we can
19681         remove the ITypeDescriptorContextImpl internal class from
19682         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
19683
19684         - keep a reference to our PropertyGridView, and move the call to
19685         RedrawBelowItemOnExpansion here from PGV.  This means
19686         programmaticly setting Expanded actually does something visible.
19687
19688         - add a CanResetValue() function which takes into account our
19689         possibly multiple "selected_objects" in the merged case.  Shifting
19690         PropertyGridView to use this method fixes another unreported
19691         crasher found running the test for #79829.
19692
19693         - when Top or Bounds is updated, make sure the PropertyGridTextBox
19694         is updated to reflect this.
19695
19696         * CategoryGridEntry.cs: the ctor takes the PGV now.
19697         
19698 2006-11-06  Jackson Harper  <jackson@ximian.com>
19699
19700         * TextControl.cs: These are 1 based.
19701         * TextBoxBase.cs: When setting the selected text, don't change the
19702         selected text tags, this is done by ReplaceText, just position the
19703         cursor at the end of the new text.
19704
19705 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
19706
19707         * ListView.cs: Allow label edit only when, when LabelEdit is
19708           set to true.
19709
19710 2006-11-06  Jackson Harper  <jackson@ximian.com>
19711
19712         * TextControl.cs: If a suitable wrapping position isn't found,
19713         just wrap right in the middle of a word.
19714
19715 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
19716
19717         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
19718           bug #79820.
19719
19720 2006-11-06  Jackson Harper  <jackson@ximian.com>
19721
19722         * TreeView.cs: Can't use the VisibleCount property when setting
19723         scrollbar heights, because this doesn't take into account whether
19724         or not the horz scrollbar just came visible.
19725
19726 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
19727
19728         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
19729         activated.  Fixes #79369, #79832.
19730
19731 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
19732
19733         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
19734           had to remove support for links that point to a directory. FileInfo
19735           returns no usefull information (means, the directory they point to)
19736           for such links. Replaced some empty string ("") with String.Empty.
19737
19738 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
19739
19740         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
19741         NullReferenceException when attempting to remove node that is not in
19742         collection. Throw NullReferenceException when null is passed to 
19743         Remove. Allow first element of the collection to be removed. Fixes
19744         bug #79831.  In GetEnumerator ().Current return null if positioned 
19745         before the first element of the collection. In GetEnumerator ().Reset,
19746         position before first element of the collection.
19747
19748 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
19749
19750         * PropertyGrid.cs: To match MS, remove default title and description
19751         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
19752         buttons.
19753
19754 2006-11-04  Chris Toshok  <toshok@ximian.com>
19755
19756         * Theme.cs: add a Clamp method, just for kicks.
19757
19758         * ThemeWin32Classic.cs: clamp all color components to [0..255].
19759
19760 2006-11-04  Chris Toshok  <toshok@ximian.com>
19761
19762         * Form.cs: if the form isn't visible, Close() does nothing.
19763
19764 2006-11-03  Chris Toshok  <toshok@ximian.com>
19765
19766         * Form.cs (Close): if the form is modal, don't Dispose of it, only
19767         Hide it.
19768         (WndProc): don't Dispose after handling the WM_CLOSE message.
19769
19770         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
19771         them as such, instead of using casts from Control to Form.  Also,
19772         don't Dispose of the modal dialog when we fall out of the loop -
19773         Close() it instead.
19774
19775         fixes bug #79813.
19776
19777 2006-11-03  Chris Toshok  <toshok@ximian.com>
19778
19779         * Control.cs (Dispose): only go through the dispose thing if we're
19780         @disposing, and we haven't already been disposed.  Fixes bug
19781         #79814.
19782
19783         * Form.cs: no reason to call "base.Dispose()" here instead of
19784         "Dispose()".
19785
19786 2006-11-03  Mike Kestner  <mkestner@novell.com>
19787
19788         * ComboBox.cs : use ToString instead of casts in AddItem for
19789         sorting functionality.  Fixes #79812.
19790
19791 2006-11-03  Chris Toshok  <toshok@ximian.com>
19792
19793         * Application.cs: pave the way for actually using the thread
19794         exception dialog.  it's ifdefed out at the moment.
19795
19796 2006-11-03  Chris Toshok  <toshok@ximian.com>
19797
19798         * ThreadExceptionDialog.cs: until we get a better layout, actually
19799         hide the details textbox and label when we shouldn't see them.
19800
19801 2006-11-03  Jackson Harper  <jackson@ximian.com>
19802
19803         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
19804         multiline textboxes anymore.  This method also determines the
19805         width/height of a textboxes canvas area.
19806         - Sorta a revert of the last patch.  For multiline just position
19807         the controls, then bail.  This way the scrollbar width won't be
19808         altered.
19809
19810 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
19811
19812         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
19813         it dont need.  Fixes #79537.
19814
19815 2006-11-02  Jackson Harper  <jackson@ximian.com>
19816
19817         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
19818         send the status after firing the DndOver event.
19819
19820 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19821
19822         * TrackBar.cs: Now orientation only switches height / width if
19823         the control's handle is created (Win32 does it like this). Also 
19824         fixed a typo in ToString() for a test to pass, changed the 
19825         exception thrown in set_LargeChange and set_SmallChange to 
19826         match Win32 behaviour, and added TrackBar tests to the unit 
19827         tests.
19828
19829 2006-11-02  Chris Toshok  <toshok@ximian.com>
19830
19831         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
19832         not _NET_WM_STATE_NO_TASKBAR.
19833
19834 2006-11-02  Jackson Harper  <jackson@ximian.com>
19835
19836         * TextControl.cs: Increment count by one, since in the update view
19837         count - 1 is used.
19838
19839 2006-11-02  Jackson Harper  <jackson@ximian.com>
19840
19841         * TextBoxBase.cs: Use client rectangle not bounds for checking if
19842         the mouse is in the client rectangle (duh).
19843
19844 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19845         
19846         * TrackBar.cs: Fixed trackbar jumping around when clicking
19847         on it - the trackbar was not detecting correctly at which
19848         side of the thumb the click was done. (fixes #79718)
19849
19850 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
19851
19852         * ListBox.cs: scroll visible area when change SelectedIndex to
19853         a non visible area.  Fixes #79481.
19854
19855 2006-11-01  Jackson Harper  <jackson@ximian.com>
19856
19857         * TextControl.cs: When replacing the selection move the selection
19858         start/end/anchor to the end of the new text.
19859
19860 2006-11-01  Jackson Harper  <jackson@ximian.com>
19861
19862         * XplatUIWin32.cs: When setting the parent change the controls
19863         visibility to it's visibility flag, not to it's old parents
19864         visibility (.Visible walks the parent chain).
19865
19866 2006-11-01  Chris Toshok  <toshok@ximian.com>
19867
19868         * XplatUIX11.cs: revert the #79790 fix, as the simple.
19869         XSetTransientForHint fix breaks paint .net's tool windows.  more
19870         work needed for that one.
19871
19872 2006-11-01  Chris Toshok  <toshok@ximian.com>
19873
19874         * ScrollBar.cs: throw ArgumentException instead of Exception in
19875         LargeChange/SmallChange setters.  fixes unit tests.
19876
19877 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
19878
19879         * ContainerControl.cs: reverted rev.67183 (which was itself
19880         a reversion of rev.66853... eh).
19881         
19882         * Control.cs: Fixes Reflector hang by changing Focus() call
19883         to what it was before rev.66643 (calling Select() here sets 
19884         ActiveControl, which in some situations calls back Focus and 
19885         eventually does a stack overflow). Temp fix.    
19886         Changes to GetNextControl() to not look for children to select when
19887         parent cannot be selectable (so it looks for siblings instead)  
19888         
19889 2006-10-31  Mike Kestner  <mkestner@novell.com>
19890
19891         * CheckedListBox.cs : off by one error in returned index from
19892         ObjectCollection.Add.  Fixes #79758.
19893
19894 2006-10-31  Chris Toshok  <toshok@ximian.com>
19895
19896         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
19897         calls for the textbox/spinner, to keep from recursing to the point
19898         where we crash.  Fixes #79760.
19899
19900 2006-10-31  Chris Toshok  <toshok@ximian.com>
19901
19902         * ListControl.cs (set_SelectedValue): don't throw exceptions on
19903         null/"" value, just return.  matches ms's behavior and fixes some
19904         failing tests.
19905
19906 2006-10-31  Chris Toshok  <toshok@ximian.com>
19907
19908         * Control.cs (set_Capture): make a logic a little easier to
19909         follow.
19910
19911         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
19912         if it's being destroyed.  A necessary fix surely, but a bandaid
19913         also, to fix the stuck capture problem in bug #78413.
19914
19915 2006-10-31  Chris Toshok  <toshok@ximian.com>
19916
19917         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
19918         convention of clearing hwnd.ClientRect when we set the
19919         width/height (so it'll be recalculated by Hwnd).
19920
19921 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
19922
19923         * ContainerControl.cs: reversed Contains check from
19924         ActiveControl due to hanging problems. This fix
19925         partly regresses #79667 (button does not have
19926         initial focus), so this might be a symptom for 
19927         a larger parenting problem (set_ActiveControl
19928         is being called but the child control does
19929         not have the parent set yet?)   
19930         
19931 2006-10-31  Mike Kestner  <mkestner@novell.com>
19932
19933         * MenuAPI.cs : fix keynav when menu is click activated.
19934
19935 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
19936
19937         * ToolStrip*: Version 0.2.
19938
19939         * MenuStrip.cs: Version 0.1.
19940
19941         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
19942
19943 2006-10-30  Chris Toshok  <toshok@ximian.com>
19944
19945         [ fixes the oversized notify icon issue in bug #79745 ]
19946         
19947         * NotifyIcon.cs: scale the icon down to the size we're given by
19948         the XplatUI layer (this would be faster if we did it once instead
19949         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
19950         since it's never invoked.
19951
19952         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
19953         pixels high by default, so let's hardcode our systray icon to that
19954         size.  The SYSTEM_TRAY protocol should really have a way for
19955         client apps to query for the correct icon size.. but oh well.  A
19956         couple of patches to deal with the screwy client_window ==
19957         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
19958         instance, and also make sure we don't XSelectInput twice).
19959
19960 2006-10-30  Chris Toshok  <toshok@ximian.com>
19961
19962         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
19963         recreating forms.  Control recreation is the bane of my existence.
19964         Fix it in a way that keeps everyone happy.
19965
19966 2006-10-30  Chris Toshok  <toshok@ximian.com>
19967
19968         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
19969         just non-CHILD ones.  otherwise sometimes scrollbars end up with
19970         client_windows not being resized to the proper size (ReportBuilder
19971         shows this extremely well).
19972
19973 2006-10-30  Chris Toshok  <toshok@ximian.com>
19974
19975         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
19976         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
19977         showing up in the gnome taskbar.  Fixes bug #79790.
19978
19979 2006-10-30  Chris Toshok  <toshok@ximian.com>
19980
19981         * ApplicationContext.cs: guard against a NRE.
19982
19983         * Application.cs: null out the old MainForm for the context, so we
19984         don't try to use it again once it's disposed.  Fixes bug #79783.
19985
19986 2006-10-30  Chris Toshok  <toshok@ximian.com>
19987
19988         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
19989         BindingContext, set the data source directly, otherwise do the
19990         lazy approach - the actual ListManager will be created when we get
19991         a BindingContext. Fixes bug #79700.
19992
19993 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
19994
19995         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
19996           XplatUIX11.cs: Remove old 2 parameter SetVisible.
19997
19998         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
19999
20000 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
20001
20002         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
20003         of SetVisible that allows a window to be shown, but not activated.
20004         This is needed on Windows for MenuStrip, and can probably be used
20005         with MainMenu and ComboBox to fix the focus stealing issues on
20006         Windows.
20007
20008         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
20009
20010 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
20011
20012         * PictureBox.cs: Fix the output of the ToString method.
20013
20014 2006-10-29  Chris Toshok  <toshok@ximian.com>
20015
20016         * Control.cs (get_TopLevelControl): fix bug #79781.
20017
20018 2006-10-29  Chris Toshok  <toshok@ximian.com>
20019
20020         * ListControl.cs (set_DataSource): throw Exception here, not
20021         ArgumentException, to match MS behavior.
20022
20023 2006-10-29  Chris Toshok  <toshok@ximian.com>
20024
20025         * Form.cs: remove the try-catch's around calls to GetWindowState.
20026         We can just check the return value.
20027
20028         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
20029         Instead return -1.
20030
20031         * XplatUI.cs: Add note about additional return value for
20032         GetWindowState.
20033
20034 2006-10-29  Chris Toshok  <toshok@ximian.com>
20035
20036         * Control.cs (CreateHandle): when we create our handle, we also
20037         create the handles of our child controls.  Fixes one of the
20038         Control unit tests (CH11).
20039
20040 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
20041
20042         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
20043
20044 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
20045
20046         * ThemeClearlooks.cs: A little speedup.
20047
20048 2006-10-27  Chris Toshok  <toshok@ximian.com>
20049
20050         * Control.cs: implement Control.FromChildHandle in a way that
20051         matches the docs (and fixes the failed test.)
20052
20053 2006-10-27  Chris Toshok  <toshok@ximian.com>
20054
20055         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
20056         comments).
20057
20058         * DataGrid.cs: implement ResetForeColor such that the tests
20059         succeed.
20060         
20061 2006-10-27  Chris Toshok  <toshok@ximian.com>
20062
20063         * ToolBarButton.cs: setting text/tooltiptext to null results in it
20064         being set to "".  Fixes bug #79759.
20065
20066 2006-10-27  Jackson Harper  <jackson@ximian.com>
20067
20068         * TextControl.cs: We need to clear the entire selection area when
20069         setting the start, otherwise multiline selections are still
20070         visible.
20071
20072 2006-10-26  Chris Toshok  <toshok@ximian.com>
20073
20074         * PropertyGridView.cs: 
20075
20076         - ifdef all the code specific to the double
20077         buffer case, and provide some alternatives in the non-doublebuffer
20078         code, which makes heavy use of XplatUI.ScrollWindow to move things
20079         around without having to invalidate (and cause flicker).  There
20080         are still some drawing problems in the non-doublebuffered case, so
20081         DOUBLEBUFFER is defined by default.
20082
20083         - Fix the way dropdowns are handled.  now we explicitly watch for
20084         the events which might cause the dropdown to close, and break out
20085         of the nested event loop there.  This gets rid of all Capture
20086         code, at the expense of the Msg special casing.  Seems to work,
20087         though, and fixes bug #79743.
20088
20089 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
20090         * Control.cs: SetIsRecreating now recreates implicitly added
20091         child controls as well. Finally fixes #79629. The flag passed to 
20092         SetIsRecreating has also been removed since it wasn't used.
20093         
20094 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20095
20096         * PageSetupDialog.cs: Clean some code, fix some bits, 
20097         add some checks, and add a printer sub-dialog.
20098
20099 2006-10-26  Chris Toshok  <toshok@ximian.com>
20100
20101         * PropertyGrid.cs: make set_SelectedObject call
20102         set_SelectedObjects, and move the duplicate logic to the
20103         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
20104
20105         * PropertyGridView.cs: hide the textbox when we get a
20106         SelectedObjectsChanged event.
20107
20108         Fixes bug #79748.
20109
20110 2006-10-26  Chris Toshok  <toshok@ximian.com>
20111
20112         * PropertyGridView.cs: deal with the type converter not supporting
20113         GetStandardValues() or GetStandardValues() returning null, which
20114         is does in the default case.  Fixes #79742.
20115
20116 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
20117
20118         * CheckedListBox.cs: nunit no longer crashes when selecting 
20119         Project/Edit menu option
20120         
20121 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
20122
20123         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
20124         is no menu selected. fixes #79739
20125
20126 2006-10-25  Chris Toshok  <toshok@ximian.com>
20127
20128         * PropertyGridView.cs: factor out the splitter invalidation code
20129         into the SplitterPercent setter, and for kicks implement the
20130         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
20131         amount in either direction.
20132
20133 2006-10-25  Chris Toshok  <toshok@ximian.com>
20134
20135         * PropertyGridView.cs: do some cleanup of the brush used to draw
20136         text - read only fields should be grayed out.  not sure how to do
20137         this with the textbox, though.  but the textbox's should also be
20138         readonly now at least.  Also, hide/show the textbox when resizing
20139         the control.
20140         
20141         * CursorConverter.cs: use System.Reflection when getting the
20142         properties of Cursors, as TypeDescriptor.GetProperties isn't
20143         returning static properties.
20144
20145 2006-10-25  Chris Toshok  <toshok@ximian.com>
20146
20147         * PropertyGridView.cs: factor out the up/down handling, and reuse
20148         it for page up/down.  also add End/Home support.
20149
20150 2006-10-25  Chris Toshok  <toshok@ximian.com>
20151
20152         * PropertyGridView.cs:
20153
20154         - ensure the selected grid item is visible in the scrolled area,
20155         fixes bug #79572.
20156
20157         - fix Keys.Down handling when you're on the last item in the
20158         propertygrid.
20159
20160 2006-10-25  Mike Kestner  <mkestner@novell.com>
20161
20162         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
20163         clicks too.  Fixes #79725.
20164
20165 2006-10-24  Chris Toshok  <toshok@ximian.com>
20166
20167         * PropertyGrid.cs: use property.Converter instead of
20168         TypeDescriptor.GetConverter(property.PropertyType), so we catch
20169         TypeConverters declared on the property as well as on the
20170         PropertyType.  Fixes bug #79678.
20171
20172 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
20173
20174         * MimeIcon.cs, Mime.cs:
20175           Fallback to the default platform handler if no shared mime info
20176           stuff exists (fixes #79693).
20177
20178 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20179         * ContainerControl.cs: Incorrect contains check in ActiveControl 
20180         from previous fix (duh).
20181
20182 2006-10-20  Chris Toshok  <toshok@ximian.com>
20183
20184         * PropertyGridView.cs: the dropdown should be MIN(number of items
20185         in list, 15).  Fixes #79551.
20186
20187 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20188         Fixes #79384, #79394, #79652, #79667
20189         * Application.cs: 
20190         
20191         - Modal windows are now destroyed in the proper order for windows
20192         
20193         * ContainerControl.cs:
20194         
20195         - ActiveControl setter has more conditions on when to return:
20196                 - if we're reselecting the active control, but it actually
20197                 didn't have focus (window hidden or some such), it runs
20198                 - if the active control being selected doesn't actually 
20199                 exist in the container, it returns
20200         
20201         * Form.cs
20202         
20203         - The ShowDialog now gets the current form as the owner when
20204         invoking without parameters, and correctly activates the owner 
20205         when returning
20206         
20207         * MessageBox.cs
20208         
20209         - MessageBox now catches the Escape key to exit
20210
20211 2006-10-20  Chris Toshok  <toshok@ximian.com>
20212
20213         * PropertyGridView.cs: fix a number of issues (bug #78565, and
20214         most of bug #79676):
20215
20216         - you can navigate around the property grid with the arrow keys.
20217
20218         - the dropdown is sized properly when the pg has a vertical
20219         scrollbar.
20220
20221         - fix the indentation for subentries, and properly select the
20222         entire label rect.
20223
20224         - fix the gray bar's drawing (only draw it to the last element,
20225         not for the height of the control.  Also make sure we draw that
20226         last horizontal grid line.
20227
20228         - use the same mechanism the datagrid uses wrt the editing textbox
20229         when scrolling/resizing/etc.  Namely, we hide it first, do the
20230         operation, then show it again (if it's still visible).
20231         
20232         - aggressively remove a lot of unnecessary refreshes (and also
20233         calls to Invalidate(). call more limited variants, and only redraw
20234         what we need.)
20235         
20236         * PropertyGrid.cs:
20237
20238         - when we're populating the merged collection, fill in the UI
20239         parent with either the passed in item, or the category item we
20240         create.
20241
20242         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
20243
20244         * GridItem.cs: drop some fully qualified names.
20245         
20246         * GridEntry.cs: add a "UIParent", which is basically the parent
20247         treenode.
20248
20249         * GridItemCollection.cs: add an IndexOf method.
20250
20251 2006-10-20  Mike Kestner  <mkestner@novell.com>
20252
20253         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
20254         a working win32 NC invalidation mechanism, we can't invalidate
20255         menus.  [Fixes #79705]
20256
20257 2006-10-20  Mike Kestner  <mkestner@novell.com>
20258
20259         * ListBox.cs : don't update the VScrollbar if the list is empty,
20260         just hide it.  [Fixes #79692]
20261
20262 2006-10-20  Jackson Harper  <jackson@ximian.com>
20263
20264         * RichTextBox.cs: Handle some special chars better, and don't skip
20265         the entire group when we encounter a special char that we don't
20266         handle correctly.
20267
20268 2006-10-18  Chris Toshok  <toshok@ximian.com>
20269
20270         * PropertyGridView.cs: address a number of issues from bug #79676,
20271         mostly of the cosmetic variety.
20272
20273         - The highlight rectangle for indented items not extends all the
20274         way to the left.
20275
20276         - Indented items aren't indented so much.
20277
20278         - the dropdown is properly sized width-wise if the pg has a
20279         vertical scrollbar.
20280
20281 2006-10-18  Chris Toshok  <toshok@ximian.com>
20282
20283         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
20284         systray stuff is rather convoluted to begin with.
20285
20286         systray icons are a single window for some reason (that I haven't
20287         figured out yet), and for them, client_window == whole_window.
20288         Given the way the tests are structured elsewhere to determine
20289         which paints are pending (client vs. nc), that situation will
20290         always yield PAINT, not NCPAINT.  So, if we have a pending
20291         nc_expose and no pending expose, remove the hwnd from the paint
20292         queue, and also set nc_expose_pending to false, to keep us from
20293         blocking further expose's adding the hwnd to the paint queue.
20294
20295         phew.  like i said, a rather convoluted change.  Fixes the
20296         notifyicon repaint issues in bug #79645.
20297
20298 2006-10-18  Chris Toshok  <toshok@ximian.com>
20299
20300         * Form.cs: when getting the backcolor of the form, don't get
20301         base.BackColor, as this allows parents to influence the background
20302         color.  This breaks mdi forms.  Instead, if the background_color
20303         is empty, return the default.
20304
20305 2006-10-18  Chris Toshok  <toshok@ximian.com>
20306
20307         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
20308         to being private instead of internal static.
20309
20310         * Control.cs: remove all the stupid ParentWaitingOnRecreation
20311         crap, it wasn't working for more deeply nested controls anyway,
20312         and we already have the is_recreating flag - use that instead.
20313         Before calling DestroyHandle in RecreateHandle, recurse through
20314         the control tree setting it to true.  this returns the recreate
20315         code to much of its original simplicity, while now guaranteeing we
20316         actually recreate everything we're supposed to.  This change gets
20317         fyireporting actually showing mdi children.
20318
20319 2006-10-17  Chris Toshok  <toshok@ximian.com>
20320
20321         * Form.cs: remove some debug spew, and collapse some duplicate
20322         code at the end of SetClientSizeCore.
20323
20324         * XplatUIX11.cs: 
20325         - add some more debug spew here too wrt Destroy handling.
20326         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
20327         in Control's handling of WM_DESTROY.
20328         - Remove the handling of zombie window DestroyNotifies from the
20329         event loop - we don't need it.  Now the only DestroyNotifies we
20330         actually handle are ones generated by X.
20331         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
20332         match gtk's (functioning) handling of this. This keep metacity
20333         from leaving droppings in the form of wm borders with no window
20334         contents all over the place.
20335
20336         * Control.cs:
20337         - add a bunch of debug spew wrt control recreation.
20338         - fix a bug where we weren't tracking Visible properly on
20339         recreated hwnds.
20340         - fixed the WM_PAINT double buffer handling to support re-entrant
20341         calls (yes, i know it's gross, but it's happening to us).
20342
20343 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
20344         * ThemeWin32Classic.cs: changed drawing of selected days
20345         to make them look better.
20346
20347 2006-10-16  Chris Toshok  <toshok@ximian.com>
20348
20349         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
20350         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
20351
20352         * XplatUIX11.cs: move away from using hwnd.client_dc and
20353         hwnd.non_client_dc and on to a stack of dc's (and in window's
20354         case, PAINTSTRUCT's), so we can deal with nested Paint calls
20355         without puking or not disposing of Graphics objects.
20356
20357         * XplatUIOSX.cs: same.
20358
20359         * XplatUIWin32.cs: same.
20360
20361 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
20362
20363         * FileDialog.cs: Don't call on_directory_changed inside
20364           OnSelectedIndexChanged (it changes the SelectedIndex too).
20365           Instead move it to OnSelectionChangeCommitted.
20366
20367 2006-10-13  Chris Toshok  <toshok@ximian.com>
20368
20369         * XplatUIX11.cs: more Destroy work.  the current code does the
20370         following things, in order:
20371
20372         1. Enumerates all handles of all controls at or below the one
20373         being destroyed, in pre-order.  As it is doing this, it marks the
20374         handles as zombie and clears all references to them.
20375         
20376         2. calls XDestroyWindow on the window passed in.
20377
20378         3. SendMessage's WM_DESTROY to all he handles in the accumulated
20379         list.
20380
20381 2006-10-13  Chris Toshok  <toshok@ximian.com>
20382
20383         * XplatUIX11.cs: set hwnd.zombie to true before calling
20384         SendMessage (WM_DESTROY).  this keeps us from marking the new
20385         window a zombie, and also keeps us from calling sendmessage at
20386         all.
20387
20388 2006-10-13  Jackson Harper  <jackson@ximian.com>
20389
20390         * TextControl.cs: Do not show the caret and selection at the same
20391         time.  Reduces ugliness by 35%.
20392
20393 2006-10-13  Chris Toshok  <toshok@ximian.com>
20394
20395         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
20396         zombie after we do the recursive call, so we actually do call
20397         SendMessage on the children controls.
20398         (GetMessage): if we find a pending paint event for a zombie hwnd,
20399         remove the hwnd from the paint queue, or else it will always be
20400         there (and we'll effectively loop infinitely)
20401
20402 2006-10-13  Mike Kestner  <mkestner@novell.com>
20403
20404         * MenuItem.cs : add Selected format under keynav too.
20405         Fixes #79528.
20406
20407 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
20408
20409         * PropertyGrid.cs: Fixed some NRE's and small difference between our
20410         implementation and that of MS.
20411
20412 2006-10-13  Chris Toshok  <toshok@ximian.com>
20413
20414         * Control.cs (OnInvalidated) only futz with the invalid_region if
20415         the control is double buffered.  this fixes the apparent hang in
20416         the ListView unit tests.  Someone needs to make the
20417         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
20418
20419 2006-10-13  Chris Toshok  <toshok@ximian.com>
20420
20421         * PropertyGridView.cs:
20422
20423         - do a little refactoring so that only one place calls
20424         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
20425         else call that.  Also make it Refresh, since there are redraw bugs
20426         otherwise (we should take a look at that...)
20427
20428         - do a little more refactoring work to share the body of code
20429         involved with the drop down.  it was duplicated in the code
20430         dealing with the listbox handling and in the code dealing with the
20431         UITypeEditors.
20432
20433         - add a Capture to the dropdown form's control once it's
20434         displayed, and add a MouseDown handler that checks to make sure
20435         the position is inside the control.  If it's not, close the
20436         dropdown.  This fixes #78190.
20437
20438         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
20439         if the value is different than the initial value.
20440         
20441 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
20442
20443         * Control.cs: see #78650
20444         - Fixed GetNextControl for several cases:
20445                 - Changed FindFlatForward to return 
20446                 correct sibling control when more than one
20447                 control has same TabIndex as the currently 
20448                 focused one.
20449                 - Changed FindFlatBackward to loop children
20450                 from last to first and apply same logic as in
20451                 FindFlatForward
20452                 - Changed FindControlForward to search for
20453                 children when control is not a container
20454                 but has children, or search for siblings if
20455                 control is a container...
20456                 - Changed FindControlBackward   to continue
20457                 searching for child controls when hitting 
20458                 Panel-like parents
20459                 
20460         - Fixed Focus method to update ActiveControl
20461         (FocusTest.FocusSetsActive failure)
20462         
20463         * TabControl.cs:
20464         - Focus rectangle now refreshes when gaining
20465         or losing focus
20466         - Removed grab for Tab key on IsInputKey that 
20467         was keeping tab navigation from working (#78650)
20468
20469 2006-10-13  Chris Toshok  <toshok@ximian.com>
20470
20471         * PropertyGridView.cs:
20472         - Rewrite SetPropertyValue to loop over SelectedGridItem's
20473         SelectedObjects.
20474
20475         - Deal with GridItem.Value == null a few places.
20476
20477         * PropertyGrid.cs: 
20478         - replace the PopulateGridItemCollection with a pair of methods
20479         which compute the intersection of all the properties in the
20480         SelectedObjects array.  Fixes #79615.
20481
20482         - Throw ArgumentException from set_SelectedObjects if there's a
20483         null in the array.
20484
20485         - Add GetTarget method which can be used to traverse up the
20486         GridItem.Parent chain.  It depends on the assumption that
20487         selected_objects for different GridEntries are always in the same
20488         order (a safe assumption).  Use this method and loop over all the
20489         selected objects in the entry when calling RemoveValueChanged and
20490         AddValueChanged.
20491         
20492         * GridEntry.cs: Make this handle multiple selected objects.
20493         .Value returns null if not all the selected objects share the same
20494         value.
20495
20496 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
20497         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
20498           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
20499           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
20500           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
20501           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
20502         add additional functionality.
20503
20504 2006-10-12  Mike Kestner  <mkestner@novell.com>
20505
20506         * ErrorProvider.cs : new ToolTipWindow ctor sig.
20507         * HelpProvider.cs : new ToolTipWindow ctor sig.
20508         * ToolTip.cs : remove ToolTip param from Window sig since it is
20509         not used.
20510         * ToolBar.cs : add tooltip support.  Fixes #79565.
20511
20512 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
20513
20514         * ComboBox.cs: move the events in set_SelectedIndex to 
20515         after the call to HighlightIndex in order to avoid 
20516         possible recursion and subsequent problems with the call
20517         to HighlightIndex and include a range check in 
20518         set_HighlightIndex. Fixes #79588
20519         
20520 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
20521
20522         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
20523         to ui thread's settings instead of sunday. 
20524         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
20525
20526 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
20527
20528         * DateTimePicker.cs
20529         * MonthCalendar.cs
20530         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
20531         and implement missing functionality (selecting different parts 
20532         of the date and edit them individually with the keyboard).
20533         
20534 2006-10-11  Chris Toshok  <toshok@ximian.com>
20535
20536         * Control.cs (OnInvalidated): fix NRE relating to last change.
20537
20538 2006-10-11  Chris Toshok  <toshok@ximian.com>
20539
20540         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
20541         atoms in _NET_WM_STATE here if the window is maximized.  We need
20542         to do this because we're *replacing* the existing _NET_WM_STATE
20543         property, so those atoms will be lost otherwise, and any further
20544         call to GetWindowState will return Normal for a window which is
20545         actually maximized.  Fixes #79338.
20546
20547 2006-10-11  Jackson Harper  <jackson@ximian.com>
20548
20549         * TextControl.cs: Special case for setting selection end to
20550         selection start, we basically kill the anchor.
20551         - some todo comments.
20552
20553 2006-10-11  Chris Toshok  <toshok@ximian.com>
20554
20555         * Control.cs: switch to using an "invalid_region" to track which
20556         parts of the image buffer need updating.  This is more code than
20557         the simple fix from r66532.  That version just attempted to always
20558         fill the entire buffer on redraw, which turns out to be
20559         inefficient when invalidating small rectangles.  This version
20560         simply adds the invalid rectangle to the invalid region.  When we
20561         get any WM_PAINT message we see if it can be filled using the
20562         image buffer, and if it can't (if the paint event's clip rectangle
20563         is visible in the invalid region) we first fill the image buffer.
20564         So, the image buffer is still a cache, we just fill it lazily.
20565
20566         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
20567         need it any longer.
20568
20569 2006-10-11  Chris Toshok  <toshok@ximian.com>
20570
20571         * XplatUIX11.cs (SetWindowPos): we need to update both position as
20572         well as size after calling XMoveResizeWindow.  This keeps us from
20573         ignoring future SetWindowPos calls.  Fixes the disappearing
20574         DateTimePicker in the ToolBarDockExample from bug #72499.
20575
20576 2006-10-11  Chris Toshok  <toshok@ximian.com>
20577
20578         * TextBoxBase.cs: reorder things a bit when it comes to
20579         resizing-causing-recalculation.  we were recalculating the
20580         document when our position was changed, which shouldn't happen.
20581         We only care about size changes.  Clear up some more redundant
20582         recalculation calls while I'm at it.  This makes the toolbar dock
20583         example snappy when you're just dragging toolbars around (since it
20584         causes a relayout whenever you move one.)
20585
20586 2006-10-11  Chris Toshok  <toshok@ximian.com>
20587
20588         * ToolBarButton.cs (get_Rectangle): this only returns
20589         Rectangle.Empty if Visible == false, or Parent == null.
20590         Parent.Visible doesn't matter.
20591
20592 2006-10-10  Chris Toshok  <toshok@ximian.com>
20593
20594         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
20595         by .net 1.1, so switch to an internal method instead.
20596
20597 2006-10-10  Chris Toshok  <toshok@ximian.com>
20598
20599         * Control.cs (WM_PAINT): when a control is double buffered we draw
20600         initially to the ImageBuffer and then copy from there.  But when a
20601         parent control which has child controls is double buffered, the
20602         initial drawing doesn't encompass the entire ClientRectangle of
20603         the parent control, so we end up with uninitialized bits (this is
20604         easily seen by dragging the top toolbar in
20605         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
20606         manually set the ClipRectangle of the paint_event (only the one we
20607         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
20608         of the nastiness in bug #72499.
20609
20610         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
20611         which we use in Control.cs's WM_PAINT handling.
20612
20613 2006-10-10  Jackson Harper  <jackson@ximian.com>
20614
20615         * TextBoxBase.cs: Finish off the autoscrolling stuff.
20616
20617 2006-10-10  Chris Toshok  <toshok@ximian.com>
20618
20619         * Cursor.cs: Apply a slightly different patch to the one suggested
20620         in #79609.
20621
20622 2006-10-10  Jackson Harper  <jackson@ximian.com>
20623
20624         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
20625         not the parent form.
20626         * TextControl.cs: use difference in old line count vs new count to
20627         calculate how many lines were added, this takes into account soft
20628         line breaks properly.
20629
20630 2006-10-10  Chris Toshok  <toshok@ximian.com>
20631
20632         * LinkLabel.cs: don't call MeasureCharacterRanges against a
20633         rectangle located at 0,0 and the size of the text.  Use
20634         ClientRectangle instead.  This fixes rendering of non-left aligned
20635         link labels.
20636
20637 2006-10-10  Jackson Harper  <jackson@ximian.com>
20638
20639         * TextBoxBase.cs: When we set the selection start position the
20640         caret.
20641         * TextControl.cs: Need to update the caret when we decrement it to
20642         zero.
20643         - Make sure that the selection_visible flag gets reset to false if
20644         the selection isn't visible.  Before this you could get it set to
20645         visible by changing the selection start, then changing the end to
20646         equal the start.
20647
20648 2006-10-09  Jackson Harper  <jackson@ximian.com>
20649
20650         * TreeView.cs: Don't update scrollbars when we aren't visible.
20651         * TreeNodeCollection.cs: Only need to update scrollbars if being
20652         added to an expanded visible node or the root node.
20653
20654 2006-10-09  Chris Toshok  <toshok@ximian.com>
20655
20656         * XplatUIX11.cs (SendMessage): fix NRE.
20657
20658 2006-10-09  Jackson Harper  <jackson@ximian.com>
20659
20660         * TextBoxBase.cs: Implement horizontal autoscrolling.
20661         * TextControl.cs: Add a movement types that allows moving forward
20662         and backwards without wrapping.
20663
20664 2006-10-09  Mike Kestner  <mkestner@novell.com>
20665
20666         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
20667         with focus "expansion" of labels.  Fixes #79532 and then some.
20668         * ThemeWin32Classic.cs : add LineLimit to ListView label format
20669         when wrapping.
20670
20671 2006-10-09  Jackson Harper  <jackson@ximian.com>
20672
20673         * TextBoxBase.cs: Set the default max values to MaxValue since
20674         we use the scrollbar for autoscrolling and the default value is
20675         100.  If we don't do this the caret won't keep up with typing
20676         after about 18 characters.
20677         * TextControl.cs: Make sure the selection is offset by the
20678         viewport x.  This fixes selection when using auto scrolling.
20679
20680 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
20681         
20682         * Form.cs: The active control should be selected after the 
20683         OnLoad so that any child control initialization that affects
20684         the selection is done. Fixes #79406
20685
20686 2006-10-06  Chris Toshok  <toshok@ximian.com>
20687
20688         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
20689         to have no evil effects.
20690
20691         - Stop selecting StructureNotifyMask on non-toplevel windows.
20692
20693           The only way children should be resized is by using the SWF api,
20694           and we already send WM_WINDOWPOSCHANGED messages in those cases.
20695           Toplevel windows can be interacted with via the window manager,
20696           and so we keep the input mask there.
20697
20698           The other event StructureNotifyMask gives us (that we care
20699           about) is DestroyNotify.  The code is already structured such
20700           that it assumes we won't be getting a DestroyNotify event for
20701           the window we pass to XDestroyWindow (which is what
20702           StructureNotifyMask is supposed to guarantee.)  So, that code
20703           shouldn't be affected by this either.
20704
20705         - Stop selecting VisibilityChangeMask altogether.
20706
20707           We weren't doing anything with the resulting events anyway.
20708         
20709         This vastly reduces the number of X requests and events we see
20710         when resizing/laying out a large ui.
20711
20712 2006-10-06  Chris Toshok  <toshok@ximian.com>
20713
20714         * ScrollableControl.cs (DisplayRectangle): we need to take into
20715         account the DockPadding regardless of whether or not auto_scroll
20716         == true.  rework this slightly to this effect, and fix bug #79606,
20717         and part of #72499 (you can now see the drag handles and drag
20718         toolbars around).
20719
20720 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
20721
20722         * ListViewItem.cs: Collections of selected and checked items are now
20723         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
20724         we mark the collection "dirty".
20725         * ListView.cs: Marked collections readonly. Modified UpdateSelection
20726         to only clear SelectedItems when a new item is selected and MultiSelect
20727         is enabled. CheckedItems and SelectedItems now subscribe to Changed
20728         event of ListViewItemCollection, and mark its list dirty whenever
20729         that event is fire. This allows us to return selected/checked items 
20730         in the same order as they are in the Items collection. This matches
20731         the MS behavior.
20732
20733 2006-10-06  Chris Toshok  <toshok@ximian.com>
20734
20735         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
20736         right mouse clicks.  Fixes bug #79593.
20737
20738 2006-10-06  Chris Toshok  <toshok@ximian.com>
20739
20740         * Splitter.cs: doh, fix splitters that don't want to cancel the
20741         movement when you drag them.  Also, impose the limits on the
20742         values we send to the SplitterMovingEvent.  Fixes #79598.
20743
20744 2006-10-06  Jackson Harper  <jackson@ximian.com>
20745
20746         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
20747         since we use this for auto scrolling also.
20748
20749 2006-10-05  Chris Toshok  <toshok@ximian.com>
20750
20751         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
20752         beginning to think that most datagrid column types don't need this
20753         method.  Fixes bug #79392.
20754
20755 2006-10-05  Chris Toshok  <toshok@ximian.com>
20756
20757         * DataGrid.cs: move back to a more lazy scheme for creating the
20758         CurrencyManager, so we aren't updating it every time you set
20759         either DataSource or DataMember.  Also, don't call
20760         RecreateDataGridRows if the currency manager hasn't changed.
20761
20762 2006-10-05  Chris Toshok  <toshok@ximian.com>
20763
20764         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
20765         emitted, SelectedIndex should already be updated.  Fixes bug
20766         #78929.
20767
20768 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
20769
20770         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
20771           ToolStripTextBox.cs: Initial commit.
20772         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
20773
20774 2006-10-05  Jackson Harper  <jackson@ximian.com>
20775
20776         * TabControl.cs: We need to invalidate the tab control area when
20777         new ones are added (duh).
20778
20779 2006-10-03  Chris Toshok  <toshok@ximian.com>
20780
20781         * Form.cs (ProcessDialogKey): if the focused control is in this
20782         form and is a button, call its PerformClick method here.  Fixes
20783         #79534.
20784
20785 2006-10-04  Jackson Harper  <jackson@ximian.com>
20786
20787         * TabPage.cs: Ignore setting of Visible, and add an internal
20788         method for setting the controls visibility.  TabPage's Visible
20789         property is a little strange on MS, this seems to make us
20790         compatible, and fixes cases where people set all the tab pages to
20791         visible.
20792         * TabControl.cs: Use the new internal setting on tab pages
20793         visibility.
20794
20795 2006-10-03  Mike Kestner  <mkestner@novell.com>
20796
20797         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
20798
20799 2006-10-03  Mike Kestner  <mkestner@novell.com>
20800
20801         * ListView.cs : use is_visible instead of Visible to check if 
20802         scrollbars should be placed/sized.  Also some max_wrap_width
20803         love for LargeIcon view.  [Fixes #79533]
20804
20805 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
20806
20807         * TextControl.cs :
20808           Make set_TextAlign() do actually update the align. Fixed #78403.
20809
20810 2006-10-03  Chris Toshok  <toshok@ximian.com>
20811
20812         * DataGrid.cs: fix a crash when switching datasources if the
20813         vertical scrollbar is at someplace other than Value = 0.  Also,
20814         reduce the number of recalculation passes we do in SetDataSource
20815         from 2 to 1.
20816
20817 2006-10-03  Jackson Harper  <jackson@ximian.com>
20818
20819         * TextBoxBase.cs: Move the if value the same bail check up, we
20820         don't want to empty the document if it is already empty, this
20821         seems to severly mess up the caret.  TODO: I should probably fix
20822         the empty statement to update teh caret somehow.
20823
20824 2006-10-03  Chris Toshok  <toshok@ximian.com>
20825
20826         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
20827         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
20828         reflection, an internal row type, properties on said type, etc.)
20829         will work with our datagrid.  Fixes #79531.
20830
20831 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
20832
20833         * FileDialog.cs: Don't crash if a path is not accessible
20834           (System.UnauthorizedAccessException). Fixes #79569.
20835         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
20836           a ':' too. Return unknown icon for those paths/files.
20837
20838 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
20839
20840         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
20841         GetContainerControl returns null.
20842
20843 2006-10-02  Chris Toshok  <toshok@ximian.com>
20844
20845         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
20846         call to XGetWindowAttributes instead of "handle".  fixes an X
20847         error using notifyicon after the NotifyIconWindow to Form base
20848         class switch.
20849
20850 2006-10-02  Chris Toshok  <toshok@ximian.com>
20851
20852         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
20853         server grab and looping we need to do to get down to the most
20854         deeply nested child window.
20855         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
20856         QueryPointer again after the WarpPointer so we can generate a
20857         proper (fake) MotionNotify event to be enqueued in the destination
20858         window's queue.
20859         (GetCursorPos): call QueryPointer.
20860
20861         Fixes #79556.
20862
20863 2006-10-02  Jackson Harper  <jackson@ximian.com>
20864
20865         * NotifyIcon.cs: Derive the notify icon from a form, so things
20866         like FindForm work on it.
20867         - Swallow the WM_CONTEXTMENU message, since that is generated on
20868         mouse down, and context menu is a mouse up kinda guy.  I believe
20869         the correct fix here is probably to make the notify icon entirely
20870         NC area, but this seems to work fine for anyone not manipulating
20871         WndProc.
20872
20873 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
20874
20875         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
20876           ToolStripItemCollection.cs, ToolStripLabel.cs,
20877           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
20878           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
20879           Initial implementation.
20880         * TextRenderer.cs: Provide padding to MeasureText.
20881
20882 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
20883
20884         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
20885         of ButtonBaseAccessibleObject. Fix bug #79552.
20886
20887 2006-10-02  Jackson Harper  <jackson@ximian.com>
20888
20889         * MdiWindowManager.cs: When maximizing use the containers client
20890         rect, not it's bounds, so nc area is accounted correctly.
20891         - Use the parent form's size for the menu position, since the
20892         client isn't always the full form size.
20893
20894 2006-10-01  Chris Toshok  <toshok@ximian.com>
20895
20896         * ScrollableControl.cs: make sure neither right_edge or
20897         bottom_edge are < 0, since they're used as LargeChange for the
20898         horiz/vert scrollbars respectively.  Fixes #79539.
20899
20900 2006-10-01  Chris Toshok  <toshok@ximian.com>
20901
20902         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
20903         the xplatuix11 code can cause us to destroy/recreate our handle.
20904
20905         * XplatUIX11.cs
20906         (SystrayAdd):
20907         - this code can be invoked many times for the same Hwnd.  Make
20908           sure we only destroy the client window once (the first time this
20909           method is called).  This fixes bug #79544.
20910         - Remove the call to the improperly bound XSync.  why we had two
20911           bindings to this, I will never know, but this call resulted in
20912           events being discarded from the queue(!).
20913         - correct a misunderstanding of _XEMBED_INFO - the second atom is
20914           not our current state but the state we wish to be in.  So, 0 if
20915           we don't want to be mapped.  Change it to 1.
20916         (SystrayRemove): The XEMBED spec makes mention of the fact that
20917         gtk doesn't support the reparent of client windows away from the
20918         embedder.  Looking at gtksocket-x11.c seems to agree with this.
20919         The only avenue we have for removing systray icons is to destroy
20920         them.  We don't want the handle to go away for good, though, so
20921         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
20922         #79545.
20923         
20924 2006-10-01  Chris Toshok  <toshok@ximian.com>
20925
20926         * Form.cs (WndProc): inline the native_enabled variable usage into
20927         the cases in which it's used.  Fixes #79536.
20928
20929 2006-09-29  Mike Kestner  <mkestner@novell.com>
20930
20931         * ListView.cs : toggle the selection state for ctrl clicks in 
20932         multiselect mode. [Fixes #79417]
20933
20934 2006-09-29  Mike Kestner  <mkestner@novell.com>
20935
20936         * ListView.cs : kill CanMultiSelect and refactor the selection
20937         code to support multiselection in the absence of mod keys. Steal
20938         arrow/home/end keys by overriding InternalPreProcessMessage to
20939         restore regressed keynav behavior.
20940         [Fixes #79416]
20941
20942 2006-09-29  Jackson Harper  <jackson@ximian.com>
20943
20944         * MdiClient.cs: Repaint the titlebars when the active window is
20945         changed.
20946
20947 2006-09-29  Chris Toshok  <toshok@ximian.com>
20948
20949         * Application.cs: when entering a runloop with a modal, make sure
20950         the hwnd is enabled.  Fixes #79480.
20951
20952 2006-09-29  Chris Toshok  <toshok@ximian.com>
20953
20954         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
20955         when ListManager.CanAddRows == false, bump us back one.
20956
20957         * DataGridColumnStyle.cs (ParentReadOnly): remove the
20958         listmanager.CanAddRows check.  This makes ArrayLists uneditable
20959         using a datagrid, which is not right.
20960         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
20961         is an IEditable, but call property_descriptor.SetValue regardless.
20962         fixes #79435.
20963
20964 2006-09-29  Chris Toshok  <toshok@ximian.com>
20965
20966         * DataGridBoolColumn.cs: we need to test equality in the face of
20967         possible null values (as is the case with the default NullValue).
20968         This patch keeps us from crashing in that case.
20969
20970 2006-09-29  Jackson Harper  <jackson@ximian.com>
20971
20972         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
20973         here, since it will get called for every node collection in the
20974         tree. This is now done in the treeview once the sorting is
20975         finished.
20976         * TreeView.cs: Recalculate the visible order, and update the
20977         scrollbars after sorting, set the top nope to the root so that the
20978         recalc actually works.
20979
20980 2006-09-29  Chris Toshok  <toshok@ximian.com>
20981
20982         * LinkLabel.cs: more handling of the default link collection in
20983         the face of LinkArea manipulation.  The default link collection
20984         contains 1 element (start=0,length=-1).  If the user sets LinkArea
20985         to anything and the links collection is the default, clear it.
20986         Then only add the link if its nonempty.  Fixes #79518.
20987
20988 2006-09-29  Chris Toshok  <toshok@ximian.com>
20989
20990         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
20991         piece correctly when we hit a '\n'.  Fixes #79517.
20992
20993 2006-09-29  Chris Toshok  <toshok@ximian.com>
20994
20995         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
20996         change the binding of gdk_init_check to take two IntPtr's, and
20997         pass IntPtr.Zero for both of them.  Fixes #79520.
20998
20999 2006-09-29  Mike Kestner  <mkestner@novell.com>
21000
21001         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
21002         [Fixes #78779]
21003
21004 2006-09-28  Jackson Harper  <jackson@ximian.com>
21005
21006         * XplatUIX11.cs: When translating NC messages make sure we go from
21007         whole window to screen, not client window to screen.
21008         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
21009         method doesn't exist
21010         - Skip over controls that aren't forms when arranging.
21011
21012 2006-09-28  Jackson Harper  <jackson@ximian.com>
21013
21014         * XplatUIWin32.cs: Clip the rect to the parent window.
21015         * XplatUIStructs.cs: Add clipping modes struct.
21016         * InternalWindowManager.cs: New private method that factors title
21017         bar heights in when calculating the pos of an NC mouse message.
21018         - Use SendMessage to force a paint when the form's size is changed
21019         instead of painting the decorations immediately.
21020         - Don't let the NC button click messages get to DefWndProc,
21021         because they will attempt to handle windowing themself, and this
21022         messes up z-order (it will put them in front of the scrollbars).
21023         * XplatUIX11.cs: Make sure that we don't reset window managers if
21024         we already have one (ie the window is an MDI window).
21025
21026 2006-09-28  Chris Toshok  <toshok@ximian.com>
21027
21028         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
21029         menu code really needs going over.
21030
21031 2006-09-27  Chris Toshok  <toshok@ximian.com>
21032
21033         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
21034         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
21035         window is maximizable.  So, we need to make sure that even if we
21036         clear the border/wm frame of those functions, they're still
21037         available (basically, we remove the decoration without removing
21038         the function).  Half the fix for #79338.
21039
21040 2006-09-27  Chris Toshok  <toshok@ximian.com>
21041
21042         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
21043         Fixes bug #79515.
21044
21045 2006-09-27  Chris Toshok  <toshok@ximian.com>
21046
21047         * Splitter.cs: reorder things a bit so that we don't actually
21048         draw/move the splitter until after calling OnSplitterMoving.  This
21049         lets users cancel/disallow the movement by explicitly setting
21050         event.SplitX/SplitY.  Fixes #79372.
21051
21052 2006-09-27  Jackson Harper  <jackson@ximian.com>
21053
21054         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
21055         because it is most likely on a window being destroyed, and that
21056         will give us an X11 error.
21057
21058 2006-09-27  Chris Toshok  <toshok@ximian.com>
21059
21060         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
21061         the dropdown button now toggles between showing and hiding the
21062         dropdown.  Also, get rid of dropdown_form_showing and just use
21063         dropdown_form.Visible.  We still don't do a grab, but I'll leave
21064         that part to someone who has handled Capture-fu before.
21065
21066 2006-09-27  Chris Toshok  <toshok@ximian.com>
21067
21068         * DataGrid.cs: return false if alt isn't pressed when '0' is
21069         pressed.  this keeps the '0' key from being swallowed, and fixes
21070         bug #79350.
21071
21072 2006-09-27  Chris Toshok  <toshok@ximian.com>
21073
21074         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
21075         Calling Refresh (in response to a scrollbar event) screws up the
21076         scrollbar painting.  Fixes bug #78923.
21077
21078 2006-09-27  Chris Toshok  <toshok@ximian.com>
21079
21080         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
21081         then insert into hashtable" blocks threadsafe.
21082
21083 2006-09-27  Chris Toshok  <toshok@ximian.com>
21084
21085         * MessageBox.cs (CreateParams): the styles should be |'ed with our
21086         baseclass's, since otherwise the
21087         ControlBox/MinimizeBox/MaximizeBox assignments above have no
21088         effect.  This gets the close button back in messageboxes.
21089
21090 2006-09-27  Chris Toshok  <toshok@ximian.com>
21091
21092         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
21093         flag, not just != 0.  this makes flags that are actually multiple
21094         bits (like WS_CAPTION) work.  fixes bug #79508.
21095
21096 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
21097
21098         * PageSetupDialog.cs: add support for getting and settings the 
21099         paper size, source and orientation.
21100
21101 2006-09-26  Chris Toshok  <toshok@ximian.com>
21102
21103         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
21104         and caption == "", we need to remove the resize handles as well as
21105         the title bar.
21106
21107         * Control.cs (set_Text): turns out that setting Text on a form
21108         should change the WM styles on the window, since if ControlBox ==
21109         false, the only way to get a window border is to have a non-""
21110         Text property.  check winforms/forms/text.cs for an example.  so,
21111         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
21112         update both window styles and title.  This fixes a lot of dialogs
21113         (including the preferences dialog in MonoCalendar.)
21114
21115 2006-09-26  Chris Toshok  <toshok@ximian.com>
21116
21117         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
21118         control isn't a Form), call Win32ShowWindow to hide the window,
21119         but don't update the control Visible property.  When we reparent
21120         back to a parent control, call SetVisible in order for the
21121         window's visibility to be reinstated.
21122
21123         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
21124         the FosterParent.
21125
21126         * Control.cs (ControlCollection.Remove): remove that value.Hide()
21127         call for good, since it breaks MonoCalendar (and other things I'm
21128         sure.) Also, set all_controls to null *after* the owner calls,
21129         which end up regenerating it.
21130         (ChangeParent): allow new_parent to be == null, passing
21131         IntPtr.Zero down to XplatUI.
21132
21133         this fixes #79294 the right way.
21134
21135 2006-09-26  Mike Kestner  <mkestner@novell.com>
21136
21137         * GridEntry.cs : internal SetParent method.
21138         * PropertyGrid.cs : attach to property changed on the proper
21139         target if we have a hierarchical grid with subobjects. Setup
21140         GridItem.Parent for hierarchical items.
21141         * PropertyGridView.cs : Set value on the correct target for
21142         hierarchical grids. [Fixes #78903]
21143
21144 2006-09-26  Chris Toshok  <toshok@ximian.com>
21145
21146         * Control.cs (ChildNeedsRecreating): this should return true if
21147         either we're being recreated and the child is in our list, or our
21148         parent is waiting for our recreation.
21149
21150 2006-09-26  Chris Toshok  <toshok@ximian.com>
21151
21152         * Control.cs (ControlCollection.Remove): reinstate the
21153         value.Hide() call as suggested in bug #79294.
21154
21155 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
21156
21157         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
21158         coordinates (versus a relative move).
21159
21160 2006-09-26  Chris Toshok  <toshok@ximian.com>
21161
21162         * Control.cs: rework child recreation a little bit.  It turns out
21163         that we race between the DestroyNotify the WM_DESTROY message.  If
21164         the parent gets its DestroyNotify before the child gets the
21165         WM_DESTROY message, the child ends up not recreating (since the
21166         parent finishes its recreation on DestroyNotify, and the child
21167         checks ParentIsRecreating.)
21168
21169         So, instead we store off a list of all the child controls which
21170         need to be recreated when the parent control starts to recreate
21171         itself.  Then, when child controls get their WM_DESTROY message we
21172         check to see if they're in the parent's pending recreation list,
21173         and if so, we recreate.  This removes all dependency on ordering
21174         from the code and fixes the initial MonoCalendar upgrade dialog.
21175         
21176 2006-09-26  Jackson Harper  <jackson@ximian.com>
21177
21178         * TextControl.cs: Use the Line to get the length of the line,
21179         since soft line breaks can change the end line.
21180
21181 2006-09-26  Chris Toshok  <toshok@ximian.com>
21182
21183         * Control.cs (ControlCollection.AddImplicit): don't add the
21184         control again if it's already in one of our lists.  This keeps us
21185         from adding controls over and over again for comboboxes when their
21186         handle gets recreated (as the combobox adds implicit controls in
21187         OnHandleCreated).  Fixes the X11 errors in bug #79480.
21188
21189 2006-09-26  Jackson Harper  <jackson@ximian.com>
21190
21191         * TextControl.cs: When deleting characters make sure that any
21192         orphaned zero lengthed tags get deleted.
21193         - Fix ToString for zero lengthed tags.
21194
21195 2006-09-25  Jackson Harper  <jackson@ximian.com>
21196
21197         * TextControl.cs: When getting a tag at the location there can be
21198         multiple tags at the same spot, these are 0-lengthed tags that
21199         appear when extra formatting has been stuck in a location.  We
21200         need to pull out the last of these 0 lengthed tags.
21201
21202 2006-09-25  Jackson Harper  <jackson@ximian.com>
21203
21204         * TextControl.cs: Fix print out in debug method.
21205         * TextBoxBase.cs: When text is set bail if we are setting to the
21206         previous value.
21207         
21208 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
21209
21210         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
21211           It is now possible to change the selected index in a FontXXXListBox
21212           with the up and down arrow keys from the FontXXXTextBoxes.
21213           Also, send the FontXXXTextBox mouse wheel event to the corresponding
21214           FontXXXListBoxes to match ms.
21215
21216 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
21217
21218         * SystemInformation.cs: Return a clone of the theme's MenuFont because
21219         anyone can dispose it, anytime. All other properties returns enums, 
21220         structs or basic types so they don't need such tricks.
21221
21222 2006-09-22  Jackson Harper  <jackson@ximian.com>
21223
21224         * XplatUI.cs:
21225         * XplatUIWin32.cs:
21226         * Clipboard.cs:
21227         * DataFormats.cs:
21228         * XplatUIOSX.cs:
21229         * XplatUIDriver.cs: Update interface to add a primary selection
21230         flag, so the driver can use the primary selection buffer if
21231         needed.
21232         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
21233
21234         * RichTextBox.cs: We need to supply the data object to paste now
21235         (so we can choose to supply CLIPBOARD or PRIMARY).
21236         * TextBoxBase.cs: Supply data object to paste (see above).
21237         - Middle click uses the primary selection data object.
21238         
21239 2006-09-21  Chris Toshok  <toshok@ximian.com>
21240
21241         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
21242         of SetWMStyles.  It's still a rat's nest and is largely
21243         order-dependent which I dislike immensely.  This also fixes the X
21244         button disappearing from toplevel forms.
21245
21246 2006-09-21  Mike Kestner <mkestner@novell.com>
21247
21248         * ListBox.cs: move Jordi's click/dblclick raising code to the
21249         mouse up handler.
21250
21251 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
21252
21253         * ListBox.cs: Fixes 79450
21254
21255 2006-09-21  Mike Kestner <mkestner@novell.com>
21256
21257         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
21258         to deal with people updating the TreeNodeCollection after the tree
21259         is disposed.  "Fixes" 79330.
21260
21261 2006-09-20  Jackson Harper <jackson@ximian.com>
21262
21263         * TextControl.cs: Push the cursor record onto the undo stack
21264         before the delete action. This fixes 78651.
21265
21266 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
21267
21268         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
21269         CreateParams. Fixes 79329.
21270
21271 2006-09-19  Chris Toshok  <toshok@ximian.com>
21272
21273         * XplatUIX11.cs: a couple of blanket code massage passes to clean
21274         things up a bit.  First, get rid of the NetAtoms array (and the NA
21275         enum), and just embed the atoms as static fields.  Also, add a
21276         couple of functions (StyleSet and ExStyleSet) to clean up all the
21277         bitmask testing of styles.
21278
21279         * X11Structs.cs: remove the NA enum, not needed anymore.
21280         
21281 2006-09-19  Chris Toshok  <toshok@ximian.com>
21282
21283         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
21284         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
21285         added cleanup to get MessageBox titles appearing again, which were
21286         broken by my earlier fix for caption-less/ControlBox-less windows.
21287
21288 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
21289
21290         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
21291           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
21292           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
21293           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
21294           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
21295           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
21296           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
21297           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
21298           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
21299           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
21300           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
21301             Inital import.
21302         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
21303           ToolStripButton.cs: Stubs needed for above.
21304         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
21305
21306 2006-09-15  Chris Toshok  <toshok@ximian.com>
21307
21308         * XplatUIX11.cs:
21309         - make the MessageQueues hashtable Synchronized.
21310         
21311         - SendMessage: if the Hwnd is owned by a different thread, use the
21312         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
21313         thread.  Fixes bug #79201.
21314
21315 2006-09-15  Chris Toshok  <toshok@ximian.com>
21316
21317         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
21318         ControlBox == false, we disallow maximize/minimize/close.  If the
21319         form Caption is "" we also disallow move (and get rid of the Title
21320         decoration).  Unfortunately, regardless of how things are set,
21321         we're stuck with the Title and WM menu.
21322
21323 2006-09-15  Chris Toshok  <toshok@ximian.com>
21324
21325         * Application.cs: add locking around the static message_filters
21326         ArrayList, part of #79196.
21327
21328 2006-09-15  Chris Toshok  <toshok@ximian.com>
21329
21330         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
21331         Form.ControlBox == false, the window has no titlebar nor resize
21332         handles.  fixes bug #79368.
21333
21334 2006-09-15  Chris Toshok  <toshok@ximian.com>
21335
21336         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
21337         >= 0.  Fixes bug #79370.
21338
21339 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
21340         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
21341         * Control.cs:
21342             Add properties: LayoutEngine, Margin, DefaultMargin.
21343             Add method: GetPreferredSize.
21344             Move layout logic from PerformLayout to layout engines. 
21345
21346 2006-09-13  Chris Toshok  <toshok@ximian.com>
21347
21348         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
21349         fix for #79326 broke #78718, so this change addresses that.
21350
21351         - in SendWMDestroyMessages remove the call to
21352         CleanupCachedWindows, since we might be recreating the control and
21353         need to maintain the references to right Hwnd handles.  Also, set
21354         the zombie flag to true for each of the children in the hierarchy
21355         instead of calling hwnd.Dispose.  This will cause GetMessage to
21356         ignore all events for the window except for DestroyNotify.
21357
21358         - In GetMessage, ignore messages except for DestroyNotify for
21359         zombie hwnds.
21360         
21361         * Control.cs: revert the is_recreating fix from the last
21362         ChangeLog.  It's definitely "right", but it breaks switching from
21363         an MDI form to a non-MDI form.  Will need to revisit that.
21364
21365         * Hwnd.cs: add a zombie flag, which means "the
21366         client_window/whole_window handles are invalid, but we're waiting
21367         for the DestroyNotify event to come in for them".  Set the flag to
21368         false explicitly if setting WholeWindow/ClientWindow, and also
21369         when Disposing.
21370         
21371 2006-09-13  Chris Toshok  <toshok@ximian.com>
21372
21373         * XplatUIX11.cs: rework window destruction slightly.
21374
21375         - when destroying the windows associated with a control, we don't
21376         need 2 separate XDestroyWindow calls.  Just the one for the
21377         whole_window (or for client_window if whole_window is somehow
21378         IntPtr.Zero -- can this happen?) is enough.
21379
21380         - reworked SendWMDestroyMessages slightly, so we always dispose
21381         the child control hwnd's after sending the messages.
21382         
21383         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
21384         the two places it was used (one was even using hwnd.Handle and the
21385         other hwnd.client_window.  ugh), adding another call in
21386         SendWMDestroyMessages.  We need this new call because now the
21387         DestroyNotify events in the queue will be ignored for the child
21388         controls (as their hwnd's were disposed, and the window id's
21389         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
21390
21391         - this fixes bug #79326.
21392
21393 2006-09-13  Chris Toshok  <toshok@ximian.com>
21394
21395         * Control.cs: don't always set is_recreating to false at the end
21396         of RecreateHandle, since sometimes we're not done (and won't be
21397         until WndProc handles the WM_DESTROY message).  Also, set
21398         is_recreating to false in the WM_DESTROY handling code.  Part of
21399         the fix for bug #79326.
21400
21401 2006-09-13  Miguel de Icaza  <miguel@novell.com>
21402
21403         * X11DesktopColors.cs: Start the droppage of debugging messages.
21404
21405         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
21406
21407 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
21408
21409         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
21410
21411 2006-09-12  Chris Toshok  <toshok@ximian.com>
21412
21413         * DataGrid.cs (get_ListManager): if the list_manager is null, try
21414         to create it using SetDataSource.  Fixes bug #79151.
21415
21416 2006-09-11  Chris Toshok  <toshok@ximian.com>
21417
21418         * XEventQueue.cs: add a DispatchIdle property.
21419
21420         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
21421         either the queue is null, or the queue has DispatchIdle set to
21422         true.
21423         (DoEvents): set queue.DispatchIdle to false around the
21424         peek/translate/dispatch message loop in this method.  This keeps
21425         Application.Doevents from emitting idle events.  Part of the fix
21426         for #78823.
21427
21428 2006-09-11  Chris Toshok  <toshok@ximian.com>
21429
21430         * DataGrid.cs (set_DataSource): make this work for both the
21431         winforms/datagrid test and ReportBuilder.  It seems as though when
21432         we've created a ListManager (or maybe it's if we have a
21433         BindingContext?), when we set the DataSource it clears the
21434         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
21435         #79333.
21436
21437 2006-09-11  Chris Toshok  <toshok@ximian.com>
21438
21439         * XplatUIX11.cs: deal with queue being null, which happens in all
21440         the Clipboard functions.  Fixes one of the two problems mentioned
21441         in #78612.
21442
21443 2006-09-11  Chris Toshok  <toshok@ximian.com>
21444
21445         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
21446         button on various spots (including outside the menu) works closer
21447         to MS, and doesn't crash.  Fixes #79343.
21448
21449 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
21450
21451         * ListView.cs: Do not initialize item_sorter in init. To match MS,
21452         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
21453         and the internal comparer is set. When a new ListViewItemSorter is set,
21454         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
21455         was specified. No further processing is necessary if SortOrder is set
21456         to it's current value. If Sorting is modified to None, and View is
21457         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
21458         (either custom or our internal ItemComparer) to null, on 1.0 profile
21459         only set item_sorter to null if its our internal IComparer. If Sorting
21460         is modified to Ascending or Descending, then use our internal IComparer
21461         if none is set, and if the current IComparer is our internal one then:
21462         on 2.0 profile always replace it with one for new Sorting, and on 1.0
21463         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
21464         Enum.IsDefined to verify whether a valid View value is specified in
21465         its setter. Automatically sort listview items when listview is
21466         created. In Sort, do nothing if ListView is not yet created, or if
21467         no item_sorter is set (no Sorting was set, Sorting was explicitly set
21468         to None or ListViewItemSorter was set to null). Added Sort overload
21469         taking a bool to indicate whether the ListView should be redrawn when
21470         items are sorted (we use this in ListViewItemCollection to avoid double
21471         redraws). Modified our internal IComparer to take the sort order into
21472         account. In Add and AddRange methods of ListViewItemCollection, also
21473         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
21474         view), but use overload with noredraw option to avoid double redraw.
21475         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
21476         true when View is Tile, and do the same when attempting to set View to
21477         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
21478         for selected/checked indices, as it involves overhead when sorting is
21479         done while these collections are not used all that often. Instead
21480         we'll build the indices on demand. Modified IList implementation of
21481         CheckedIndexCollection to use public methods if object is int.
21482         Modified CheckedListViewItemCollection to hide checked items if
21483         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
21484         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
21485         IList implementation in SelectedIndexCollection to use public methods
21486         if object is int. Modified SelectedListViewItemCollection to hide
21487         selected items if listview is not yet created.
21488         * ListViewItem.cs: CheckedIndices list no longer needs to be
21489         maintained separately (see ListView changes). Also clone font, fixes
21490         test failure.
21491
21492 2006-09-11  Mike Kestner  <mkestner@novell.com>
21493
21494         * ComboBox.cs: if we are updating the contents of the currently
21495         selected index, refresh the control or the textbox selection.
21496         [Fixes #79066]
21497
21498 2006-09-11  Mike Kestner  <mkestner@novell.com>
21499
21500         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
21501         the 'specified' logic has been moved there.  This seems like a bug 
21502         in Control.cs, since our current SetBoundsCore completely ignores 
21503         the specified parameter.  Peter's commit seems to indicate that is 
21504         the way the MS control implementation works.  [Fixes #79325]
21505
21506 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
21507
21508         * XplatUI.cs: Set default_class_name to be composed
21509         of current domain id. This allows MWF to be loaded in multiple
21510         domains on Win32.
21511
21512 2006-09-09  Miguel de Icaza  <miguel@novell.com>
21513
21514         * X11Keyboard.cs: If we are unable to obtain the input method, do
21515         not call CreateXic to create the input context.   Should fix
21516         #78944/79276.
21517
21518 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
21519
21520         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
21521           Simplified gnome support by adding more pinvokes to get the
21522           icon for a file or mime type.
21523
21524 2006-09-08  Jackson Harper  <jackson@ximian.com>
21525
21526         * MenuAPI.cs: Deslect popup context menu items before closing the
21527         window, so that you don't see the previously selected item
21528         selected when you reopen the menu.
21529         * TextControl.cs: Update the cursor position even if we don't have
21530         focus.  This fixes typing in things like the ComboBox.  I'm not
21531         totally sure we should always set the visibility if we don't have
21532         focus, but couldn't find any corner cases where the cursor showed
21533         up when it shouldn't.
21534
21535 2006-09-08  Chris Toshok  <toshok@ximian.com>
21536
21537         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
21538         our arrays are length 256.  & 0xff before indexing.  Fixes the
21539         crash in bug #78077.
21540         
21541 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21542
21543         * ThemeWin32Classic.cs: 
21544         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
21545         is true. Handle that check box too.
21546
21547 2006-09-07  Chris Toshok  <toshok@ximian.com>
21548
21549         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
21550         79244.
21551
21552 2006-09-07  Chris Toshok  <toshok@ximian.com>
21553
21554         * Control.cs: in set_BackColor only do the work if
21555         background_color != value.
21556
21557         * XplatUIX11.cs: move the clearing of invalid areas (both client
21558         and nc) to the same block of code where we set (nc_)expose_pending
21559         to false.  That is, move it from PaintEventEnd to PaintEventStart,
21560         so things that cause invalidates from within OnPaint will trigger
21561         another call to OnPaint.  Fixes bug #79262.
21562
21563 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
21564
21565         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
21566         * FileDialog.cs: Fix typo
21567
21568 2006-09-07  Jackson Harper  <jackson@ximian.com>
21569
21570         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
21571         for tab pages if they have any.
21572
21573 2006-09-06  Mike Kestner  <mkestner@novell.com>
21574
21575         * Splitter.cs: use the "current" rect when finishing drag handle
21576         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
21577
21578 2006-09-06  Mike Kestner  <mkestner@novell.com>
21579
21580         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
21581         support offset splitters. [Fixes #79298]
21582
21583 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
21584
21585         * Mime.cs: Fixed a bug that could override the global mime type
21586           result.
21587
21588 2006-09-05  Jackson Harper  <jackson@ximian.com>
21589
21590         * TabControl.cs: Better calculation method for setting the slider
21591         pos. Prevents crashes on really wide tabs.
21592         - Draw Image on tab pages if an image list is used.
21593
21594 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21595
21596         * MonthCalendar.cs: When Font changes, the Size should be
21597         updated to fit the new font's space requirements.
21598
21599 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
21600
21601         * ListBox.cs: If the items are cleared with Items.Clear set
21602           top_index to 0.
21603
21604 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21605
21606         * MonthCalendar.cs: Handle arrow keys as input keys. Also
21607         fire DateChanged event instead of DateSelected event when
21608         the date was changed by keyboard interaction.
21609
21610 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21611
21612         * DateTimePicker.cs: Handle DateChanged for the associated
21613         month_calendar control, and set month_calendar.Font from 
21614         OnFontChanged method, as well as resize the height of the
21615         control when needed. Make PreferredHeight proportional.
21616
21617 2006-09-01  Chris Toshok  <toshok@ximian.com>
21618
21619         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
21620         properties.
21621
21622         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
21623
21624 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
21625
21626         * FileDialog.cs: Set ClientSize instead of window size, to allow space
21627           for decorations (Fixes #79219)
21628
21629 2006-09-01  Mike Kestner  <mkestner@novell.com>
21630
21631         * ComboBox.cs: first stab at sorting plus some selection handling
21632         fixes to bring us more in line with MS behavior.  Also switches back
21633         to index based selection.  Alternative patches for index-based 
21634         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
21635         and latency@gmx.de on bug 78848.  I assume they were similar to this
21636         code I've had simmering in my tree forever.
21637         [Fixes #78848]
21638
21639 2006-09-01  Chris Toshok  <toshok@ximian.com>
21640
21641         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
21642         when setting list position guard against ending up with a -1 index
21643         (the other part of the fix for #78812).  Should probably make sure
21644         we don't need the analogous fix in the ItemDeleted case.
21645
21646         * DataGrid.cs:
21647         - in SetDataSource, work around the fact that the way
21648         OnBindingContextChanged is invoked will cause us to re-enter this
21649         method.  I'll remove the hack once I investigate
21650         OnBindingContextChanged.
21651
21652         - fix the logic in set_DataSource and set_DataMember (basically
21653         what to do if the other of the two is null.)
21654         
21655         - in OnListManagerItemChanged, we need to take into account the
21656         edit row when deciding whether or not to call RecreateDataGridRows
21657         (part of the fix for #78812).
21658
21659 2006-09-01  Jackson Harper  <jackson@ximian.com>
21660
21661         * Splitter.cs: Don't do anything if there is no control to affect
21662         (prevents us from crashing in weird tet cases).
21663         * TreeView.cs: Bounding box for the mouse movement reverting
21664         focus/selection back to previously selected node.  This matches
21665         MS, and makes the tree a lot more useable.
21666         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
21667         use clipping so they are not drawn.  This fixes when the control
21668         is set to have a transparent background, or if it was over an
21669         image.
21670
21671 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
21672
21673         * MimeIcon.cs: Improved handling for reading default icons when
21674           using gnome (2.16 made it necessary). Check and read svg icons
21675           first, then 48x48 and then 32x32 icons.
21676
21677 2006-08-31  Chris Toshok  <toshok@ximian.com>
21678
21679         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
21680         visible.
21681
21682         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
21683         ProcessKeyPreview.  Fixes part of #77806.
21684
21685         * DataGrid.cs: big patch.
21686
21687         - revert the queueing up of DataSource/DataMember if inside
21688         BeginInit/EndInit calls.  That's not the way the datagrid achieves
21689         its delayed databinding.  Instead, call SetDataSource in
21690         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
21691         #78811.
21692
21693         - Also, it wasn't mentioned in #78811, but the test case exhibits
21694         behavior that was lacking in our datagrid implementation - Columns
21695         that have mapping names that don't exist in the datasource's
21696         properties aren't shown.  Yuck.  To fix this I added the bound
21697         field to the column style, and basically any calculation to figure
21698         out anything about columns uses a loop to find the bound columns.
21699         still need to investigate if I can cache an array of the bound
21700         columns or if the indices must be the same.
21701
21702         - When setting CurrentCell, we no longer abort if the cell being
21703         edited was in the add row.  This fixes the other part of #77806.
21704
21705         - The new code also fixes #78807.
21706         
21707         * ThemeWin32Classic.cs: perpetrate the same disgusting
21708         column.bound field hack, and only render bound fields.
21709
21710 2006-08-31  Chris Toshok  <toshok@ximian.com>
21711
21712         * DataGridColumnStyle.cs: add bound field.  this field is true if
21713         the datasource has a property corresponding to the mapping name.
21714
21715         * DataGridTableStyle.cs: set the bound field on the column styles
21716         depending on whether or not we have a column for that property.
21717
21718 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
21719
21720         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
21721           splitter control (fixes #79228)
21722
21723 2006-08-31  Chris Toshok  <toshok@ximian.com>
21724
21725         * DataGridColumnStyle.cs: we need to delay the assignment of
21726         property descriptor until the last possible moment due to the lazy
21727         databinding stuff in the datagrid.  Also, fix the exceptions
21728         thrown by CheckValidDataSource to match MS.
21729
21730 2006-08-31  Jackson Harper  <jackson@ximian.com>
21731
21732         * Form.cs: When activated select the active control, if there is
21733         no active control, we select the first control.
21734         * XplatUIX11.cs: If there is no focus control when we get a
21735         FocusIn event, find the toplevel form and activate it.  This
21736         occurs when you popup a window, it becomes the focus window, then
21737         you close that window, giving focus back to the main window.
21738
21739 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21740
21741         * MonthCalendar.cs: 
21742         * ThemeWin32Classic.cs: Cache Font in bold style, as well
21743         as StringFormat with Center alignments in MonthCalendar,
21744         instead of creating new ones when drawing the control. 
21745         Also, draw the month name in bold style.
21746
21747 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
21748
21749         * Control.cs:
21750           - PerformLayout(): It would seem MS performs the fill even if the 
21751             control is not visible (part of #79218 fix)
21752           - ResetBackColor(): Use the setter to reset the color, to allow
21753             overriders to catch the change.
21754         * Form.cs:
21755           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
21756           - CreateHandle(): dito (part of $79218 fix)
21757           - Don't set an icon if we have a dialog
21758         * ScrollableControl.cs:
21759           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
21760           - ScrollIntoView(): No need to scroll if control is already visible
21761             (resolves fixme and fixes #79218)
21762
21763 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21764
21765         * MonthCalendar.cs: Change proportions in SingleMonthSize
21766         to match the aspect of the original control.
21767
21768 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
21769
21770         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
21771           get updated when they get maximized.
21772
21773 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
21774
21775         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
21776
21777 2006-08-29  Chris Toshok  <toshok@ximian.com>
21778
21779         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
21780
21781 2006-08-29  Jackson Harper  <jackson@ximian.com>
21782
21783         * TreeView.cs: Need to track selected node and highlighted node,
21784         they aren't always the same thing, when the mouse is down on a
21785         node it is hilighted, but not selected yet.
21786         - Do the HideSelection stuff right
21787         - Need to focus on rbutton mouse down. And redraw selection when
21788         right click is mouse upped.
21789
21790 2006-08-29  Mike Kestner  <mkestner@novell.com>
21791
21792         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
21793         when SubItems.Count < Columns.Count.  [Fixes #79167]
21794
21795 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
21796
21797         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
21798
21799 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
21800
21801         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
21802           from X. Only send based on ConfigureNotify if we don't have the
21803           correct location in hwnd (if the window manager moved us)
21804
21805 2006-08-28  Mike Kestner  <mkestner@novell.com>
21806
21807         * ListView.cs: remove a TODO. 
21808         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
21809         [Fixes ListView part of #79166]
21810
21811 2006-08-28  Mike Kestner  <mkestner@novell.com>
21812
21813         * ListView.cs: move wheel handler to parent since it is focused
21814         instead of the item_control now.  [Fixes #79177]
21815
21816 2006-08-28  Mike Kestner  <mkestner@novell.com>
21817
21818         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
21819         when the control is focused. [Fixes #79171]
21820
21821 2006-08-28  Mike Kestner  <mkestner@novell.com>
21822
21823         * ListView.cs: size the item and header controls for empty and
21824         unscrollable views.
21825         * ThemeWin32Classic.cs: draw disabled backgrounds.
21826         [Fixes #79187]
21827
21828 2006-08-28  Chris Toshok  <toshok@ximian.com>
21829
21830         * Form.cs: remove unused "active_form" static field.
21831
21832         * Hwnd.cs: lock around accesses to static windows collection.
21833
21834         * Application.cs: lock threads in Exit ().
21835
21836 2006-08-28  Chris Toshok  <toshok@ximian.com>
21837
21838         * NativeWindow.cs: lock around accesses to window_collection.
21839         
21840 2006-08-28  Chris Toshok  <toshok@ximian.com>
21841
21842         * Control.cs: err, fix this the right way, by locking on controls
21843         when using it.  not by making it synchronized.
21844
21845 2006-08-28  Chris Toshok  <toshok@ximian.com>
21846
21847         * Control.cs: make the static "controls" field synchronized, as it
21848         gets updated from multiple threads.
21849
21850 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
21851
21852         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
21853           Prevent other threads from exiting when calling thread sets quit state.
21854         * XEventQueue.cs: Added PostQuitState property
21855
21856 2006-08-27  Chris Toshok  <toshok@ximian.com>
21857
21858         * AsyncMethodData.cs: add a slot for the window handle.
21859
21860         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
21861         window (the destination control's window, not the foster window).
21862
21863         * Control.cs (BeginInvokeInternal): store the window's handle in
21864         the AsyncMethodData.
21865         
21866
21867 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
21868
21869         * XplatUIX11.cs:
21870           - PostQuitMessage: Removed resetting S.D display handle, we might have
21871             another loop started after calling PostQuitMessage (Fixes #79119)
21872           - Created destructor to reset S.D handle
21873
21874 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
21875
21876         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
21877
21878 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
21879
21880         * TextControl.cs (Insert): Update the caret position even if we don't
21881           have a handle yet, just don't call the driver in that case.
21882         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
21883           to the end of the new selection text (Fixes #79184)
21884
21885 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
21886
21887         * Form.cs (Activate): Only activate if the handle is created)
21888         * Control.c:
21889           - Mark window as invisible when it's disposed
21890           - Check if window handle is created when setting window visible, 
21891             instead of relying just on the is_created variable
21892           - Check if object is disposed when creating the control (Fixes #79155)
21893
21894 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
21895
21896         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
21897           when allowing layout again. Otherwise we re-generate the anchoring 
21898           distance to the border again and actually alter what the user wanted
21899           This is ugly, it'd be better if we used DisplayRectangle instead of
21900           ClientRectangle for Control.UpdateDistances, but that causes us to
21901           have other problems (initial anchoring positons would be wrong)
21902           (Fixes #78835)
21903
21904 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
21905
21906         * Control.cs:
21907           - The size and location setters shouldn't go directly to 
21908             SetBoundsCore, but to SetBounds, which triggers layout on the
21909             parent, then calls SetBoundsCore. (Related to fix for #78835)
21910           - SetBounds: Moved actual location update code into this function
21911             from SetBoundsCore, to match MS. Added call to PerformLayout if
21912             we have a parent (to trigger resizing of anchored parents if the 
21913             child size has changed (see testcase for #78835) 
21914         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
21915           new control code
21916         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
21917
21918 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
21919
21920         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
21921           System.Drawing when a toplevel window gets closed; there might
21922           be other toplevel windows belonging to the same app (Fixes #78052)
21923
21924 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
21925
21926         * FileDialog.cs: After reading FileDialog settings from mwf_config
21927           use Desktop prefix only if a real folder doesn't exist anymore.
21928         * FontDialog.cs: Added char sets.
21929           It is now possible to select the font, size or style with the
21930           textboxes.
21931
21932 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
21933
21934         * PrintPreviewDialog.cs: Use assembly name constants.
21935
21936 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
21937
21938         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
21939           scrollbar from whacking it's buttons)
21940
21941 2006-08-24  Chris Toshok  <toshok@ximian.com>
21942
21943         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
21944         in this patch (aggregating setting Left/Top/Width/Height to
21945         setting Bounds on the scrollbars), but the crux of the fix is in
21946         Recalculate, where we scroll by the remaining scroll_position if
21947         we're hiding a scrollbar.  The 2*$5 reward in the comment is
21948         serious.
21949
21950 2006-08-24  Jackson Harper  <jackson@ximian.com>
21951
21952         * MdiClient.cs:
21953         * MdiWindowManager.cs: If the form is made a non-mdi window we
21954         need to remove the form closed event so that closing forms works
21955         correctly.
21956
21957 2006-08-24  Jackson Harper  <jackson@ximian.com>
21958
21959         * Control.cs: Make IsRecreating internal so that the driver can
21960         check it
21961         - Temporarily remove the Hide when controls are removed, its
21962         making a whole bunch of things not work because visibility isn't
21963         getting reset elsewhere correctly
21964         * Form.cs: Need to do a full handle recreation when the mdi parent
21965         is set.
21966         * XplatUIX11.cs: If we are recreating handles don't dispose the
21967         HWNDs.  What was happening is the handles were being recreated in
21968         SendWMDestroyMessages, but then flow continued on in that method
21969         and destroyed the new handles.
21970
21971 2006-08-23  Jackson Harper  <jackson@ximian.com>
21972
21973         * Form.cs: MdiClient is always at the back of the bus
21974         * Control.cs: When the order of items in the collection is changed
21975         we need to reset the all_controls array
21976         - do the same sorta setup thats done when adding a control when a
21977         control is set on the collection.
21978
21979 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
21980
21981         * TextBoxBase.cs (get_Text): Return an empty array if our document
21982           is empty (fixes #79052)
21983
21984 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
21985
21986         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
21987           on WM_SYSCHAR messages (fixes #79053)
21988
21989 2006-08-23  Chris Toshok  <toshok@ximian.com>
21990
21991         * DataGrid.cs: fix flickering when scrolling vertically.
21992
21993 2006-08-23  Chris Toshok  <toshok@ximian.com>
21994
21995         * DataGrid.cs (EndEdit): only invalidate the row header when we
21996         need to.
21997
21998 2006-08-23  Chris Toshok  <toshok@ximian.com>
21999
22000         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
22001         methods.  fixes the flicker when scrolling around.
22002
22003 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22004
22005         * FileDialog.cs: Making sure the control is created before we get a 
22006           chance to use it with BeginInvoke (Fixes #79096)
22007
22008 2006-08-23  Chris Toshok  <toshok@ximian.com>
22009
22010         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
22011         width to use when painting the rows.
22012
22013 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22014
22015         * TextBoxBase.cs:
22016           - Throw ArgumentException if a negative value is passed to SelectionLength
22017           - Update the selection end if start is moved. end needs to be always
22018             after start. (Fixes #79095)
22019           - Track selection length; MS keeps the selection length even if start
22020             is changed; reset on all other operations affection selection
22021
22022 2006-08-22  Jackson Harper  <jackson@ximian.com>
22023
22024         * TreeView.cs: Make sure both scrollbars get displayed and sized
22025         correctly when the other bar is visible.
22026         - Use the original clip rectangle for checking if the area between
22027         the two scrollbars is visible, not the viewport adjusted clipping
22028         rectangle.
22029
22030 2006-08-22  Jackson Harper  <jackson@ximian.com>
22031
22032         * Binding.cs: We don't use IsBinding because it requires the
22033         control to be created, which really shouldn't be necessary just to
22034         set a property on the control.
22035
22036 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22037
22038         * ComboBox.cs: Some CB.ObjectCollection methods must throw
22039         ArgumentNullReferenceException when the argument is null.
22040
22041 2006-08-21  Jackson Harper  <jackson@ximian.com>
22042
22043         * Timer.cs: Track the thread that the timer is started in (NOT
22044         CREATED), this way messages for it will only be triggered on its
22045         queue.
22046         * XEventQueue.cs: Track the timers here, this makes timers per
22047         thread, like MS.
22048         * XplatUIX11.cs: The timers are moved to the XEventQueue.
22049
22050 2006-08-19  Chris Toshok  <toshok@ximian.com>
22051
22052         * XplatUIX11.cs: after further communication with pdb, we get the
22053         best of both worlds.  SetZOrder working for un-Mapped windows, and
22054         no X errors for un-mapped windows.
22055
22056 2006-08-19  Chris Toshok  <toshok@ximian.com>
22057
22058         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
22059         as it was causing pdn toolbars to not have the correct stacking.
22060
22061 2006-08-18  Mike Kestner  <mkestner@novell.com> 
22062
22063         * ListView.cs : guard against negative ClientArea.Width in scrollbar
22064         calculation.  Not sure why control should ever be setting a negative
22065         width though.  Fixes #78931.
22066
22067 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22068
22069         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
22070         null items in ObjectCollection class.
22071         * ListBox.cs.: Likewise.
22072
22073 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
22074
22075         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
22076           as the base method in ThemeWin32Classic should work fine.
22077           Fixed bug #78607.
22078
22079 2006-08-18  Jackson Harper  <jackson@ximian.com>
22080
22081         * Binding.cs: When validating if the value entered doesn't convert
22082         properly reset to the old value.
22083         * RadioButton.cs: Don't fire click when we get focus.
22084
22085 2006-08-18  Jackson Harper  <jackson@ximian.com>
22086
22087         * FileDialog.cs: Paint the selection on the directory combobox the
22088         same way as on MS. 
22089
22090 2006-08-17  Jackson Harper  <jackson@ximian.com>
22091
22092         * ErrorProvider.cs: Don't allow the error control to be selected.
22093         * Control.cs: Don't send the SetFocus messages, the control
22094         activation will do this, and if we do it blindly here validation
22095         does not work.
22096
22097 2006-08-17  Jackson Harper  <jackson@ximian.com>
22098
22099         * Control.cs:
22100         * ContainerControl.cs: Make validation events fire in the correct
22101         order.  TODO: For some reason the first validation event is not
22102         getting fired.
22103
22104 2006-08-17  Mike Kestner  <mkestner@novell.com> 
22105
22106         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
22107
22108 2006-08-17  Mike Kestner  <mkestner@novell.com> 
22109
22110         * ComboBox.cs : implement scroll wheel support for popped-down
22111         state. Fixes #78945. 
22112
22113 2006-08-17  Jackson Harper  <jackson@ximian.com>
22114
22115         * TreeView.cs: Specify treeview actions (old patch that didn't get
22116         committed for some reason).
22117         - Don't let the mouse wheel scroll us too far.  Just want to make
22118         the bottom node visible, not scroll it all the ways to the top.
22119
22120 2006-08-17  Jackson Harper  <jackson@ximian.com>
22121
22122         * XplatUIX11.cs: Mouse wheel events go to the focused window.
22123
22124 2006-08-17  Mike Kestner  <mkestner@novell.com> 
22125
22126         * ComboBox.cs : don't do mouseover selection in simple mode.
22127
22128 2006-08-16  Jackson Harper  <jackson@ximian.com>
22129
22130         * Form.cs: Fire the closing events for all the mdi child windows
22131         when a window is closed.  If the cancel args are set to true, the
22132         main window still gets the event fired, but it doesn't not close.
22133         * MdiWindowManager.cs: Do this closing cleanup in a Closed
22134         handler, instead of when the button is clicked, so cancelling the
22135         close works correctly.
22136         * ComboBox.cs: Send the mouse down to the scrollbar.
22137
22138 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22139
22140         * ListBox.cs: When passing 'null' to SelectedItem,
22141         set SelectedIndex to -1, to unselect items. This is the
22142         observed behaviour in .Net.
22143
22144 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
22145
22146         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
22147           MS flags saying there won't be any. (fixes #78800)
22148         * Control.cs (HandleClick): Made virtual
22149
22150 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
22151
22152         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
22153           cultures. Fixed bug #78399.
22154
22155 2006-08-16  Jackson Harper  <jackson@ximian.com>
22156
22157         * Form.cs: Use the MdiClients MdiChildren property to access
22158         MdiChildren instead of creating the array from the child controls.
22159         * MdiClient.cs: Maintain a separate array of the mdi children, so
22160         that insertion order is maintained when the Z-order is changed.
22161
22162 2006-08-16  Mike Kestner  <mkestner@novell.com> 
22163
22164         * ListView.cs : add an ItemComparer and default to it for sorting.
22165         Fixes #79076, but sorting needs a complete overhaul to be compat with
22166         MS.
22167
22168 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
22169
22170         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
22171
22172 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
22173
22174         * Hwnd.cs (Mapped): Properly traverse the tree
22175
22176 2006-08-15  Chris Toshok  <toshok@ximian.com>
22177
22178         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
22179         pass manager.Current.GetType() to ParseData.  It has to be the
22180         property type.  So, hold off doing the ParseData until we're in
22181         SetPropertyValue where we know the type.  This fixes the crash in
22182         #78821 but the textbox is still empty.
22183
22184 2006-08-15  Chris Toshok  <toshok@ximian.com>
22185
22186         * DataGrid.cs:
22187         - when we're scrolling, only call Edit() again if the
22188         current cell is still unobscured. Fixes bug #78927.
22189         - when handling mousedown on a cell, ensure the cell is visible
22190         before calling Edit.
22191         - remove the properties from DataGridRow, and remove the
22192         DataGridParentRow class altogether.
22193         
22194
22195 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
22196
22197         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
22198           fire OnTextChanged by ourselves. There's no point calling base,
22199           we don't set the base value anywhere else. Fixes #78773.
22200
22201 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22202
22203         * ListBox.cs: Call CollectionChanged when modifying
22204         an item from Items indexer, to update the actual items
22205         in the list box.
22206
22207 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22208
22209         * PrintDialog.cs: Small fixes for focus and a pair of checks,
22210         to match .Net behaviour.
22211
22212 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
22213
22214         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
22215
22216 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
22217
22218         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
22219
22220 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
22221
22222         * MessageBox.cs: Prevent potential NRE exception.
22223         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
22224
22225 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
22226
22227         * MessageBox.cs: Calculate the owner of a messagebox, also make
22228           it topmost. Fixes #78753
22229
22230 2006-08-14  Chris Toshok  <toshok@ximian.com>
22231
22232         * XplatUIX11.cs: A couple of fixes so that metacity will let us
22233         programmatically move windows.  first, set the PPosition hint as
22234         well as the USPosition hint.  Second include some code from pdb
22235         that sets the window type to NORMAL when we set the transient for
22236         hint.  This is because, in the absence of a window type, metacity
22237         thinks any window with TransientFor set is a dialog, and refuses
22238         to let us move it programmatically.  fascists.
22239
22240 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
22241
22242         * XplatUIX11.cs: When setting normal hints, take into consideration
22243           an different hints previously set so we don't delete them (fixes #78866)
22244
22245 2006-08-12  Chris Toshok  <toshok@ximian.com>
22246
22247         * ToolBarButton.cs: make Layout return a boolean, if something to
22248         do with the button's layout changed.
22249
22250         * ToolBar.cs:
22251         - add another parameter to Redraw, @force, which all existing
22252           calls set to true.
22253         - make the Layout function return a boolean which is true if the
22254           layout has actually changed.  Redraw now uses this (and @force)
22255           to determine when to invalidate.  At present the only place
22256           where @force can be false is the call from OnResize, when
22257           background_image == null.  So, resizing a toolbar when the
22258           layout doesn't change results in no drawing.
22259
22260 2006-08-12  Chris Toshok  <toshok@ximian.com>
22261
22262         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
22263         the VScrollBar and HScrollbar reversed.  oops.
22264
22265         * DataGrid.cs: fix the logic that assigns sizes to the implicit
22266         scrollbars.  we were assigning them twice (once in
22267         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
22268         therefore causing two scrollbar resizes (and redraws?) to happen
22269         per grid resize.
22270
22271 2006-08-12  Chris Toshok  <toshok@ximian.com>
22272
22273         * ToolBarButton.cs: redraw the entire button if the theme tells us
22274         to.
22275
22276         * Theme.cs: add ToolBarInvalidateEntireButton.
22277
22278         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
22279         buttons, just the border.
22280
22281         * ThemeNice.cs: redraw the entire toolbar button since we need to
22282         draw the highlight image.
22283
22284         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
22285         we need to redraw the entire button (not just the border).
22286
22287 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
22288
22289         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
22290           for vertical bars. Fixes the mismatches shown by #78513
22291
22292 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
22293
22294         * FileDialog.cs: If a saved/remembered path doesn't exist
22295           anymore, fall back to "Desktop".
22296
22297 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
22298
22299         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
22300           parent. It's apparently legal to not have one
22301         * XplatUIX11.cs:
22302           - SetZOrder: Don't try to set Z-Order on an unmapped window
22303           - CreateWindow: 0,0 are legal coordinates for a window. don't move
22304             it unless the coordinates are negative
22305
22306 2006-08-10  Mike Kestner  <mkestner@novell.com>
22307
22308         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
22309         when setting to null per msdn docs.  Fixes #78854.
22310
22311 2006-08-10  Chris Toshok  <toshok@ximian.com>
22312
22313         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
22314         flickering by setting a clip rectangle on the Graphics when we
22315         need to redraw just a particular menuitem.  Also, rename "OnClick"
22316         to "OnMouseDown" to reflect what it actually is.
22317         
22318         * Form.cs: track the OnMouseDown change.
22319
22320 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
22321
22322         * CommonDialog.cs: Properly inherit the CreateParams from the form
22323           and only change what we need. Fixes #78865
22324
22325 2006-08-10  Chris Toshok  <toshok@ximian.com>
22326
22327         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
22328         flickering in flat mode (and most of the flickering in general) by
22329         only invalidating the button border (and not the entire rectangle)
22330         when the state changes.  A couple of cases still flicker:
22331         ToggleButtons, and the dropdown arrow case when the user mouse
22332         ups.
22333
22334 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
22335
22336         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
22337           for german keyboards. Numlock state shouldn't affect the behaviour
22338           of the Del key. Fixes bug #78291.
22339
22340 2006-08-10  Chris Toshok  <toshok@ximian.com>
22341
22342         * ListControl.cs: remove the items.Clear line from BindDataItems,
22343         as this is the first thing done by both subclasses in their
22344         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
22345         passed -1, refresh the list.  This gets databinding working when
22346         the datasource is set on the list before the datasource is
22347         populated (as in wf-apps/ReportBuilder.)
22348
22349         * ComboBox.cs: remove the argument to BindDataItems.  This call
22350         should really go away, and be initiated by the ListControl code.
22351
22352         * ListBox.cs: same.
22353
22354 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
22355
22356         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
22357           if no data is in the document when the control is displayed
22358
22359 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
22360
22361         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
22362           yes (fixes #78806)
22363         * TextControl.cs: 
22364           - PositionCaret: Allow positioning of caret but don't call methods 
22365             requiring a handle if the window isn't created yet
22366           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
22367           - owner_HandleCreated: Don't position the caret, just update it's 
22368             location. User might have already set a different position
22369
22370 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
22371
22372         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
22373           windows. Screws up the returned coordinates for child windows. 
22374           Fixes #78825. I'm hoping this doesn't break something, since the
22375           code was explicitly put in 8 months ago, but no bug was attached.
22376           Menus still seem to work properly.
22377
22378 2006-08-08  Chris Toshok  <toshok@ximian.com>
22379
22380         * DataGrid.cs: make BeginInit/EndInit actually do what they're
22381         supposed to do - delay data binding until the EndInit call.  Also,
22382         make the table style collection's CollectionChangeAction.Refresh
22383         work properly.
22384
22385         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
22386         (with action = Refresh) when a consituent table's MappingName is
22387         changed.
22388
22389 2006-08-08  Chris Toshok  <toshok@ximian.com>
22390
22391         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
22392         Invalidate, since changing the text can change the size of the all
22393         toolbar buttons.
22394
22395 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
22396
22397         * Form.cs (AddOwnedForm): Still need to add the form to our listif
22398           we don't have it yet
22399
22400 2006-08-08  Chris Toshok  <toshok@ximian.com>
22401
22402         * PrintControllerWithStatusDialog.cs: don't .Close() the status
22403         dialog, as this causes X errors later on, since we actually
22404         destroy the window.  Instead, .Hide() it.
22405
22406 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
22407
22408         * ComboBox.cs: Added focus reflection for popup window
22409         * XplatUIX11.cs: 
22410           - Removed transient setting for non-app windows for now, not sure it
22411             was needed
22412           - Fixed logic checking if we have captions when deciding 
22413             override_redirect, WS_CAPTION is two bits and a 0 check was not
22414             sufficient
22415           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
22416             complicated
22417         * Form.cs: 
22418           - AddOwnedForm: Don't just add the form to the list, call the property
22419             to ensure the driver is informed about the ownership as well
22420           - CreateHandle: Set the TopMost status in the driver if we have an owner
22421         * XplatUI.cs: Fixed debug statement
22422
22423 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
22424         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22425           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
22426           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
22427           TrackBarRenderer.cs: Make constructor private.
22428         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
22429         * ProfessionalColorTable.cs: Make properties virtual.
22430
22431 2006-08-06  Duncan Mak  <duncan@novell.com>
22432
22433         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
22434         is not changing.
22435
22436 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
22437         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22438           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
22439           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
22440           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
22441           Initial import of new 2.0 classes.
22442
22443 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
22444         * Application.cs: Add 2.0 VisualStyles properties.
22445
22446 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
22447         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22448           XplatUIX11.cs: Create property to allow access to existing private
22449           variable "themes_enabled"
22450
22451 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22452
22453         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
22454         file size, as otherwise our class libraries fail using windows. Fixes
22455         bug #78759.
22456
22457 2006-08-04  Jackson Harper  <jackson@ximian.com>
22458
22459         * Form.cs:
22460         * XplatUIX11.cs: Move the toolwindow window manager creation into
22461         the X11 driver, this way on win32 we can let windows create/handle
22462         the toolwindows.
22463
22464 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22465
22466         * PrintDialog.cs: Remove some redundant checks, add some others,
22467         clean some code, and move the focus to the text boxes when the
22468         values are incorrect.
22469
22470 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
22471
22472         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
22473
22474 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
22475
22476         * NumericUpDown.cs: Setting the Minimum and Maximum is now
22477           handled correctly. Fixes bug #79001.
22478
22479 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22480
22481         * PrintDialog.cs: The "Copies" numeric up down must have
22482         set the Minimum property to 1; only if the value is bigger
22483         than 1, activate "Collate" check box. This is the behaviour of .Net.
22484         Also modify the Document elements only if it is not null.
22485
22486 2006-08-03  Jackson Harper  <jackson@ximian.com>
22487
22488         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
22489         length. (We have a larger array then actual node count).
22490                 
22491 2006-08-03  Jackson Harper  <jackson@ximian.com>
22492
22493         * ComboBox.cs: Don't show selection by default.
22494         - The SelectAll isn't needed here, since the focus code should do
22495         that
22496         - DDL style lists to manual selection drawing, so when they
22497         get/lose focus they have to invalidate.
22498
22499 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
22500
22501         * TextBoxBase.cs: Don't always show all selections by default.
22502
22503 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
22504         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
22505           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
22506           Fixed various typos.
22507
22508 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
22509
22510         * Control.cs: Removing the controls in a ControlCollection with
22511           Clear now hides the controls as expected. Fixes bug #78804. 
22512
22513 2006-08-03  Jackson Harper  <jackson@ximian.com>
22514
22515         * Control.cs: Revert previous focus patch, it breaks reflector.
22516
22517 2006-08-03  Jackson Harper  <jackson@ximian.com>
22518
22519         * ComboBox.cs: Cleanup selection and focus with the combobox.
22520         This also eliminates some duplicated keyboard code, since now
22521         everything is handled by the main class.
22522         - Make list selection work on mouse up instead of down, to match
22523         MS.
22524
22525 2006-08-02  Jackson Harper  <jackson@ximian.com>
22526
22527         * Control.cs: Setting focus needs to go through the whole
22528         selection mechanism.
22529
22530 2006-08-02  Chris Toshok  <toshok@ximian.com>
22531
22532         * PrintPreviewDialog.cs: change MinimumSize to use
22533         base.MinimumSize so it works.
22534
22535 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
22536
22537         * TextControl.cs:
22538           - UpdateCaret: Added sanity check in case caret isn't defined yet
22539           - Line.Delete: Now updating selection and caret markers if we're
22540             transfering a node (Properly fixes #78323)
22541           - SetSelectionEnd: Added sanity check
22542         * TextBoxBase.cs: Removed broken attempt to fix #78323
22543
22544 2006-08-01  Chris Toshok  <toshok@ximian.com>
22545
22546         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
22547         Close() call is handled in Form, not here.
22548
22549 2006-08-01  Chris Toshok  <toshok@ximian.com>
22550
22551         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
22552         layout/rendering.
22553
22554         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
22555         for sizes < 100% zoom.  The code now aggressively attempts to keep
22556         from calling document.Print (), and tries not to use the scaling
22557         g.DrawImage whenever possible (it still does if you scale to >
22558         100%, since usually that involves huge images).
22559
22560         * PrintPreviewControl.cs: hook up the close button.
22561
22562 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
22563         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
22564           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
22565           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
22566           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
22567           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
22568           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
22569           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
22570           Removed [Serializable] for 2.0 Event Handlers.
22571
22572 2006-07-31  Jackson Harper  <jackson@ximian.com>
22573
22574         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
22575         * TextControl.cs: Uncomment out the body of this method.
22576
22577 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
22578
22579         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
22580           standard cursors.
22581
22582 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
22583
22584         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
22585           that embed TextBox and need selections visible even if textbox is not
22586           focused to enforce that behaviour.
22587         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
22588           selection drawing
22589
22590 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
22591
22592         * TextControl.cs:
22593           - Added new SetSelectionStart/SetSelectionEnd overloads
22594           - Fixed viewport width assignment to be accurate
22595           - Adjusted alignment line shift calculations to allow cursor on right
22596             aligned lines to be always visible at the right border (like MS)
22597         * TextBoxBase.cs:
22598           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
22599           - TextBoxBase_SizeChanged: recalculating canvas on size changes
22600           - CalculateScrollBars: Use ViewPort size instead of window size, to
22601             properly consider space occupied by the border and scrollbars 
22602             (Fixes #78661)
22603           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
22604             calculations; no longer leaves artifacts
22605           - CaretMoved: Adjusted window scrolling to match MS and fixed several
22606             calculation bugs (Still missing right/center align calculations)
22607
22608 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
22609
22610         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
22611           use of both scroll rect and clip rect, as they do the same.
22612
22613 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
22614
22615         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
22616           in the event handler (fixes #78912)
22617
22618 2006-07-31  Chris Toshok  <toshok@ximian.com>
22619
22620         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
22621         grid.ListManager.Count, since grid.ListManager might be null.
22622         This of course begs the question "why are we drawing rows for a
22623         grid with no list manager (and therefor no rows)?"  Fixes the
22624         crash in bug #78929.
22625
22626 2006-07-31  Chris Toshok  <toshok@ximian.com>
22627
22628         * RelatedPropertyManager.cs: Don't always chain up to the parent
22629         ctor.  instead, call SetDataSource if the parent's position is !=
22630         -1.  Fixes the crash in #78822.
22631
22632 2006-07-31  Chris Toshok  <toshok@ximian.com>
22633
22634         * DataGrid.cs (get_ListManager): use field instead of property
22635         accessors for datasource and datamember.
22636         (RowsCount): make internal again.
22637         (OnMouseDown): end edits before resizing columns/rows.
22638         (OnMouseUp): restart edits after resizing columns/rows.
22639
22640 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
22641
22642         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
22643           This fixes the situation where the last set cursor is displayed
22644           whenever the mouse is over scrollbars.
22645
22646 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22647
22648         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
22649         Document properties, as well as initial values.
22650
22651 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
22652
22653         * XplatUIWin32.cs (SetBorderStyle): Setting both border
22654           and ClientEdge results in a 3-pixel border, which is
22655           wrong.
22656
22657 2006-07-28  Jackson Harper  <jackson@ximian.com>
22658
22659         * TreeNodeCollection.cs: Fix the clear method.
22660         - Fix the Shrink also
22661
22662 2006-07-27  Jackson Harper  <jackson@ximian.com>
22663
22664         * TreeView.cs: Make sure the visible order is computed when we
22665         attempt to size the scrollbars (for trees that mess with the
22666         scrolling when they shouldn't.
22667         - Make sure to give the scrollbars valid values.
22668
22669 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
22670
22671         * XplatUIX11.cs: Move motion compression code to where it
22672           has less performance impact
22673
22674 2006-07-26  Jackson Harper  <jackson@ximian.com>
22675
22676         * UpDownBase.cs: When the control is selected make the child
22677         controls non selectable, so that a click on them won't do a
22678         focus/unfocus cycle.
22679         - Don't give focus to the text box when the spinner is selected.
22680         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
22681
22682 2006-07-26  Chris Toshok  <toshok@ximian.com>
22683
22684         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
22685         satisfied with this solution.  If the bitmaps are small, we should
22686         just cache them in the PrintPreviewDialog and draw them here.
22687         Also, the layout is broken for the 2-up and 3-up cases.
22688
22689         * Theme.cs: add PrintPReviewControlPaint.
22690
22691         * PrintPreviewDialog.cs: first pass implementation.
22692
22693         * PrintPreviewControl.cs: first pass implementation.  No
22694         scrollbars yet.
22695
22696         * PrintDialog.cs: only validate fields if that particular portion
22697         of the UI is enabled.  Also, set the document's controller to a
22698         PrintControllerWithStatusDialog wrapping the document's print
22699         controller.
22700
22701         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
22702         bring up a SaveFileDialog (i hope we don't want to match the
22703         behavior of the crappy windows file entry) and set the
22704         PrinterSettings.PrintFileName accordingly.
22705
22706 2006-07-26  Jackson Harper  <jackson@ximian.com>
22707
22708         * ContainerControl.cs: Add a field that disables auto selecting
22709         the next control in a container when the container is activated.
22710         * UpDownBase.cs: Don't select the text box when the up down is
22711         selected.
22712
22713 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
22714
22715         * XEventQueue.cs: Added methods for peeking (used for compression
22716           of successive events)
22717         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
22718           mouse move events (fixes #78732)
22719
22720 2006-07-25  Jackson Harper  <jackson@ximian.com>
22721
22722         * UpDownBase.cs: Use an internal class for the textbox so that we
22723         can control focus.  the updown control should always have focus,
22724         if either the text area or the buttons are clicked.
22725         - Send the key messages to the textbox, since it never actually
22726         has focus
22727         - Activate and decativate the textbox caret.
22728
22729 2006-07-24  Jackson Harper  <jackson@ximian.com>
22730
22731         * Control.cs: Use the directed select when selecting a control,
22732         this way the container controls override will get called and the
22733         whole ActiveControl chain will get triggered.  TODO: probably need
22734         to make sure this gets done everywhere instead of the old
22735         Select(Control).
22736         * ContainerControl.cs: Implement the directed Select method to
22737         find and activate the correct child control.    
22738         
22739 2006-07-22  Mike Kestner  <mkestner@novell.com>
22740
22741         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
22742         menu handling code so that clicks without a grab work too.
22743         [Fixes #78914]
22744
22745 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
22746
22747         * FileDialog.cs: Enable the BackButton when dirstack has one element.
22748           Added some small optimizations.
22749
22750 2006-07-21  Matt Hargett  <matt@use.net>
22751
22752         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
22753
22754 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
22755
22756         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
22757           tests pass and match MS in some strange border cases.
22758
22759 2006-07-21  Chris Toshok  <toshok@ximian.com>
22760
22761         * ThemeWin32Classic.cs: handle drawing of the relation links and
22762         parent row buttons.
22763
22764         * Theme.cs: change args to DataGridPaintParentRow.
22765
22766         * DataGrid.cs: Don't use controls for the relation links and
22767         parent buttons, so we have to handle all their interactions in
22768         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
22769         when we're navigating through child tables, so we can reinstate
22770         selection, expanded state, current cell, etc.
22771
22772 2006-07-20  Chris Toshok  <toshok@ximian.com>
22773
22774         * ToolBar.cs: When we redraw a button, for whatever reason,
22775         there's no reason to redraw the entire toolbar.  Also, don't call
22776         Control.Refresh from within Redraw, as it's much heavier than
22777         Invalidate (which is really what we want).
22778
22779 2006-07-20  Chris Toshok  <toshok@ximian.com>
22780
22781         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
22782         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
22783         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
22784         traces from within a debug IBindingList datasource
22785         (in mono/winforms/datagrid) for *days*, I've finally gotten things
22786         to work in a similar fashion.
22787
22788 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22789
22790         * ListBox.cs: Don't call Sort () when setting 
22791         the Sorted property to false (avoid an unnecessary sort).
22792
22793 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22794
22795         * ListControl.cs: DataSource should throw an ArgumentException
22796         instead of a normal exception when the argument is not of the 
22797         correct type.
22798
22799 2006-07-20  Mike Kestner  <mkestner@novell.com>
22800
22801         * Control.cs: add InternalPreProcessMessage to allow us to steal
22802         key events before MWF gets its paws on them.  Adapted from a
22803         suggestion by eno.
22804         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
22805         up/down/left/right navigation. Override the new internal control
22806         method to steal the events since they never make it to WndProc.
22807         * ToolBarButton.cs: don't worry about pushed when setting hilight
22808         since the drawing code prefers pushed to hilight. Invalidate on 
22809         Hilight changes. Fixes #78547 and #78525.
22810
22811 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
22812
22813         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
22814           the canvas size. Fixes #78868
22815
22816 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
22817
22818         * Splitter.cs: Track requested split position until first layout
22819           is performed. Fixes #78871
22820
22821 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
22822
22823         * Application.cs: Removed code that forces 1.x for the version
22824           number if the version started with 0. Not sure why that code was
22825           there and I couldn't find any bugs that indicated we needed it.
22826           Fixes #78869
22827
22828 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
22829
22830         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
22831           ResetDefaults(), just write some output to the console until it's
22832           implemented. Fixes bug #78907 for now. Eliminated two warnings.
22833
22834 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
22835
22836         * PropertyGridView.cs: set StartPosition of drop down forms
22837         so they appear in correct initial spot.  Fixes #78190.
22838
22839 2006-07-19  Mike Kestner  <mkestner@novell.com>
22840
22841         * ThemeWin32Classic.cs: use parent background color when drawing
22842         flat toolbars.  Restructure the conditionals to make sure non-flat
22843         non-Divider toolbars are filled too.  Fixes #78837.
22844
22845 2006-07-19  Mike Kestner  <mkestner@novell.com>
22846
22847         * ListBox.cs: Sort on collection changes even if the handle
22848         isn't created yet.  Fixes #78813.
22849
22850 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22851
22852         * ListControl.cs: DisplayMember should never be null,
22853         and now we assign String.Empty when null is passed to it (this
22854         is the .Net way).
22855
22856 2006-07-17  Mike Kestner  <mkestner@novell.com>
22857
22858         * ListViewItem.cs: restructure Font and subitem Font handling 
22859         to hold a specific font and refer back to owner on null.
22860         Fixes #78761.
22861
22862 2006-07-17  Mike Kestner  <mkestner@novell.com>
22863
22864         * ToolBar.cs: bandaid for side-effect of previous patch which was
22865         discarding explicit heights for non-AutoSize toolbars.  Need to
22866         extend my format tester to deal with AutoSize=false. Fixes #78864.
22867
22868 2006-07-15  Jackson Harper  <jackson@ximian.com>
22869
22870         * LabelEditTextBox.cs:
22871         * TreeView.cs: Use a new LabelEdit class for node editing, this
22872         class automatically 'closes' itself when it gets the enter key or
22873         loses focus.
22874         - Use the client rectangle when setting the trees scrollbars, so
22875         border style is taken into account.
22876         
22877 2006-07-14  Jackson Harper  <jackson@ximian.com>
22878
22879         * TreeNode.cs:
22880         * TreeView.cs: Make the editing work similar to MSs, firing the
22881         events correctly and ending edits correctly.
22882
22883 2006-07-14  Mike Kestner  <mkestner@novell.com>
22884
22885         * ToolBarButton.cs:
22886         * ToolBar.cs: layout restructuring and redraw enhancements to support
22887         formatting changes gracefully, like setting TextAlign, ImageList, 
22888         ButtonSize, and Appearance.  Handles explicit button sizing quirks
22889         of the MS controls.  Things like flat toolbars ignoring button size
22890         but becoming constant sized at the largest button's size.  Normal
22891         toolbars with an image set cannot be shrunk smaller than the image,
22892         but text can be clipped/ignored.
22893         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
22894         is zero.  Seems like DrawString should be smart enough to not put
22895         anything on screen though. Also trim labels and ellipsize at the char
22896         boundary, not word.
22897         Fixes #78711 and #78483.
22898
22899 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
22900
22901         * FolderBrowserDialog.cs: Disable "New Folder" button and
22902           "New Folder" contextmenu menuitem if a folder like "My Computer"
22903           is selected.
22904
22905 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
22906
22907         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
22908         * FolderBrowserDialog.cs:
22909           - Use MWFConfig to store and read size and position settings
22910           - Added code to create a new folder (button or context menu).
22911             Use TreeView labeledit to change the name of the new folder.
22912
22913 2006-07-14  Jackson Harper  <jackson@ximian.com>
22914
22915         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
22916         when the tree is scrolled we end editing.
22917
22918 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
22919
22920         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
22921           Down arrows
22922
22923 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
22924
22925         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
22926         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
22927         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
22928         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
22929         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
22930         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
22931         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
22932         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
22933         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
22934         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
22935         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
22936         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
22937         ListViewItemSelectionChangedEventHandler.cs,
22938         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
22939         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
22940         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
22941         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
22942         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
22943         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
22944         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
22945         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
22946         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
22947         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
22948         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
22949         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
22950         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
22951         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
22952         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
22953         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
22954         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
22955         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
22956         WebBrowserNavigatingEventHandler.cs, 
22957         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
22958
22959 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
22960
22961         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
22962         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
22963         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
22964         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
22965         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
22966         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
22967         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
22968         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
22969         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
22970         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
22971         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
22972         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
22973         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
22974         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
22975         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
22976         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
22977         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
22978         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
22979         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
22980         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
22981         ListViewItemStates.cs, MaskFormat.cs: Added
22982
22983 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
22984
22985         * PropertyGridView.cs: Fix keyboard navigation of drop down.
22986         Patch from eno for bug 78558.
22987         
22988 2006-07-13  Jackson Harper  <jackson@ximian.com>
22989
22990         * TreeView.cs: When an edit is finished make sure that the
22991         selected node is visible.
22992         - When setting the top/bottom use the scrollbars is_visible, so
22993         everything will be set correctly even if the tree isn't visible
22994         yet.
22995
22996 2006-07-13  Jackson Harper  <jackson@ximian.com>
22997
22998         * ComboBox.cs: Revert the item->index part of my previous patch.
22999         * TreeView.cs: Use LostFocus instead of Leave for detecting when
23000         the edit box has lost focus (duh).
23001         - Just make the edit box not visible when we get return, that will
23002         take the focus, which will call EndEdit
23003         * TreeNode.cs When we start editing, notify the treeview.
23004
23005 2006-07-12  Jackson Harper  <jackson@ximian.com>
23006
23007         * ComboBox.cs: Clear out old items before setting the item list.
23008         This prevents databound controls from having their items added
23009         twice.
23010         - Switch the combobox to use indices whereever possible instead of
23011         using Item's.  This allows usto navigate through lists that have
23012         more then one item with the same string value (ie a, b, b, a).
23013         - Scroll the listboxes scrollbar when a non visible item is
23014         highlighted
23015         - Allow keypress to cycle through all the possible values. For
23016         example if you have b1, b2, b3 and hold down the B key all the
23017         values will be cycled through.
23018         
23019 2006-07-12  Jackson Harper  <jackson@ximian.com>
23020
23021         * TextBoxBase.cs:
23022         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
23023         this using the internal methods.
23024         * Control.cs: Add OnGotFocusInternal.  A new method that allows
23025         controls to "override" OnGotFocus and change focus behavior if
23026         needed.
23027         - Same thing for LostFocus
23028         * ComboBox.cs: Pass off focus to the text control properly.
23029
23030 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
23031
23032         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
23033         * FolderBrowserDialog.cs: Almost a complete rewrite.
23034           - Better support for Environment.Specialfolders
23035           - Added support for MWFVFS
23036           - Made setting SelectedPath work
23037
23038 2006-07-12  Jackson Harper  <jackson@ximian.com>
23039
23040         * Control.cs: Optimze getting all the controls.
23041
23042 2006-07-11  Jackson Harper  <jackson@ximian.com>
23043
23044         * ContainerControl.cs: Override SETFOCUS in the container control,
23045         so that it is not selected on mouse click.
23046
23047 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
23048
23049         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
23050           Hopefully we will have a better way once all of focus is complete.
23051
23052 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
23053
23054         * ThemeWin32Classic.cs: Commented out some debug code and fixed
23055           a compile error with csc.
23056
23057 2006-07-11  Jackson Harper  <jackson@ximian.com>
23058
23059         * Control.cs: When hiding a control only select the next control
23060         if the current control was focused.
23061         - Don't handle enter/leave when setting/killing focus, this is
23062         done by the container control.
23063         - Remove is_selected, it's not needed anymore.
23064         - Add utility methods for selecting a child control, and for
23065         firing the Enter/Leave events.
23066         * ContainerControl.cs: When a control is activated fire the
23067         enter/leave events.
23068         - Don't wrap when processing the tab key, so that focus can be
23069         moved outside of the container.
23070         - Use the correct active control
23071
23072 2006-07-11  Jackson Harper  <jackson@ximian.com>
23073
23074         * ComboBox.cs: Remove some debug code that was blinding me.
23075         * UpDownBase.cs: These controls actually aren't implicit, they are
23076         visible to the user.
23077
23078 2006-07-10  Chris Toshok  <toshok@ximian.com>
23079
23080         * DataGrid.cs: move back to the is_adding boolean field.  god i
23081         hate this is_editing/is_adding/is_changing stuff.
23082
23083 2006-07-10  Chris Toshok  <toshok@ximian.com>
23084
23085         * DataGridTableStyle.cs: just check if the property type is bool.
23086         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
23087         Don't use CanRenderType.
23088
23089         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
23090         if our text == NullText.  Remove CanRenderType.
23091
23092         * DataGridBoolColumn.cs: nuke CanRenderType.
23093
23094         * DataGrid.cs: reenable some code to end the current edit inside
23095         of set_CurrentCell.  This fixes the other 1.1.16 regression.
23096         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
23097         Also, remove the visible_row_count arg from CalcRowHeaders, since
23098         we don't need to worry about the actual height of the area.
23099
23100 2006-07-10  Chris Toshok  <toshok@ximian.com>
23101
23102         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
23103         mode, just return.
23104
23105         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
23106         the real sense of the IsInEditOrNavigateMode property (true =
23107         navigate, false = edit).  Also, update OnKeyPress to reflect this.
23108
23109         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
23110         column style exists, we still need to set its property descriptor
23111         to match up with our list manager.
23112
23113 2006-07-10  Chris Toshok  <toshok@ximian.com>
23114
23115         * ThemeWin32Classic.cs: implement the new row/header painting
23116         approach.  The parent row painting will likely go away and
23117         replaced with label controls, but the rest seems to work ok (and
23118         efficiently).
23119
23120         * Theme.cs: change the way we draw datagrid rows.  we don't draw
23121         the row headers as a block now.  Instead we draw them in the
23122         normal draw-row loop.  Add some calls for drawing parent rows and
23123         relation rows.
23124
23125         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
23126         a default table style.  Set the defaults from ThemeEngine.Current,
23127         not SystemColors.  Fix lots of misc issues with property setters.
23128
23129         * DataGrid.cs: move loads of style information out of this class
23130         as it's being duplicated with DataGridTableStyle.  keep track of a
23131         special DataGridTableStyle for the properties we used to mirror
23132         here.  Switch all the style properties to access this table style
23133         instead of instance fields of this class.  Also add a internal
23134         class to represent parent rows (more needs to be stored here, like
23135         the selection state from the parent table, as well as the
23136         expansion state.)  Also, for datasources with relations, do the
23137         right thing for collapse/expand, and add support for the
23138         navigation/parent row buttons.
23139
23140         Lastly, fix the crash in the 1.1.16 build.
23141
23142         * GridTableStylesCollection.cs: make the explicit interface
23143         implementations call the class's methods as opposed to duplicating
23144         them.
23145
23146         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
23147         0 so the text doesn't jump around when we move the cursor.
23148
23149 2006-07-10  Jackson Harper  <jackson@ximian.com>
23150
23151         * TextBoxBase.cs:
23152         * ListBox.cs: Match MS's ToString (this makes debugging focus
23153         stuff infinitely easier).
23154
23155 2006-07-10  Jackson Harper  <jackson@ximian.com>
23156
23157         * Control.cs (SelectNextControl): When checking the control's
23158         parent use this instead of ctrl.parent so that null can be passed
23159         to SelectNextControl. (I have unit tests for this).
23160         - Remove unused var.
23161
23162 2006-07-10  Chris Toshok  <toshok@ximian.com>
23163
23164         * CurrencyManager.cs: correct one regression, the removal of the
23165         finalType field.  Also, add a MonoTODO on CanAddRows, implement
23166         Refresh() correctly, and fix some event emission in
23167         ListChangedHandler.
23168
23169 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
23170
23171         * FileDialog.cs: Don't use brackets for new folders if they exist
23172           under *nix. Instead use -(number of existing folders +1).
23173
23174 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
23175
23176         * FileDialog.cs:
23177           - Fixed really nasty bug #78771
23178           - Don't block the whole GUI when reading directories with a lot of
23179             entries. Use an other thread instead and call BeginInvoke to
23180             update the ListView in MWFFileView
23181
23182 2006-07-07  Chris Toshok  <toshok@ximian.com>
23183
23184         * Control.cs (Dispose): release any Capture when disposing.
23185
23186 2006-07-07  Chris Toshok  <toshok@ximian.com>
23187
23188         * LinkLabel.cs (Select): if we chain up to the parent, set
23189         focused_index to -1 so we'll search for the first available link
23190         the next time the user tabs into us.  Also, if the direction is
23191         backward and focused_index == -1, start the search from the last
23192         element.
23193
23194 2006-07-07  Chris Toshok  <toshok@ximian.com>
23195
23196         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
23197         is beyond the end of the text, don't do anything.
23198         (CreateLinkPieces): set our ControlStyles.Selectable based on
23199         whether or not we have any links.
23200         (Link.Invalidate): use a loop instead of foreach.
23201         (Link.set_Start): null out owner.sorted_links so it'll be
23202         recreated by CreateLinkPieces.
23203
23204 2006-07-06  Chris Toshok  <toshok@ximian.com>
23205
23206         * LinkLabel.cs: revert the SetStyle change.
23207
23208 2006-07-06  Chris Toshok  <toshok@ximian.com>
23209
23210         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
23211         (OnEnableChanged): s/Refresh/Invalidate
23212         (OnGotFocus): if we have a focused index already, refocus it (so
23213         if we mouse out/in to the window it'll focus the right link).
23214         (OnKeyDown): move the tab handling out of here.
23215         (OnLostFocus): don't set focused_index to -1, so we can refocus it
23216         when we lose focus.
23217         (OnMouseDown): don't Capture here - Control handles it.  Also,
23218         focus the active link.
23219         (OnMouseUp): don't deal with Capture.
23220         (OnPaintBackgroundInternal): remove.
23221         (OnTextAlignChanged): CreateLinkPieces before calling the
23222         superclass's method.
23223         (OnTextChanged): call CreateLinkPieces before calling superclass's
23224         method.
23225         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
23226         move around.
23227         (Select): implement this, moving the selection between different
23228         links, and call parent.SelectNextControl if we don't have another
23229         link to focus in the given direction.
23230         (CreateLinkPieces): call Invalidate instead of Refresh.
23231         
23232 2006-07-06  Chris Toshok  <toshok@ximian.com>
23233
23234         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
23235         new LinkLabel internals.
23236
23237         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
23238         over pieces looking for active/focused/etc links.  also, deal with
23239         runs of text (and links) with embedded \n's in them, and use
23240         MeasureCharacterRanges instead of MeasureString to figure out the
23241         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
23242         two-step.
23243
23244 2006-07-04  Jackson Harper  <jackson@ximian.com>
23245
23246         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
23247         XKB or key auto repeat, do it manually.  Without key auto repeat,
23248         when a key is held down we get key press, key release, key press,
23249         key release, ... with auto repeat we get key press, key press, key
23250         press ..., and then a release when the key is actually released.
23251
23252 2006-07-03  Jackson Harper  <jackson@ximian.com>
23253
23254         * TabControl.cs:
23255         * ThemeWin32Classic.cs: Tabs do not obey normal background color
23256         rules, they are always control color regardless of the background
23257         color.
23258
23259 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
23260
23261         * FileDialog.cs: Added internal class MWFConfig.
23262           Removed Registry support and replaced it with support for the new
23263           MWFConfig class. See MWFConfig comments for more information.
23264
23265 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
23266
23267         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
23268           rectangle. Added some patches from eno from bug #78490 and fixed
23269           the arrow position for small up and down CPDrawScrollButtons.
23270
23271 2006-06-30  Jackson Harper  <jackson@ximian.com>
23272
23273         * InternalWindowManager.cs: Remove some debug code.
23274         * Form.cs: When an MdiParent is set to null, the window is
23275         "detatched" and becomes a normal window.
23276         * MdiClient.cs: Don't bring the new child form to the front until
23277         it is activated (setting it as active does this), this makes the
23278         previously active forms titlebar get redrawn as inactive.
23279
23280 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
23281
23282         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
23283           with later controls
23284
23285 2006-06-29  Mike Kestner  <mkestner@novell.com>
23286
23287         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
23288         arrow in keynav state.  Fixes #78682.
23289
23290 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
23291
23292         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
23293           order (fixes #78393)
23294
23295 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
23296
23297         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
23298           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
23299           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
23300           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
23301           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
23302           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
23303           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
23304           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
23305           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
23306           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
23307           enumerations (FlagsAttribute, SerializableAttribute, added/removed
23308           values)
23309
23310 2006-06-28  Mike Kestner  <mkestner@novell.com>
23311
23312         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
23313
23314 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
23315
23316         * PropertyGrid.cs,
23317           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
23318           item lines from other area (It also makes BackColor consistent and
23319           compatible with .NET). Fixed bug #78564.
23320
23321 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
23322
23323         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
23324         Patch from Eno for #78555.
23325
23326 2006-06-27  Chris Toshok  <toshok@ximian.com>
23327
23328         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
23329
23330         * DataGridColumnStyle.cs: same.
23331
23332         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
23333         
23334         * DataGridDrawingLogic.cs: nuke.
23335
23336 2006-06-27  Chris Toshok  <toshok@ximian.com>
23337
23338         * DataGridTableStyle.cs: clean up the constructors, and build the
23339         list of child relations for this table.  I have no idea if this is
23340         where we should be doing it (it probably isn't), but since we're
23341         already iterating over the properties..
23342
23343         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
23344         struct and array for keeping track of row information, similar to
23345         what's shown in a hack on
23346         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
23347
23348         * Theme.cs: be consistent about the naming of DataGrid methods,
23349         prefering ColumnWidths and RowHeights over columnsWidths and
23350         RowsHeights.
23351
23352         * ThemeWin32Classic.cs: same, and also add support for variable
23353         sized rows (and the +/- expansion icons for related rows).
23354
23355 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
23356
23357         * TextBoxBase.cs: Applied Eno's patch from #78660
23358
23359 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
23360
23361         * Form.cs (ScaleCore): We don't want to scale our form if it's
23362           state is minimized or maximized, but we still need to scale our
23363           child windows. Also, added try/finally block to ensure layout
23364           gets reset (Fixes #78697)
23365
23366 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
23367
23368         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
23369
23370 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
23371
23372         * Form.cs: Fixed c+p error and added check to resize form if minimum
23373           size is bigger than current size (Fixes #78709)
23374
23375 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
23376
23377         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
23378
23379 2006-06-26  Mike Kestner  <mkestner@novell.com>
23380
23381         * ComboBox.cs: only do Keypress handling in the combo when there  
23382         are items in the collection. Fixes #78710.
23383
23384 2006-06-26  Chris Toshok  <toshok@ximian.com>
23385
23386         * Binding.cs: make this work bi-directionally.  also, clear up
23387         other mixups between Push/Pull Data (e.g. we're supposed to pull
23388         data when validating).
23389
23390         * BindingManagerBase.cs: trim some fully qualified collection
23391         types.
23392
23393         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
23394
23395 2006-06-23  Chris Toshok  <toshok@ximian.com>
23396
23397         * PropertyManager.cs: It appears (according to the unit tests)
23398         that PropertyManager doesn't use
23399         PropertyDescriptor.AddValueChanged to track propery value changes
23400         in its datasource, but uses the same scheme as Binding, where it
23401         looks for a <Property>Changed event and binds to it.
23402
23403         Also, according to the docs, IsSuspended always returns false for
23404         a property manager with a non-null datasource.
23405
23406 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
23407
23408         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
23409           need to update the actual DialogResult. (Fixes #78613)
23410
23411 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
23412
23413         * Form.cs (ShowDialog): Release any captures before running the
23414           new message pump (fixes #78680)
23415
23416 2006-06-22  Mike Kestner  <mkestner@novell.com>
23417
23418         * ListView.cs: Layout column widths properly in details mode even 
23419         if HeaderStyle.None is set.  Fixes #78691.
23420
23421 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
23422
23423         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
23424
23425 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
23426
23427         * Control.cs (ContainsFocus): Using new driver method to get focused
23428           window, instead of trying to use internal tracking var, which can
23429           recursion issues (Fixes #78685)
23430         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
23431           XplatUIWin32.cs: Added GetFocus method to return focused window
23432
23433 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23434
23435         * ColorDialog.cs: when the mouse button is pressed inside the color
23436         matrix, don't let the cursor move out of it until the button is
23437         released, which is the behavior on windows. Changed 'colours' by
23438         'colors' to use the same word consistently.
23439
23440 2006-06-21  Chris Toshok  <toshok@ximian.com>
23441
23442         * DataGrid.cs: add in some basic navigation stuff (navigating to a
23443         child relation and back, using a stack).  Also, remove
23444         GetDataSource and the code that calls it - it's not needed.  Also,
23445         track CurrencyManager.ListName's removal.
23446
23447 2006-06-21  Chris Toshok  <toshok@ximian.com>
23448
23449         * CurrencyManager.cs: push some of the original type checking from
23450         BindingContext.CreateBindingManager to here, and remove some of
23451         the finalType stuff.  Need more tests to make sure I've got the
23452         ListName part right, and we might need more in SetDataSource.
23453
23454         * PropertyManager.cs: add a ctor that takes just the datasource,
23455         and no property name.  Make SetDataSource work with a null
23456         property_name, and make Current return the data_source if the
23457         property descriptor is null.  this makes 'string foo = "hi";
23458         BindingContext[foo].Current' return "hi" as it should.
23459
23460         * RelatedCurrencyManager.cs: make this code more generic - there's
23461         no reason the parent manager has to be CurrencyManager, and
23462         there's no reason to pass the DataRelation.  It suffices to use a
23463         BindingManagerBase and PropetyDescriptor.
23464
23465         * RelatedPropertyManager.cs: make a similar change here.
23466         
23467         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
23468         flower I knew it could be.
23469
23470 2006-06-20  Chris Toshok  <toshok@ximian.com>
23471
23472         * PropertyManager.cs: the PropertyChangedHandler is invoked when
23473         data in the source has changed and we need to update the control,
23474         so s/PullData/PushData.
23475
23476         * CurrencyManager.cs: Refresh is meant to update the control from
23477         data in the datasource.  So, s/PullData/PushData.
23478
23479         * BindingContext.cs: add more ugliness (we weren't handling the
23480         case where data_source = DataTable and data_member = column_name).
23481
23482         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
23483         from the perspective of the datasource.  PullData pulls from the
23484         control, PushData pushes to the control.
23485
23486 2006-06-20  Chris Toshok  <toshok@ximian.com>
23487
23488         * BindingContext.cs: rewrite the CreateBindingManager code to
23489         handle navigation paths more or less properly.  This could
23490         definitely stand some more work, in particular to push the
23491         recursion up to the toplevel.  But that relies on fixes in other
23492         places (System.Data comes to mind).
23493
23494         Also, move to a flat hashtable (and encode the twolevel nature of
23495         the dictionary into the hash key).  This lets us implement the
23496         IEnumerable.GetEnumerator method.
23497
23498         * RelatedCurrencyManager.cs: new class.  Update our view based on
23499         our relation and our parent CurrencyManager's position.
23500
23501         * CurrencyManager.cs: split out some logic from the ctor into
23502         SetView, so it can be called from the new RelatedCurrencyManager
23503         subclass.
23504
23505         * RelatedPropertyManager.cs: new class.  Update our datasource
23506         based on the position of our parent CurrencyManager.
23507
23508         * PropertyManager.cs: split out some logic from the ctor into
23509         SetDataSource, so it can be called from the new RelatedDataSource
23510         subclass.  Also, make the Current getter return the value
23511         of the PropertyDescriptor, not the data_source.
23512
23513         * Binding.cs: no need to duplicate the string splitting code here.
23514
23515 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
23516
23517         * Control.cs:
23518           - set_Enabled: OnEnabledChanged is not called if the inherited state 
23519             of the control is not altered, even though  we might be changing the
23520             internal state of the control (#78458)
23521           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
23522             OnEnabledChanged, to allow easy altering of any child window state
23523           - OnEnabledChanged: Added code to enable/disable driver window state
23524           - OnParentEnabledChanged: Instead of firing the event, call 
23525             OnEnabledChanged, which will fire the event and also a) set driver
23526             window state and pass the enabled state to any grandchildren (#78458)
23527
23528 2006-06-19  Jackson Harper  <jackson@ximian.com>
23529
23530         * InternalWindowManager.cs: We don't set the cursor explicitly
23531         thats done via the response to NCHITTESTs.
23532         - Don't need to adjust for titlebar heights anymore, the
23533         coordinates are coming in the correct coordinates now (see peters
23534         last patch).
23535
23536
23537 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
23538
23539         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
23540           being translated relative to whole window, instead of client window.
23541           That caused broken offsets on mouseclick (and caused gas for our
23542           InternalWindowManager)
23543
23544 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
23545
23546         * TextControl.cs:
23547           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
23548           - Undo(): Added replay of cursor move on DeleteChars action; added
23549             calling Undo() again if a recorded cursor move is invalid (to
23550             ensure that some action is performed on Undo)
23551         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
23552
23553 2006-06-16  Jackson Harper  <jackson@ximian.com>
23554
23555         * MdiClient.cs: Instead of just sizing maximized windows when
23556         there is a resize we also have to adjust the Y of minimized
23557         windows, so they stay pinned to the bottom of the mdi container.
23558         - Eliminate separate tracking of the active control, we can just
23559         get this from the controls collection.
23560         - Paint the decorations for the newly activated titlebar so we get
23561         a pretty blue bar.
23562         * InternalWindowManager.cs:
23563         * ThemeWin32Classic.cs: Minimized windows get all three buttons
23564         even if they are a tool window.
23565         
23566 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
23567
23568         * TextControl.cs (Undo): Handle non-existent cursor locations in the
23569           undo buffer, these can happen when text was deleted and the cursor
23570           was recorded first. Since we will also have a recorded cursor
23571           after the delete this is not an issue. (Fixes #78651)
23572
23573 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
23574
23575         * AccessibleObject.cs: Remove dependence on Control.is_selected;
23576           instead properly track control states internally (allows us to
23577           remove is_selected from Control)
23578
23579 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23580
23581         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
23582         whose width is not a multiple of 8.
23583
23584 2006-06-13  Jackson Harper  <jackson@ximian.com>
23585
23586         * MdiClient.cs:  Only maximize the next child if the current one
23587         is maximized.
23588
23589 2006-06-13  Chris Toshok  <toshok@ximian.com>
23590
23591         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
23592         modified.  Also, guard against grid or grid_drawing being null in
23593         Invalidate.
23594
23595         * DataGrid.cs: Reformat tons of getters/setters.  In the
23596         DataMember setter, just call SetNewDataSource instead of
23597         duplicating some of its functionality.  In SetNewDataSource, don't
23598         check ListManager for null, since the property getter creates the
23599         object if needed.
23600
23601         * DataGridTableStyle.cs: don't set TableStyle or call
23602         SetDataGridInternal on the column here, it's done in
23603         GridColumnStylesCollection.Add.
23604
23605         * GridColumnStylesCollection.cs: fix all the explicit interface
23606         implementations to just call our methods.  Nuke AddInternal() and
23607         move the body of it to Add().  Also, add a call to
23608         column.SetDataGridInternal to Add().
23609
23610         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
23611         base()+duplicate code.  Also, use the Format property instead of
23612         format to generate an Invalidate ala MS.  Lastly, create the
23613         textbox here, unconditionally.
23614         (set_Format): call Invalidate.
23615         (get_TextBox): no need to call EnsureTextBox.
23616         (Commit): remove the message box.
23617         (Edit) remove the call to EnsureTextBox.
23618         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
23619         (EnterNullValue): no need to check textbox for null.
23620         (HideEditBox): no need to check textbox for null.
23621         (SetDataGridInColumn): add the textbox to the grid's controls.
23622         (EnsureTextBox): nuke.
23623         
23624 2006-06-13  Jackson Harper  <jackson@ximian.com>
23625
23626         * MdiWindowManager.cs: Hook up to the maximized menus paint event
23627         and redraw the buttons when needed. Unhook when the window is
23628         unmaximized.
23629         * MainMenu.cs: Add an internal Paint event, the mdi window manager
23630         needs this so that it can redraw its buttons when the menu is
23631         repainted.
23632         * InternalWindowManager.cs:
23633         * Form.cs: The method order has changed for DrawMaximizedButtons,
23634         so that it can be a PaintEventHandler.
23635         
23636 2006-06-13  Jackson Harper  <jackson@ximian.com>
23637
23638         * MdiClient.cs: When we close a maximized mdi window, the next mdi
23639         window is activated and maximized, even if it wasn't before.
23640         - When  a new window is activated repaint the decorations of the
23641         old one, so that it no longer has the Active "look" (the blue
23642         titlebar).
23643         * InternalWindowManager.cs: Open up CreateButtons to base classes
23644         so they can recreate the buttons on state changes.
23645         - If a window is maximized give it all three buttons
23646         * MdiWindowManager.cs: Create the titlebar buttons when the state
23647         is changed, this is needed because a toolwindow will not have all
23648         three buttons until it is maximized.
23649
23650 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
23651
23652         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
23653           Fixed bug #78609.
23654
23655 2006-06-12  Jackson Harper  <jackson@ximian.com>
23656
23657         * KeysConverter.cs: Make sure we handle the Ctrl special case
23658         if its the only key.
23659         
23660 2006-06-12  Jackson Harper  <jackson@ximian.com>
23661
23662         * Theme.cs: Add a method to get the size of a managed window
23663         toolbar button.
23664         * InternalWindowManager.cs: Remove the ButtonSize property, this
23665         should be retrieved from the theme.
23666         * MdiWindowManager.cs: Get the button size from the theme
23667         * ThemeWin32Classic.cs: Make the method to get the managed window
23668         titlebar button size public.
23669         - Handle the different button sizes of maximized toolwindows
23670         (should match any maximized window).
23671         - Get the titlebar height from the theme, not the WM (which gets
23672         it from the theme).
23673
23674 2006-06-12  Jackson Harper  <jackson@ximian.com>
23675
23676         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
23677         event down to the mdi window manager.
23678         - Expose some extra stuff to base classes
23679         - Make sure to end the Capture on an NC Mouse up, so that we can
23680         get double clicks properly, and the sizing doens't stick.
23681         - When doing PointToClient contain it in the workable desktop
23682         area, this prevents windows from changing size when the cursor is
23683         pulled outside of the working area while sizing.
23684         * MdiWindowManager.cs: When we get a double click maximize the
23685         window.
23686         - Reset the cursor after handling mode changes.
23687
23688 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
23689
23690         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
23691           current desktop, instead of just assuming a 0, 0 origin. This
23692           is needed for our internal window manager, to know the top
23693           margin of the desktop
23694
23695 2006-06-12  Chris Toshok  <toshok@ximian.com>
23696
23697         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
23698         we need this to get rid of the selected background in the bool
23699         column.
23700         (CancelEditing): move the ConcedeFocus call to above the Abort
23701         call.  Also, set is_changing to false and invalidate the row
23702         header if we were changing before.
23703         (ProcessKeyPreviewInternal): remove, since noone outside this
23704         class calls it anymore.  Roll the code into ProcessKeyPreview.
23705         (EndEdit): remove the internal version.
23706         (InvalidateCurrentRowHeader): make private.
23707
23708         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
23709         Keys.Escape handling (and with it the last call to
23710         DataGrid.EndEdit from outside the class.)
23711
23712
23713 2006-06-12  Chris Toshok  <toshok@ximian.com>
23714
23715         * DataGridTextBox.cs (.ctor): isedit defaults to false.
23716         (OnKeyPress): set isedit to true.
23717         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
23718         already handled by the grid.
23719
23720         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
23721         right.  ugh.
23722         (set_DataSource): SetDataSource always returns true, so stop
23723         putting it in an if statement.
23724         (EndEdit): get rid of some {}'s
23725         (ProcessGridKey): return true in case Keys.Escape.
23726         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
23727         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
23728         PositionChanged, stopped connecting to CurrentChanged.
23729         (GetDataSource): simplify this a bunch.
23730         (SetDataSource): change return type from bool to void.
23731         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
23732         to this, and make sure we don't set ListManager.Position inside
23733         set_CurrentCell.
23734         (OnListManagerItemChanged): if we're passed an actual index,
23735         redraw that row.
23736
23737         * CurrencyManager.cs (set_Position): don't call PullData here.
23738
23739 2006-06-09  Jackson Harper  <jackson@ximian.com>
23740
23741         * TreeNode.cs:  Recalculate the visible order before doing the
23742         Expand/Collapse Below calls, because those calls generate an
23743         expose.
23744         - Reduce calls to the TreeView property, which is mildly expensive
23745         by using a local var.
23746         * Form.cs: Layout the MDI child windows when creating the parent
23747         form.
23748         - Don't use the internal constructor anymore
23749         * MdiClient.cs: use the parent form width/height (if available)
23750         when laying out the child windows, we do this because the
23751         mdiclient isn't docked yet when the initial layout is done.
23752         - Don't need an internal constructor anymore.
23753
23754 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23755
23756         * FileDialog.cs: handle access errors when trying to create a folder
23757         or changing to a directory. No need to initialize out parameters.
23758
23759 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
23760
23761         * FileDialog.cs: Append a number when creating a new folder if the
23762           folder already exists (use parenthesis instead of square brackets)
23763
23764 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
23765
23766         * FileDialog.cs:
23767           - Disabled registry support for windows and added better registry
23768             error checking for other systems (need to investigate why it
23769             works perfectly on my system)
23770           - If a folder already exist show an error MessageBox instead of
23771             trying to create an indexed name.
23772           - Fixed a non intentional typo.
23773
23774 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23775
23776         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
23777
23778 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
23779
23780         * FileDialog.cs: When creating a new folder don't crash if the
23781           folder already exists.
23782
23783 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
23784
23785         * FileDialog.cs: Allmost a complete rewrite.
23786           - added a "virtual" file system that handles the differences
23787             between unix and windows file systems (especially the directory
23788             structure). Moved most of the directory and file handling code
23789             into the vfs.
23790             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
23791             UnixFileSystem and FSEntry.
23792           - Recently used folder/directory, size, location and used file names
23793             (file name ComboBox) are now stored in the registry and get read
23794             before the dialog shows up (fixes part 6 of bug #78446).
23795           - Creation of new folders/directories is now possible (context menu
23796             or ToolBar). Added TextEntryDialog for this that fills in the gap
23797             until ListView.LabelEdit works.
23798           - Fixed cursor handling (bug #78527) and focus handling for
23799             PopupButtonPanel
23800           - Various "Search in" ComboBox enhancements. The content of the
23801             dropdown listbox now almost matches ms.
23802           - Changed the behaviour when the user switches to SpecialFolder
23803             Recent to show the ListView in View.Details.
23804           - Beside using the ToolBar to change the View property of the
23805             file ListView it is now possible to use the context menu too.
23806
23807 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
23808
23809         * ComboBox.cs: Don't create a new ObjectCollection when an item
23810           gets inserted. Just insert the item in the existing object_items
23811           ArrayList.
23812
23813 2006-06-08  Jackson Harper  <jackson@ximian.com>
23814
23815         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
23816         that the treeview and root node checks are done also, this fixes a
23817         regression i caused in the unit tests.
23818
23819 2006-06-07  Wade Berrier <wberrier@novell.com> 
23820
23821         * RichTextBox.cs: More ISO8859-1 -> unicode
23822
23823 2006-06-07  Mike Kestner  <mkestner@novell.com>
23824
23825         * ComboBox.cs : use items to hold highlight/selection so that
23826         collection insertions don't require synchronization.
23827
23828 2006-06-07  Jackson Harper  <jackson@ximian.com>
23829
23830         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
23831         routine.  We now always keep the sized edge at the cursor instead
23832         of computing movement and adjusting rects.  There is one buglet
23833         with this method though when the cursor is moved over area that
23834         the window can not expand too (such as the toolbars on the desktop).
23835
23836 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23837
23838         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
23839         here. Fixes crash on startup in AlbumSurfer.
23840
23841 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
23842
23843         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
23844           values
23845
23846 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23847
23848         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
23849         statement to avoid calling XNextEvent which will block if another thread
23850         took the event that we were expecting. Fixes bug #78605.
23851
23852 2006-06-07  Mike Kestner  <mkestner@novell.com>
23853
23854         * ListView.cs : isolated checkbox clicking from the selection logic.
23855         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
23856
23857 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23858
23859         * Form.cs: Check that the value passed to Form.DialogResult
23860         is a valid enum value.
23861
23862 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23863
23864         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
23865         Computer'. Clicking it in the network view goes to 'My Computer'.
23866         Added CIFS filesystem type. Display the mount point of filesystems.
23867         Avoid duplicate mount points (happens for me with CIFS);
23868
23869 2006-06-06  Jackson Harper  <jackson@ximian.com>
23870
23871         * InternalWindowManager.cs: Draw the maximized windows buttons
23872         when resizing.
23873
23874 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23875
23876         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
23877         all other dialogs. Fixes bug #78585.
23878
23879 2006-06-06  Mike Kestner  <mkestner@novell.com>
23880
23881         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
23882         Only invalidate checkbox on checkstate changes to avoid flicker.
23883         * ListBox.cs : avoid unselect/select when clicking selected item.
23884         avoid reselection flicker for already multiselected items.
23885         Fixes #78382.
23886
23887 2006-06-06  Jackson Harper  <jackson@ximian.com>
23888
23889         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
23890         the parent form so that the menu is removed if needed.
23891
23892 2006-06-06  Mike Kestner  <mkestner@novell.com>
23893
23894         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
23895         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
23896
23897 2006-06-06  Mike Kestner  <mkestner@novell.com>
23898
23899         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
23900
23901
23902 2006-06-06  Jackson Harper  <jackson@ximian.com>
23903
23904         * Control.cs: Use the property (instead of the field) to get the
23905         default cursor so it is instantiated correctly.
23906         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
23907         resizes so we need to manually repaint the window decorations here.
23908         - Set the titlebar button locations as soon as they are created,
23909         otherwise they are not set correctly on win32.
23910         
23911 2006-06-06  Chris Toshok  <toshok@ximian.com>
23912
23913         * CurrencyManager.cs (set_Position): call PullData before
23914         OnCurrentChanged.
23915         (AddNew): after calling IBindingList.AddNew, update our
23916         listposition, and call OnCurrentChanged/OnPositionChanged (without
23917         calling PullData).
23918         (OnCurrentChanged): remove the call to PullData from here.
23919         (OnItemChanged): remove the call to PushData from here.
23920         (OnPositionChanged): change the test from == null to != null to
23921         match the other methods.
23922         (ListChangedHandler): the grossest part of the patch.  Implement
23923         this such that it passes the unit tests in CurrencyManagerTest and
23924         the output more or less matches that of MS's implementation.
23925  
23926 2006-06-06  Mike Kestner  <mkestner@novell.com>
23927
23928         * ListView.cs : only update check state on single click.
23929         * ThemeWin32Classic.cs : fix focus drawing for details view without
23930         fullrowselect.  Fixes #78454.
23931         * XplatUIX11.cs : fix for double click emission.
23932
23933 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
23934
23935         * PropertyGridView.cs : Applied Atsushi's patch to fix
23936         font dialog bug  (#78197).
23937
23938 2006-06-05  Jackson Harper  <jackson@ximian.com>
23939
23940         * TreeNode.cs: Compute the next node for expanding/collapsing
23941         correctly. We now factor in nodes without a NextNode
23942         correctly. (Fixes somes cases in nunit-gui).
23943         * InternalWindowManager.cs: Set the bounds when updating the
23944         virtual position of a tool window.
23945         
23946 2006-06-05  Chris Toshok  <toshok@ximian.com>
23947
23948         * DataGrid.cs: rename cached_currencymgr to list_manager.
23949         (set_CurrentCell): move SetCurrentCell code here, and clean it up
23950         some.
23951         (CurrentRow, CurrentColumn): single accessors so we can make the
23952         cursor movement code a lot easier to understand.
23953         (CurrentRowIndex): implement this in terms of CurrentRow.
23954         (BeginEdit): clean this up a bit.
23955         (CancelEditing): sort out the is_editing/is_changing/is_adding
23956         stuff a little.
23957         (EndEdit): minor changes.
23958         (OnKeyDown): add a comment about a (most likely) unnecessary
23959         check.
23960         (OnMouseDown): cancel editing when we click on a row header.  And
23961         use the CurrentRow setter, not CurrentCell.
23962         (ProcessDialogKey): directly call ProcessGridKey.
23963         (UpdateSelectionAfterCursorMove): factor out this common block of
23964         code (it's used everywhere that we move the cursor by updating row
23965         or column).
23966         (ProcessGridKey): pretty substantial overhaul.  Use the
23967         CurrentRow/CurrentColumn properties to make the code a lot more
23968         readable.  Only use the CurrentCell property when we have to
23969         modify both row and column at once.  Tab behavior is still broken,
23970         and Delete is untested.
23971         (Select): if we have no selected rows, set selection_start to
23972         @row.
23973         (EditCurrentCell): rename EditCell this.  It was only ever invoked
23974         with CurrentCell as the arg, so drop the arg and rename it.
23975
23976         * DataGridColumnStyle.cs: clean up the constructors a little, and
23977         drop CommonConstructor().
23978
23979         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
23980         actually get notified when the user hits it.
23981         (ProcessKeyMessage): *substantially* simplify this method.
23982         There's no reason (that I can see) for the textbox to be making
23983         calls into the datagrid at all.  Remove all of them but the ones
23984         for Enter handling.  those will take some more work.
23985
23986         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
23987         calling HideEditBox.
23988         (HideEditBox): if we have an active textbox, render it invisible
23989         without causing a re-layout of the datagrid.
23990
23991 2006-06-05  Mike Kestner  <mkestner@novell.com>
23992
23993         * ListView.cs : fix NRE crasher when focuseditem is cleared by
23994         collection changes by resetting it to Items[0].  Fixes #78587.
23995
23996 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23997
23998         * MessageBox.cs: if the height of the text is larger than the icon_size,
23999         use that. Fixes bug #78575.
24000
24001 2006-06-05  Jackson Harper  <jackson@ximian.com>
24002
24003         * TreeView.cs: Fix line drawing when scrolling.  To do this each
24004         node is basically responsible for drawing its entire horizontal
24005         area.  When drawing a node it draws its parent node lines if
24006         needed.
24007         - Adjust the clip area to the viewport rectangle
24008         - Fix Left/Right key handling to match MS. (It expand/collapses
24009         and moves to parents/first child but does not move selection to
24010         sibling nodes).
24011         - Fix SetTop to work with new bound calculation code
24012         - When scrollbars are no longer needed we need to reset scrolling
24013         vars and recalculate the visible order so the redraw is correct
24014         * TreeNode.cs: We can't expand/collapse nodes with no children.
24015
24016 2006-06-03  John Luke  <john.luke@gmail.com> 
24017
24018         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
24019         so the colors work without dev packages
24020         
24021 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
24022
24023         * Control.cs 
24024           - Select: Implemented to just use activate. Seems to match MS 
24025             behaviour closest. Documented to only do actual control walking 
24026             based on it's parameters if in a container control so I moved 
24027             the code there.
24028           - Removed selection check logic from our internal Select() method
24029         * ContainerControl.cs:
24030           - Select: Moved selection logic from Control here, since MS documents
24031             that containers obey the bool arguments. No longer calling base
24032
24033 2006-06-02  Jackson Harper  <jackson@ximian.com>
24034
24035         * TreeView.cs: If the selected node isn't changed when we get
24036         focus update the previously selected node so that we see the
24037         selection box.
24038
24039 2006-06-02  Mike Kestner  <mkestner@novell.com>
24040
24041         * ComboBox.cs: restructure grab and general mouse event handling.
24042         Make the composite control raise mouse events like it was a single
24043         control for leaves/enters/motion/up/down events.  fix dropdown list
24044         coordinate mangling and refactor it into the scrollbar subclass to
24045         reduce code duplication.  Fixes #78282 #78361 and #78457.
24046
24047 2006-06-02  Mike Kestner  <mkestner@novell.com>
24048
24049         * ScrollBar.cs: remove Capture setting/clearing, as it happens
24050         automatically in the Control.WndProc.
24051
24052 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24053
24054         * FileDialog.cs: fix crash when running SharpChess, which sets the
24055         FilterIndex to 2 with only one Filter.
24056
24057 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24058
24059         * ToolBar.cs: add SizeSpecified property.
24060         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
24061         try to figure out our real size, otherwise fallback to what the
24062         container says.
24063
24064 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
24065
24066         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
24067         * Control.cs (WndProc): MS always calls the DefWndProc to pass
24068           up the event
24069
24070 2006-06-01  Mike Kestner  <mkestner@novell.com>
24071
24072         * ListView.cs: revamp the focus management in ListView.  It still
24073         causes churn of LostFocus/GotFocus emissions on clicks, but it's
24074         better than not handling focus at all.  Will revisit when pdb feels
24075         the general focus handling is solid.  Fixes #78526.
24076
24077 2006-06-01  Jackson Harper  <jackson@ximian.com>
24078
24079         * TreeView.cs: Set the default border style in the constructor.
24080         - Move painting to use OnPaintInternal instead of capturing
24081         WM_PAINT, this is the correct way of doing things
24082         - UpdateBelow shouldn't invalidate the scrollbar area
24083         - Cap the top on update below in case the node was above the top
24084         of the viewport rectangle.
24085         - ExpandBelow and Collapse below need to obey Begin/End Update.
24086         * TreeNode.cs: Make is_expanded internal so the treenode
24087         collection can change it without firing the whole event chain.
24088         * TreeNodeCollection.cs: When clearing all the child nodes make
24089         sure to recalc the visible order.
24090         - Improve algo for remove the top node
24091
24092 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
24093
24094         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
24095           SendMessage directly calling window procedures, which in turn might
24096           call SetFocus()
24097
24098 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
24099
24100         * Control.cs: Don't handle WM_SETFOCUS if the same window already
24101           has focus (works around X11 sending a FocusIn after our SetFocus)
24102         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
24103
24104 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
24105
24106         * Mime.cs: Fix for the NET_2_0 build.
24107           NameValueCollection needs StringComparer now.
24108
24109 2006-05-31  Chris Toshok  <toshok@ximian.com>
24110
24111         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
24112         return (via an out parameter) the starting X of the column.
24113         (UpdateVisibleColumn): track change to FromPixelToColumn.
24114         (HitTest): add a ColumnResize case here.
24115         (DrawResizeLine): new function, probably poorly named.
24116
24117         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
24118         only need to keep one reference.
24119         (set_ListManager): same.
24120         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
24121         Also, add support for HitTestType.ColumnResize.
24122         (OnMouseMove): add column resize behavior here, and change the
24123         cursor to the correct one as we move around the datagrid.
24124         (OnMouseUp): terminate the column resize if we're resizing.
24125         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
24126         for the current cell.
24127         (ConnectListManagerEvents): use cached_currencymgr.
24128         (DisconnectListManagerEvents): fill this in, using
24129         cached_currencymgr.
24130         (SetCurrentCell): remove cached_currencymgr_events handling.
24131         (SetDataMember): only call DisconnectListManagerEvents if
24132         cached_currencymgr is != null.
24133         (SetDataSource): same.
24134         (OnListManagerCurrentChanged): cached_currencymgr_events ->
24135         cached_currencymgr.
24136
24137 2006-05-31  Jackson Harper  <jackson@ximian.com>
24138
24139         * BindingManagerBase.cs: Remove somedebug code that creeped into
24140         SVN.
24141         * TreeNode.cs: We get the indent level dynamically right now, so
24142         don't track it as a member.
24143         * TreeNodeCollection.cs: Make sure all nodes added to the list
24144         have parents, treeviews/topnodes setup properly.
24145         - Don't attempt to track indent level.
24146
24147 2006-05-30  Jackson Harper  <jackson@ximian.com>
24148
24149         * BindingContext.cs: Create the currency manager tables here.
24150         This allows us to more easily create null tables (when bad data
24151         members are used), and more easily create related currency
24152         managers.
24153         * CurrencyManager.cs: All the table creation stuff is done by the
24154         binding context now.
24155         - Current should throw an exception if listposition is -1.
24156         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
24157         been bound yet.
24158
24159 2006-05-30  Mike Kestner  <mkestner@novell.com>
24160
24161         * ListView.cs: allow reexpansion of zero-width column headers.
24162         Fixes #78528.
24163
24164 2006-05-28  Chris Toshok  <toshok@ximian.com>
24165
24166         * CurrencyManager.cs (get_Current): after the late binding
24167         listposition = -1 fix, we need to guard against it here and return
24168         null, otherwise we raise an exception (which is swallowed
24169         elsewhere, and breaks datagrid databinding.)
24170
24171 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
24172
24173         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
24174           than WM_SYSKEY, don't throw if get something unexpected (#78507)
24175
24176 2006-05-26  Jackson Harper  <jackson@ximian.com>
24177
24178         * ControlPaint.cs:
24179         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
24180         values, it's faster and it's all we care about (we don't care if
24181         the names aren't equal).
24182         * KeyboardLayouts.cs: Eliminate some dead code.
24183         - Lazy init things
24184         * X11Keyboard.cs: Lazy init keyboard detection.
24185         - Cleanup access modifiers a little.
24186
24187 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
24188
24189         * XplatUIX11.cs: Once again, attempting to get layout just right.
24190
24191 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
24192
24193         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
24194           the sizes of each link section, that will result in sizes that
24195           match DrawString's layout (Fixes #78391)
24196
24197 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
24198
24199         * FileDialog.cs: If AddExtension property is true autocomplete the
24200           extensions in SaveFileDialog correctly. Fixes bug #78453.
24201           Set MyNetwork and MyComputer to "C:\" for windows. This should
24202           fix part 8 of bug #78446 for now.
24203
24204 2006-05-26  Chris Toshok  <toshok@ximian.com>
24205
24206         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
24207         invalidate the current row header if we need to, but presumably
24208         we'll invalidate the row corrsponding to the bounds or
24209         editingControl.
24210         (GridHScrolled): switch back to this method, as it's part of the
24211         public api.  *sigh*.
24212         (GridVScrolled): same.
24213         (OnMouseWheel): hack up something that more or less works.  Call
24214         GridHScrolled/GridVScrolled directly, instead of duplicating much
24215         of their code here.
24216         (EnsureCellVisibility): reinstate a bunch of this code, since we
24217         can't just set the scrollbar Value and expect to do all the work
24218         in the ValueChanged handler.  Also, Call Update() after scrolling
24219         in one direction so the other XplatX11.ScrollWindow call has the
24220         proper stuff in the proper places.
24221         (EditCell): set is_editing to true before calling .Edit.
24222
24223         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
24224         don't bother comparing first.
24225         (OnKeyPress): call grid.ColumnStartedEditing before calling
24226         base.OnKeyPress.  this will set is_changing and invalidate the row
24227         header if necessary.
24228         (ProcessKeyMessage): for WM_CHAR messages, call
24229         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
24230         and WM_KEYDOWN.
24231         
24232         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
24233         it's done in the DataGrid.
24234         (NextState): call grid.ColumnStartedEditing, which takes care of
24235         invalidating the row header (and setting is_changing).
24236
24237         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
24238         here.  it's done in the DataGrid.
24239
24240 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24241
24242         * Control.cs: allow changing the cursor when the mouse position is
24243         out of bounds but Capture is set.
24244         * LinkLabel.cs: handle the case when the mouse button is pressed on the
24245         linklabel but released somewhere else.
24246
24247 2006-05-25  Jackson Harper  <jackson@ximian.com>
24248
24249         * TreeView.cs: When we get focus if there is no selected node make
24250         it the top node
24251         - Remove some uneeded setup code from Draw.
24252         * TreeNodeCollection.cs: If the tree doesn't have a top node when
24253         a new node is inserted make the new node the top.
24254         * XplatUIX11.cs:
24255         * Timer.cs: Use Utc time so that no local time zone stuff needs to
24256         be used (should be faster).
24257         
24258 2006-05-25  Chris Toshok  <toshok@ximian.com>
24259
24260         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
24261         problem with the last commit.
24262
24263 2006-05-25  Chris Toshok  <toshok@ximian.com>
24264
24265         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
24266         need the invalidate call here, while scrolling right-to-left via
24267         the left arrow key (i.e. moving the editing cell while scrolling).
24268
24269         * DataGrid.cs (.ctor): remove the initialization of
24270         ctrl_pressed/shift_pressed.  We no longer track them using key
24271         up/down handlers, but by using Control.ModifierKeys.  Also, switch
24272         to using ValueChanged handlers on the scrollbars instead of
24273         Scrolled event handlers.  This simplifies a bunch of the scrolling
24274         code.
24275         (GridHValueChanged): rename from GridHScrolled, and change it to
24276         work with the new event args.
24277         (GridVValueChanged): same.
24278         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
24279         (OnMouseWheel): actually scroll the datagrid.  Don't change the
24280         selected cell.
24281         (ProcessGridKey): correct all the keyboard navigation stuff I
24282         could find.  Ctrl up/down/left/right/home/end work now.
24283         (EnsureCellVisibility): correct method name spelling.  Also,
24284         simplify this a touch by not explicitly calling the
24285         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
24286         scrollbar value.
24287         (OnKeyUpDG): no need for this method now.
24288         
24289 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24290
24291         * LinkLabel.cs: display the OverrideCursor when hovering the label.
24292         Fixes bug #78392.
24293
24294 2006-05-25  Chris Toshok  <toshok@ximian.com>
24295
24296         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
24297         r61019.
24298
24299 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
24300
24301         * Application.cs: Moved setting of is_modal and closing to before
24302           we create the control, to allow the event handlers called as a
24303           result of creation affect closing. Also removed Gonzalo's previous
24304           change to setting DialogResult, the behaviour has been moved to 
24305           Form.ShowDialog()
24306         * Form.cs: 
24307           - ShowDialog(): Removed explicit creation of the form, let RunLoop
24308             handle it instead
24309           - ShowDialog(): If no dialog result is set, we need to return Cancel
24310           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
24311             the close is cancelled
24312
24313 2006-05-25  Jackson Harper  <jackson@ximian.com>
24314
24315         * StatusBar.cs: We only need to update the sizes of the other
24316         panels when we have auto size contents.  Also we are only updating
24317         the contents of the panel, not the borders, so compensate for the
24318         border width (TODO: get this width from the theme somehow).
24319         * TreeView.cs: Scrollable is true by default
24320         - Use invalidate instead of refresh where needed
24321         - Factor the scrollable value into scrollbar updating
24322         - Update the scrollbars if the Scrollable property is altered
24323         - Update the selected node if its ImageIndex is changed
24324         - Handle null nodes in UpdateNode (mainly so we don't have to
24325         check if selected is null when updating it
24326         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
24327         are factored into the visible count
24328         - Use VisibleCount for clarity in the code
24329         - When the font is changed we need to recurse through all the
24330         nodes and invalidate their sizes
24331         
24332 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24333
24334         * Application.cs: set the DialogResult to fixed when the main form is
24335         hidden or destroyed while being modal.
24336
24337 2006-05-25  Miguel de Icaza  <miguel@novell.com>
24338
24339         * Theme.cs: Use Tangoified messagebox icons. 
24340
24341         (GetSizedResourceImage): Also cope with width = 0 and do not
24342         trigger a warning in that case (0 means "give me your icon from
24343         the resouce, no special size needed).
24344
24345 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
24346
24347         * Application.cs: Leave runloop if the the main modal form is 
24348           hidden (fixes #78484)
24349
24350 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
24351
24352         * BindingContext.cs : reject null datasource in Contains() and
24353           Item[].
24354         * CurrencyManager.cs : check data_member validity when data_source
24355           is dataset. When it is late binding, the initial position is -1.
24356
24357 2006-05-24  Jackson Harper  <jackson@ximian.com>
24358
24359         * TreeNodeCollection.cs: Dont't recalculate the visible order on
24360         inserted nodes that aren't visible.  This changes the
24361         max_visible_order which confuses scrollbar settings.
24362         - Use the enumerator to get the prev node instead of duplicating
24363         code.
24364         * TreeView.cs: Use new method for setting scrollbar values
24365         - Don't set the bounds every time the scrollbar is updated
24366         - When updating below the root node use an invalidate instead of a
24367         refresh to prevent the child controls (scrollbars) from being
24368         refreshed. (UpdateBelow still needs to be reworked anyways).
24369         - Reenable SetBottom now that visible orders are set correctly,
24370         added some debug code incase we ever get bad values there again.
24371         - Set the scrollbar max to 2 less then the max value, this
24372         compensates for the max value being one above the node count, and
24373         for scrollbars adding one extra "notch".
24374         - When drawing image nodes if there is an imagelist we draw the
24375         first image in the list if the supplied image index is out of the
24376         image list's bounds.
24377         
24378 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
24379
24380         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
24381           we receive a size change from the WM (Fixes #78503)
24382
24383 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
24384
24385         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
24386           rectangle (Fixes #78501)
24387
24388 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
24389
24390         * ButtonBase.cs: 
24391           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
24392             as a bitfield.
24393           - Fixed MouseMove to no longer switch pressed state unless the left
24394             mouse button is pressed. Atsushi provided the original patch (#78485)
24395           
24396 2006-05-24  Jackson Harper  <jackson@ximian.com>
24397
24398         * ScrollBar.cs: New internal methods that allow us to change a
24399         couple values on the scrollbar (the most common case is maximum
24400         and large change) without getting multiple invalidates.
24401
24402 2006-05-24  Chris Toshok  <toshok@ximian.com>
24403
24404         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
24405         (Edit): save off the original state in oldState, and set
24406         grid.is_editing to true.
24407         (OnKeyDown): abort editing if escape is pressed.  also, call
24408         NextState if space is pressed.
24409         (OnMouseDown): call NextState.
24410         (NextState): factor out shared code from OnKeyDown and OnMouseDown
24411         here.  Also, only invalidate the row header once (on the initial
24412         is_changing switch) to save on redraws.
24413
24414 2006-05-24  Chris Toshok  <toshok@ximian.com>
24415
24416         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
24417         if the value in the cell is different than it was before.  This
24418         keeps us from triggering a layout when we move around a datarid
24419         with a highlighted cell.
24420         (Edit): suspend layout when creating/positining the text box, and
24421         resume passing false so we don't ever actually re-layout.
24422         (ReleaseHostedControl): same.
24423         (EnsureTextBox): reformat slightly, and set WordWrap to false.
24424
24425         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
24426         control-key sequences should go to the datagrid - remove that
24427         lock.  Also, modify the conditions under which we move between
24428         cells when moving the cursor within a cell, and remove the "this"
24429         and "base" from field accesses.  We weren't even consistent, given
24430         they all were in the base class.
24431
24432 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
24433
24434         * Binding.cs : (.ctor)
24435           An obvious NRE fix for BindingTest.CtorNullTest().
24436
24437 2006-05-23  Chris Toshok  <toshok@ximian.com>
24438
24439         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
24440         them between lines.  This fixes some quirks editing cells in the
24441         datagrid.
24442
24443 2006-05-23  Jackson Harper  <jackson@ximian.com>
24444
24445         * TreeView.cs: Use begin/end update when doing expand/collapse all
24446         so that we don't get flicker on the scrollbar.
24447
24448 2006-05-23  Jackson Harper  <jackson@ximian.com>
24449
24450         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
24451         treenode calculations to be independant of the painting code. To
24452         do this nodes track a visible order which is calculated by the
24453         treeview.
24454         - Call new methods for expanding/collapsing nodes.  These methods
24455         use scrollwindow so we don't have to update everything below the
24456         node.
24457         * TreeView.cs: Refactored drawing and scrolling code.  We don't
24458         need to update nodes when drawing anymore or calculate scrollbar
24459         stuff.
24460         - Added new methods for expanding/collapsing nodes. These methods
24461         use ScrollWindow so as to not have to redraw all the nodes below.
24462         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
24463         we add/remove nodes or sort.
24464         - Handle removing the selected and the top node properly.
24465
24466 2006-05-23  Chris Toshok  <toshok@ximian.com>
24467
24468         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
24469         maybe this should actually happen in the datagrid code?
24470         (EndEdit): no need to invalidate anything, given that
24471         ReleaseHostedControl causes the datagrid to relayout, which
24472         invalidates everything anyway.
24473
24474         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
24475         in SetCurrentCell).
24476         (set_SelectionBackColor): call InvalidateSelection instead of
24477         Refresh.
24478         (set_SelectionForeColor): same.
24479         (BeginEdit): Flesh this out a bit.
24480         (CancelEditing): only do any of this if we're editing/adding.
24481         (EndEdit): same.
24482         (OnMouseDown): there's no need to cancel editing here, it's done
24483         in SetCurrentCell.
24484         (SetCurrentCell): only invalidate the current row header if it's a
24485         different row than the new one.
24486         (ShiftSelection): fix this to work like MS does.
24487         (ResetSelection): factor out the invalidation of selected_rows to
24488         InvalidateSelection.
24489         (SetDataSource): cancel any editing that's going on.
24490
24491         * DataGridColumnStyle.cs
24492         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
24493         call the non-interface version.
24494
24495         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
24496         header rectangle with the clip rectangle so we don't redraw the
24497         entire header for just a small area.  Gets rid of the last flicker
24498         when horizontally scrolling.
24499         (DataGridPaintRow): same.
24500
24501 2006-05-23  Mike Kestner  <mkestner@novell.com>
24502
24503         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
24504         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
24505         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
24506         Critical bug report.
24507
24508 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
24509
24510         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
24511           and this fixes #78493
24512
24513 2006-05-23  Miguel de Icaza  <miguel@novell.com>
24514
24515         * Theme.cs (GetSizedResourceImage): Scale images if the proper
24516         size is not found.  
24517         
24518         * FileDialog.cs: Do not change the background for the side bar as
24519         it wont work nicely with the theme, and also reduces the artifacts
24520         in rendering the icons (which I want to fix too).
24521
24522         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
24523         resources, not resgen resources. 
24524
24525         (PlatformDefaultHandler): Pull images using the new API.
24526
24527 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
24528
24529         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
24530           a reference to the hwnd and will not remove it unless there are
24531           no pending exposures (fixes #78341)
24532         * XplatUI.cs: Improved debug
24533
24534 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
24535
24536         * MenuAPI.cs : don't handle OnClick event when it was not the left
24537           button. Fixed bug #78487.
24538
24539 2006-05-23  Mike Kestner  <mkestner@novell.com>
24540
24541         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
24542         prefer submenus to the top menu for item lookup, to avoid popping down
24543         top-row items.
24544
24545 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
24546
24547         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
24548           Graphics.FillRectangle as the visual results are really bad (even
24549           on win). We now draw perfect arrows (and perfect shadows when the
24550           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
24551           Pen.DashPattern to draw the dots of each line.
24552
24553 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
24554
24555         * FileDialog.cs: Update the filename combobox when navigating through
24556           the ListView with the cursor keys. Fixes part 7 of bug #78446.
24557
24558 2006-05-22  Mike Kestner  <mkestner@novell.com>
24559
24560         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
24561         Fixes #78463.
24562
24563 2006-05-22  Mike Kestner  <mkestner@novell.com>
24564
24565         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
24566         requests. Fix a misspelled parameter and a copy paste exception error
24567         in Select.
24568
24569 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
24570
24571         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
24572           to get the same width/height (5/13) on X11 as the default font has on
24573           win32. This means that our DefaultFont emSize is smaller than the 
24574           the MS SWF equivalent (even thought the width/height stays the same)
24575
24576 2006-05-20  Jackson Harper  <jackson@ximian.com>
24577
24578         * MdiClient.cs:
24579         * MdiWindowManager.cs:
24580         * InternalWindowManager.cs: Make sure to use the border width from
24581         the theme.
24582
24583 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
24584
24585         * PrintDialog.cs: Implements printer details
24586
24587 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
24588
24589         * FileDialog.cs: Added focus handling for PopupButtonPanel.
24590           Fixes part 1 and 2 of bug #78446
24591
24592 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
24593
24594         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
24595           instead of sticking to the first ever calculated value
24596
24597 2006-05-19  Mike Kestner  <mkestner@novell.com>
24598
24599         * ComboBox.cs: fix mouse motion selection to use MousePosition and
24600         PointToClient, since Capture is set. Fixes #78344.
24601
24602 2006-05-19  Mike Kestner  <mkestner@novell.com>
24603
24604         * ListView.cs: match MS behavior in Details view where items are not
24605         drawn if Columns.Count == 0. 
24606         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
24607         Use a separate pen to draw the check, since changing the width affects
24608         the box as well.  Fixes #78454.
24609
24610 2006-05-18  Miguel de Icaza  <miguel@novell.com>
24611
24612         * ListView.cs: ArgumentOutOfRangeException, single versions of the
24613         exception should throw the name of the invalid argument.
24614
24615         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
24616         there are no files listed. 
24617
24618 2006-05-18  Jackson Harper  <jackson@ximian.com>
24619
24620         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
24621         up.
24622
24623 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
24624
24625         * Control.cs: Brought back our old UpdateZOrder method as a private
24626           function and switched our calls from UpdateZOrder to the new one.
24627           This fixes the Paint.Net canvas disappearing bug.
24628
24629 2006-05-18  Jackson Harper  <jackson@ximian.com>
24630
24631         * Theme.cs:
24632         * ThemeWin32Classic.cs:
24633         * InternalWindowManager.cs: Move the drawing into the theme,
24634         expose everything the theme should need from the window manager.
24635
24636 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
24637
24638         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
24639           from the call to NativeWindow to avoid walking up the parent chain
24640           further than needed (speeds up setting cursors and avoids setting
24641           the wrong cursor if a parent has another cursor defined)
24642         * Cursor.cs: When loading an icon as cursor, MS uses the center of
24643           the icon as hotspot, not what's contained as hotspot in the icon
24644           file. This fixes the perceived drawing offset seen with Paint.Net
24645         
24646 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
24647
24648         * XplatUIX11.cs: 
24649           - Store the calculated rectangle in Hwnd object and use it when 
24650             setting the client size
24651           - Force Toolwindows to always be type Dock, to ensure they're on top
24652
24653 2006-05-18  Mike Kestner  <mkestner@novell.com>
24654
24655         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
24656         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
24657         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
24658         Substantial refactoring to remove confusing nested classes. Coding
24659         standard and Get+Set->property refactorings.  Shift to index based
24660         highlighting in ComboListBox instead of constantly using IndexOf and
24661         Items[]. Add invalidations on resize for DropDownList to fix ugliness
24662         in FileDialog growth.  Draw borders manually since Simple mode needs
24663         to look like two independent controls.  Make listbox border
24664         conditional to DropDownStyle.  Improved OwnerDraw support.
24665
24666 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
24667
24668         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
24669         Don't set the disposed graphics to null, so we can throw the "right"
24670         exception if the graphics is reused later (added a flag to avoid 
24671         double disposing). Some behaviours are different under 2.0 and are
24672         filled under bug #78448.
24673
24674 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
24675
24676         * Control.cs: When double-buffering is enabled, we need to reset
24677           our graphics context between paint calls. Otherwise, any 
24678           transformations and other alterations on the context will 
24679           become cumulative (#77734)
24680
24681 2006-05-18  Mike Kestner  <mkestner@novell.com>
24682
24683         * ListView.cs: do focused item selection like MS on clicks. 
24684         Rework focus handling for ItemControl so LostFocus invalidates as
24685         well.
24686         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
24687         the ListView ItemControl has focus.
24688
24689 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
24690
24691         * XplatUIX11.cs: If client_window ends up being width or height zero
24692           due to border settings, move it off window inside whole_window (#78433)
24693
24694 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
24695
24696         * Mime.cs: Shrink the mime file cache correctly.
24697
24698 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
24699
24700         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
24701
24702 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
24703
24704         * XplatUIX11.cs (AddExpose): More sanity checks
24705
24706 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
24707
24708         * XplatUIX11.cs:
24709           - AddExpose: Don't add expose ranges outside the size of our
24710             window
24711           - Cast opacity values to Int32 to avoid crashes with certain
24712             values
24713           - Added disabled code paths that protect against illegal cross-
24714             thread painting (Developers.exe)
24715
24716 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
24717
24718         * ProgressBar.cs: Invalidate the control when it's resized
24719           since block size is based on control size. (#78388)
24720
24721 2006-05-16  Miguel de Icaza  <miguel@novell.com>
24722
24723         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
24724         of setting the incoming argument to the "reset" value, we set the
24725         this.datamember to string.empty (before we were invalidating the
24726         incoming data).   
24727
24728         Fixes 78420
24729
24730 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
24731
24732         * Form.cs: Only apply transparency settings after the form
24733           is created. (Fixes #77800)
24734
24735 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
24736
24737         * ApplicationContext.cs: Grab the HandleDestroyed event so
24738           we know when to fire OnMainFormClosed 
24739
24740 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
24741
24742         * Application.cs: Introduced sub-class to allow tracking of
24743           threads and centralized triggering of the event mess for
24744           ThreadExit, AppExit, etc..  (#76156)
24745
24746 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
24747
24748         * MimeIcon.cs:
24749           - Do not return a null icon index value for a mime subclass.
24750             Instead try the main mime type class too.
24751           - Seems that some newer distributions don't have a link to some
24752             gnome default icons anymore. So check the default gnome dir too.
24753           
24754
24755 2006-05-16  Jackson Harper  <jackson@ximian.com>
24756
24757         * MdiClient.cs: Don't paint the parent background image if we have
24758         our own background image.
24759
24760 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
24761
24762         * Control.cs:
24763           - PerformLayout: Do not shrink space filled by DockStyle.Fill
24764             controls, all filled controls are supposed to overlap (#78080)
24765           - UpdateZOrder is supposed to update the control's z-order in the
24766             parent's z-order chain. Fixed to behave like that
24767           - BringToFront: Removed obsolete code
24768           - SendToBack: Simplyfied
24769           - SetChildIndex: Trigger layout calculations when Z-order changes
24770             since layout is done by z-order
24771
24772 2006-05-16  Chris Toshok  <toshok@ximian.com>
24773
24774         [ fixes bug #78410 ]
24775         * DataGrid.cs (set_AlternatingBackColor): use
24776         grid_drawing.InvalidateCells instead of Refresh().
24777         (set_BackColor): call grid_drawing.InvalidateCells.
24778         (set_BackgroundColor): use Invalidate instead of Refresh.
24779
24780         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
24781         invalidate the cell area.
24782
24783 2006-05-15  Chris Toshok  <toshok@ximian.com>
24784
24785         [ fixes bug #78011 ]
24786         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
24787         on to DataGridPaintRow.
24788         (DataGridPaintRow): take a clip argument, and only draw the cells
24789         which intersect it.  same with the not_usedarea.
24790
24791         * Theme.cs (DataGridPaintRow) add @clip parameter.
24792
24793         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
24794         XplatUI.ScrollWindow.
24795         (ScrollToRow): same.
24796
24797         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
24798         with last column which was causing a gray swath to appear with the
24799         XplatUI.ScrollWindow code.
24800
24801 2006-05-15  Chris Toshok  <toshok@ximian.com>
24802
24803         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
24804         use XplatUI.ScrollWindow.
24805         (VerticalScrollEvent): use XplatUI.ScrollWindow.
24806
24807 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
24808
24809         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
24810
24811 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
24812
24813         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
24814           file since there are no equivalent X11 cursors
24815
24816 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
24817
24818         * MonthCalendar.cs : DateTimePicker should reflect selected date
24819           on mouse*up*, not mouse*down*. Fixed originally reported part of
24820           bug #76474.
24821
24822 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
24823
24824         * TabControl.cs : When argument index is equal or more than tab
24825           count, just ignore. Fixed bug #78395.
24826
24827 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
24828
24829         * Control.cs: Dispose all child controls when control is diposed (#78394)
24830
24831 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
24832
24833         * ColorDialog.cs: Finally it is possible to select the color with
24834           the text boxes
24835
24836 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
24837
24838         * PrintDialog.cs: Fix typo
24839
24840 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
24841
24842         * PrintDialog.cs: PrintDialog is not resizable
24843         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
24844           color. Made some ToolBar drawing methods protected virtual.
24845
24846 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
24847
24848         * PrintDialog.cs: Implementation of the PrintDialog
24849
24850 2006-05-12  Chris Toshok  <toshok@ximian.com>
24851
24852         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
24853         thumb, instead use MoveThumb.  This has the side effect of making
24854         most of the other thumb moving machinery use MoveThumb as well.
24855         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
24856         need to actually invalidate the rectangle where the new thumb will
24857         go.
24858         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
24859         We force an Update() after, so it's not as fast as it could be,
24860         but at least there's zero flicker and no droppings.
24861         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
24862         (UpdateThumbPos): add another argument (dirty), which says whether
24863         or not to calculate/add dirty regions which we later invalidate.
24864         For cases where we know we're going to use MoveThumb, we pass
24865         false for this.  Otherwise, pass true.
24866
24867 2006-05-12  Jackson Harper  <jackson@ximian.com>
24868
24869         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
24870         the status bar.
24871         
24872 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
24873
24874         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
24875           and GetClipRegion methods and UserClipWontExposeParent property.
24876         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
24877           overriding UserClipWontExposeParent property, setting to false, since
24878           Win32 handles the required expose messages to draw our clipped parent
24879           areas internally
24880         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
24881           PaintEventStart to set the user clip region if set.
24882         * Control.cs: 
24883           - Now internally tracking the Region for the control since we need to
24884             store it if the handle is not yet created and only set it when it
24885             becomes created. Before setting the region forced handle creation
24886           - Added code to draw the parents underneath a user-clipped region
24887         * Hwnd.cs: Added UserClip property
24888
24889 2006-05-12  Chris Toshok  <toshok@ximian.com>
24890
24891         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
24892         (set_Maximum): same.
24893         (set_Minimum): same.
24894         (set_SmallChange): same.
24895         (OnMouseUpSB): remove the call to refresh when releasing the
24896         thumb.  We shouldn't need it.
24897         
24898 2006-05-12  Miguel de Icaza  <miguel@novell.com>
24899
24900         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
24901         AutoSize set to None, we do not need to relayout everything, we
24902         just need to invalidate the current region.
24903
24904         (Draw): Do not draw the entire ClientArea, just redraw the
24905         clip area being passed.
24906
24907         * MdiClient.cs: Make MdiClient constructor with the Form argument
24908         internal. 
24909
24910 2006-05-12  Jackson Harper  <jackson@ximian.com>
24911
24912         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
24913         parents background image,  but strangely not their own.
24914         - (DrawStatusBarPanel): Take into account horizontal alignment
24915         when drawing the strings and icons.
24916
24917 2006-05-12  Mike Kestner  <mkestner@novell.com>
24918
24919         * ListBox.cs: avoid invalidations for focus when the collection is
24920         empty. 
24921
24922 2006-05-12  Chris Toshok  <toshok@ximian.com>
24923
24924         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
24925         invalidate the entire thumb area.  Call InvalidateDirty which
24926         limits the redraw to the thumb itself and surrounding pixels.
24927
24928         * XplatUIX11.cs (ScrollWindow): optimize copying.
24929         
24930 2006-05-12  Chris Toshok  <toshok@ximian.com>
24931
24932         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
24933         Figure out the positioning/layout in a single pass instead of
24934         multiple recursive invocations.  Speeds up the initial display of
24935         the data grid.  Also, make many things private that were
24936         originally public but unused outside this class.
24937
24938 2006-05-11  Jackson Harper  <jackson@ximian.com>
24939
24940         * MdiClient.cs: Improved layout code.
24941
24942 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
24943
24944         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
24945           not SelectedObject.
24946
24947 2006-05-11  Chris Toshok  <toshok@ximian.com>
24948
24949         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
24950         union of that will always be {0,0,width,height}.
24951
24952 2006-05-11  Jackson Harper  <jackson@ximian.com>
24953
24954         * Form.cs: Match MS's DefaultSize for forms (they must have
24955         changed the size in sp2).
24956
24957 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
24958
24959         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
24960
24961 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
24962
24963         * TextControl.cs : Fixed bug #78109. This incorrect position
24964           comparison caused crash on automatic line split.
24965         * TextBoxBase.cs : reduce duplicate code.
24966
24967 2006-05-10  Jackson Harper  <jackson@ximian.com>
24968
24969         * MdiClient.cs: Active form is only sent to the back when using
24970         the Next form functionality, when a form is clicked the current
24971         active shouldn't be sent to the back.
24972         - Layout the mdi windows when the container is first made visible.
24973         * Form.cs: Give the MdiClient a ref to the containing form when we
24974         create it.
24975         
24976 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
24977
24978         * LinkLabel.cs : link_font could be uninitialized, so populate one
24979           before actual use. Fixed bug #78340.
24980
24981 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
24982
24983         * XplatUIX11.cs : clipboard format native value is IntPtr.
24984           Fixed bug #78283.
24985
24986 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
24987
24988         * Control.cs: 
24989           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
24990             which is passed up the parent chain by DefWndProc
24991           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
24992             to DefWndProc (#77956)
24993         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
24994
24995 2006-05-10  Jackson Harper  <jackson@ximian.com>
24996
24997         * MdiClient.cs: We need to remove the controls from the mdi
24998         collection, when we close the window.
24999         * MdiWindowManager.cs: Special handling of closing mdi windows.
25000         * InternalWindowManager.cs: Make the close method virtual so the
25001         mdi window manager can handle it specially.
25002
25003 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
25004
25005         * DataGrid.cs:
25006           - Recalculate grid when the data source has changed
25007           - Matches styles provided by user from all data sources types
25008         * DataGridTableStyle.cs: For columns that provided by the user set the
25009         with the preferred value is there was unassigned.
25010         * CurrencyManager.cs: throw OnItemChanged event
25011
25012 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
25013
25014         * PictureBox.cs: Don't animate until handle is created. Start animation
25015           when handle is created.
25016
25017 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
25018
25019         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
25020           current codebase.
25021         * XEventQueue.cs: We don't need to provide the extra info
25022
25023 2006-05-10  Jackson Harper  <jackson@ximian.com>
25024
25025         * MdiClient.cs: If the mdi clients parent form has a background
25026         image set, we draw that background image for the mdi area's
25027         background.
25028
25029 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
25030
25031         * TextBoxBase.cs: Set IBeam cursor (#78347)
25032
25033 2006-05-10  Mike Kestner  <mkestner@novell.com>
25034
25035         * ToolBar.cs: fix some text padding issues with ButtonSize
25036         calculation. Update the default size to match MS documentation.
25037         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
25038         button size. Fixes #78296.
25039
25040 2006-05-10  Mike Kestner  <mkestner@novell.com>
25041
25042         * ListBox.cs: use is_visible for scrollbar positioning in case the
25043         control isn't on screen yet.  Fix off by one with Right vs Width
25044         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
25045         
25046 2006-05-10  Jackson Harper  <jackson@ximian.com>
25047
25048         * X11Dnd.cs: Drop to a control with another control on top of it.
25049         * ToolBar.cs: Work on a copy of the buttons list, so that it can
25050         be modified in click handlers. TODO: Look for similar problems in
25051         other controls.
25052
25053 2006-05-09  Jackson Harper  <jackson@ximian.com>
25054
25055         * Form.cs: Window managers need the old window state when setting
25056         window state now.
25057         * InternalWindowManager.cs: Allow the base mdi window manager to
25058         handle more of the MDI only stuff (like maximize buttons).
25059         * MdiWindowManager.cs: Fix some snafus in changing the window
25060         state.  Add all the menu functionality, for both popup and
25061         maximized menus.
25062         * MdiClient.cs: When a new form is selected the currently
25063         activated form is sent to the back, this matches MS.
25064         - Implement a new method to activate the next mdi child window.
25065
25066 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
25067
25068         * Control.cs: 
25069           - Added new InternalCapture method to allow controls to prevent
25070             the capture behaviour on the click handlers
25071           - Switched to use InternalCapture
25072         * ComboBox.cs:
25073           - Using InternalCapture to prevent mouse captures from being released
25074             on mouse button release (Fixes #78100)
25075         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
25076           returns Form borders if a caption is present. (Fixes #78310)
25077
25078 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
25079
25080         * TreeNode.cs: Changed serialization .ctor to not require every field
25081           to be present. (#78265)
25082         * OwnerDrawPropertyBag.cs: Added serialization .ctor
25083
25084 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
25085
25086         * MimeIcon.cs: for is faster than foreach for strings.
25087
25088 2006-05-05  Mike Kestner  <mkestner@novell.com>
25089
25090         * CheckedListBox.cs: update check handling code to not use selected.
25091         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
25092         behavior for visual feedback, motion response, shift/ctrl handling,
25093         and properly deal with all 4 selection modes. Updates to bounds
25094         handling logic.  Add scroll wheel support. [Fixes #77842]
25095
25096 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
25097
25098         * ListView.cs:
25099           - Moved adding of Implicit controls into .ctor. That way, subsequent
25100             creation of the controls will not cause them to think they are 
25101             toplevel windows (fixes #78200 header problem)
25102           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
25103           - Switched visibility setting of header control to use internal field
25104             to avoid triggering handle creation
25105           - Now checking if handle is created before causing a refresh when items
25106             are added (This makes us now match handle creation time with MS)
25107         * Splitter.cs: Removed loading of private splitter cursor, switched to
25108           Cursors version now that that is loading the right ones
25109         * Cursors.cs: Load proper splitter cursors from resources
25110         * Cursor.cs: Added second method of loading resource cursors for the 
25111           VS.Net users amongst us
25112
25113 2006-05-05  Mike Kestner  <mkestner@novell.com>
25114
25115         * ListView.cs: give header_control a minimum size based on the
25116         ListView size.
25117
25118 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
25119
25120         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
25121           window seems to do that with metacity, so set that type. (#78120)
25122
25123 2006-05-05  Mike Kestner  <mkestner@novell.com>
25124
25125         * ListViewItem.cs: fix Details mode checkbox layout bug.
25126         * ThemeWin32Classic.cs: draw a ListView column header for unused space
25127         at the end of the header, if it exists. [Fixes for #78200]
25128
25129 2006-05-04  Jackson Harper  <jackson@ximian.com>
25130
25131         * MdiClient.cs: Add a helper property to get the container form.
25132         * MdiWindowManager.cs: We have to make sure to use the menu origin
25133         when drawing the icons and buttons, this fixes maximized window
25134         icons/buttons on win32.
25135         * InternalWindowManager.cs: Reset the restore captions when a
25136         window goes from Maximized to Minimized and vice versa. Move the
25137         DrawMaximizedButtons into the MdiWindowManager source, tool
25138         windows can't be maximized. NOTE: This could use a little
25139         refactoring if time ever permits.
25140         
25141 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
25142
25143         * TextBox.cs: Add MWFCategoryAttributes
25144         * TextBoxBase.cs: Add MWFCategoryAttributes
25145         * Form.cs: Add MWFCategoryAttributes
25146
25147 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
25148
25149         * Control.cs: Add MWFCategoryAttributes
25150         * ScrollableControl.cs: Add MWFCategoryAttributes
25151
25152 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
25153
25154         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
25155           Divider is true. Fix a little glitch in PropertyToolBar
25156           drawing code
25157
25158 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
25159
25160         * Control.cs:
25161           - Dispose: Call base.Dispose, this causes the disposed event
25162             to be fired (and probably other, more important stuff)
25163           - SetVisibleCore: Set is_visible to true after creating the
25164             window so that the window still gets created invisible (if
25165             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
25166             to generate a WM_ACTIVE message
25167         * Form.cs: Call Dispose when we want to destroy the window, instead of
25168           just destroying the handle (Dispose will do that for us)
25169         * XplatUIX11.cs:
25170           - RootWindow also needs a queue, so we can properly process the
25171             property change events from RootWindow (like Activate)
25172           - Generatic synthetic WM_ACTIVE message when the active window is
25173             being destroyed
25174
25175 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
25176
25177         * LinkLabel.cs: Trigger a recalc of our label dimensions when
25178           bounds are changed
25179
25180 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
25181
25182         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
25183           for determining width and height (image might not be assigned if
25184           we're drawing an imagelist)
25185
25186 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
25187
25188         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
25189         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
25190           height from system
25191         * Theme.cs: No longer returns hardcoded menu height, instead calls
25192           new driver method
25193         * Form.cs (OnLoad): Scaling happens before triggering Load events 
25194           on MS (# 78257)
25195
25196 2006-05-01  Mike Kestner  <mkestner@novell.com>
25197
25198         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
25199
25200 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
25201
25202         * TextBoxBase.cs: Removed Fixme
25203         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
25204
25205 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
25206
25207         * XplatUIX11.cs:
25208           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
25209             the rectangle relative to the parent, considering borders. We
25210             don't really want that.
25211           - ScrollWindow: Fixed warning to be more understandable
25212         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
25213           scrollbars and scroll only the visible area
25214         * RichTextBox.cs: Removed debug output
25215
25216 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
25217
25218         * NumericUpDown.cs (Text): Just use base
25219         * UpDownBase.cs: Ensure txtView is created before using it
25220
25221 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
25222
25223         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
25224           casting to IntPtr to avoid 64bit overflow errors
25225
25226 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
25227
25228         * Control.cs:
25229           - AllowDrop: Don't force handle creation.
25230           - CreateHandle: Added call to tell driver if we're allowed to drop
25231
25232 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
25233
25234         * FileDialog.cs: Remember the last directory not only for the
25235           current instance but also for new FileDialog instances.
25236
25237 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
25238         
25239         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
25240           broke sending async messages
25241
25242 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
25243
25244         * XplatUIX11.cs:
25245           - ScrollWindow: Fixed method. We finally generate expose events again
25246             for scrolled areas. This was causing 'garbage' when scrolling
25247             textbox and other controls that used ScrollWindow
25248           - Switched from using the regular queue for paint events to the MS 
25249             model of 'generating' paint events when the queue is empty.
25250             We use the new XQueueEvent.Paint subclass to store which windows
25251             need painting.
25252           - AddExpose now takes the x/y/width/height of the exposed area
25253             and inserts the window into the paint queue if not already there
25254           - InvalidateWholeWindow: Switched to use new AddExpose method
25255           - UpdateMessageQueue: Added which queue to monitor for paint events
25256           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
25257             the unlikely case nothing above handles it. We reset the expose
25258             pending states to get them off the queue.
25259           - GetMessage: Now pulls a paint event if no other events are in the
25260             queue
25261           - Invalidate: Switched to new AddExpose method
25262           - PeekMessage: Updated to understand pending paint events
25263           - UpdateWindow: Fixed logic bug. We were only updating if the window
25264             didn't need updating. Also switched to sending WM_PAINT directly,
25265             like MS does.
25266         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
25267           and random access Remove(). The random access is needed to handle
25268           UpdateWindow() where a WM_PAINT is sent directly without accessing
25269           the queue.
25270         * ScrollBar.cs: Added Update() calls to cause immediate updates to
25271           allow for better feedback when scrolling. Scrollbars are small and
25272           the immediate update should make it 'feel' more responsive without
25273           slowing things down. ScrollBar still needs it's invaliate logic
25274           updated to not always invalidate the whole bar on certain changes.
25275
25276 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25277
25278         * Control.cs:
25279         (BackColor): if the control does not support a transparent background,
25280         return the default backcolor when the parent backcolor is transparent.
25281
25282 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
25283
25284         * Application.cs: Updated to new StartLoop/GetMessage API
25285         * RichTextBox.cs: Provide some output on RTF parsing errors
25286         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
25287           new queue_id argument to GetMessage and PeekMessage to allow faster
25288           handling of per-thread queues in drivers.
25289         * Hwnd.cs: Added Queue tracking and property
25290         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
25291         * XEventQueue.cs: Added thread trackingA
25292         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
25293         * XplatUIX11.cs:
25294           - Implemented new per-thread queue
25295           - GetMessage: Fixed return/break behaviour on several cases. We were
25296             returning stale messages in some cases, instead of just processing
25297             the next message
25298
25299 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
25300
25301         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
25302
25303 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
25304
25305         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
25306           fixed off-by-one comparisons between Width/Height and Right/Bottom.
25307
25308 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
25309
25310         * PropertyGridView.cs: Fix drop down width.
25311
25312 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
25313
25314         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
25315           a mess in DrawToolBar, so I removed one of them.
25316
25317 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
25318
25319         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
25320           needed (clip). Otherwise we get artifacts.
25321
25322 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
25323
25324         * FixedSizeTextBox.cs: Added constructor to allow specifying which
25325           dimension is fixed
25326         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
25327           and switched FixedSizeTextBox to only be fixed vertical (#78116)
25328         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
25329           if it matches the scale base font (avoids unneeded scaling)
25330
25331 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
25332
25333         * X11DesktopColors.cs: One gtk_init_check should be enough
25334
25335 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
25336
25337         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
25338           match MS behaviour
25339
25340 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
25341
25342         * TextBoxBase.cs: 
25343           - Generate OnTextChanged for Backspace even if we're only deleting
25344             the current selection
25345           - When setting the Text property, only select all text if the
25346             control does not have focus when it is being set. Otherwise
25347             just place the cursor at the beginning of the control
25348
25349 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
25350
25351         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
25352           Added a little helper to draw PropertyGrid ToolBar with a different
25353           border and a different BackColor.
25354         * PropertyGrid.cs: Some background parts didn't get painted with the
25355           correct background color. Added a class that helps us to draw the
25356           correct border for PropertyGridView and a class that helps us to
25357           draw ToolBars with a different backcolor
25358         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
25359
25360 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
25361
25362         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
25363         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
25364
25365 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
25366
25367         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
25368           into the palette entries. Also, since we're working on a copy
25369           we needed to copy the palette back onto the bitmap.
25370         * Cursor.cs: Same fix as XplatUIWin32.cs.
25371
25372 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
25373
25374         * ImageListStreamer.cs: Need to read the var (or we're off)
25375
25376 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
25377
25378         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
25379           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
25380           TextBoxBase.cs: Unused var fixes
25381         * AxHost.cs: Small 2.0 fix
25382         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
25383           as it seems that is what at least Metacity expects. This will make
25384           icons show up on 64bit platforms. We still have some 64bit size
25385           issues, though, since the startup app window size still won't match.
25386
25387 2006-04-25  Mike Kestner  <mkestner@novell.com>
25388
25389         * *.cs: cleanup newly reported exception var unused warnings.
25390
25391 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
25392
25393         * ThemeWin32Classic.cs: Button image alignment now matches exactly
25394           ms
25395
25396 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
25397
25398         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
25399           image. The image position is always the same, no matter if the
25400           button is pressed or not.
25401
25402 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
25403
25404         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
25405           selection and set the correct filename for SaveFileDialog.
25406           Patch by Emery Conrad.
25407
25408 2006-04-24  Mike Kestner  <mkestner@novell.com>
25409
25410         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
25411         check for item.X outside the ClientRect instead of item.Y. Fixes
25412         #78151.
25413
25414 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25415
25416         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
25417         trust that value blindly and do some sanity check. Fixes bug #77814.
25418
25419 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25420
25421         * ImageListStreamer.cs: save the mask as a 1bpp image.
25422
25423 2006-04-21  Mike Kestner  <mkestner@novell.com>
25424
25425         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
25426         pass Checked and Indeterminate to the Theme Engine. Improve
25427         encapsulation with ListBox.
25428         * ListBox.cs: Keep a StringFormat instead of calculating it every item
25429         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
25430         nested types.  Move all CheckState functionality to CheckedListBox.
25431         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
25432         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
25433         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
25434         single base list. Fix scrollbar sizing and placement to mirror MS.
25435         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
25436         used.
25437         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
25438         for CheckedListBox by using new DrawItemState info.  Center the
25439         checkboxes on the items. Use new StringFormat property.
25440
25441 2006-04-18  Jackson Harper  <jackson@ximian.com>
25442
25443         * Form.cs: MdiChildren don't do default locations the same way as
25444         regular forms.  This prevents a crash when trying to position the
25445         mdi windows.
25446
25447 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
25448
25449         * PropertyGridTextBox.cs: Formatting, copyright
25450         * PropertiesTab.cs: Formatting
25451         * PropertyGrid.cs: Formatting
25452         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
25453           click toggling of values
25454           
25455 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
25456
25457         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
25458         * Control.cs (.ctor): verify_thread_handle is static, don't reset
25459           every time a control is created
25460         * Application.cs: Removed obsolete EnableRTLMirroring method
25461
25462 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
25463
25464         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
25465         SelectedIndex to -1. Fixes bug #78121.
25466
25467 2006-04-17  Jackson Harper  <jackson@ximian.com>
25468
25469         * Binding.cs: Handle null values for Current and BindingContext.
25470         This occurs when binding is a little delayed.
25471         * CurrencyManager.cs: return null for Current when there are no
25472         items in the list.
25473         - Hookup to the listchanged event on the DataView and update
25474         bindings when the list is changed.  This fixes late binding of
25475         controls.
25476
25477 2006-04-17  Jackson Harper  <jackson@ximian.com>
25478
25479         * X11Dnd.cs:
25480         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
25481         Ringenbach.
25482
25483 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
25484
25485         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
25486           place
25487         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
25488           with the correct ButtonState
25489
25490 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
25491
25492         * XplatUIX11.cs: Improved distinguishing between window types to
25493           tell the WM a type closer to what the app wants (Fixes #78107)
25494
25495 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
25496
25497         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
25498           GrabHandle
25499
25500 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
25501
25502         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
25503           drawing code to reflect the size grip changes
25504
25505 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25506
25507         * ImageListStreamer.cs: fix handling of the mask that follows the main
25508         bitmap when deserializing and serialize it properly. The generated mask
25509         should better be a 1bpp image, but I'll do that later.
25510
25511 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
25512
25513         * FileDialog.cs: Show something in the DirComboBox on *nix if the
25514           path doesn't fit into some of our Current.Places
25515
25516 2006-04-13  Jackson Harper  <jackson@ximian.com>
25517
25518         * ComboBox.cs: Use borders instead of drawing our own decorations,
25519         try to obey correct rules for heights.
25520         * Theme.cs:
25521         * ThemeNice.cs:
25522         * ThemeClearLooks.cs:
25523         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
25524         this is now handled by borders.
25525         - Remove unused DrawListBoxDecorationSize method.
25526         
25527 2006-04-13  Mike Kestner  <mkestner@novell.com>
25528
25529         * MenuAPI.cs: null guarding for the disbled click check fixes crash
25530         reported by Alex.
25531
25532 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
25533
25534         * ThemeWin32Classic.cs: 
25535           - Fixed CPDrawStringDisabled
25536           - Corrected drawing of disabled menu items
25537           - Fixed drawing of disabled radio buttons (bug #78095)
25538           - Draw check in a disabled CheckBox with color ControlDark 
25539
25540 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
25541
25542         * Form.cs: Use the provided width when calculating the menu size;
25543           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
25544           and ClientSize.Width won't be updated yet
25545         * Application.cs: Use Visible instead of Show() to make form visible,
25546           this way we create the handle later and menusize is considered
25547
25548 2006-04-12  Mike Kestner  <mkestner@novell.com>
25549
25550         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
25551         reporting.
25552
25553 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
25554
25555         * TextBox.cs: Implemented context menu
25556
25557 2006-04-12  Mike Kestner  <mkestner@novell.com>
25558
25559         * ListView.cs: implement box selection. fixes #77838.
25560         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
25561
25562 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
25563
25564         * XplatUIX11.cs: Added setting of window type when transient window
25565           is created (metacity would move it otherwise)
25566         * X11Structs.cs: Added WINDOW_TYPE atoms
25567         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
25568           background (the control is Opaque but still wants transparent
25569           backgrounds)
25570
25571 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
25572
25573         * Control.cs: Added OnPaintBackgroundInternal to allow controls
25574           that set Opaque but don't mean it (like all ButtonBase-derived
25575           controls) to still draw their background
25576         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
25577           the background
25578
25579 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
25580
25581         * Control.cs (PaintControlBackground): Set the graphics object
25582           on our PaintEvent to null to prevent it from being disposed
25583           when the PaintEvent gets disposed
25584
25585 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
25586
25587         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
25588         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
25589
25590 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
25591
25592         * Control.cs: 
25593           - Added transparency check to BackColor property. Transparent
25594             backgrounds are only allowed if the control styles permit it
25595           - Added recursive painting of parent control background and
25596             foreground if a control with a transparent backcolor is drawn
25597             (Thanks to Tim Ringenback for providing his 'hack' as a base
25598              for this patch) Fixes #77985 and #78026.
25599           - Added Opaque style check before calling OnPaintBackground, no
25600             need to draw the background if the control is opaque
25601           - Removed ControlAccessibleObject owner variable (inherited from
25602             base, no need to define again)
25603           - Added some documentation links explaining the drawing events
25604             and styles
25605
25606 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
25607
25608         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
25609           that the affected control is the located at the left border of our
25610           parent (Fixes #77936)
25611
25612 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
25613
25614         * TextBoxBase.cs: When rendering disabled or readonly controls,
25615           draw the background with 'Control' instead of 'Window' color as
25616           long as the user hasn't specifically set a color
25617
25618 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
25619
25620         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
25621           since that won't be updated if the user types text (only if it's
25622           programatically set)
25623
25624 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
25625
25626         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
25627           layout changes do to app-triggered resizes will have the proper
25628           display rectangle for layout
25629
25630 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
25631
25632         * ThemeWin32Classic.cs:
25633           - Make use of the SystemBrushes and SystemPens wherever possible
25634           - Corrected some highlight colors
25635           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
25636             drawing
25637         * Theme.cs: Added Empty field to CPColor struct
25638
25639 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
25640
25641         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
25642           is displayed when calculating the display rectangle. Thanks to Mike
25643           for teaching me the err of my ways.
25644
25645 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
25646
25647         * ScrollableControl.cs:
25648           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
25649             (instead of 0,0) and we now return the real width/height instead of
25650             just the clientrectangle, adjusted for padding. The rectangle is
25651             now cached and created by the new CalculateDisplayRectangle method.
25652           - Created new CalculateDisplayRectange method, which basically does
25653             what get_DisplayRectangle() did originally, but now using the 
25654             right edge instead of DisplayRectangle to determine the size of
25655             our scrollbars
25656           - get_Canvas(): Fixed it to properly calculate canvas for 
25657             right/bottom controls which seem to be placed to the right/bottom
25658             of any controls that have a fixed location
25659           - Removed TODO that's taken care of
25660           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
25661             and SetDisplayRectLocation according to new MSDN2 docs
25662           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
25663             event when that is called, this is added for compatibility
25664           - ScrollControlIntoView(): Implemented.
25665           - Switched scrollbars to be implicit, they shouldn't be selectable
25666         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
25667           call it when the active control is set/changed
25668         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
25669         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
25670           implicit_control variable (used for native Win32 message generation)
25671         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
25672           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
25673         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
25674         * XplatUIStructs.cs: Added ScrollBarCommands enum
25675
25676 2006-04-10  Jackson Harper  <jackson@ximian.com>
25677
25678         * ButtonBase.cs:
25679         * CheckedListBox.cs:
25680         * ComboBox.cs:
25681         * DataGrid.cs:
25682         * DataGridView.cs:
25683         * Form.cs:
25684         * GroupBox.cs:
25685         * ListBox.cs:
25686         * PrintPreviewControl.cs:
25687         * ProgressBar.cs:
25688         * PropertyGrid.cs:
25689         * Splitter.cs:
25690         * StatusBar.cs:
25691         * TrackBar.cs:
25692         * UpDownBase.cs: Fixup base event overrides.
25693         
25694 2006-04-06  Mike Kestner  <mkestner@novell.com>
25695
25696         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
25697         all user-initiated value changes to min <= value <= max-thumbsz+1.
25698         (set_Value): check for vert/horiz when calculating new thumb position.
25699         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
25700         like MS does.
25701         (OnMouseMoveSB): refactor the thumb dragging code and refine
25702         invalidation logic to reduce flicker.
25703         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
25704         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
25705         (UpdateThumbPosition): small code readability cleanup
25706
25707 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
25708
25709         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
25710           different
25711
25712 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
25713
25714         * ThemeNice.cs: Use a better graphics effect when a button is pressed
25715
25716 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
25717
25718         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
25719         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
25720           This dramatically reduces the number of Pen.Dispose calls. 
25721           Where possible call ResPool methods only once instead of calling it
25722           over and over again (for example for the same color).
25723
25724 2006-04-06  Mike Kestner  <mkestner@novell.com>
25725
25726         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
25727         Also remove an unused private field on the collection. Fixes #77972.
25728
25729 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
25730
25731         * ThemeNice.cs: Added ToolBar drawing code
25732
25733 2006-04-06  Mike Kestner  <mkestner@novell.com>
25734
25735         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
25736         I'm assuming that means we need to look up the toplevel for the
25737         provided control. Fixes the crash trace in #77911 but exposes another
25738         crash in some strange reflection usage in NDocGui.
25739
25740 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
25741
25742         * ThemeNice.cs: Gave it a little silver touch and added Images
25743           method
25744         * FontDialog.cs: FontDialog is not resizable
25745         * FileDialg.cs: Added SizeGripStyle.Show
25746
25747 2006-04-05  Jackson Harper  <jackson@ximian.com>
25748
25749         * KeyboardLayouts.cs: Remove warning.
25750
25751 2006-04-05  Jackson Harper  <jackson@ximian.com>
25752
25753         * Control.cs: Enable OnPaintInternal so we can use it for drawing
25754         all of our controls instead of Paint +=.
25755         * ListBox.cs:
25756         * ListView.cs:
25757         * MenuAPI.cs:
25758         * MessageBox.cs:
25759         * NotifyIcon.cs:
25760         * ProgressBar.cs:
25761         * ScrollBar.cs:
25762         * Splitter.cs:
25763         * StatusBar.cs:
25764         * TabControl.cs:
25765         * TextBoxBase.cs:
25766         * ToolBar.cs:
25767         * TrackBar.cs:
25768         * UpDownBase.cs:
25769         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
25770         use OnPaintInternal. Remove Width/Height and Visible checks in
25771         paint handler, this is done at a higher level now.
25772         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
25773         * PaintEventArgs.cs: Add a handled flag so controls that don't
25774         want anymore painting after OnPaintInternal can make sure OnPaint
25775         isn't called.
25776
25777 2006-04-05  Mike Kestner  <mkestner@novell.com>
25778
25779         * Form.cs: fix the menu WndProc hacks to respect the native enabled
25780         state of the form, so that we don't process events when Modal dialogs
25781         are up. Fixes #77922.
25782
25783 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
25784
25785         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
25786           checking is done.
25787
25788 2006-04-05  Mike Kestner  <mkestner@novell.com>
25789
25790         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
25791
25792 2006-04-05  Mike Kestner  <mkestner@novell.com>
25793
25794         * ListView.cs (HeaderMouseMove): null guarding for the over column
25795         when setting up the drag_to_index.  Fixes #78015.
25796
25797 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
25798
25799         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
25800           in the taskbar. Transient windows seem to accomplish that.
25801
25802 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
25803
25804         * Form.cs:
25805           - Re-enabled CreateParams.X/Y code for FormStartPosition
25806           - Added code for manual placement when creating the Control
25807           - Incomplete patch to treat MDI forms differently when
25808             setting the ClientSizeCore. (Still need to figure out handling
25809             x/y coords there)
25810         * XplatUIX11.cs:
25811           - When we're explicitly setting the X/Y position of a non-Child
25812             window, let the WM know. Metacity really wants this.
25813
25814 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
25815
25816         * ThemeNice.cs: Added CPDrawButton
25817
25818 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
25819
25820         * ThemeNice.cs: Changed the color for focused buttons and activated
25821           the arrows for small scroll buttons.
25822
25823 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
25824
25825         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
25826           anymore. Changed some method modifiers to protected (virtual)
25827         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
25828           changes
25829         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
25830           Updated drawing of menus, buttons and progressbars; added
25831           CPDrawBorder3D 
25832
25833 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25834
25835         * ImageListStreamer.cs: implemented serialization/deserialization
25836         of the images.
25837
25838 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
25839
25840         * ThemeWin32Classic.cs:
25841           - Removed all the DrawFrameControl stuff; CPDrawButton,
25842             CPDrawCheckBox and CPDrawRadioButton are now handled directly
25843             inside the methods
25844           - Updated and corrected the drawing code of CPDrawButton,
25845             CPDrawCheckBox and CPDrawRadioButton to better match ms
25846           - Updated theme checkbox and radiobutton code to use the CP*
25847             methods
25848
25849 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
25850
25851         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
25852           bug is fixed
25853
25854 2006-03-31  Jackson Harper  <jackson@ximian.com>
25855
25856         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
25857         sometimes.
25858         * UpDownBase.cs: Don't CreateGraphics manually, use a
25859         Refresh. Ideally we would invalidate the correct areas here.
25860
25861 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
25862
25863         * XplatUIX11.cs: 
25864           - We now track the mapping state of windows. If a window (or 
25865             one of it's parents) is not mapped we no longer permit
25866             WM_PAINT messages to be generated since we'd otherwise get 
25867             lots of BadMatch X errors. Jackson did all the work figuring
25868             out the problem.
25869           - Destroying the caret if the window it's contained in is 
25870             destroyed. Can't use regular DestroyCaret method since it
25871             might fall into a drawing function (trying to remove the
25872             caret) and with that generate new BadMatch errors. Again,
25873             Jackson tracked this down.
25874           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
25875             make sure we send the messages to all windows. (The old code
25876             would send the WM_DESTROY to the window, and then all child
25877             windows would be 'gone' because the WM_DESTROY handle lookup
25878             would no longer find the destroyed window)
25879         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
25880         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
25881
25882 2006-03-31  Jackson Harper  <jackson@ximian.com>
25883
25884         * ScrollableControl.cs: Dont recalc if we are not visible.
25885
25886 2006-03-31  Mike Kestner  <mkestner@novell.com>
25887
25888         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
25889         the visibility branch.
25890
25891 2006-03-31  Jackson Harper  <jackson@ximian.com>
25892
25893         * ScrollBar.cs: Cap values when incrementing/decrementing.
25894
25895 2006-03-31  Mike Kestner  <mkestner@novell.com>
25896
25897         * MenuAPI.cs: setup menu.tracker for popup/context menus.
25898         * ToolTip.cs: guard against timer expirations with no active control.
25899         Not sure why it happened.
25900
25901 2006-03-31  Mike Kestner  <mkestner@novell.com>
25902
25903         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
25904         text.
25905         * ToolTip.cs: Position the tooltip based on where the cursor is at
25906         popup time, not at MouseEnter time.  Add a Down state so that we don't
25907         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
25908         positioning offset. Lookup DisplaySize at positioning time, since it
25909         can theoretically change during invocation.
25910         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
25911         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
25912
25913 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
25914
25915         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
25916           Fixes behaviour when the Text property of the box is String.Empty
25917
25918 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
25919
25920         * XplatUIX11.cs: Only send mouseleave for our client windows, not
25921           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
25922           a window)
25923
25924 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
25925
25926         * FileDialog.cs: Visual enhancement for the popup buttons in 
25927           PopupButtonPanel
25928
25929 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
25930
25931         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
25932           code
25933
25934 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
25935
25936         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
25937           highlighted menu items to match ms
25938
25939 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
25940
25941         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
25942
25943 2006-03-30  Mike Kestner  <mkestner@novell.com>
25944
25945         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
25946         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
25947         go active to account for HotLight to Selected transition.
25948         * MenuItem.cs: add internal Selected prop. Fill out the Status
25949         property by calculating it from item info. Add HotLight,
25950         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
25951
25952 2006-03-30  Mike Kestner  <mkestner@novell.com>
25953
25954         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
25955
25956 2006-03-29  Jackson Harper  <jackson@ximian.com>
25957
25958         * Form.cs: Implement TODO.
25959
25960 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
25961
25962         * PrintPreviewDialog.cs: Implemented missing methods and events; still
25963           missing proper dialog setup in the constructor
25964
25965 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
25966
25967         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
25968         * Control.cs:
25969           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
25970           - Fixed ResetBindings and removed TODO
25971           - Added check for cross-thread calls to get_Handle()
25972           - Added Marshaller attribute for set_Font to satisfy class status
25973         * FontDialog.cs: Removed TODOs that seemed implemented
25974         * UpDownBase.cs: Removed unneeded TODO and Fixme
25975         * MessageBox.cs: Implemented support for Default button and removed TODO
25976         * FileDialog.cs: Removed obsolete TODO
25977         * DomainUpDown.cs: Removed obsolete TODO
25978         * ButtonBase.cs: Removed obsolete TODO
25979         * XplatUIWin32.cs: Removed obsolete TODO
25980         * Form.cs:
25981           - Removed obsolete TODO
25982           - Calling CheckAcceptButton when the acceptbutton is changed to allow
25983             internal status updates
25984           - Making sure the active control is selected when the control is created
25985         * CurrencyManager.cs: Removed obsolete TODO
25986
25987 2006-03-29  Mike Kestner  <mkestner@novell.com>
25988
25989         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
25990         of PrintPreviewDialog and RichTextBox.
25991
25992 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
25993
25994         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
25995           DarkDark, Light and LightLight colors for a specific color
25996         * ThemeWin32Classic.cs:
25997           - Use Button drawing code to draw RadioButtons and CheckBoxes with
25998             Appearance = Button 
25999           - Make use of the new ResPool helper CPColor
26000           - Draw ProgressBar and StatusBar with correct 3D borders
26001
26002 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
26003
26004         * ColorDialog.cs: Return selected color. Fixes bug #77940.
26005
26006 2006-03-28  Mike Kestner  <mkestner@novell.com>
26007
26008         * ListView.cs: fix Icon layout to plan for scrollbar widths when
26009         calculating col/row counts.
26010
26011 2006-03-28  Mike Kestner  <mkestner@novell.com>
26012
26013         * ColumnHeader.cs:
26014         * ListView.cs:
26015         * ListViewItem.cs:
26016         * Menu.cs: 
26017         switch to explicit interface method implementation for some methods
26018         corcompare identifies as inconsistent with MS.
26019
26020 2006-03-28  Mike Kestner  <mkestner@novell.com>
26021
26022         * MainMenu.cs: 
26023         * Menu.cs:
26024         add a few missing methods from the class status output.
26025
26026 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
26027
26028         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
26029           correct.
26030
26031 2006-03-28  Mike Kestner  <mkestner@novell.com>
26032
26033         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
26034
26035 2006-03-27  Mike Kestner  <mkestner@novell.com>
26036
26037         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
26038         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
26039
26040 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
26041
26042         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
26043
26044 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
26045
26046         * ThemeWin32Classic.cs:
26047           - GroupBox: Inserted a little gap between the text and the lines
26048             on the right side
26049           - Made the code in CPDrawBorder3D more readable
26050           - Corrected the drawing location of the up and down arrows in 
26051             CPDrawScrollButton
26052
26053 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
26054
26055         * ControlPaint.cs: Corrected line widths in DrawBorder for
26056           ButtonBorderStyle Inset and Outset
26057
26058 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
26059
26060         * ThemeWin32Classic.cs:
26061           - Rewrote the totally broken CPDrawBorder3D method. That was
26062             one of the main problems for the terrific ThemeWin32Classic
26063             look
26064           - Updated and corrected Button drawing
26065           - Correct the dimensions of the SizeGrip to match ms ones
26066           - Removed a small drawing glitch in DrawComboBoxEditDecorations
26067         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
26068           Border3DStyle.Sunken to match ms.
26069
26070 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
26071
26072         * ThemeWin32Classic.cs: First small part of the "de-uglify
26073           ThemeWin32Classic" effort, SizeGrip
26074
26075 2006-03-24  Jackson Harper  <jackson@ximian.com>
26076
26077         * XplatUIX11.cs: Give a max idle time of one second, this matches
26078         MS and forces an Idle event every second when there are no other
26079         events in the queue.
26080
26081 2006-03-24  Mike Kestner  <mkestner@novell.com>
26082
26083         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
26084         * ListView.Item.cs: fix layout issues with null image lists and images
26085         smaller than checkbox size.
26086         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
26087         mode like MS does.  It's weird, but consistent.  ;-)
26088         Fixes #77890.
26089
26090 2006-03-24  Mike Kestner  <mkestner@novell.com>
26091
26092         * ListView.cs: Scroll wheel support for the item control.  Fixes
26093         #77839.
26094
26095 2006-03-23  Jackson Harper  <jackson@ximian.com>
26096
26097         * ScrollableControl.cs: Special case negative sized areas, not
26098         zero.
26099         * MonthCalendar.cs: Save the rect of the clicked date so we can
26100         use it for invalidation.
26101         - Try to cut down on the number of invalidates
26102         - Invalidate the rect the mouse is over and was over when moving
26103         the mouse, so we get the focus box following the cursor.
26104
26105 2006-03-23  Mike Kestner  <mkestner@novell.com>
26106
26107         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
26108         focus rectangle drawing. Fixes #77835.
26109
26110 2006-03-23  Mike Kestner  <mkestner@novell.com>
26111
26112         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
26113         the if and else if and reverting back to the original == check on the
26114         None conditional.
26115
26116 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
26117
26118         * FontDialog.cs: Update the example panel if the selected index of
26119           the fontListBox changes.
26120
26121 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
26122
26123         * FileDialog.cs: Make FileDialog remember which directory it was in
26124           last in the same execution.
26125
26126 2006-03-22  Mike Kestner  <mkestner@novell.com>
26127
26128         * FileDialog.cs: make the DropDownMenu on the toolbar display
26129         RadioChecks since they are mutually exclusive and that's what MS does.
26130
26131 2006-03-22  Mike Kestner  <mkestner@novell.com>
26132
26133         * Theme.cs: add Color param to CPDrawMenuGlyph.
26134         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
26135         checks and radio marks and arrows are visible on highlighted items.
26136         * ControlPaint.cs: update to use new Theme signature.
26137
26138 2006-03-22  Mike Kestner  <mkestner@novell.com>
26139
26140         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
26141         is active. Fixes #77870.
26142
26143 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
26144
26145         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
26146           to be focused/selected after startup
26147
26148 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
26149
26150         * ColorDialog.cs: 
26151           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
26152             CustomColors and ShowHelp properties
26153           - Some internal rewrites to get better results when using the
26154             ColorMatrix
26155
26156 2006-03-22  Mike Kestner  <mkestner@novell.com>
26157
26158         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
26159         HoverSelection.  Fixes #77836.
26160
26161 2006-03-22  Mike Kestner  <mkestner@novell.com>
26162
26163         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
26164         ToggleButtons.  (De)Sensitize the Back button around a stack count of
26165         1, not 0.  Update ButtonSize based on a pixel count of the win32
26166         control.  Adjust the toolbar size/location for new button size.
26167
26168 2006-03-22  Jackson Harper  <jackson@ximian.com>
26169
26170         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
26171         true.
26172         * ScrollBar.cs: When doing increments and decrements we need to
26173         set the Value property so that ValueChanged gets raised. A
26174         possible optimization here would be to make an internal SetValue
26175         that doesn't invalidate immediately.
26176         * ToolTip.cs: Tooltips get added to their container (when
26177         supplied) so they get disposed when the container is disposed.
26178         - Don't create tooltips for String.Empty. This prevents all these
26179         little 2-3 pixel windows from showing up when running nunit-gui
26180         and driving me mad.
26181         * Form.cs: Don't set topmost when setting the owner if the handles
26182         haven't been created yet.  The topmost set will happen when the
26183         handles are created.
26184
26185 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
26186
26187         * XplatUIX11.cs:
26188           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
26189           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
26190             visible (to allow them to recalculate their sizes)
26191
26192 2006-03-21  Mike Kestner  <mkestner@novell.com>
26193
26194         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
26195         methods. Removed a ton of redundant code.  Still not really happy with
26196         the border rendering, but I think that's mainly because of the
26197         ControlDarkDark being black instead of a dark grey. Depending on how 
26198         close we want to be, we might want to revisit those color choices.
26199         Among the new features added during the refactor were DropDownArrow
26200         pressed rendering, Disabled image rendering.  Proper flat appearance
26201         boundary rendering.  Removed the Divider and Wrapping dividers since I
26202         can't figure out any combination of themes and conditions to make the
26203         MS control draw a horizontal line on a toolbar despite what the
26204         Divider property docs indicate.
26205         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
26206         conditions and incorrect layout.  Updated to coding standard.
26207         * ToolBarButton.cs: refactored layout and positioning code from
26208         ToolBar to here.  Invalidate wherever possible instead of forcing
26209         redraws of the whole toolbar. 
26210         (Known remaining issues: explicit ButtonSize smaller than provided
26211         images.)
26212
26213 2006-03-21  Mike Kestner  <mkestner@novell.com>
26214
26215         * ContextMenu.cs (Show): use the position parameter instead of just
26216         showing at the MousePosition.
26217
26218 2006-03-21  Jackson Harper  <jackson@ximian.com>
26219
26220         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
26221         control handle this.
26222         * TreeNodeCollection.cs: If we are clearing the root node we need
26223         to reset top_node so calcs can still happen.
26224         * ThemeWin32Classic.cs: This is a Flags so we need to check
26225         properly.
26226         
26227 2006-03-21  Jackson Harper  <jackson@ximian.com>
26228
26229         * DataGrid.cs: Create columns when the binding context has been
26230         changed.
26231         * X11Structs.cs: Keysyms are uints.
26232         - Add size to fix build.
26233
26234 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
26235
26236         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
26237           XplatUIOSX.cs: 
26238           - Added ResetMouseHover method to allow controls to retrigger
26239             hovering if they need it more than once
26240           - Implemented MouseHoverTime and MouseHoverSize properties
26241         * Timer.cs: Start() must reset the interval
26242         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
26243           properties
26244
26245 2006-03-21  Jackson Harper  <jackson@ximian.com>
26246
26247         * X11Keyboard.cs: improved layout detection. Move the nonchar
26248         tables into this file.
26249         * KeyboardLayouts.cs: Move the tables into resource files.
26250
26251 2006-03-21  Mike Kestner  <mkestner@novell.com>
26252
26253         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
26254
26255 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
26256
26257         * Mime.cs: Various speed optimizations. Looking up mime types
26258           is now 2 times faster than before
26259
26260 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
26261
26262         * CreateParams.cs: Added internal menu field
26263         * Control.cs: 
26264           - Switched call order for UpdateBounds; now we always call
26265             the one that also takes ClientSize, and we're calculating the 
26266             client size via driver method in the others. The previous
26267             method of tracking client size by difference wasn't working
26268             for forms where even the starting client size wouldn't match
26269             the overall form size (due to borders) (Part of fix for #77729)
26270           - CreateParams(): Do not use parent.Handle unless the handle is
26271             already created. Causes havoc with Nexxia and throws off our
26272             creation of controls
26273         * XplatUIX11.cs:
26274           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
26275           - Switched handling of ConfigureNotify over to new PerformNCCalc 
26276             method (consolidates code)
26277           - Changed RequestNCRecalc to use new PerformNCCalc method
26278           - Added calls to RequestNCRecalc when menus and borders are changed
26279             to allow app to set NC size. (Part of fix for #77729) This matches
26280             when MS send a WM_NCRECALC on Win32 windows.
26281           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
26282             (Part of fix for #77729). This matches what MS does, they also
26283             send that message when the form is made visible.
26284           - XException.GetMessage: Improved usability of X errors by including
26285             a translation of the window into Hwnd and Control class
26286           - Improved debug info for window creation, reparenting and destruction
26287           - Created helper method WindowIsMapped() [Currently not used]
26288         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
26289         * Form.cs:
26290           - CreateParams: Now setting our menu on the new internal menu field
26291           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
26292             avoid calculating the same property twice
26293         * Hwnd.cs:
26294           - Improved usability of ToString() for debugging purposes
26295           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
26296             determine the height of the menu, instead of just the font. This
26297             required to also create a graphics context and to keep a bmp 
26298             around (for performance reasons)
26299
26300 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
26301
26302         * MenuAPI.cs: Added OnMouseUp method
26303         * Form.cs:
26304           - Now remembering the requested client size, avoids size errors
26305           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
26306             instead of base if the menu is active. This is required due to
26307             control now capturing and releasing on down/up and it would
26308             prematurely release our menu capture
26309
26310 2006-03-17  Jackson Harper  <jackson@ximian.com>
26311
26312         * KeyboardLayouts.cs: Add the czech layouts.
26313
26314 2006-03-16  Jackson Harper  <jackson@ximian.com>
26315
26316         * Control.cs: Use the viewport space when sizing not the controls
26317         client size, so things like ScrollableControl that effect the
26318         viewport size (when scrollbars are added) are computed correctly.
26319         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
26320         of ManagerEntrys.
26321         - Handle creating BindingManagers for null data sources.
26322         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
26323         source, otherwise when rows are added they are added to the 'fake'
26324         datasource and we will crash when trying to set the position in
26325         those rows.
26326         - Use Implicit scrollbars on the datagrid so they arent
26327         selectable.
26328         
26329 2006-03-16  Jackson Harper  <jackson@ximian.com>
26330
26331         * Binding.cs:
26332         * InternalWindowManager.cs:
26333         * MdiWindowManager.cs:
26334         * X11Keyboard.cs: I really want Mike to love me again (fix
26335         compiler warnings).
26336
26337 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
26338
26339         * DataGrid.cs:
26340           - OnMouseDown: Switch to editing mode when clicking on the cell
26341                          even if we're clicking on the cell that's currently 
26342                          selected
26343           - ProcessGridKey: Left/Right now wrap like MS.Net does
26344           - ProcessGridKey: Tab now knows to add a new row when tab is
26345                             pressed in the cell of the last column of the 
26346                             last row
26347           - ProcessGridKey: Enter now adds another row  if pressed in the last
26348                             row and selectes the new row, same column cell
26349           - ProcessGridKey: Home/End navigate columns, not rows, like 
26350                             originally implemented
26351           - Broke ProcessKeyPreview code out into an extra Internal method
26352             so it can be called from the edit code
26353         * DataGridTextBox.cs (ProcessKeyMessage):
26354           - Switched to accept Tab keypresses
26355           - Added F2 handling to allow jumping to the end of the edited cell
26356           - Added logic to allow moving caret left/right inside edited cell
26357             and making the edited cell jump when the caret hits cell borders
26358           - Tab and Enter are now passed to the datagrid after being handled
26359         * TextBoxBase.cs:
26360           - Removed capture code now that Control handles it
26361           - set_SelectionStart now ensures caret is visible
26362
26363 2006-03-16  Jackson Harper  <jackson@ximian.com>
26364
26365         * TrackBar.cs: Debackwards the increment/decrement for handling
26366         mouse clicks on the bar with vertical trackbars.
26367         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
26368         bottom to match MS.
26369
26370 2006-03-16  Mike Kestner  <mkestner@novell.com>
26371
26372         * ListView.cs: make shift/ctrl keyboard and mouse selection 
26373         consistent with the MS control. Fix a bug in
26374         SelectedListViewItemCollection.Clear that was pissing me off for the
26375         better part of a day because the collection was being altered
26376         underneath us as we walked the list.
26377
26378 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
26379
26380         * Control.cs: Not sure how we could miss this so long, but it seems
26381           that MS.Net has Capture set all the way from before calling 
26382           OnMouseDown through sending the mouse events until after
26383           OnMouseUp. This will fix DataGrid's selection being set to end
26384           at the location of the MouseUp.
26385
26386 2006-03-15  Jackson Harper  <jackson@ximian.com>
26387
26388         * BindingContext.cs: Check the binding after its added so that it
26389           can initialize the binding managers and hookup to events.
26390         * Binding.cs: Data members seem to sometimes include rows/cols in
26391           the format Row.Column we now take this into account.
26392           - Hookup to the position changed event so we can update the
26393           control when the position has changed in the data set.
26394         * CurrencyManager.cs: Take into account the row/col naming
26395           convention when creating dataset tables.
26396         * BindingContext.cs: Using a newer better way of storing
26397           datasource/datamember pairs.  Hopefully this better matches MS for
26398           looking up binding managers.
26399
26400
26401 2006-03-15  Jackson Harper  <jackson@ximian.com>
26402
26403         * BindingContext.cs: The currency manager needs the data member
26404         name, if the member is a data set we use the name to find the
26405         correct table.
26406         * CurrencyManager.cs: When creating the list prefer an IList over
26407         an IListSource.
26408         - Attempt to create a DataTable from a DataSet (TODO: might need
26409         some better error checking here, although MS doesn't seem to have much)
26410         - If we have a DataTable create a view and use it as our list.
26411
26412 2006-03-15  Mike Kestner  <mkestner@novell.com>
26413
26414         * ListView.cs: keep a matrix of the icon mode layout to facilitate
26415         keyboard navigation. Support Up/Down/Left/Right selection correctly
26416         for all 4 View modes.
26417         * ListViewItem.cs: add internal row/col fields for icon layouts.
26418
26419 2006-03-15  Jackson Harper  <jackson@ximian.com>
26420
26421         * TabControl.cs: Redraw the tabs when we resize so their newly
26422         calculated sizes are drawn on screen.
26423         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
26424         composite characters.
26425         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
26426         - filter events so that composite characters can be created
26427         patches by peter
26428         * X11Structs.cs: Add XIMProperties enum.
26429
26430 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
26431
26432         * Control.cs (BringToFront, SendToBack): Don't use window or handle
26433           unless it's created
26434
26435 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
26436
26437         * Control.cs (PerformLayout): We don't need to consider visiblity
26438           for anchoring, only for docking. This fixes 'whacky' alignment
26439           in listbox and other controls that use implicit scrollbars after
26440           the previous PerformLayout patch
26441         * ListBox.cs: Switched to use implicit scrollbars
26442           
26443 2006-03-14  Mike Kestner  <mkestner@novell.com>
26444
26445         * ToolBar.cs: 
26446         * VScrollBar.cs:
26447         - chain up the "new event" overrides to base and use
26448         OnEvent to raise them.  Part of fix for bug #76509.
26449
26450 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
26451
26452         * FileDialog.cs: Do not select an item in the parent directory
26453           on backspace
26454
26455 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
26456
26457         * Control.cs (PerformLayout): It would seem that we considered
26458           invisible windows for our layout. Not quite the right thing
26459           to do. Now we don't any longer, thereby fixing bug #76889.
26460
26461 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
26462
26463         * Control.cs (CanFocus): I goofed. A control can have focus 
26464           even though it's not selectable. Made it match MS docs.
26465
26466 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
26467
26468         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
26469           center by default (fixes #76895)
26470         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
26471           all uses of Border3DSides.All with the explicit ORd together
26472           Left|Right|Top|Bottom because I assume that nobody was aware 
26473           that All also implies a center fill. Most places I checked had
26474           a fill right above.
26475         * ProgressBarStyle.cs: Added
26476
26477 2006-03-13  Mike Kestner  <mkestner@novell.com>
26478
26479         * ListView.cs: fix breakage in drag shadow header positioning 
26480         from Peter's csc compilation fix.
26481
26482 2006-03-13  Mike Kestner  <mkestner@novell.com>
26483
26484         * ListView.cs: fix NRE produced by backspacing twice in a focused
26485         FileDialog.
26486
26487 2006-03-13  Mike Kestner  <mkestner@novell.com>
26488
26489         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
26490
26491 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
26492
26493         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
26494           be changed
26495         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
26496           the allowed size before making programmatic size changes
26497
26498 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
26499
26500         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
26501           set, metacity is broken and will still use the emty sizes in 
26502           the struct. (Fix for #77089)
26503
26504 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
26505
26506         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
26507           WindowExStyles and marked both enums as Flags
26508         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
26509           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
26510           to match WindowStyles split
26511         * XplatUIX11.cs:
26512           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
26513           - Updated to match WindowStyles split
26514         * XplatUIWin32.cs:
26515           - Fixed FosterParent creation, was using ExStyle on the Style field
26516             (This should help with Popup focus issues)
26517           - Updated to match WindowStyles split
26518
26519 2006-03-13  Jackson Harper  <jackson@ximian.com>
26520
26521         * MdiWindowManager.cs: Use the system menu height. Fixes some
26522         strange sizing issues.
26523
26524 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
26525
26526         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
26527         * TextBoxBase.cs:
26528           - Scroll to caret after inserting text (#77672)
26529           - Make scroll range one pixel higher, fixes off-by-one error (and
26530             makes underlines visible on the last line)
26531
26532 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
26533
26534         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
26535           the keyboard state from being stuck with keys in 'pressed' state when
26536           focus is switched away via keyboard
26537         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
26538           reset the keyboard if no X11 KeyUp events are expected to come
26539         * X11Structs.cs: Switched type of Visible to bool to match driver
26540
26541 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
26542
26543         * TextControl.cs:
26544           - Switched caret to be just 1 pixel wide, matches MS and looks less
26545             clunky
26546           - Moved caret display 1 pixel down from the top of the control
26547             to improve view
26548           - InsertCharAtCharet: Update the selection start if moving the caret
26549             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
26550           - No longer always creating the caret when the caret methods are
26551             called. Only the actual ShowCaret/HideCaret will do that now
26552           - Only setting caret visible if the owner control has focus
26553           - UpdateView: Added invalidation-shortcut logic for center and right 
26554             aligned text. Previously we'd update all according to the left
26555             logic which caused drawing errors. Also fixed height of invalidated
26556             areas, now properly invalidating the whole area (was off-by-one)
26557           - owner_HandleCreated: Always generate the document when the
26558             handle is created; this ensures that 
26559         * TextBoxBase.cs:
26560           - Fixed situation where caret would disappear under the right
26561             window border, also improved scrolling behaviour on left-
26562             aligned textboxes
26563           - Fixed right-aligned textboxes to have a border to the
26564             right instead of the caret being under the right border
26565         * XplatUIX11.cs:
26566           - Switched from 'nested' to simple visible/not visible tracking 
26567             for caret (part of fix for #77671)
26568           - No longer passing through translated FocusIn/FocusOut messages
26569             since we were notifying too often and the wrong windows. Instead
26570             we just notify our focussed window of receiving or loosing focus
26571         * XplatUIWin32.cs: Switched from 'nested' show/hide 
26572           counting for caret to simple visible yes/no behaviour (part of 
26573           fix for #77671)
26574
26575 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
26576
26577         * Mime.cs: Remove debug code...
26578
26579 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
26580
26581         * MimeGenerated.cs: Removed
26582         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
26583           and subclasses) from /usr/(local/)share/mime and
26584           $HOME/.local/share/mime.
26585
26586 2006-03-10  Jackson Harper  <jackson@ximian.com>
26587
26588         * MdiWindowManager.cs: Recalc the NC area when a window is
26589         maximized/restored so that the menu area is drawn on forms that
26590         don't have a menu.
26591
26592 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
26593
26594         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
26595           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
26596           us to force a WM_NCCALCRESIZE message being sent. This is needed
26597           for MDI maximizing.
26598
26599 2006-03-10  Jackson Harper  <jackson@ximian.com>
26600
26601         * Form.cs: We need to use the ActiveMenu when calculating menu
26602         height.
26603         - Fix nullref when the window manager hasn't been created yet.
26604         * Control.cs: Fix nullref when we try to bring a control to the
26605         front that has no parent.
26606         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
26607         height.
26608         - Add a dummy item to the maximized menu so it always has the
26609         correct height. Otherwise when there are no menus we don't get our
26610         icon and buttons.
26611         
26612
26613 2006-03-10  Jackson Harper  <jackson@ximian.com>
26614
26615         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
26616         stuff.
26617         * Form.cs: Make the window_state internal so the window managers
26618         can track it.
26619         - When an MDI child is maximized let its window manager create the
26620         main menu (so it can add its icon).
26621         - Notify the window managers of state changes
26622         - Let the window manager paint its buttons and handle button
26623         clicks on the menu when it is maximized.
26624         * InternalWindowManager.cs: Move the prev_bounds into the mdi
26625         window manager, since tool windows don't use it, only mdi windows.
26626         - Tell the main form that we don't want it to handle NCPAINT
26627         itself to avoid extra painting.
26628         - Handle clicks on a maximized windows menu.
26629         - Handle window state changes
26630         - Handle minimize/maximize clicks correctly by setting the window state.
26631         * MdiWindowManager.cs: Add an icon menu that (the menu you get
26632         when clicking on the forms icon).
26633         - New method to create a forms maximized menu. This is its normal
26634         menu + an icon.
26635         - Handle window state changes.
26636         - Handle sizing of maximized windows.  Maximized windows are just
26637         drawn bigger then the parent visible area. All controls are still
26638         there, they are just outside the visible area (this matches windows).
26639         * MdiClient.cs: No scrollbars when a child window is maximized.
26640         - Let the children windows figure out how big they should be when
26641         sizing maximized windows.
26642         - Implement a version of ArrangeIconicWindows somewhat similar to
26643         Windows version.  There are some little differences, but I don't
26644         think any app will rely on the layout of minimized mdi windows.
26645
26646 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
26647
26648         * Padding.cs: Several fixes to allow compiling with csc 2.0
26649
26650 2006-03-09  Jackson Harper  <jackson@ximian.com>
26651
26652         * Menu.cs:
26653         * MenuItem.cs: Cheap hack so we can add items to the list without
26654         the events being raised.  This allows adding mdi items during
26655         drawing. TODO: Should probably find a better time to add the items.
26656
26657 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
26658
26659         * ThemeWin32Classic.cs:
26660           - CheckBox_DrawText: Added logic to not wrap if not enough space
26661             is available (Fix for bug #77727)
26662           - RadioButton_DrawText: Added logic not to wrap if not enough
26663             space is available (Fix for bug #77727). Also removed some
26664             duplicate code, DrawString always drawing the regular text
26665             before hitting the if statement.
26666
26667 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
26668
26669         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
26670
26671 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
26672
26673         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
26674         * ContainerControl.cs: Partial implementation of some 2.0 scaling
26675           methods. Moved the new 2.0 properties into alphabetical order with
26676           other properties and added MonoTODO tags
26677
26678 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
26679
26680         * AutoScaleMode.cs: Added. Fix build.
26681
26682 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
26683
26684         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
26685           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
26686           and was requiring premature handle creation for calls from above
26687         * Form.cs, Control.cs: Removed handle arguments from calls to
26688           CalculateClientRect()
26689
26690 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
26691
26692         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
26693           drag_column.column_rect is MarshalByRef and can't be used that way
26694
26695 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
26696
26697         * AxHost.cs: Added deserialization constructor for 
26698           AxHost+State (fixes 77743)
26699
26700 2006-03-09  Mike Kestner  <mkestner@novell.com>
26701
26702         * ListView.cs: 
26703         - Added column drag reordering for details view.
26704         - fixed behavior when mouse is dragged off column and
26705         AllowColumnReorder is false.
26706         * ColumnHeader.cs: clone the format too in Clone.
26707         * Theme.cs: add DrawListViewHeaderDragDetails method.
26708         * ThemeWin32Classic.cs:
26709         - impl new method for drawing drag column shadows and targets.
26710         - support column offset for details mode in DrawListViewItem.
26711
26712 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
26713
26714         * TextControl.cs: Reset the char_count when the document is cleared
26715           (Fixes bug reported on mono-winforms mailing list)
26716
26717 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
26718
26719         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
26720           of calling base we simply process the key ourselves, since both
26721           DefWindowProc and the handled method would set m.Result. 
26722           (Fixes #77732)
26723
26724 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
26725
26726         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
26727           method also moves the window; instead implemented a copy of
26728           Control.ScaleCore (Part of fix for #77456)
26729         * TextBoxBase.cs: 
26730           - Created new CreateGraphicsInternal method to allow providing
26731             a graphics context when no handle is created without triggering
26732             handle creation. (Part of fix for #77456)
26733           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
26734         * TextControl.cs: 
26735           - Switched Constructor to require TextBoxBase instead of Control (to
26736             allow uncast access to CreateGraphicsInternal)
26737           - Safeguarded use of owner.Handle property. No longer accessing it
26738             unless the handle is already created.
26739           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
26740           - Now triggering a recalc when owning control becomes visible
26741         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
26742           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
26743           premature handle creation (Part of fix for #77456)
26744         * Control.cs:
26745           - We now only destroy our double-buffering buffers when the
26746             control is resized or disposed, but not when visibility
26747             changes. (The code even re-created them twice every time)
26748           - Now requiring a redraw of the buffer on visibility changes
26749             (fixes bug 77654 part 2)
26750           - Not passing OnParentVisibleChanged up unless the control
26751             is visible
26752           - CanFocus: Fixed to match MS documentation
26753           - Focus: Fixed to return actual focus state and to check if
26754             setting focus is legal before setting it
26755
26756 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
26757
26758         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
26759           when to draw focus rectangle by looking at parent focus and
26760           selected state instead. This fixes TabPages on Linux sometimes
26761           having none or multiple focus rectangles.
26762         * XplatUIX11.cs (SetFocus): 
26763           - Don't set the focus if the same window already has focus
26764           - Use SendMessage instead of PostMessage (like it's Win32
26765             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
26766             to match MS behaviour
26767         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
26768           are not selectable.
26769
26770 2006-03-07  Jackson Harper  <jackson@ximian.com>
26771
26772         * PictureBox.cs: Revert line I accidently committed last week.
26773
26774 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
26775
26776         * Control.cs: 
26777           - Added new IsRecreating and ParentIsRecreating properties to
26778             allow testing if RecreateHandle has been called on ourselves
26779             or one of our parents
26780           - WndProc(WM_DESTROY): If our control handle is being recreated
26781             we immediately need to create the handle when receiving the
26782             destroy, that way our child windows find a valid parent handle
26783             when they themselves are being recreated upon WM_DESTROY receipt
26784             (fix for bug #77654 part 1)
26785         * XplatUIX11.cs:
26786           - DestroyWindow: WM_DESTROY must be sent to our own window before
26787             notifying any child windows. MS documents that child windows
26788             are still valid when WM_DESTROY is received. (Control now relies on
26789             this behaviour)
26790           - Added some fine-grain debug options
26791
26792 2006-03-06  Jackson Harper  <jackson@ximian.com>
26793
26794         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
26795         box and base calculations off this.
26796         * MdiChildContext.cs:
26797         * MdiWindowManager.cs: Don't need to ensure scrollbars here
26798         anymore.
26799         
26800 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
26801
26802         * Splitter.cs: In situations where the affected control is added
26803           to the parent's control list after the splitter, we would not
26804           populate affected. Now we try populating it on mousedown, if
26805           it's not already set, and force it to be re-set whenever our
26806           parent changes.
26807
26808 2006-03-03  Matt Hargett  <matt@use.net>
26809
26810         * Control.cs: implement Control.Padding
26811         * Padding.cs: -Padding.All returns -1 when constructing with the
26812         implicit default ctor
26813         -Padding.ToString() matches MS.NET
26814         * ContainerControl.cs: implement
26815         ContainerControl.AutoScaleDimensions
26816         * ListControl.cs: implement ListControl.FormattingEnabled
26817         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
26818         * ButtonBase.cs:
26819         * TabPage.cs: Implement UseVisualStyleBackColor.
26820         * PictureBox.cs: Implement PictureBox.InitialImage.
26821
26822 2006-03-03  Mike Kestner  <mkestner@novell.com>
26823
26824         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
26825         event declarations to proxy to base event.
26826         * ListViewItem.cs: update to use ItemControl.
26827         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
26828         * ThemeWin32Classic.cs: update to new ListView theme API and fix
26829         column header label rendering for 0 width columns.
26830
26831 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
26832
26833         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
26834           that causes the control to be created. Fixes #77476.
26835
26836 2006-03-02  Jackson Harper  <jackson@ximian.com>
26837
26838         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
26839         expose_pending.
26840
26841 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
26842
26843         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
26844           passed in for the EventArgs (fixes #77690)
26845
26846 2006-03-01  Jackson Harper  <jackson@ximian.com>
26847
26848         * ScrollBar.cs: Refresh afterbeing resized.
26849
26850 2006-02-28  Mike Kestner  <mkestner@novell.com>
26851
26852         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
26853         Clean up a tracker compile warning.
26854         * MenuItem.cs: add internal PerformPopup method.
26855         [Fixes #77457]
26856
26857 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
26858
26859         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
26860           implicit expose) when the text is set to null
26861
26862 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
26863
26864         * RichTextBox.cs (FlushText): When newline is true, we always
26865           need to split the line, even if no text is on it and we may
26866           never eat newlines. (Fixes #77669)
26867
26868 2006-02-28  Mike Kestner  <mkestner@novell.com>
26869
26870         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
26871         and set Selected instead.
26872         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
26873         collections.
26874
26875 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
26876
26877         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
26878
26879 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
26880
26881         * FontDialog.cs:
26882           - Got rid of the panel. All controls are now directly added to
26883             the dialog form
26884           - It is now possible to set a font with the Font property
26885           - MinSize and MaxSize property do now what they should
26886           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
26887           - Searching and selecting a font with the font textbox works now,
26888             the same applies to the style and size textbox
26889           - Draw the correct 3D border in the example panel
26890           - Fixed a little mem leak (unused fonts didn't get disposed)
26891           - Many other internal updates/rewrites...
26892           - Fix typo
26893
26894 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
26895
26896         * TextControl.cs: 
26897           - InsertRTFFromStream: Added 'number of characters inserted' argument
26898           - set_SelectedRTF: Now using the number of characters to calculate
26899             the new location for the selection and cursor (x/y cannot be used
26900             due to potentially already wrapped text)
26901
26902 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
26903
26904         * TextControl.cs: Added property and implemented means to allow 
26905           disabling recalculation of a document (can be used to speed up
26906           multiple inserts and is needed to make RTF inserts predictable, see
26907           bug #77659)
26908         * RichTextBox.cs: Using the new NoRecalc property of Document to
26909           keep x/y insert locations predictable. Also makes it faster inserting
26910           large chunks of RTF
26911
26912 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
26913
26914         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
26915           it's easier for a child control to handle the other messages without
26916           having to duplicate the special functionality
26917         * TextBoxBase.cs
26918           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
26919             code to handle processing the key ourselves, in order to get 
26920             access to the result of KeyEventArgs.Handled. We now only call 
26921             ProcessKey if they key hasn't been handled already. Fixes #77526.
26922           - set_Text: If null or empty string is given, just clear the 
26923             document. Fixes part of #77526
26924
26925 2006-02-27  Jackson Harper  <jackson@ximian.com>
26926
26927         * SizeGrip.cs: Paint the background color before painting the grip
26928         so things look right.
26929         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
26930
26931 2006-02-27  Mike Kestner  <mkestner@novell.com>
26932
26933         * ListView.cs:
26934           - Restructure layout and invalidation model to remove a ton of
26935           flicker from the control and speed up performance in general.
26936           - Add manual column resize, flickers like crazy, but I already have
26937           some ideas on how I'll fix that. (#76822)
26938           - Merge the three Icon-based views into a single layout method.
26939           - Move item selection interaction logic from the item since 
26940           interaction with the collections is more appropriate to the view.
26941           - Deselection on non-item clicks.
26942         * ListViewItem.cs:
26943           - Encapsulate most of the layout. Add some internal props to trigger
26944           layout.  Move to a model where Items invalidate themselves instead
26945           of just invalidating the whole control every time something changes.
26946           - Invalidate on Text/Caption changes.
26947           - switch to an offset based layout model to avoid having to absolute
26948           position every element on item moves.
26949           - correct checkbox layout to conform to MS layout.
26950         * ThemeWin32Classic.cs:
26951           - refactor some column header drawing code.
26952           - fix string justification for column headers (#76821)
26953           - make SmallIcon labels top justified for compat with MS impl.
26954         * ThemeClearlooks.cs:
26955           - adjust to new ListViewItem internal checkbox bounds api.
26956
26957 2006-02-27  Jackson Harper  <jackson@ximian.com>
26958
26959         * Control.cs:  Change where implicit controls fall in the zorder.
26960         They are now on top of all children.
26961         - Synced AddImplicit code with Add
26962         - Removed unused enumerator.
26963         * SizeGrip.cs: Remove the TODO as its been TODONE.
26964
26965 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
26966
26967         * TextControl.cs(Insert): Combine the last lines unless the insertion
26968           string ends with \n\n, otherwise we leave one line too many (Fixes
26969           something I noticed with the testapp for #77526; the bug itself was
26970           already fixed in the previous checkin)
26971
26972 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
26973
26974         * RichTextBox.cs:
26975           - SelectionColor and SelectionFont methods no longer set absolute
26976             styles. Instead, the keep font or color respectively (This 
26977             resolves a long-standing FIXME in the code)
26978           - When flushing RTF text, the insert code now considers text trailing
26979             behind the insertion point (Fixes the bug where when replacing
26980             the selected text via SelectedRTF the remainder of the line behind 
26981             the selection would stay on the first insertion line)
26982         * TextBoxBase.cs:
26983           - AppendText now updates the selection points after inserting text
26984           - AppendText now ensures that the last tag (sometimes 0-length) of
26985             the document is used for the style information (Fixes part of 
26986             bug #77220)
26987         * TextControl.cs:
26988           - Created new FontDefiniton class to allow describing partial style
26989             changes
26990           - StreamLine() now takes a lines argument, to allow it to decide
26991             whether an encountered zero-length tag is the last in the document
26992             (which must be kept to not loose the font/color contained in it,
26993             for later appends)
26994           - Created Combine() and Split() methods for Marker structs, to 
26995             support marker updates due to reformatted documents (soft line
26996             wraps)
26997           - Implemented Document.CaretTag setter
26998           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
26999             of the last line (Not the cause, but also exposed by bug #77220)
27000           - Added LineTag argument to InsertString method, to allow callers
27001             to force a certain tag to be used (required to force use of the
27002             trailing zero-length tag of a document)
27003           - Now updating markers in Combine(), to avoid stale tag markers
27004           - Added some method descriptions to aid maintenance
27005           - Implemented new FormatText concept, allowing additive/subtractive
27006             formatting by only specifying the components that are to be 
27007             changed. This was needed for resolving the RTB.SelectedColor/
27008             RTB.SelectedFont fixmes
27009           - Added Break() support method to allow breaking up linetags (used
27010             for partial formatting)
27011           - Added GenerateTextFormat() method. It is used for partial 
27012             formatting and allows to generate a full font/color from given
27013             attributes and an existing tag.
27014
27015 2006-02-26  Jackson Harper  <jackson@ximian.com>
27016
27017         * XplatUIX11.cs:  Use the correct caption height.
27018         - Translate hittest coordinates to screen coords to match MS.
27019         * XplatUIWin32.cs: When we create MDI windows we need to reset
27020         some of the style flags, so we get a nice blank window, and can
27021         draw all the decorations ourselves.
27022         - Set a clipping rectangle on the non client paint event, the
27023         window manager drawing code needs one.
27024         * Form.cs: The window manager needs to know when the window state
27025         has been updated.
27026         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
27027         don't need to factor in border and title sizes in these
27028         methods. TODO: Remove the args and fix the call points.
27029         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
27030         properly.
27031         - Let the driver set the cursors.
27032         - Improve active window handling
27033         - Correct sizes for title bars and buttons.
27034         - Match MS drawing better
27035         * MdiWindowManager.cs: We don't need to handle border style
27036         updates specially anymore.
27037         - Check for scrollbars when windows are done moving
27038         - Handle Active properly.
27039         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
27040         correctly. I am spewing the exception though, so we don't hide the
27041         bugs.
27042         
27043 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
27044
27045         * DataGridViewRowPostPaintEventArgs.cs,
27046           DataGridViewCellPaintingEventArgs.cs,
27047           DataGridViewRowCollection.cs,
27048           DataGridViewRowPrePaintEventArgs.cs,
27049           DataGridViewCell.cs: Clear a few warnings and implement a few
27050           exceptions that should be thrown.
27051
27052 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
27053
27054         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
27055           'inheriting' our parent's (non-default) cursor. (Part of
27056            the fix for #77479)
27057
27058 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
27059
27060         * XplatUIX11.cs: Fixed cast to make csc happy
27061
27062 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
27063
27064         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
27065           it's for the client area (part of fix for #77479 and needed
27066           for MDI window cursor handling)
27067         * XplatUIX11.cs
27068           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
27069             the appropriate default cursors and also passing the message
27070             up the parent chain 
27071           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
27072             for non-client areas
27073
27074 2006-02-15  Jackson Harper  <jackson@ximian.com>
27075
27076         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
27077         is a real MDI window
27078
27079 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
27080
27081         * X11DesktopColors.cs: Instead of checking the desktop session
27082           string for "KDE" check if it starts with "KDE"
27083
27084 2006-02-10  Jackson Harper  <jackson@ximian.com>
27085
27086         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
27087         systems).
27088
27089 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
27090
27091         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
27092           errors
27093         * ColorDialog.cs:
27094           - Got rid of the panel. All controls are now directly added to
27095             the dialog form
27096           - Changed to mono coding style
27097
27098 2006-02-10  Jackson Harper  <jackson@ximian.com>
27099
27100         * InternalWindowManager.cs: We don't need the set visibility to
27101         false hack anymore now that peter has written beautiful shutdown
27102         code.
27103
27104 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
27105
27106         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
27107           where already explicitly destroyed
27108
27109 2006-02-10  Jackson Harper  <jackson@ximian.com>
27110
27111         * MdiClient.cs: Handle the case where windows are too high or to
27112         the left and we need scrollbars.
27113
27114 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
27115
27116         * MimeIcon.cs: Added some icons
27117         * FileDialog.cs:
27118           - Fixed bug #77477
27119           - Got rid of the panel. All controls are now directly added to
27120             the dialog form
27121           - Changed to mono coding style
27122           - On Linux "My Computer" and "My Network" will now show some
27123             more usefull information. A new class, MasterMount, gathers
27124             this information from /proc/mount. Updated MWFFileView to make
27125             use of this information
27126           - Fixed a bug that caused FileDialog to crash when
27127             ".recently_used" file had a zero size
27128           - FilterIndex does now what it should
27129           - Some Refactoring
27130         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
27131             FileDialog changes
27132
27133 2006-02-09  Jackson Harper  <jackson@ximian.com>
27134
27135         * ComboBox.cs: Don't touch if null.
27136
27137 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
27138
27139         * Cursor.cs: 64bit safeness fix
27140         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
27141
27142 2006-02-09  Jackson Harper  <jackson@ximian.com>
27143
27144         * Form.cs: If a form is made into an MDI form update the styles so
27145         all the props can get set correctly.
27146         - Kill the mdi_container when we dont need it anymore.
27147         * InternalWindowManager.cs: Add missing NOT
27148
27149 2006-02-08  Jackson Harper  <jackson@ximian.com>
27150
27151         * InternalWindowManager.cs: Respek clipping when drawing MDi
27152         decorations.
27153
27154 2006-02-08  Jackson Harper  <jackson@ximian.com>
27155
27156         * Hwnd.cs: Add bits to track non client expose events.
27157         * XplatUIX11.cs: Track non client expose events on the hwnd. This
27158         gives us a proper invalid rect and will allow for some nice
27159         optimizations with NC client drawing
27160         - MDI windows are children windows, so move their style handling
27161         into the child window block.
27162         * InternalWindowManager.cs: Remove a state reset that was
27163         getting invoked at the wrong time. Fixes managed windows getting
27164         into a 'stuck' captured state.
27165
27166 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
27167
27168         * TextControl.cs (Document.ctor): Now initializing 
27169           selection_anchor. Fixes #77493
27170
27171 2006-02-07  Jackson Harper  <jackson@ximian.com>
27172
27173         * TrackBar.cs: The increment/decrements were backwards.
27174
27175 2006-02-07  Mike Kestner  <mkestner@novell.com>
27176
27177         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
27178         to the instance itself.
27179
27180 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
27181
27182         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
27183           on ulongs and pointers, the size differs between 32bit and 64bit
27184           systems. 
27185
27186 2006-02-07  Mike Kestner  <mkestner@novell.com>
27187
27188         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
27189         for 64 bit platforms to work around a metacity bug. 
27190
27191 2006-02-07  Jackson Harper  <jackson@ximian.com>
27192
27193         * TrackBar.cs: Process the input keys we need, and hookup to
27194         KeyDown instead of using WndProc, so we get key messages.
27195
27196 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
27197
27198         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
27199           machine we're on. 
27200         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
27201           we need to translate the XdndVersion atoms array before sending it
27202
27203 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
27204
27205         * XplatUIX11.cs: 
27206           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
27207             number of bits for the property, not the number of bytes. The
27208             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
27209             but would not crash since it specified 8 bits instead of 4 bits)
27210           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
27211             defined as XID -> long in the C headers)
27212           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
27213             references since those are now IntPtr to begin with
27214           - Switched all Atom.XXX 'int' casts to IntPtr casts
27215           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
27216           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
27217           - Added XChangeActivePointerGrab DllImport (for X11DnD)
27218         * X11Structs.cs:
27219           - Changed 'int' type for Atoms in XEvent structures to IntPtr
27220           - Changed atom in HoverStruct to be IntPtr
27221         * X11DnD.cs:
27222           - Removed local DllImports, switched code to use those from XplatUIX11
27223           - Removed/fixed casts related to the switch of Atom to be a IntPtr
27224
27225 2006-02-06  Mike Kestner  <mkestner@novell.com>
27226
27227         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
27228         method signatures in the import region.  There may still be some
27229         lingering struct marshaling issues, as I didn't drill down into those.
27230         Yet.
27231
27232 2006-02-06  Jackson Harper  <jackson@ximian.com>
27233
27234         * ComboBox.cs: Dont manually set the top_item, this is computed
27235         when the scrollbar position is set.
27236
27237 2006-02-06  Mike Kestner  <mkestner@novell.com>
27238
27239         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
27240         startup crashes on amd64.  There's other fixes needed.  All pinvoke
27241         usage of Atom needs to be mapped to IntPtr for example.  And there are
27242         likely other int/long issues to be addressed.
27243
27244 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
27245
27246         * FileDialog.cs: One more...
27247
27248 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
27249
27250         * FileDialog.cs: Next try
27251
27252 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
27253
27254         * FileDialog.cs: First part of fix for #77464
27255
27256 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
27257
27258         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
27259           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
27260           AcceptButton border drawing.
27261
27262 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
27263
27264         * Form.cs: Moved positioning of form after auto scaling is applied,
27265           otherwise it would possibly use wrong form size.
27266
27267 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
27268
27269         * Control.cs (RecreateHandle): No need to re-create any child
27270           controls, the child windows will get destroyed automatically by
27271           the windowing system or driver, and re-created when the handle
27272           is being accessed the first time. Fixes #77456
27273         * Form.cs: No longer setting the form to closing if the handle is 
27274           being recreated. This seems like the right thing to do, don't
27275           have a bug or testcase for this, though.
27276
27277 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
27278
27279         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
27280           controls to avoid unwanted side effects
27281
27282 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
27283
27284         * Control.cs: 
27285           - ScaleCore needs to scale the bounds, not the ClientSize of the 
27286             control. Fixes #77416.
27287           - DefaultSize is 0,0 for control
27288         * TextBoxBase.cs: 
27289           - DefaultSize is 100, 20
27290           - SetBoundsCore: Now enforcing the height, no matter if the provided
27291             height is more or less than the preferred one, as long as AutoSize
27292             is on
27293         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
27294
27295 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
27296
27297         * Control.cs:
27298           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
27299             call unless both performLayout is true *and* we have a pending
27300             layout change
27301           - ResumeLayout: MS does not completely nest Suspend and Resume,
27302             they bottom out at 0, fixed our code to match that.
27303           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
27304             SetBoundsCore, we were updating even when we shouldn't. This fixes
27305             swf-anchors mis-anchoring when resizing the app fast and lots.
27306           - UpdateDistances: Now only setting the left and top distance if 
27307             we have a parent and are not suspended, this is based on
27308             a suggestion by Don Edvaldson in bug #77355.
27309           - OnVisibleChanged: Fixed logic when to create the control. We may
27310             not create the control if we have no parent or if it's not visible;
27311             switched to using Visible property instead of is_visible field 
27312             since the property also considers parent states. This fixes a bug
27313             when starting Paint.Net
27314
27315 2006-02-02  Jackson Harper  <jackson@ximian.com>
27316
27317         * Form.cs: If the forms handle hasn't been created yet don't call
27318         into xplatui to make it top most, just set the topmost flag on the
27319         form in CreateParams
27320         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
27321
27322 2006-02-01  Jackson Harper  <jackson@ximian.com>
27323
27324         * ScrollableControl.cs: Refactored the Recalculate method a
27325         little, this wasn't handling all the variants of bottom and right
27326         bars needed to be added and added/removed based on their
27327         counterparts being added/removed (which changes the drawable
27328         size). Also we special case client widths and heights of 0 and
27329         don't add the scrollbar for those.
27330
27331 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
27332
27333         * XplatUIX11.cs: 
27334           - Added method to get AbsoluteGeometry(); currently unused, but might
27335             be used in the future, if we try again to figure out toplevel
27336             coordinates with some more crappy window managers
27337           - Added FrameExtents() method to retrieve the WM set decoration size
27338           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
27339             to deal with at least KDE, FVWM and metacity (Fixes #77092)
27340         * Hwnd.cs: 
27341           - Added whacky_wm tracking var for metacity
27342           - Added logic to have default menu height if the actual menu height
27343             has not yet been calculated (part of fix for #77426)
27344         * Form.cs: Keep track whether client size has been set and re-set 
27345           it if a menu is added/removed afterwards (Fixes #77426)
27346
27347 2006-01-31  Jackson Harper  <jackson@ximian.com>
27348
27349         * Control.cs: When a new Site is set on the component attempt to
27350         pull the AmbientProperties from it.
27351
27352 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
27353
27354         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
27355           in the background of the owning form. Fixes #77332
27356
27357 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
27358
27359         * MimeIcon.cs: Fix for #77409
27360
27361 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
27362
27363         * XplatUIX11GTK.cs: Initial import
27364
27365 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
27366
27367         * FixedSizeTextBox: fixes class signature
27368
27369 2006-01-30  Jackson Harper  <jackson@ximian.com>
27370
27371         * FixedSizeTextBox.cs: New internal class that represents a
27372         textBox that will not be scaled.
27373         * TreeView.cs:
27374         * ComboBox.cs:
27375         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
27376         standard TextBox.
27377                 
27378 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
27379
27380         * XplatUIX11.cs: Retrieve default screen number instead of
27381           assuming 0. Attempted fix for #77318
27382
27383 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
27384
27385         * XplatUIWin32.cs: 
27386           - GetWindowPos: When a window is parented by FosterParent, use 
27387             the desktop instead of FosterParent as the base to get coordinates
27388           - CreateWindow: Don't make FosterParent the parent window for Popups
27389             if we don't want a taskbar entry, Popups automatically don't get one
27390         * Hwnd.cs: Need to call remove to actually remove the key from the
27391           hash table
27392
27393 2006-01-30  Mike Kestner  <mkestner@novell.com>
27394
27395         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
27396
27397 2006-01-30  Jackson Harper  <jackson@ximian.com>
27398
27399         * TreeView.cs:
27400         * TreeNode.cs: Raise events no matter how the treenode is
27401         checked. Patch by Don Edvalson.
27402
27403 2006-01-30  Jackson Harper  <jackson@ximian.com>
27404
27405         * TreeNode.cs: Signature fix.
27406
27407 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
27408
27409         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
27410
27411 2006-01-20  Mike Kestner  <mkestner@novell.com>
27412
27413         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
27414         event forwarding when menus are active.
27415         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
27416         Most of the patch is pdb's with a little rework.
27417
27418 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
27419
27420         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
27421           Removed GetMenuDC and ReleaseMenuDC methods; replaced
27422           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
27423         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
27424         * InternalWindowManager.cs: Added use of PaintEventStart/End to
27425           handling of WM_NCPAINT message, now passing the PaintEventArgs to
27426           the PaintWindowDecorations method
27427         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
27428         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
27429         * MenuAPI.cs: Made tracker window invisible
27430         * XplatUIWin32.cs:
27431           - Removed GetMenuDC and ReleaseMenuDC methods
27432           - Implemented the client=false path for PaintEventStart and
27433             PaintEventEnd
27434
27435 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
27436
27437         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
27438         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
27439           styles
27440         * Form.cs: 
27441           - MaximizeBox, MinimizeBox: Recreate the handle when setting
27442             the style
27443           - CreateParams: Reworked the styles to match MS look'n'feel,
27444             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
27445             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
27446
27447 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
27448
27449         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
27450           window is not mapped, since otherwise every form that's being 
27451           created is considered minimized, which is wrong.
27452         * Form.cs: Catching the exception and returning our internal value
27453           instead
27454
27455 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
27456
27457         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
27458           SetWindowMinMax() to have means to tell the driver about the minimum,
27459           maximum and maximized state window sizes. (Part of the fix for #76485)
27460         * Form.cs:
27461           - Implemented tracking of minimum and maximum window size, now calling
27462             new SetWindowMinMax() driver method to tell the driver (Part of the
27463             fix for #76485)
27464           - Finished handling of WM_GETMINMAXINFO method, now setting all values
27465             (Completes fix for #76485)
27466           - Calling new SetWindowMinMax driver method when the handle for a 
27467             form is created, to make sure the driver knows about it even if
27468             the values have been set before the window was created
27469           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
27470             to avoid messing up our anchoring calculations (partial fix
27471             for #77355)
27472         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
27473         * XplatUIX11.cs:
27474           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
27475           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
27476             (and presumably other freedesktop.org compliant WMs). Left the
27477             assumption unmapped=minimized, needed for SetVisible to work.
27478           - Now setting the window state when creating windows
27479           - Fixed SetVisible to consider/set the window state when mapping
27480             a Form. We cannot set the state before it's mapped, and we cannot
27481             use Form.WindowState once it's mapped (since it would ask the
27482             driver and get 'normal'. Therefore, we grab the state before
27483             mapping, map, and then set state.
27484           - Implmemented SetWindowMinMax method; Metacity does not seem to
27485             honor the ZoomHints, though.
27486         * XplatUIWin32.cs:
27487           - Removed MINMAXINFO (moved to XplatUIStructs)
27488           - Added SetWindowMinMax stub (on Win32 the only way to set that
27489             information is in response to the WM_GETMINMAXINFO message, which
27490             is handled in Form.cs)
27491           - Added logic to SetVisible to set the proper window state when a 
27492             form is made visible (fixes #75720)
27493
27494 2006-01-26  Jackson Harper  <jackson@ximian.com>
27495
27496         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
27497         same way we handle them with Invoke.
27498
27499 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
27500
27501         * Form.cs:
27502           - Added tracking of window state so CreateParams can return
27503             the appropriate style
27504           - Moved setting of WS_CAPTION style in CreateParams to allow
27505             styles without caption
27506         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
27507           control if the TextBox property is accessed. Fixes #77345
27508         * Control.cs:
27509           - get_Created: now uses is_disposed and is_created to determine
27510             return value (suggested by Jackson)
27511           - CreateHandle: No longer exits if the handle is being recreated
27512           - RecreateHandle: If the handle is not yet created call the 
27513             appropriate method to create either control or handle. If the
27514             control is already created CreateHandle will simply exit instead
27515             of just creating the handle
27516         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
27517           now SendMessage WM_DESTROY directly to the control when DestroyWindow
27518           is called.
27519         * XplatUIX11.cs: 
27520           - When DestroyWindow is called, instead of waiting for the 
27521             DestroyNotification from X11, we directly post it to the WndProc
27522             and immediately dispose the hwnd object.
27523             Same applies to DestroyChildWindows, and this obsoletes the
27524             expose_pending tracking. Contrary to Win32 behaviour we destroy our
27525             child windows before our own, to avoid X11 errors.
27526           - Removed the direct sending of WM_PAINT on UpdateWindow
27527         * XplatUIWin32.cs:
27528           - Reworked DoEvents and GetMessage to allow access to internal queue
27529             even when trying non-blocking access to the queue.  Fixes #77335. 
27530             Based on a patch suggestion by Don Edvalson. The new private
27531             GetMessage can now also be used as a backend for a PeekMessage
27532             frontend version.
27533         * XplatUI.cs: Improved debug output for CreateWindow
27534
27535 2006-01-25  Jackson Harper  <jackson@ximian.com>
27536
27537         * Help.cs: Allow param to be null. Patch by Don Edvalson.
27538
27539 2006-01-24  Jackson Harper  <jackson@ximian.com>
27540
27541         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
27542         when we have a MaxDropItems lower then the selected index.
27543
27544 2006-01-24  Jackson Harper  <jackson@ximian.com>
27545
27546         * Control.cs: Don't allow selection of non visible controls, allow
27547         selection of controls without parents.
27548
27549 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
27550
27551         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
27552         * DataGridDrawingLogic.cs: Add editing row only when is necessary
27553
27554 2006-01-23  Jackson Harper  <jackson@ximian.com>
27555
27556         * UpDownBase.cs: Make the textbox handle all the selection and
27557         tabbing. This fixes tabing to updown controls.
27558
27559 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
27560
27561         * TextBoxBase.cs: fixes exception thown the object was null
27562
27563 2006-01-23  Jackson Harper  <jackson@ximian.com>
27564
27565         * ButtonBase.cs: Just use the base CreateParams. They set
27566         visibility and enabled correctly.
27567         * ComboBox.cs:
27568         * TrackBar.cs:
27569         * MonthCalendar.cs: Lets let the base set as much of the
27570         createparams as possible so we don't have duplicate code all over
27571         the place.
27572
27573 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
27574
27575         * ThemeGtk.cs: Added TrackBar and some experimental code to
27576           get double buffering back
27577
27578 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
27579
27580         * DataGrid.cs: Allows row number set internally higher than the last
27581         when creating a new row. Restores the editing functionality.
27582
27583 2006-01-20  Mike Kestner  <mkestner@novell.com>
27584
27585         * MimeIcon.cs: delay Image creation until the icons are accessed
27586         instead of creating 190 scaled images on GnomeHandler startup.
27587
27588 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
27589
27590         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
27591           first call base before processing the event. Fixes #77279
27592
27593 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
27594
27595         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
27596           that the stride for the GDI bitmap would match the stride of
27597           a DIB or a Cursor.
27598
27599 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
27600
27601         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
27602
27603 2006-01-19  Jackson Harper  <jackson@ximian.com>
27604
27605         * ComboBox.cs: Hookup the text controls keydown event so we get
27606         those when the text control has the focus.
27607
27608 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
27609
27610         * Label.cs: Now using the base events instead of defining new ones;
27611           this allows us to just call the base properties without having to
27612           duplicate all base property logic 
27613
27614 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
27615
27616         * Label.cs: A label by default is not a tabstop (Fixes one of our
27617           failing nunit tests)
27618
27619 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
27620
27621         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
27622         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
27623
27624 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
27625
27626         * Cursor.cs: Reimplemented creating cursor bitmaps without using
27627           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
27628           This fixes #77218
27629         * XplatUIWin32.cs: 
27630           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
27631             constructor creates images that can't be saved. Part of the fix
27632             for #76103
27633           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
27634           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
27635             bug fix for handling window state in forms properly)
27636
27637 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
27638
27639         * ThemeGtk.cs: Simplify ScrollBar drawing
27640
27641 2006-01-18  Jackson Harper  <jackson@ximian.com>
27642
27643         * Splitter.cs: Set the default dock style for the splitter control
27644         in the constructor.
27645
27646 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
27647
27648         * ThemeGtk.cs: Corrected StateType and ShadowType for
27649           gtk_paint_box
27650
27651 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
27652
27653         * Control.cs: Make use of Theme.DoubleBufferingSupported
27654         * ThemeGtk.cs:
27655           - Added drawing for flat style buttons
27656           - Added ScrollBar drawing
27657
27658 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
27659
27660         * ThemeClearlooks.cs: Removed some unneeded code.
27661         * ThemeGtk.cs: First part of ThemeGtk enhancements.
27662
27663 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
27664
27665         * LinkLabel.cs: We need to update the hover drawing when
27666           leaving the control as well.
27667
27668 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
27669
27670         * DataGrid.cs: Clicking on non empty areas in the columns
27671            area was giving an exception
27672
27673 2006-01-17  Jackson Harper  <jackson@ximian.com>
27674
27675         * ThemeWin32Classic.cs:
27676         * ListView.cs: Do not draw/clip the headers when the header style
27677         is None.
27678
27679 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
27680
27681         * DataGrid.cs: Fixes 77260
27682         
27683 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
27684
27685         * DataGrid.cs: Clicking on a column on a empty grid was giving
27686           an exception
27687
27688 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
27689
27690         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
27691           or any keypress will crash the grid.
27692
27693 2006-01-17  Mike Kestner  <mkestner@novell.com>
27694
27695         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
27696         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
27697         invisible/previously-visible items.
27698         [Fixes #76909]
27699
27700 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
27701
27702         * ThemeClearlooks.cs:
27703         - Added CL_Draw_Button method; now other theme controls that are 
27704           not derived from button or do not have a button can draw buttons
27705           too
27706         - Updated ComboBox drawing
27707         - Beautified RadioButton drawing
27708         - Corrected drawing of bottom and left tabs
27709         - Beautified DateTimePicker and MonthCalendar
27710         - Added CPDrawButton and CPDrawRadioButton
27711
27712 2006-01-16  Jackson Harper  <jackson@ximian.com>
27713
27714         * ComboBox.cs: Set the initial value of the scrollbar to the
27715         current index. Reduce the numbers of refreshs and IndexOfs called.
27716
27717 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
27718
27719         * FileDialog.cs: When the file listview is focused hitting the
27720           backspace key moves the fileview to the parent directory
27721
27722 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
27723
27724         * Form.cs: 
27725           - Added RecreateHandle call when changing taskbar visibility to 
27726             trigger reparenting in Win32 driver (Fixes #75719)
27727           - If a window has minimize or maximize buttons, it cannot have
27728             a help button
27729         * XplatUIWin32.cs:
27730           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
27731             the toplevel form with FosterParent (A toolwindow not on the
27732             taskbar) (Fixes #75719)
27733           - Made FosterParent a toolwindow
27734
27735 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
27736
27737         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
27738
27739 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
27740
27741         * ToolTip.cs: If SetToolTip is called from a control and the mouse
27742           is currently over that control, make sure that tooltip_window.Text
27743           gets updated
27744
27745 2006-01-13  Mike Kestner  <mkestner@novell.com>
27746
27747         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
27748
27749 2006-01-13  Jackson Harper  <jackson@ximian.com>
27750
27751         * TreeView.cs: On MS GetNodeAt never actually factors in the X
27752         value passed.  Also redraw the selected node when we recieve
27753         focus, so tabbing between trees works correctly.
27754
27755 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
27756
27757         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
27758           ~/.gconf/%gconf-tree.xml, so use
27759           .gconf/desktop/gnome/interface/%gconf.xml
27760
27761 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
27762
27763         * TextControl.cs: Draw text in gray if control is disabled
27764
27765 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
27766
27767         * TreeView.cs: Draw the focus rectangle outside the highlight, to
27768           make sure it's always visible. Fixes #76680.
27769
27770 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
27771
27772         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
27773
27774 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
27775
27776         * PageSetupDialog.cs: Added.
27777         * PrintDialog.cs: Attributes.
27778         * PrintPreviewControl.cs: Updates.
27779         * PrintPreviewDialog.cs: Updates.
27780         
27781 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
27782
27783         * Control.cs: Undid my selection check fix, since it's not needed
27784         * TextBoxBase.cs:
27785           - Now considering the presence of hscroll/vscroll when sizing
27786             vscroll/hscroll respectively. Fixed bug #77077
27787           - Added Left/Up/Down/Right to IsInputKey list to prevent
27788             ContainerControl from stealing them. This fixes what I broke
27789             with my last checkin.
27790
27791 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
27792
27793         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
27794           I finally understand how the property can be set without a setter :-)
27795
27796 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
27797
27798         * Application.cs:
27799           - Switched RunLoop to use static Message.Create to create a 
27800             Message object
27801           - Added PreProcessMessage call in runloop for keyboard events; this
27802             is part of the fix for #77219, I overlooked this originally in the
27803             MSDN doc for PreProcessMessage
27804         * Control.cs:
27805           - Removed call to PreProcessMessage from handling of keyboard 
27806             messages; it's supposed to be done in the message pump
27807           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
27808             per MSDN documentation.
27809           - IsInputChar: All chars are input chars by default; removed the 
27810             parent calling chain, MS does not document that
27811           - PreProcessMessage: If IsInputChar is true, we want to return false
27812             to allow dispatching of the message
27813           - When selecting the next control, now also check that we're not
27814             selecting ourselves again and therefore return a false positive.
27815         * TextBoxBase.cs:
27816           - Tried to match return values for IsInputKey and ProcessDialogKey
27817             to what MS returns; moved processing of our special keys outside
27818             ProcessDialogKey since MS does not seem to return true on those.
27819           - Moved code that previously was in ProcessDialogKey into new private
27820             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
27821           - Reworked handling of WM_CHAR to not have to duplicate code from
27822             Control.cs anymore, instead we simply call down to base.
27823            
27824 2006-01-12  Jackson Harper  <jackson@ximian.com>
27825
27826         * ComboBox.cs: We always need to refresh the text area when
27827         EndUpdate is called. Fixes the combobox in the file dialog.
27828         * Control.cs: Don't create the creator_thread until the controls
27829         handle is created.  Also in InvokeRequired we check if the
27830         creator_thread is null. This gives the effect of InvokeRequired
27831         returning true if the controls handle is not created yet, and
27832         matches MS.
27833
27834 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
27835
27836         * XplatUI.cs:
27837           - Added StartLoop() driver method. This is used to allow drivers to
27838             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
27839             loop for a particular thread
27840           - Added EndLoop() driver method. This is called once the message
27841             pump for the thread is shut down
27842           - Added SupportsTransparency method to allow the driver to indicate
27843             opacity support for windows
27844         * Form.cs:
27845           - Removed TODO attribute, completed AllowTransparency property
27846           - Added documented logic to Opacity
27847         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
27848           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
27849           versions of CompatibleTextRendering
27850         * X11Structs.cs: Added opacity atom to our atom enumeration
27851         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
27852           of a form might be set before it's reparented by the WM, and we need
27853           the opacity value without calling up to Form)
27854         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
27855           SupportsTransparency() driver methods
27856         * Application.cs: Now calling StartLoop and EndLoop driver methods
27857         * XplatUIX11.cs:
27858           - Added opacity atom registration
27859           - Added StartLoop()/EndLoop() methods. They're empty right now but
27860             will need to get implemented when we switch to a per-thread queue
27861           - Implemented SupportsTransparency() method
27862           - Implemented SetWindowTransparency() method
27863           - Added support for setting the opacity value when a window is
27864             reparented (since the opacity needs to be set on the WM frame)
27865         * XplatUIOSX.cs, XplatUIWin32.cs:
27866           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
27867
27868 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
27869
27870         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
27871
27872 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
27873
27874         * FileDialog.cs: Added ToolTip for MWFFileView
27875         * MimeIcon.cs: Rewrote GnomeHandler.
27876           - Get currently used gnome icon theme from
27877             ($HOME)/.gconf/%gconf-tree.xml
27878           - Make use of inherited icon themes
27879           - Support SVG icon themes like Tango via librsvg
27880
27881 2006-01-12  Miguel de Icaza  <miguel@novell.com>
27882
27883         Revert's Jackson's revert which broke 2.0 builds.   Fix both
27884         builds. 
27885         
27886         * Application.cs: Move the use_compatible_text_rendering outside
27887         the NET_2_0 define.  If we ever need to use the
27888         use_compatible_text_rendering on the individual controls they will
27889         access the variable from the common shared code paths.
27890
27891 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
27892
27893         * XplatUI.cs:
27894           - Added more granular debug options
27895           - Added method to print both window text and id
27896           - Switched debug output to use new Window() debug method
27897           - Added IsEnabled() driver method
27898           - Added EnableWindow() driver method
27899         * Form.cs:
27900           - Removed end_modal; no longer needed, new loop handles termination
27901             via 'closing' variable
27902           - If form is modal, setting DialogResult will now initiate loop
27903             termination via 'closing' variable
27904           - Added support for is_enabled/WS_DISABLED to CreateParams
27905           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
27906             does all the work
27907           - Removed code that's now in RunLoop from ShowDialog()
27908           - Added various documented sanity checks to ShowDialog()
27909           - Added handling of WM_DESTROY message; we set 'closing' on getting
27910             the message to indicate the message pump to terminate
27911           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
27912             send by the Application.ExitThread method. (We send the message
27913             to destroy the window after all other events have been
27914             processed through the queue, instead of destroying the handle 
27915             directly)
27916           - Moved code from Close() method to WM_CLOSE handler; added logic
27917             to only send close-related events if the form is not displayed
27918             modal
27919         * Splitter.cs (..ctor): Fixed typo in resource name
27920         * Control.cs:
27921           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
27922             brush now
27923           - set_Cursor: Now only setting calling into XplatUI if the handle for
27924             the control is already created; this avoids implict handle creation
27925             or crashes if it's not created
27926           - set_Enabled: Now setting the enabled state via the new driver method
27927             instead of just tracking it
27928           - CreateParams: Added logic to set WS_DISABLED based on enabled state
27929           - CreateControl: Reordered event firing and method calls to more
27930             closely fire events in the order MS does. Now setting the
27931             enabled state in the driver when creating the control.
27932           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
27933             match MS order
27934         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
27935           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
27936         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
27937         * Hwnd.cs:
27938           - Added tracking of window enabled state (get_Enabled/set_Enabled)
27939           - Added EnabledHwnd property to easily allow a driver to find the
27940             handle of the first enabled window in the parent chain (this is
27941             used by drivers to pass up input events of disabled windows)
27942         * XplatUIDriver.cs: Added IsEnabled() method
27943         * Application.cs:
27944           - Removed crude and obsolete exiting tracking variable
27945           - Removed internal ModalRun(); replaced by RunLoop()
27946           - Implemented private CloseForms() method to allow closing all 
27947             windows owned by a particular (or all) threads
27948           - Exit() now properly closes all windows without forcing the message
27949             pump to quit
27950           - Removed obsolete InternalExit() method
27951           - Changed Run() methods to use new RunLoop() message pump
27952           - Implemented new RunLoop() method for both modal and non-modal forms
27953         * CommonDialog.cs:
27954           - get_CreateParams: Added setting of WS_DISABLED
27955           - Simplified ShowDialog(); now all the work is done in RunLoop(),
27956             invoked via Form.ShowDialog()
27957         * NativeWindow.cs: We don't remove the window from the collection when
27958           the handle is destroyed; there might still be messages for it in the
27959           queue (mainly the resulting WM_DESTROY); instead it will be removed
27960           when Control calls InvalidateHandle in the WM_DESTROY handler
27961         * XplatUIX11.cs:
27962           - CreateWindow: Added logic to handle the WS_DISABLED window style
27963           - EnableWindow: Implemented based on Hwnd.Enabled
27964           - GetMessage: Reset PostQuitState so the method can be called again
27965           - Implemented support for disabled windows (passing messages to the
27966             first enabled parent) in handling all input messages
27967           - Added optimizations for handling Expose events
27968           - Implemeted new driver method IsEnabled()
27969           - Now always resetting paint pending tracking vars when we start paint
27970           - Re-implemented UpdateWindow via just sending a WM_PAINT message
27971         * XplatUIOSX.cs: Added IsEnabled method stub
27972         * XplatUIWin32.cs: Implemented new IsEnabled() method
27973
27974 2006-01-11  Jackson Harper  <jackson@ximian.com>
27975
27976         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
27977         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
27978         variables a little.
27979         * ColorDialog.cs: Clear out the old form before adding the new
27980         panel.  
27981
27982 2006-01-11  Jackson Harper  <jackson@ximian.com>
27983
27984         * X11Dnd.cs: Make sure to add all the text formats when adding
27985         strings to the data object.
27986         * TreeNodeCollection.cs: When adding to a sorted tree we need to
27987         do some redrawing too.  Also change the UpdateNode to an
27988         UpdateBelow so the newly added node gets painted.
27989         
27990 2006-01-11  Miguel de Icaza  <miguel@novell.com>
27991
27992         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
27993         LinkLabel.cs, PropertyGrid.cs: Implement the
27994         UseCompatibleTextRendering property for 2.x
27995
27996         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
27997
27998 2006-01-11  Jackson Harper  <jackson@ximian.com>
27999
28000         * TreeView.cs: Use the property for setting the selected node so
28001         the correct events get raised.
28002         * TreeNode.cs: Update the tree when the fore/back colours of a
28003         node are set.
28004
28005 2006-01-10  Jackson Harper  <jackson@ximian.com>
28006
28007         * TreeView.cs: Allow setting SelectedNode to null.
28008
28009 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28010
28011         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
28012
28013 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28014
28015         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
28016
28017 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28018
28019         * PrintDialog.cs: Added attributes and set default property values.
28020
28021 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28022
28023         * PrintControllerWithStatusDialog.cs: 
28024         Added PrintControllerWithStatusDialog.
28025
28026 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28027
28028         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
28029         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
28030
28031 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
28032
28033         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
28034
28035 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
28036
28037         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
28038         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
28039
28040 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
28041
28042         * MimeIcon.cs: Added internal class SVGUtil.
28043
28044 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
28045
28046         * FileDialog.cs: Don't crash if there are two files with the
28047           same name but different locations.
28048
28049 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
28050
28051         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
28052         dates across multiple month grids. Used to not highlight entire 
28053         month, but does now.
28054         
28055 2006-01-06  Jackson Harper  <jackson@ximian.com>
28056
28057         * MonthCalendar.cs: Removed DoEvents call to prevent a running
28058         message loop. Change timer intervals to numbers that seem more
28059         natural.
28060
28061 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
28062
28063         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
28064           object for location info since screen object is now implemented.
28065
28066 2006-01-05  Jackson Harper  <jackson@ximian.com>
28067
28068         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
28069         * AsyncMethodResult.cs: We no longer use a WeakReference for the
28070         AsyncMethodResult, this is because we ALWAYS want the
28071         ManualResetEvent to get set.
28072         * Control.cs: When disposing use an async invoke to call shutdown
28073         code, so that thigns don't block on the finalizer thread.  Also
28074         check if we even have a message loop before trying to send
28075         messages, if we don't then don't bother sending messages.
28076         - No more weak references for async methods
28077         * XplatUIDriver.cs: No more weak references for async methods.
28078
28079 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
28080
28081         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
28082           returns two FontFamily with the same name
28083
28084 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
28085
28086         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
28087           drawing disabled text. Instead using the ColorGrayText color
28088
28089 2006-01-04  Jackson Harper  <jackson@ximian.com>
28090
28091         * TreeNode.cs: redraw the node when its image index is changed.
28092
28093 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
28094
28095         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
28096           time I checked there are no others like it.
28097
28098 2006-01-04  Jackson Harper  <jackson@ximian.com>
28099
28100         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
28101         this gives the behavoir I was looking for.
28102         * Control.cs: Special case Invoking EventHandlers, this matches MS
28103         and fixes part of bug #76326.
28104
28105 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
28106
28107         * ThemeClearlooks.cs, FileDialog.cs:
28108           - Reflect the latest Theme class changes
28109           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
28110             with DateTime
28111             
28112 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
28113
28114         * Theme.cs: Cache UI resource images and resize them if needed
28115
28116 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
28117
28118         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
28119           is called. This fixes the crash in Nexxia when setting the font
28120           attributes in the chat. [However, RTF needs a look-over to make sure
28121           that all SelectionXXX methods handle the special case that selection
28122           is empty and therefore the change must be applied to all text starting
28123           at the cursor/selection start]
28124
28125 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
28126
28127         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28128           XplatUIOSX.cs: Added SendMessage and PostMessage methods
28129         * X11Keyboard.cs: Switched to new way of calling PostMessage
28130
28131 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
28132
28133         * Theme.cs: Added theme interface for images to allow the theme to
28134           control what images are used for things like FileDialog, MessageBox
28135           icons, etc.
28136         * MessageBox.cs: Now uses the new Theme icon/image interfaces
28137
28138 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
28139
28140         * FileDialog.cs:
28141           - Removed some dead code
28142           - Opening a recently used file does work now
28143           - Small UI enhancements
28144           - Refactoring
28145
28146 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
28147
28148         * FileDialog.cs: Forgot too add __MonoCS__
28149
28150 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
28151
28152         * FileDialog.cs: We are able to read recently used files now let's
28153           go on and write them.
28154
28155 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
28156
28157         * FileDialog.cs: Breathe some life into "last open"/"recently used"
28158           button
28159         * MimeIcon.cs: Do a check for the top level media type also
28160
28161 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
28162
28163         * ThemeClearlooks.cs:
28164           - Added CPDrawStringDisabled
28165           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
28166             some chars if the text doesn't fit into text_rect
28167           - DrawListViewItem: If View = View.LargeIcon center the image;
28168             rewrote the drawing of ListViewItem.Text if View = 
28169             View.LargeIcon
28170
28171 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
28172
28173         * MimeIcon.cs: Use default KDE icon theme if there is no
28174           "48x48" directory for the current icon theme, fixes #77114
28175         * Mime.cs: Disable not working and actually not used code. 
28176         * ThemeWin32Classic.cs:
28177           - Replace "new SolidBrush" in GetControlBackBrush and
28178             GetControlForeBrush with ResPool.GetSolidBrush
28179           - Changed DrawListViewItem from private to protected virtual
28180         * FileDialog.cs:
28181           - Added form.MaximizeBox = true
28182           - Don't throw an exception if there is a broken symbolic link
28183
28184 2005-12-23  Jackson Harper  <jackson@ximian.com>
28185
28186         * TabControl.cs: Give the panels focus, keyboard navigation is
28187         fixed so this works correctly now.
28188         - We need these key events also.
28189         * ToolBar.cs: Remove some of the poor mans double buffering.
28190         
28191 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
28192
28193         * ComboBox.cs: The internal TextBox now returns the focus.
28194
28195 2005-12-23  Jackson Harper  <jackson@ximian.com>
28196
28197         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
28198
28199 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
28200
28201         * Control.cs: Removed debug code
28202         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
28203           implicit children
28204
28205 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
28206
28207         * Control.cs: When creating the control, update the Z-order after
28208           all it's children are created, too. (Fixes nexxia not showing
28209           picturebox bug)
28210
28211 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
28212
28213         * Control.cs: Do not update the anchoring distances if layout is
28214           suspended, instead do it once layout is resumed
28215
28216 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
28217
28218         * Control.cs: 
28219           - After many hours of debugging, for both Jackson and
28220             myself, it turns out that it helps to set the parent of a control
28221             if you want to actually see it onscreen. In the spirit of that
28222             discovery, we're now setting the parent of the control and
28223             it's children when the control's handle is created. This fix
28224             will make Lutz Roeder's Reflector run happily. 
28225           - now just creating the handle instead of the whole control when
28226             getting a graphics context for the control.
28227
28228 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
28229
28230         * ScrollableControl.cs: When calculating the canvas, don't consider
28231           the scrollbar widths. Instead, predict if horizontal scrollbar
28232           will affect canvas when deciding on vertical display and vice versa.
28233
28234 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
28235
28236         * RichTextBox.cs: Set default RTF font for documents that don't
28237           have a font table (Fixes #77076)
28238
28239 2005-12-22  Jackson Harper  <jackson@ximian.com>
28240
28241         * TextBoxBase.cs: It's difficult to do, but you can have an empty
28242         clipboard. This prevents a NullRef in that case.
28243         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
28244         clipboard. PRIMARY is for the currently selected text only. (We
28245         should implement PRIMARY at some point.
28246
28247 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
28248
28249         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
28250           a Unicode function with a structure that was defined in Ansi way.
28251           This fixes #76942.
28252
28253 2005-12-21  Jackson Harper  <jackson@ximian.com>
28254
28255         * StatusBar.cs: Statusbar handles its fore/back colours on it's
28256         on. Because thats how it rolls. (and this avoids it using ambient
28257         colours).
28258         * ThemeWin32Classic.cs: Use the proper back color for filling.
28259         * Menu.cs: Use the system menu bar color for drawing menu
28260         bars. Using the window back color will bring ambient colours into
28261         the picture.
28262
28263 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
28264
28265         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
28266           Bitmaps were created and not disposed.
28267
28268 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
28269
28270         * Control.cs (CreateControl): Don't do anything if the control is
28271           already created, otherwise we'd fire the OnCreated event more than
28272           once
28273
28274 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
28275
28276         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
28277           will always match. Instead return -1. Fixes #76464.
28278
28279 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
28280
28281         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
28282           neither the beginning nor the end of the line (Fixes bug #76479)
28283
28284 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
28285
28286         * Control.cs:
28287           - ControlNativeWindow.ControlFromHandle(): Now handling situation
28288             where handle is invalid
28289           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
28290             instead of slower linear search
28291         * NativeWindow.cs: Don't remove the window from the hashtable until
28292           after the driver has destroyed it (since the driver might use
28293           Control.FromHandle to lookup the control object
28294         * Hwnd.cs: Added DestroyPending property to track if a window is 
28295           already destroyed as far as the driver is concerned and only hasn't
28296           yet notified the control
28297         * XplatUIX11.cs:
28298           - Activate(): Check if the window is still valid before using the 
28299             handle
28300           - Implemented DestroyChildWindow() method to mark child windows as
28301             destroyed when a window is destroyed. This prevents situations 
28302             where we might call an X method based on queued events for a
28303             window that already has been destroyed but we haven't yet pulled
28304             the destroy method from the queue.
28305           - Added a call to the new DestroyChildWindow() method to the drivers
28306             DestroyWindow code. Also now marking the destroyed window itself
28307             as pending
28308
28309 2005-12-20  Jackson Harper  <jackson@ximian.com>
28310
28311         * StatusBar.cs:
28312         * StatusBarPanel.cs: Don't calculate panel sizes on draw
28313         anymore. Just do them when needed, also track the rects of panels
28314         so that we can optimize refreshing more in the future.
28315
28316 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
28317
28318         * ColorDialog.cs: Fixed focus drawing in small color controls
28319
28320 2005-12-19  Jackson Harper  <jackson@ximian.com>
28321
28322         * InternalWindowManager.cs:
28323         * MdiWindowManager.cs: Cleanup some coordinate system changes so
28324         moving windows works properly.
28325
28326 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
28327
28328         * Control.cs: 
28329           - Removed call to InitLayout() from SetBoundsCore(); doc says
28330             it's only called when a control is added to a container
28331           - Split InitLayout logic, moved to separate UpdateDistances() method
28332             since we need to perform those calculations more often than just
28333             when adding the control to a container. (Needed to fix #77022)
28334           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
28335           - Reduced the OnBindingContextChanged events count, don't send them
28336             unless the control is created, we still aren't totally matching
28337             MS, but I can't quite figure out some of their rules
28338
28339 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
28340
28341         * ThemeClearlooks.cs: Corrected distance between ProgressBar
28342           stripes
28343
28344 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
28345
28346         * ThemeClearlooks.cs:
28347           - Updated ProgressBar drawing
28348           - Corrected drawing of ScrollBars and scroll buttons
28349           - Some temporary fixes for minor pixel artefacts
28350
28351 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
28352
28353         * Control.cs:
28354           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
28355             cause events to be sent in the same order as MS does.
28356           - Added ChangeParent() method to trigger various OnXXXChanged events
28357             that need to be fired when a parent changes (This is a reworking
28358             of the patch from r54254, with the X11 errors fixed)
28359           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
28360             since on MS we get OnLayoutChanged events when calling Clear()
28361           - Changed Enabled property to consider parent state as well, if a
28362             parent is not enabled, the control will not be either
28363           - Changed Parent property to simply call Controls.Add() since that
28364             now does all the work required, this way we avoid code duplication
28365           - Threw in a few OnBindingsContextChanged calls to try and match
28366             when MS sends them. We seem to send a few too many, though.
28367           - Added call to CreateControl when adding the control to a parent.
28368             We were never calling CreateControl. Still needs some work, in
28369             some places we treat HandleCreated and ControlCreated as equal, 
28370             which is wrong
28371           - Removed obsolete commented out code from UpdateZOrder()
28372
28373 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
28374
28375         * ThemeClearlooks.cs: Updated TrackBar drawing.
28376
28377 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
28378
28379         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
28380
28381 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
28382
28383         * FileDialog.cs: Add the Help button and the open readonly
28384           checkbox only if needed
28385
28386 2005-12-16  Jackson Harper  <jackson@ximian.com>
28387
28388         * Control.cs: Make sure we have an active menu before trying to
28389         process commands on it. Prevents menu-less forms from crashing
28390         when Alt is pressed.
28391         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
28392         Dieter Bremes.
28393         * RichTextBox.cs: Expand statement to help out gmcs and fix the
28394         2.0 build.
28395
28396 2005-12-16  Jackson Harper  <jackson@ximian.com>
28397
28398         * InternalWindowManager.cs: Don't translate tool windows screen
28399         coordinates. This fixes windows 'bouncing' around when being moved.
28400
28401 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
28402
28403         * TextBoxBase.cs:
28404           - MaxLength now treats 2^31-1 equal to unlimited length (this is
28405             not quite MS compatible, MS uses that number only for single line
28406             and 2^32-1 for multi-line, but I figure it won't hurt keeping
28407             the limit at 2GB)
28408           - Now enforcing the MaxLength limit when entering characters
28409           - Added argument to internal Paste() method to track if it's called
28410             from programatically or via keyboard, since keyboard driven pastes
28411             need to enforce max-length
28412           - Added logic to Paste to only paste as many chars as MaxLength 
28413             allows
28414         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
28415         * TextControl.cs:
28416           - Added Length property to return number of characters in document
28417           - Added private CharCount property which only tracks actual chars
28418             in the document (no linefeeds) and fires event when CharCount
28419             changes
28420           - Added tracking of character count to all methods that alter it
28421           - Added LengthChanged event to allow applications to subscribe
28422             to any changes to the document
28423
28424 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
28425
28426         * TextBox.cs: 
28427           - Removed local password_char field (moved to TextBoxBase)
28428           - Now setting the document's password var when password is
28429             set
28430         * TextBoxBase.cs:
28431           - Added password_char field (needed here so MultiLine can
28432             access it)
28433           - Added logic to MultiLine property setter to set the document's
28434             variable when password display is allowed
28435           - Removed debug code and made some debug code conditional
28436         * TextControl.cs:
28437           - Added RecalculatePasswordLine() method to handle special password
28438             char only lines
28439           - Added PasswordChar property, also added related tracking vars
28440           - Draw() method now uses local text var for grabbing text to draw,
28441             this var is set to line.text unless we're doing password display,
28442             then it is set to the pre-generated all-password-chars line
28443           - Added calling RecalculatePasswordLine() method for password lines
28444
28445 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
28446
28447         * Hwnd.cs: 
28448           - Added Reparented property to allow tracking of Window Manager
28449             reparenting actions (which affect X/Y calculations of toplevel 
28450             windows)
28451           - Made ToString() print window handles in hex
28452         * XplatUIX11.cs:
28453           - AddConfigureNotify(): Now uses reparented state off Hwnd to
28454             determine if X/Y needs offsetting
28455           - AddConfigureNotify(): Fixed offset calculations
28456           - Now adds ReparentNotify messages into the queue
28457           - Now processes ReparentNotify messages and causes a 
28458             WM_WINDOWPOSCHANGED message to be sent upstream if a window
28459             is reparented (as most likely it's X/Y coordinates are changed
28460             due to that)
28461
28462 2005-12-14  Jackson Harper  <jackson@ximian.com>
28463
28464         * XplatUIX11.cs: Tool windows still need to respek focus.
28465
28466 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
28467
28468         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
28469           have a working release
28470
28471 2005-12-13  Jackson Harper  <jackson@ximian.com>
28472
28473         * Form.cs: Update styles after setting the border style regardless
28474         of whether or not the window is using a window manager.
28475
28476 2005-12-13  Jackson Harper  <jackson@ximian.com>
28477
28478         * Form.cs: We now hook into an internal window manager instead of just an
28479         MDI subsystem, this is so we can have properly behaving tool windows.
28480         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
28481         * InternalWindowManager.cs: New internal class that acts as a
28482         window manager for tool windows and as a base for mdi windows.
28483         * MdiWindowManager.cs: New class that acts as a window manager for
28484         mdi windows.
28485
28486 2005-12-12  Jackson Harper  <jackson@ximian.com>
28487
28488         * Control.cs: Updates so we match behavoir for for implicit
28489         controls. Fixes explosions in MDI.
28490
28491 2005-12-12  Jackson Harper  <jackson@ximian.com>
28492
28493         * Control.cs: Implement Invalidate (Region).
28494
28495 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
28496
28497         * Control.cs: 
28498           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
28499             the same events as MS does. MS fires events for each property 
28500             except, for unknown reasons, Cursor, when the control is reparented. 
28501             I can't seem to totally match add/remove since MS also fires some 
28502             VisibleChanged events, which makes no sense. Consolidated the
28503             parenting code into a separate method so it can be called from
28504             both Add and Remove. set_Parent no longer needs any special logic
28505             as it calls the parent's add method which implicitly fires
28506             all events
28507           - Removed some obsolete code and debug output
28508           - Enabled state is inherited from parents, if this is enabled
28509
28510 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
28511
28512         * Form.cs: Removed commented out code
28513
28514 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
28515
28516         * Control.cs:
28517           - Added internal version of Invoke, with additional argument 
28518             indicating if we're calling it from a Dispose() handler. That
28519             way we can avoid BeginInvoke throwing an exception if we're
28520             calling for an already destroyed window.
28521           - Added a dispose argument to BeginInvokeInternal, and made the
28522             check if a valid window handle chain exists conditional on
28523             it not being a dispose call
28524           - Removed code in DestroyHandle to destroy our children. Since we
28525             now handle the WM_DESTROY message we will catch all our children
28526             being destroyed.
28527           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
28528         * Form.cs:
28529           - Added a field to track the application context of the form.
28530           - No need to set closing variable as response to WM_CLOSE, instead
28531             we destroy the window. We also call PostQuitMessage if the form
28532             has an application context (which makes it the main app form,
28533             which, when closed terminates the app)
28534         * XplatUI.cs:
28535           - Dropped Exit() method, it's naming was confusing
28536           - Added PostQuitMessage() which causes GetMessage to return false
28537             once the message queue is empty
28538         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
28539           PostQuitMessage()
28540         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
28541           no longer a valid XplatUI method, but left it in since it's used
28542           internally. Added empty PostQuitMessage() method.
28543         * MenuAPI.cs: Replaced call to Exit() with call to
28544           PostQuitMessage, even though this is probably no longer needed.
28545         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
28546         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
28547         * Application.cs:
28548           - Replaced call to XplatUI.Exit() with PostQuitMessage()
28549           - Removed old debug code that would call XplatUI for exception
28550             display, enabled standard exception handling (Still not enabled
28551             though, until NativeWindow's ExternalExceptionHandler define
28552             is removed
28553         * NativeWindow.cs:
28554           - Added internal method to allow control to update NativeWindow
28555             after a window has been destroyed
28556           - Added handling of already destroyed windows when calling i
28557             DestroyWindow
28558           - Added removal of handle from list on ReleaseHandle
28559         * XplatUIX11.cs:
28560           - Dropped GetMessageResult var and related code
28561           - Added PostQuitState to field to track if PostQuitMessage has been
28562             called
28563           - Dropped Exit() method
28564           - Added PostQuitMessage() method
28565           - GetMessage now will return false if PostQuitState is set and no
28566             more messages are in the queue.
28567           - Expose handler will no longer generate WM_PAINT messages if we are
28568             in PostQuitState since it's very likely any windows have already
28569             been destroyed, and since Hwnd won't get updated until we have
28570             processed the DestroyNotify we'd be causing X errors.
28571         
28572 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
28573
28574         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
28575           Thanks to Mike for pointing out the err of my ways.
28576
28577 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
28578
28579         * Control.cs(PreProcessMessage): Moved menu handling back, but
28580           after all other key handling, to match MS (who handles Menu in
28581           DefWndProc)
28582         * Menu.cs (WndProc): Removed my brainfart
28583
28584 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
28585
28586         * Control.cs(PreProcessMessage): Removed special menu handling 
28587         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
28588
28589 2005-12-07  Mike Kestner  <mkestner@novell.com>
28590
28591         * Control.cs : special case SYSKEYUP so that we can adjust keynav
28592         state according in tracker.
28593         * Menu.cs : promote tracker field to base class and provide a tracker
28594         lookup capability.  Add/Remove shortcuts dynamically if the top menu
28595         has a tracker. Unparent items that are removed from the collection.
28596         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
28597         * Theme*.cs: add always_show_hotkeys field to support configurability
28598         of mnemonic display.  win32 doesn't show mnemonics until Alt is
28599         pressed.
28600
28601 2005-12-07  Jackson Harper  <jackson@ximian.com>
28602
28603         * MdiChildContext.cs: Use Control.ResetCursor.
28604         * Control.cs: ResetCursor needs to set the property so that the
28605         correct XplatUI call gets made.
28606
28607 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
28608
28609         * Control.cs: More fixes to make our key events match MS. We
28610           were not setting the modifier state on KeyData, and we were
28611           not generating any events when Alt was pressed with a key
28612           since handling of WM_SYSxxx was missing for the OnKey methods.
28613
28614 2005-12-07  Jackson Harper  <jackson@ximian.com>
28615
28616         * MdiChildContext.cs: reenable the sizing code.
28617         - When the mouse leaves a window reset its cursor.
28618
28619 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
28620
28621         * ThemeClearlooks.cs: Reflect latest Hwnd changes
28622
28623 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
28624
28625         * Hwnd.cs: Now using the theme 3d bordersize to calculate
28626           widths of Fixed3D borders
28627
28628 2005-12-07  Jackson Harper  <jackson@ximian.com>
28629
28630         * MdiClient.cs: Fix warnings. Earn Mike's love.
28631
28632 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
28633
28634         * ThemeClearlooks.cs:
28635           - Adjusted mouse over button color
28636           - Added first parts of CheckBox drawing
28637           - Added correct color for selected text background
28638           - Fixed ComboBox drawing
28639           - Added CPDrawBorder3D and CPDrawBorder
28640
28641 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
28642
28643         * XplatUIX11.cs: Added call to XBell for AudibleAlert
28644
28645 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
28646
28647         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28648           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
28649           alert users via sound. We could add an enum arg with different
28650           types of alerts in the future
28651
28652 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
28653
28654         * Control.cs: Fix behaviour problems pointed out by Mike
28655
28656 2005-12-05  Mike Kestner  <mkestner@novell.com>
28657
28658         * StatusBarPanel.cs: add Invalidate method and hook it into all the
28659         prop setters.  Calls parent.Refresh for now, but could be maybe be
28660         optimized with an internal method on StatusBar at some point.
28661         [Fixes #76513]
28662
28663 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
28664
28665         * RichTextBox.cs: Implemented get_SelectionColor
28666
28667 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
28668
28669         * ThemeClearlooks.cs:
28670           - Removed dead code
28671           - Draw black button border only if button is Form.AcceptButton
28672           - Draw correct button color for pressed RadioButton if the mouse 
28673             has entered the button
28674           - Updated ProgressBar drawing!
28675           - Updated CPDrawSizeGrip drawing
28676           - Updated StatusBarPanel drawing
28677
28678 2005-12-05  Mike Kestner  <mkestner@novell.com>
28679
28680         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
28681         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
28682
28683 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
28684
28685         * ThemeClearlooks.cs: Initial check-in, activate with
28686           export MONO_THEME=clearlooks
28687         * ThemeEngine.cs: Added ThemeClearlooks
28688
28689 2005-12-03  Mike Kestner  <mkestner@novell.com>
28690
28691         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
28692         [Fixes #76897]
28693
28694 2005-12-02  Jackson Harper  <jackson@ximian.com>
28695
28696         * Form.cs: If the child form has no menu the default main menu is
28697         used as the active menu.
28698
28699 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
28700
28701         * ListBox.cs: Check if any items exist before trying to resolve 
28702           coordinates into items
28703
28704 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
28705
28706         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
28707           as the second color for the background hatch
28708
28709 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
28710
28711         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
28712         * RichTextBox.cs: FormatText position arguments are 1-based, now making
28713           sure that what we pass to FormatText is always 1-based. Fixes #76885
28714
28715 2005-11-29  Miguel de Icaza  <miguel@novell.com>
28716
28717         * NumericUpDown.cs (EndInit): When we are done initializing,
28718         reflect any updates on the UI.
28719
28720 2005-12-02  Jackson Harper  <jackson@ximian.com>
28721
28722         * ImplicitHScrollBar.cs:
28723         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
28724         their container controls.
28725         * TreeView.cs: Use the new implicit scrollbars.
28726
28727 2005-12-02  Jackson Harper  <jackson@ximian.com>
28728
28729         * TreeView.cs: Make top_node internal so the TreeNodeCollections
28730         can play with it.
28731         * TreeNodeCollection.cs: If we remove the topnode we need to
28732         update topnode to the next node in line.
28733         - When clearing nodes go through the same process as removing
28734         them, so they get depareneted and checked if they are top node.
28735
28736 2005-12-01  Jackson Harper  <jackson@ximian.com>
28737
28738         * TreeView.cs: When imagelists are used the image area is
28739         selectable as well as the text.
28740         - If there are no selected nodes select the first one.
28741         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
28742         so don't do it more then we need to.
28743
28744 2005-12-01  Jackson Harper  <jackson@ximian.com>
28745
28746         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
28747         that arrows can be scaled.
28748
28749 2005-12-01  Jackson Harper  <jackson@ximian.com>
28750
28751         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
28752         fail. Patch by Dieter Bremes
28753
28754 2005-11-30  Jackson Harper  <jackson@ximian.com>
28755
28756         * Form.cs: Property is 2.0 only
28757         * PrintDialog.cs: Signature fix.
28758
28759 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
28760
28761         * TextControl.cs: 
28762           - No longer artificially moves text 2 pixels down (now that we have
28763             borders this is no longer needed)
28764           - Added calcs for left, hanging and right indent
28765
28766 2005-11-23  Mike Kestner  <mkestner@novell.com>
28767
28768         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
28769
28770 2005-11-30  Jackson Harper  <jackson@ximian.com>
28771
28772         * MdiChildContext.cs: Set the cloned menus forms, as these don't
28773         get cloned as part of CloneMenu ().
28774         * Menu.cs: Make sure the parent of the items get set correctly
28775         when they are added.  And the owners are notified of the changes.
28776         * Form.cs: Create an ActiveMenu property, so that when MDI is used
28777         we can change the menu being displayed/handled by the form without
28778         changing the menu assosciated with the form.
28779         - Don't let Mdi children draw/handle menus.
28780         
28781 2005-11-30  Jackson Harper  <jackson@ximian.com>
28782
28783         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
28784         a MenuChanged event. Just to make the API a little more
28785         consistent.
28786         * MainMenu.cs:
28787         * MenuItem.cs: Use the new OnMenuChanged
28788         * MdiChildContext.cs: Handle menu merging.
28789         * Form.cs: Implement MergedMenu.
28790         
28791 2005-11-30  Jackson Harper  <jackson@ximian.com>
28792
28793         * Menu.cs: We were misusing Add. Add goes behind the specified
28794         index according to the docs, and does not replace the specified
28795         index. So I added an Insert method.
28796
28797 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
28798
28799         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
28800           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
28801           is for Jackson
28802         * RichTextBox.cs: Added calls to base for DnD events
28803
28804 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
28805
28806         * TextControl.cs:
28807           - Fixed drag-selection related crash; style fixes
28808           - Implemented undo class
28809             o Implemented method to capture document state for specified
28810               range in document tree
28811             o Implemented method to restore captured document state
28812             o Implemented cursor tracking
28813             o Implemented basic undo stack
28814           - Added undo cursor tracking to methods altering cursor location
28815           - Added undo tracking to selection deletion (still missing
28816             other text-altering hookups)
28817         * RichTextBox.cs:
28818           - Added SelectionLength property
28819           - Implemented CanPaste()
28820           - Implemented Paste()
28821           - Added missing protected methods
28822           - Fixed RTF->Document conversion; now uses font index 0 and color 
28823             index 0 as the default font for the parsed text
28824           - Fixed RTF<->Document font size translation
28825           - Fixed RTF generation, now properly handles cross-tag boundaries
28826             for single line selection
28827           - No longer always appends blank line to generated RTF
28828           - Removed TODOs
28829           - Added missing attributes
28830           - Hooked up undo-related methods
28831         * TextBoxBase.cs:
28832           - Implemented Copy()
28833           - Implemented Paste()
28834           - Implemented Cut()
28835           - Fixed caret mis-behaviour on backspace across line-boundaries
28836
28837 2005-11-29  Jackson Harper  <jackson@ximian.com>
28838
28839         * MdiClient.cs: Add a method for activating mdi children. Very
28840         basic right now. I imagine someday it might need more girth.
28841         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
28842         children windows names are added to the menu item.
28843         * ThemeWin32Classic.cs: Draw the arrow if the item is an
28844         mdilist. This happens regardless of whether or not there are any
28845         mdi windows to see in the list, and according to my tests happens
28846         before the items are even added. Also happens if there isn't even
28847         an mdi client to get windows from.
28848
28849 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
28850
28851         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
28852         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
28853
28854 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
28855
28856         * DataGridTableStyle.cs:
28857           - Create always the styles for the missing columns even if they are
28858             provided by the user (not default table style)
28859         * DataGrid.cs:
28860           - Fixes bug 76770
28861           - Fixes SetDataBinding (always re-attach source)
28862           - Fixes SetNewDataSource (only clear styles if they are not for 
28863             this source)
28864          -  Expands OnTableStylesCollectionChanged to handle style refresh 
28865             and remove properly
28866
28867 2005-11-29  Jackson Harper  <jackson@ximian.com>
28868
28869         * FileDialog.cs: Implement missing bits, remove some dead
28870         code.
28871         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
28872         creation of the panel so that the options set on the dialog are
28873         seen when the panel is created.
28874         * TreeView.cs: raise a click when items are clicked.
28875         
28876 2005-11-29  Jackson Harper  <jackson@ximian.com>
28877
28878         * MdiClient.cs: Pass some signature methods through to base.
28879
28880 2005-11-28  Jackson Harper  <jackson@ximian.com>
28881
28882         * ListView.cs: Raise the click event when items are clicked.
28883
28884 2005-11-28  Jackson Harper  <jackson@ximian.com>
28885
28886         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
28887         a nullref.
28888
28889 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
28890
28891         * ThemeNice.cs: - Removed 1 pixel bitmaps
28892           - Use SmoothingMode.AntiAlias where it makes sense
28893             (ScrollButton arrow for example)
28894           - Enhanced Button focus drawing
28895           - Fixed ComboBox drawing (no artefacts anymore, focus
28896             rectangle is back again, reduced size of ComboButton, etc.)
28897           - Fixed RadioButton focus drawing for Appearence.Button
28898           - Slight ScrollButton redesign
28899           - Some LinearGradientBrush size fixes
28900           - GroupBoxes have now rounded edges
28901           - Fixed StatusBar drawing
28902
28903 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
28904
28905         * ThemeNice.cs: - Remove dead code
28906           - use correct background colors for menus, etc.
28907           - Fake pixel drawing with 1 pixel bitmaps
28908
28909 2005-11-24  Jackson Harper  <jackson@ximian.com>
28910
28911         * MdiClient.cs: Size the scrollbars when resizing the window.
28912         - Resize the maximized windows when the client is resized
28913         * Form.cs: Make the child context available
28914         
28915 2005-11-23  Jackson Harper  <jackson@ximian.com>
28916
28917         * MdiChildContext.cs: Don't size windows if they are maximized.
28918
28919 2005-11-23  Mike Kestner  <mkestner@novell.com>
28920
28921         * ContextMenu.cs: use MenuTracker.
28922         * Control.cs: remove menu handle usage.
28923         * Form.cs: remove menu handle usage.
28924         * Hwnd.cs: remove menu handle usage.
28925         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
28926         motion and clicks to the new Tracker handlers.
28927         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
28928         and handle usage.
28929         * MenuAPI.cs: refactored to combine popup and menubar event handling.
28930         Killed the MENU and MENUITEM data types and associated collections
28931         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
28932         MenuTracker class that exposes the leftovers from the old MenuAPI
28933         static methods. Restructured Capture handling so that only one grab is
28934         done for the entire menu hierarchy instead of handing off grabs to
28935         submenus. Tracker now has an invisible control to Capture when active.
28936         * MenuItem.cs: add sizing accessors, kill Create
28937         and handle usage.
28938         * Theme.cs: remove menu handle and MENU(ITEM) usage.
28939         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
28940         MENU(ITEM). remove menu handle usage, use Menu directly.
28941         * XplatUIDriver.cs: remove menu handle usage.
28942         * XplatUIOSX.cs: remove menu handle usage.
28943         * XplatUIWin32.cs: remove menu handle usage.
28944         * XplatUIX11.cs: remove menu handle usage.
28945
28946 2005-11-22  Jackson Harper  <jackson@ximian.com>
28947
28948         * Hwnd.cs: Don't compute the menu size for
28949         DefaultClientRectangle.
28950         - Reenable menu sizes being computed for GetClienRectangle.
28951         * Form.cs: Remove comment of trechery
28952         
28953 2005-11-22  Jackson Harper  <jackson@ximian.com>
28954
28955         * Hwnd.cs: The adjustments for the menu bar are made when it is
28956         attached to the form.
28957
28958 2005-11-19  Jackson Harper  <jackson@ximian.com>
28959
28960         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
28961         (just like on windows).
28962
28963 2005-11-19  Jackson Harper  <jackson@ximian.com>
28964
28965         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
28966         use real buttons anymore because they are in non client area. The
28967         one TODO here is that I need to somehow invalidate a section of
28968         the non client area.
28969
28970 2005-11-18  Jackson Harper  <jackson@ximian.com>
28971
28972         * Control.cs: Put the enum check back in now that MDI doesnt have
28973         to use this to set border styles.
28974         * Form.cs: Only set mdi child windows borders if the handle has
28975         been created.
28976         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
28977         this directly on to the driver.
28978         - Get the move start position before adjusting for the titlebar
28979         height, this fixes the windows "skipping" when they are first
28980         moved.
28981
28982 2005-11-18  Jackson Harper  <jackson@ximian.com>
28983
28984         * XplatUIX11.cs: Just compute the mdi borders separately as they
28985         don't totally match up with normal form borders.
28986
28987 2005-11-18  Jackson Harper  <jackson@ximian.com>
28988
28989         * Control.cs: Set WS_ styles for borders, so that the driver does
28990         not have to retrieve the control instance to figure out what kind
28991         of borders it should have.
28992         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
28993         driver can know its an mdi child easily.
28994         * XplatUIX11.cs: Get the border styles and whether the window is
28995         MDI from the Styles and ExStyles params instead of having to get a
28996         control. This prevents a chicken and egg problem.       
28997
28998 2005-11-18  Jackson Harper  <jackson@ximian.com>
28999
29000         * MdiClient.cs: Fix typo so scrollbars show up correctly.
29001
29002 2005-11-18  Jackson Harper  <jackson@ximian.com>
29003
29004         * MdiClient.cs: Calculate when to add and remove scrollbars
29005         correctly.
29006         * MdiChildContext.cs: Adjust the y position to take the titlebar
29007         into account.
29008         - No height for FormBorderStyle.None
29009
29010 2005-11-18  Jackson Harper  <jackson@ximian.com>
29011
29012         * Control.cs: Allow non enum values to be used for
29013         InternalBorderStyle.  MDI does this to set a special border style.
29014         - New utility methods for converting points to/from client coords
29015         - Add the newly created control to the Controls collection before
29016         updating its style. This way UpdateStyle can walk the control
29017         heirarchy to find the control if needed.
29018         so I don't need to create a new Point object all the time.
29019         * Form.cs: Let MDI windows handle their border styles.
29020         - Set styles on MDI windows so the correct title style is derived.
29021         * MdiChildContext.cs: Move all the painting and window handling
29022         into the non client area.
29023         - Use correct sizing and put correct buttons on frames based on
29024         the FormBorderStyle.
29025         - Notify the mdi client about scrolling
29026         - Need to handle the buttons ourselves now, because they are all
29027         in non client areas and we can't add controls there.
29028         * MdiClient.cs: Halfway to scrolling, this implementation is
29029         somewhat broken though, we need to check to make sure other
29030         windows aren't causing scrolling before removing the bars. Also
29031         the bars need to be drawn on top, maybe I can switch implicit
29032         controls to be on top.
29033         * Hwnd.cs: caption_height and tool_caption_height are now
29034         properties of an hwnd, this way they can be set by the driver
29035         based on the type of window they are.  In X11 the window manager
29036         handles the decorations so caption_height is zero unless its an
29037         MDI window.
29038         - Add 3 pixel borders for MDI windows (0xFFFF).
29039         - Get rid of some code duplication, have DefaultClientRectanle
29040         just call GetClientRectangle.
29041         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
29042         Hwnd now.
29043         - Set border styles differently for mdi windows.
29044         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
29045         Hwnd now.
29046         
29047 2005-11-15  Mike Kestner  <mkestner@novell.com>
29048
29049         * Menu.cs: when adding an item to the collection, if item is already 
29050         parented, remove it from the parent.
29051
29052 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
29053
29054         * X11DesktopColors.cs: Added KDE support
29055
29056 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
29057
29058         * XplatUIWin32.cs: 
29059           - Clipboard methods now can translate Rtf format
29060           - No longer removes clipboard contents whenever a new format is added
29061             to allow placing multiple formats on the clipboard
29062         * Clipboard.cs: Clipboard now supports getting a IDataObject and
29063           will place all formats contained in it onto the clipboard. Also
29064           now cleans the clipboard before placing a new object onto it
29065         * RichTextBox.cs:
29066           - Implemented set_Rtf
29067           - Implemented set_SelectedRtf
29068           - Created InsertRTFFromStream() method to allow single code base
29069             for all properties and methods that insert RTF into document
29070           - Removed debug output
29071         * TextControl.cs:
29072           - Fixed Delete(int) to fix up line numbers
29073           - Fixed ReplaceSelection to combine start and end line
29074           - Fixed serious DeleteChars bug that would leave the document tree
29075             broken
29076           - Improved DumpTree with several logic checks to detect broken
29077             document trees
29078           - Removed debug lines
29079           - Fixed Caret.WordForward/WordBack moving code, now always also 
29080             updates caret.tag (fixes crash when word-selecting across tag
29081             boundaries via keyboard)
29082           - Added Insert() method for inserting multiline text into documents
29083           - Fixed DeleteChars() calculation errors that would cause a broken
29084             tag chain with multiple tag lines
29085           - DeleteChars() no longer crashes on multi-tag lines if not all tags
29086           - Split() no longer moves caret if split is at caret location
29087           - ReplaceSelection() now updates the cursor and re-displays it
29088           - ReplaceSelection() now uses new Insert() method to avoid code
29089             duplication
29090           - FormatText() can now handle formatting partial lines
29091         * TextBoxBase.cs:
29092           - Append now uses new TextControl.Insert() method (this avoids 
29093             duplicate code)
29094           - Implemented Ctrl-X (Cut) (
29095           - Implemented Ctrl-C (Copy)
29096           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
29097             regeneration when pasting text; roundtripping Copy&Paste within
29098             edit control still fails due to some calculation bugs in GenerateRTF)
29099           - The Delete key will now remove the current selection if it is visible
29100         * TextBox.cs: Removed debug lines
29101         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
29102           driver to be initialized and can't therefore be done via a static ctor)
29103
29104 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
29105
29106         * TextControl.cs: Added backend code for finding char arrays and strings
29107         * TextBoxBase.cs:
29108           - Added mouse wheel scroll support
29109           - Added support for VScroll and HScroll events
29110         * RichTextBox.cs:
29111           - Implemented all seven Find() variants
29112           - Implemented GetCharFromPosition()
29113           - Implemented GetCharIndexFromPosition()
29114           - Implemented GetLineFromIndex()
29115           - Implemented GetPositionFromCharIndex();
29116           - Implemented SaveFile for PlainText and UnicodeText
29117           - Fixed set_Font, now setting a new font applies that font to
29118             the whole document
29119           - Implemented generic Document to RTF converter
29120           - Implemented SaveFile for RichText format (still missing unicode
29121             conversion for non-ansi chars)
29122           - Implemented get_Rtf
29123           - Implemented get_SelectedRtf
29124
29125 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
29126
29127         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
29128           to allow any captures to be released before triggering OnClick. This
29129           way a click handler may capture the mouse without interference.
29130         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
29131           This way we send them even though X may not allow a grab (if the window
29132           isn't visible, for example)
29133
29134 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
29135
29136         * DataGridViewRowEventArgs.cs: DataGridView implementation
29137         * DataGridViewElement.cs: DataGridView implementation
29138         * DataGridViewComboBoxCell.cs: DataGridView implementation
29139         * DataGridViewDataErrorContexts.cs: DataGridView implementation
29140         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
29141         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
29142         * ImageLayout.cs: DataGridView implementation
29143         * DataGridViewComboBoxColumn.cs: DataGridView implementation
29144         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
29145         * DataGridViewSelectionMode.cs: DataGridView implementation
29146         * IDataGridViewEditingControl.cs: DataGridView implementation
29147         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
29148         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
29149         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
29150         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
29151         * DataGridViewColumnSortMode.cs: DataGridView implementation
29152         * DataGridView.cs: DataGridView implementation
29153         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
29154         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
29155         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
29156         * Padding.cs: DataGridView implementation
29157         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
29158         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
29159         * DataGridViewRowEventHandler.cs: DataGridView implementation
29160         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
29161         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
29162         * DataGridViewButtonCell.cs: DataGridView implementation
29163         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
29164         * DataGridViewEditMode.cs: DataGridView implementation
29165         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
29166         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
29167         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
29168         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
29169         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
29170         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
29171         * DataGridViewCellEventHandler.cs: DataGridView implementation
29172         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
29173         * DataGridViewCellStyleConverter.cs: DataGridView implementation
29174         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
29175         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
29176         * DataGridViewColumnEventArgs.cs: DataGridView implementation
29177         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
29178         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
29179         * QuestionEventArgs.cs: DataGridView implementation
29180         * IDataGridViewEditingCell.cs: DataGridView implementation
29181         * DataGridViewTriState.cs: DataGridView implementation
29182         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
29183         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
29184         * DataGridViewColumnCollection.cs: DataGridView implementation
29185         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
29186         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
29187         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
29188         * DataGridViewColumn.cs: DataGridView implementation
29189         * DataGridViewCellBorderStyle.cs: DataGridView implementation
29190         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
29191         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
29192         * DataGridViewRow.cs: DataGridView implementation
29193         * DataGridViewImageCellLayout.cs: DataGridView implementation
29194         * DataGridViewImageCell.cs: DataGridView implementation
29195         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
29196         * DataGridViewCheckBoxCell.cs: DataGridView implementation
29197         * DataGridViewHeaderCell.cs: DataGridView implementation
29198         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
29199         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
29200         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
29201         * DataGridViewTextBoxColumn.cs: DataGridView implementation
29202         * QuestionEventHandler.cs: DataGridView implementation
29203         * DataGridViewCellStyleScopes.cs: DataGridView implementation
29204         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
29205         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
29206         * DataGridViewCell.cs: DataGridView implementation
29207         * DataGridViewCellEventArgs.cs: DataGridView implementation
29208         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
29209         * DataGridViewCellStyle.cs: DataGridView implementation
29210         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
29211         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
29212         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
29213         * TextFormatFlags.cs: DataGridView implementation
29214         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
29215         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
29216         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
29217         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
29218         * DataGridViewButtonColumn.cs: DataGridView implementation
29219         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
29220         * HandledMouseEventArgs.cs: DataGridView implementation
29221         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
29222         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
29223         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
29224         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
29225         * DataGridViewRowCollection.cs: DataGridView implementation
29226         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
29227         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
29228         * DataGridViewHitTestType.cs: DataGridView implementation
29229         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
29230         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
29231         * DataGridViewColumnEventHandler.cs: DataGridView implementation
29232         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
29233         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
29234         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
29235         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
29236         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
29237         * DataGridViewContentAlignment.cs: DataGridView implementation
29238         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
29239         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
29240         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
29241         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
29242         * DataGridViewPaintParts.cs: DataGridView implementation
29243         * DataGridViewCellCollection.cs: DataGridView implementation
29244         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
29245         * DataGridViewImageColumn.cs: DataGridView implementation
29246         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
29247         * DataGridViewElementStates.cs: DataGridView implementation
29248         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
29249         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
29250         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
29251         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
29252         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
29253         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
29254         * DataGridViewRowHeaderCell.cs: DataGridView implementation
29255         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
29256         * DataGridViewTextBoxCell.cs: DataGridView implementation
29257         * DataGridViewBand.cs: DataGridView implementation
29258         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
29259         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
29260         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
29261         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
29262         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
29263         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
29264         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
29265         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
29266         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
29267         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
29268         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
29269
29270 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
29271
29272         * ThemeWin32Classic.cs: 
29273           - Draw the outside focus rectangle around buttons
29274           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
29275             doesn't use end caps for every dash of a line anymore. This
29276             workaround ignores the forecolor.
29277
29278 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
29279
29280         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
29281           endian safe.
29282
29283 2005-11-07  Jackson Harper  <jackson@ximian.com>
29284
29285         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
29286
29287 2005-11-07  Jackson Harper  <jackson@ximian.com>
29288
29289         * ScrollableControl.cs: Calculate the maximum and change vars
29290         (more) correctly so that scrollbars appear as a sensible size.
29291
29292 2005-11-04  Jackson Harper  <jackson@ximian.com>
29293
29294         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
29295         collection.
29296         * TreeView.cs: When the tree is sorted null out the top_node so
29297         that it is recalculated.
29298         - Use dotted lines instead of dashed lines to match MS better.
29299
29300 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
29301
29302         * ListView.cs: 
29303           - Implements key search for items. Useful when browsing files with FileDialog
29304           - When changing view mode or when clear the items reset scrollbar positions
29305
29306 2005-11-04  Jackson Harper  <jackson@ximian.com>
29307
29308         * CurrencyManager.cs: Implement the MetaDataChanged event, the
29309         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
29310         as to what the method may do as there is no real way of creating a
29311         derived CurrencyManager and calling the method. 
29312
29313 2005-11-03  Jackson Harper  <jackson@ximian.com>
29314
29315         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
29316         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
29317         method which seems to just be used internally to refresh the tabs.
29318
29319 2005-11-03  Jackson Harper  <jackson@ximian.com>
29320
29321         * TabControl.cs: Implement the remove method. Fix some broken
29322         comments.
29323
29324 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
29325
29326         * DateTimePicker.cs:
29327           - Added missing DateTimePickerAccessibleObject class
29328           - Added missing events
29329           - Added OnFontChanged method
29330         * Form.cs: Added missing attributes
29331         * TreeView.cs: Added missing attributes
29332
29333 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
29334
29335         * GridItemCollection.cs: Fix signatures
29336
29337 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
29338
29339         * XplatUI.cs: Updated build rev/date
29340         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
29341           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
29342         * Application.cs: Trigger context-specific ExitThread events
29343
29344 2005-11-03  Jackson Harper  <jackson@ximian.com>
29345
29346         * Menu.cs:
29347         * MainMenu.cs:
29348         * GridTableStylesCollection.cs:
29349         * Timer.cs:
29350         * TabPage.cs:
29351         * HelpProvider.cs:
29352         * StatusBar.cs:
29353         * MonthCalendar.cs: Signature fixes
29354
29355 2005-11-03  Jackson Harper  <jackson@ximian.com>
29356
29357         * TreeNodeCollection.cs: Remove should not be virtual.
29358         * TreeView.cs: Implement the last of the missing methods.
29359
29360 2005-11-03  Jackson Harper  <jackson@ximian.com>
29361
29362         * TreeNodeConverter.cs: Implement to get off my class-status back.
29363
29364 2005-11-03  Jackson Harper  <jackson@ximian.com>
29365
29366         * TreeView.cs: Hookup the bits for drag and drop.
29367         * TreeNode.cs: Don't cache the tree_view or index anymore, now
29368         that nodes can be moved from tree to tree easily this just causes
29369         all sorts of problems.
29370         * TreeNodeCollection: Don't need to give treenodes an index and
29371         treeview anymore when they are added, these are computed on the
29372         fly. Also make sure to remove a node before its added.
29373
29374 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
29375
29376         * TextControl.cs:
29377           - Added CaretSelection enum
29378           - Added comparison methods to Marker struct, makes selection code
29379             more readable
29380           - Added SelectionStart and SelectionEnd as 'moveable' location for
29381             the CaretDirection enum and handler
29382           - Added selection_prev variable to track optimized invalidation for
29383             word and line selection
29384           - Added SelectionVisible property (returns true if there is a valid 
29385             selection)
29386           - Switched CaretHasFocus to only display the caret if there is no
29387             visible selection
29388           - Avoiding StringBuilder.ToString to retrieve a single char, instead
29389             using the direct character index; should be much faster
29390           - Added various conditional debug statements
29391           - Fixed invalidation calculation for selection ranges
29392           - Added ExpandSelection() method to support word and line selection
29393           - Switched SetSelectionToCaret to use new Marker compare overloads
29394           - Added central IsWordSeparator() method to determine word 
29395             separators/whitespace and FindWordSeparator() to streamline common
29396             usage of IsWordSeparator()
29397         * TextBoxBase.cs:
29398           - Removed unneeded grabbed variable, it was just mirroring
29399             Control.Capture
29400           - No longer firing OnTextChanged event when Text setter is called,
29401             since the base will fire the event for us
29402           - Added handling of Ctrl-Up/Down selection
29403           - Added handling of Shift-Cursorkey selection
29404           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
29405             words
29406           - Added handling of Shift and Ctrl-Shift-Home/End selection
29407           - Removed some debug output
29408           - Added handling for single/double/tripple-click to place caret/
29409             select word/select line respectively (Fixes bug #76031)
29410           - Added support for drag expansion of word/line selection
29411         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
29412           current selection
29413
29414 2005-11-02  Jackson Harper  <jackson@ximian.com>
29415
29416         * X11Dnd.cs: If the drag is going to and from a MWF window just
29417         copy the data instead of sending it out through the X Selection
29418         mechanism.
29419
29420 2005-11-02  Jackson Harper  <jackson@ximian.com>
29421
29422         * X11Dnd.cs:
29423         * XplatUIX11.cs: When in a drag we don't want motion notify
29424         messages to get passed on to the other controls. This prevents
29425         mouse move messages from showing up in the drag source.
29426
29427 2005-11-02  Jackson Harper  <jackson@ximian.com>
29428
29429         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
29430         the correct button is release to end a drag.
29431         * XplatUIX11.cs: Make the button state internal so the drag system
29432         can access it.  Dragging needs to know about all button releases,
29433         not just left button.
29434
29435 2005-11-02  Miguel de Icaza  <miguel@novell.com>
29436
29437         * Form.cs (Icon): If the icon is null, reset the icon to the
29438         default value. 
29439
29440         * Cursor.cs: When writing the AND-mask bitmap do not include the
29441         number of colors, but hardcode those to two (black and white),
29442         fixes the loading of color cursors (Paint Dot Net).
29443
29444         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
29445         turn off autoscaling.
29446
29447         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
29448
29449 2005-11-02  Jackson Harper  <jackson@ximian.com>
29450
29451         * X11Dnd.cs: Make sure to send a status message if the pointer
29452         enters a control that can not accept a drop, otherwise the cursor
29453         isn't updated correctly. Also tried to compress the lines of code
29454         a bit.
29455
29456 2005-11-02  Jackson Harper  <jackson@ximian.com>
29457
29458         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
29459         set actions correctly.  This isn't perfect as XDND and win32 have
29460         some differences on how you allow actions. I'll clear this up by
29461         adding a path for drag from MWF to MWF windows.
29462         * XplatUIX11.cs: Hook into the dnd system.
29463
29464 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
29465
29466         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
29467         previously shown but they are no longer need it. Very obvious when 
29468         browsing files with FileDialog.
29469
29470 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
29471
29472         * Control.cs: We always need to call OnPaintBackground. We pretty much
29473           ignore AllPaintingInWmPaint and always do the painting there, whether 
29474           it's set or not, since we always ignore the WM_ERASEBKGND message 
29475           (which we don't generate on X11). This fixes #76616.
29476         * Panel.cs: Removed unneeded background painting. This happens properly
29477           in Control.cs already
29478
29479 2005-10-31  Mike Kestner  <mkestner@novell.com>
29480
29481         * Menu.cs: Add items to collection before setting their index.
29482         * MenuItem.cs : add range checking with ArgumentException like MS.
29483         [Fixes #76510]
29484
29485 2005-10-31  Jackson Harper  <jackson@ximian.com>
29486
29487         * ListBox.cs: Invalidate if the area is visible at all not just
29488         contained in the visible rect. Fixes unselection of semi visible
29489         items.
29490
29491 2005-10-31  Jackson Harper  <jackson@ximian.com>
29492
29493         * Control.cs: Consistently name the dnd methods. Make them
29494         internal so we can override them to match some MS behavoir
29495         internally.
29496         * Win32DnD.cs: Use the new consistent names.
29497
29498 2005-10-31  Jackson Harper  <jackson@ximian.com>
29499
29500         * TreeView.cs: Don't draw the selected node when we lose focus.
29501
29502 2005-10-31  Jackson Harper  <jackson@ximian.com>
29503
29504         * X11Dnd.cs: We still need to reset the state even though a full
29505         reset isn't being done, otherwise status's still get sent all over
29506         the place.
29507
29508 2005-10-31  Jackson Harper  <jackson@ximian.com>
29509
29510         * Control.cs: Make the dnd_aware flag internal so the dnd
29511         subsystem can check it. Catch exceptions thrown in dnd handlers to
29512         match MS behavoir.
29513         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
29514         * X11Dnd.cs: Handle null data in the converters. Set the XDND
29515         version when sending a XdndEnter. Use the control/hwnd dnd_aware
29516         flags to reduce the number of dnd enters/status's sent.
29517
29518 2005-10-31  Jackson Harper  <jackson@ximian.com>
29519
29520         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
29521
29522 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
29523
29524         * PictureBox.cs: Fixes 76512
29525
29526 2005-10-28  Jackson Harper  <jackson@ximian.com>
29527
29528         * X11Dnd.cs: Early implementation to support winforms being a drag
29529         source for data on X11. Also restructured the converters so they
29530         can go both ways now.
29531         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
29532         
29533 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
29534
29535         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
29536           clipboard requests
29537
29538 2005-10-27  Jackson Harper  <jackson@ximian.com>
29539
29540         * TreeNode.cs: Implement serialization so my DnD examples will work.
29541
29542 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
29543
29544         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
29545           TreeView.cs: Don't dispose objects that are not owned.
29546           
29547 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
29548
29549         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
29550           should retrieve the current cursor and report that, but XplatUI
29551           doesn't (yet) have an interface for that (and I'm not sure I even
29552           can, on X11)
29553         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
29554           until any message loop processing is done (and the WM_SETCURSOR
29555           replaces the cursor to the proper one)
29556         * XplatUIX11.cs: 
29557           - Fixed override behaviour, we can't set the cursor globally on X11, 
29558             just for our windows.
29559           - Invalidating the System.Drawing X11 display handle when we are
29560             shutting down
29561         * Control.cs: Fix to make csc happy
29562
29563 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
29564
29565         * TextBoxBase.cs: 
29566           - get_Text: Add last line (without trailing newline) to returned
29567             value (Fixes 76212)
29568           - get_TextLength: Count last line in returned length
29569           - ToString: Call Text property instead of duplicating code
29570
29571 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
29572
29573         * ImageList.cs: Dispose ImageAttributes objects.
29574
29575 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
29576
29577         * ImageList.cs: Use attribute constructors with less arguments where
29578           possible.
29579
29580 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
29581
29582         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
29583           Use typeof instead of strings when assembly is referenced. Added
29584           some more comments.
29585
29586 2005-10-21  Jackson Harper  <jackson@ximian.com>
29587
29588         * ListView.cs: Raise a double click event. Also tried to somewhat
29589         fix when the selectedindexchanged event is raised. Its still
29590         broken though.
29591
29592 2005-10-21  Jackson Harper  <jackson@ximian.com>
29593
29594         * TreeView.cs: New method to invalidate the plus minus area of a
29595         node without invalidating the whole node (maybe this can be used
29596         in some more places).
29597         * TreeNodeCollection.cs: When adding to an empty node we need to
29598         invalidate its plus minus area so the little block shows up.
29599         
29600 2005-10-21  Jackson Harper  <jackson@ximian.com>
29601
29602         * TreeView.cs: Make sure that when we invalidate a node the bounds
29603         are big enough to cover the selected box and the focus
29604         rectangle. Use a different colour for the lines connecting nodes
29605         so they show up with all themes.
29606
29607 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
29608
29609         * NativeWindow.cs: Don't call anything that could call into the driver,
29610           we might be on a different thread.
29611
29612 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
29613
29614         * Control.cs(Dispose): Since Dispose might run on a different thread,
29615           make sure that we call methods that could call into the driver via
29616           invoke, to avoid thread issues
29617
29618 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
29619
29620         * XplatUI.cs: Removed finalizer
29621         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
29622           not allowing to be called on the finalizer thread.
29623
29624 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
29625
29626         * ImageList.cs:
29627           - Reverted r51889 and r51891.
29628           - Added ImageListItem class that stores unmodified image items and image
29629             properties required to create list images until handle is created.
29630           - Added AddItem and moved image creation logic to AddItemInternal.
29631           - Added CreateHandle method that creates images based on unmodified items.
29632           - Added DestroyHandle that changes state to store unmodified items.
29633           - Add and AddStrip methods no more create handle.
29634           - ReduceColorDepth has no return value.
29635           - Dispose destroys handle.
29636           - Modified other methods to reflect the above changes.
29637           - Implemented key support.
29638           - Added profile 2.0 members and attributes.
29639           - Added private Reset and ShouldSerialize methods that provide the same
29640             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
29641             them as they are private.
29642           - Added some more comments about implementation details.
29643
29644 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
29645
29646         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
29647
29648 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
29649
29650         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
29651
29652 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
29653
29654         * DataGridDrawingLogic.cs: Fixes column hit calcultation
29655         * DataGridColumnStyle.cs: Remove debug message
29656
29657 2005-10-20  Jackson Harper  <jackson@ximian.com>
29658
29659         * TreeView.cs: We can always get input keys regardless of whether
29660         or not editing is enabled. They are used for navigation.
29661
29662 2005-10-20  Jackson Harper  <jackson@ximian.com>
29663
29664         * TreeNode.cs: Use the viewport rect for determining if a node
29665         needs to be moved for visibility. Don't use Begin/End edit. This
29666         calls a full refresh when its done.
29667         * TreeView.cs: New SetBottom works correctly.  Make the viewport
29668         rect property internal so the treenodes can see it. When clicking
29669         on a node we need to ensure that its visible because it might just
29670         be partly visible when clicked.
29671
29672 2005-10-20  Jackson Harper  <jackson@ximian.com>
29673
29674         * TreeNodeCollection.cs: Remove debug code.
29675
29676 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
29677
29678         * Datagrid.cs: Implements column sorting in Datagrid
29679         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
29680
29681 2005-10-20  Jackson Harper  <jackson@ximian.com>
29682
29683         * TreeNodeCollection.cs: Remove items properly. Update the correct
29684         area after removing them.
29685
29686 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
29687
29688         * Datagrid.cs: Should not call base.OnPaintBackground
29689
29690 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
29691
29692         * XplatUIX11.cs (GetMessage):
29693           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
29694             window instead of client window
29695           - Now properly calculates NC_xBUTTONUP message coordinates
29696           - ScreenToMenu now properly calculates it's coordinates of whole 
29697             window, since menus are in the whole window, not in the client
29698             window
29699           - Added WholeToScreen coordinate translation method
29700
29701 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
29702
29703         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
29704           want to return a message, loop back to the beginning of the function
29705           and grab the next real message to process instead.
29706
29707 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
29708
29709         * Splitter.cs: Properly set limits if no filler control is used
29710
29711 2005-10-19  Jackson Harper  <jackson@ximian.com>
29712
29713         * ColorDialog.cs: Don't show the help button if it is not enabled
29714         instead of disabling it (this is what MS does). Don't create the
29715         panel until the dialog is run, otherwise the vars (such as
29716         ShowHelp) are not set yet.
29717
29718 2005-10-19  Jackson Harper  <jackson@ximian.com>
29719
29720         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
29721         are reduced when adding nodes.
29722         * TreeNode.cs:
29723         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
29724         tree.
29725         
29726 2005-10-19  Jackson Harper  <jackson@ximian.com>
29727
29728         * FolderBrowserDialog.cs: End editing our treeview so the window
29729         actually gets refreshed.
29730
29731 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
29732
29733         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
29734           Obsoleted handling of WM_ERASEBKGND, now always draws our background
29735           inside of WM_PAINT
29736
29737 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
29738
29739         * MenuAPI.cs: Returns after Hidding window
29740         * XplatUIX11.cs: Added TODO found while debugging menu issues
29741
29742 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
29743
29744         * XplatUIX11.cs: Do not re-map the whole window when it's size
29745           becomes non-zero unless it's supposed to be actually visible
29746
29747 2005-10-18  Jackson Harper  <jackson@ximian.com>
29748
29749         * TreeView.cs: We don't need to keep a count anymore.
29750         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
29751         use the Grow method.
29752
29753 2005-10-18  Jackson Harper  <jackson@ximian.com>
29754
29755         * TreeNodeCollection.cs: Insert is not supported on arrays, so
29756         implement it manually here.
29757
29758 2005-10-18  Jackson Harper  <jackson@ximian.com>
29759
29760         * ImageList.cs: Dont kill the list when the colour depth is
29761         changed, just change the colour depth of all the images.
29762         - Same goes for setting the image size. Just resize them all
29763         instead of killing the list softly.
29764
29765 2005-10-18  Jackson Harper  <jackson@ximian.com>
29766
29767         * Control.cs: Don't invalidate empty rectangles.
29768
29769 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
29770
29771         * ListViewItem.cs:
29772           - Adds checked item to the Checked/Item lists (where empty before)
29773           - Do not add items to the Selected lists if they are already present
29774         * ListView.cs:
29775           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
29776           - When deleting items make sure that we delete them for the Selected
29777           and Checked list also.
29778
29779 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
29780
29781         * Label.cs: Dispose objects no longer used
29782         * ThemeWin32Classic.cs: Dispose objects no longer used
29783
29784 2005-10-18  Jackson Harper  <jackson@ximian.com>
29785
29786         * TabControl.cs: Don't refresh the whole control when the tabs are
29787         scrolled, we just need to refresh the tab area.
29788
29789 2005-10-17  Jackson Harper  <jackson@ximian.com>
29790
29791         * XplatUIX11.cs: Compress code a little bit. Only calculate the
29792         after handle when we need it.
29793
29794 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
29795
29796         * Control.cs: When the parent size changes, recalculate anchor 
29797           positions. Partial fix for #76462
29798
29799 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
29800
29801         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
29802           drawn. Fixes #76462
29803
29804 2005-10-17  Jackson Harper  <jackson@ximian.com>
29805
29806         * MonthCalendar.cs: Don't create the numeric up down until our
29807         handle is created. Otherwise our handle is created in the
29808         constructor and we don't know if we are a WS_CHILD or WS_POPUP
29809         yet.
29810
29811 2005-10-17  Jackson Harper  <jackson@ximian.com>
29812
29813         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
29814         correctly.
29815
29816 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
29817         * TreeNode.cs : small logical fix (was using local var instead of field)
29818         
29819 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
29820
29821         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
29822
29823 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
29824
29825         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
29826
29827 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
29828
29829         * Control.cs: 
29830           - Re-implemented anchoring code. My first version was really broken.
29831             This fixes bug #76033. Unlike the previous implementation we will
29832             no longer have round errors since all numbers are calculated from
29833             scratch every time. Removed various anchor-related obsolete vars.
29834           - InitLayout no longer causes layout event firing and layout to be 
29835             performed
29836
29837 2005-10-16  Jackson Harper  <jackson@ximian.com>
29838
29839         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
29840         which was broken).
29841
29842 2005-10-16  Jackson Harper  <jackson@ximian.com>
29843
29844         * TabControl.cs: Remove debug code.
29845
29846 2005-10-16  Jackson Harper  <jackson@ximian.com>
29847
29848         * XEventQueue.cs: Increase the default queue size (very simple
29849         apps needed to grow the queue).
29850         * Hwnd.cs: No finalizer so we don't need to suppress
29851         finalization. Compute the invalid area manually so a new rectangle
29852         does not newto be created.
29853         * ScrollableControl.cs: Don't set any params (otherwise visibility
29854         isn't set correctly).
29855         * MdiChildContext.cs: New constructor takes the mdi parent so it
29856         doesn't have to be computed and avoids a crash on windows. Draw
29857         the window icon properly, and allow the text to be seen.
29858         * Form.cs: Use new MdiChildContext constructor. Make sure the
29859         child context isn't null in wndproc.
29860         * TabControl.cs: Don't set focus, this is muddling keyboard
29861         behavoir. Expand the tab rows when a window size increase will
29862         allow extra tabs to be seen. Don't allow tabs smaller than the
29863         width of a window to be scrolled out of view.
29864         * TreeNode.cs:
29865         * TreeView.cs: Use measure string to calculate a nodes width, the
29866         width is cached and only updated when the text or the font is
29867         changed. Don't check for expand/collapse clicks on the first level
29868         nodes if root lines are disabled.
29869         
29870 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
29871
29872         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
29873
29874 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
29875
29876         * DataGridBoolColumn.cs: fixes warning
29877
29878 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
29879
29880         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
29881         to match more to match more precisely the MS Net behavior
29882
29883 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
29884
29885         * Hwnd.cs: Added field to track if window is mapped
29886         * XplatUIX11.cs: 
29887           - Unmap windows if they become 0-size, re-map when 
29888             they are >0 again; fixes #76035
29889           - Re-set our error handler after initializing X11Desktop
29890             to override any error handlers Gtk or whatever was called
29891             may have set.
29892
29893 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
29894
29895         * CheckedListBox.cs: Removed unused vars
29896         * ListView.cs: Fixed signatures
29897         * RichTextBox.cs: Removed unused vars
29898         * TextBoxBase.cs: Removed unused vars
29899         * XplatUIWin32.cs: Removed unused vars
29900         * XplatUIX11.cs: Removed unused vars
29901         * XplatUI.cs: Updated version and date to latest published
29902
29903 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
29904
29905         * Cursor.cs: Added private .ctor to work around a bug in
29906           resourceset (Thanks to Geoff Norton for the help on this)
29907         * SplitterEventArgs.cs: Made fields accessible so we don't
29908           waste boatloads of objects and can reuse the same one
29909           in Splitter
29910         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
29911           any captions and borders when generating screen coordinates
29912         * Splitter.cs: Reimplemented control, now fully complete, uses
29913           rubberband drawing, supports and obeys all properties, has
29914           proper cursors
29915
29916 2005-10-13  Miguel de Icaza  <miguel@novell.com>
29917
29918         * Form.cs (Form): Setup default values for autoscale and
29919         autoscale_base_size;  Make these instance variables, not static
29920         variables. 
29921
29922         (OnLoad): on the first load, adjust the size of the form.
29923
29924 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
29925
29926         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
29927           width argument to DrawReversibleRectangle()
29928         * XplatUIWin32.cs, XplatUIX11.cs: 
29929           - Implemented width for DrawReversibleRectangle()
29930           - Added logic to DrawReversibleRectangle that recognizes a zero
29931             width or height and only draws a line in that situation
29932         
29933 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
29934
29935         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
29936         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
29937         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
29938           method (it uses our FosterParent window to get a graphics context)
29939
29940 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
29941
29942         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
29943           and SetWindowBackground methods
29944         * Control.cs:
29945           - Setting proper ControlStyles
29946           - We no longer call XplatUI.SetWindowBackground and XplatUI.
29947             EraseWindowBackground, instead we draw the window background
29948             ourselves in PaintControlBackground. This behaviour is
29949             required to match MS, where, when OnPaintBackground is not
29950             called, the background is not drawn.
29951           - Removed unneeded Refresh() in set_Text
29952         * Hwnd.cs: Dropped the ErasePending support. No longer needed
29953         * XplatUIX11.cs:
29954           - Created DeriveStyles method to translate from CreateParams to
29955             FormBorderStyle and TitleStyle, also handles BorderStyle (which
29956             matches FormBorderStyle enum values)
29957           - Consolidated SetHwndStyles and CalculateWindowRect border/title
29958             style calculations into single DeriveStyles method
29959           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
29960             from redrawing the whole window on any resize or expose.
29961           - Fixed CreateWindow usage of SetWindowValuemask. Before not
29962             all styles were applied to our whole/client window appropriately
29963           - Removed EraseWindowBackground() and SetWindowBackground() methods
29964           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
29965             no longer clear/redraw the background through X
29966           - Removed handling of erase_pending bit, we have no use for it (or
29967             so it seems)
29968         * XplatUIOSX.cs:
29969           - Removed generation and handling of WM_ERASEBKGND message
29970           - Removed EraseWindowBackground() and SetWindowBackground() methods
29971           - Removed handling of hwnd.ErasePending flag
29972         * XplatUIWin32.cs:
29973           - Removed EraseWindowBackground() and SetWindowBackground() methods
29974           - We no longer call EraseWindowBackground on PaintEventStart, we 
29975             ignore the fErase flag, erasing is handled in Control in the
29976             background handler
29977         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
29978           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
29979           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
29980           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
29981           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
29982           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
29983           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
29984
29985 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
29986
29987         * PropertyGrids.cs: Get sub properties
29988         * PropertyGridView.cs: Fix drawing code
29989
29990 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
29991
29992         * ListBox.cs: Fixes 76383
29993
29994 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
29995
29996         * DataGridTextBoxColumn.cs: Sets location and size before attachment
29997         * ThemeWin32Classic.cs: Fixes border drawing and calculations
29998         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
29999
30000
30001 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
30002
30003         * ComboBox.cs: Fixes border drawing
30004
30005 2005-10-10  Miguel de Icaza  <miguel@novell.com>
30006
30007         * MimeIcon.cs: Ignore errors if the file can not be read.
30008
30009 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
30010
30011         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
30012          - Fixed border calculations
30013          - Fixed horizontal scrolling in single column listboxes
30014          - Fixed drawing issues
30015
30016 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
30017
30018         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
30019           FormBorderStyle enum
30020         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
30021           code to determine FormBorderStyles from CreateParams
30022         * Form.cs:
30023           - Fixed bug where we'd set the wrong window styles if we were
30024             not creating an MDI window
30025           - Added call to XplatUI.SetBorderStyle when form borders are set
30026         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
30027         * Hwnd.cs:
30028           - Removed obsolete edge style
30029           - Switched from BorderStyle to FormBorderStyle
30030         
30031 2005-10-10  Jackson Harper  <jackson@ximian.com>
30032
30033         * Form.cs: Use the property to get the window handle instead of
30034         accessing it directly. Prevents a null reference exception.
30035
30036 2005-10-10  Jackson Harper  <jackson@ximian.com>
30037
30038         * TreeView.cs: Don't adjust the rect given to DrawString now that
30039         our libgdiplus draws correctly.
30040
30041 2005-10-08  Jackson Harper  <jackson@ximian.com>
30042
30043         * TreeView.cs: Don't try to find the clicked on node if there are
30044         no nodes in the tree.
30045
30046 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
30047
30048         * RichTextBox.cs:
30049
30050           restore
30051
30052 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
30053
30054         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
30055           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
30056           ErrorProvider.cs:
30057           Use ResPool for brushes and dispose System.Drawing objects that
30058           are not used anymore.
30059
30060 2005-10-07  Jackson Harper  <jackson@ximian.com>
30061
30062         * MdiChildContext.cs: Use the new borders instead of drawing them
30063         ourselves.
30064
30065 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
30066
30067         * Calling UpdateBounds after changing the window's BorderStyle 
30068         since the style can change the ClientSize
30069
30070 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30071
30072         * Control.cs: Made PaintControlBackground virtual
30073         * Panel.cs: Overriding PaintControlBackground instead of using paint
30074           event; paint event method was interfering with 'real' users of the
30075           event.
30076
30077 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
30078
30079         * ThemeWin32Classic.cs: remove border drawing since it is handled
30080         by the base control class now and was causing double border drawing.
30081
30082 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30083
30084         * Panel.cs: Redraw our background on paint. Not a pretty solution,
30085           but it does seem to match MS behaviour. This fixes bug #75324
30086
30087 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30088
30089         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
30090           somewhat hackish looking
30091
30092 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
30093
30094         * TextBoxBase.cs:
30095           - We now accept Enter even if AcceptEnter is false, if the containing
30096             form does not have an AcceptButton configured (fixes bug #76355)
30097           - Calculations are now fixed to no longer use Width/Height, but
30098             ClientSize.Width/Height, since we now support borders (this was
30099             a result of fixing borders and therefore bug #76166)
30100           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
30101             true (fixes bug #76354)
30102         
30103 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30104
30105         * Control.cs: 
30106           - Defaulting BorderStyle and setting it in XplatUI when our window 
30107             is created
30108           - Added enum check to InternalBorderStyle setter
30109         * XplatUIX11.cs: 
30110           - Added drawing of window borders
30111           - Now properly calculates WM decorations offset for toplevel 
30112             windows (fixes bug #74763)
30113         * XplatUIWin32.cs: 
30114           - Implemented BorderStyles for windows (we're letting win32 draw 
30115             the border for us)
30116           - Fixed the signature for SetWindowLong
30117         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
30118           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
30119           setting borders
30120         * UpDownBase.cs: Remove drawing of borders, this is handled by
30121           the driver, outside the client area
30122         * ListView.cs: Removed bogus border calculations. The control should
30123           be oblivious to borders, since those are not part of the client
30124           area. 
30125         * X11DesktopColors.cs: Commented out (currently) unneeded variables
30126         * ThemeWin32Classic.cs: Removed border calculations from ListView 
30127           drawing code
30128
30129 2005-10-06  Jackson Harper  <jackson@ximian.com>
30130
30131         * MdiChildContext.cs: Clear out the old virtual position remove
30132         all the unneeded calls to CreateGraphics.
30133
30134 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
30135
30136         * TextControl.cs: Use proper color for highlighted text; fixes #76350
30137
30138 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
30139
30140         * Form.cs: 
30141           - Added loading and setting of our new default icon
30142           - Only set icon if window is already created
30143
30144 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
30145
30146         * Label.cs:
30147           - Do not explicitly set the foreground and background colors, to
30148             allow inheriting from parents (fixes #76302)
30149           - Use Control's InternalBorderStyle property to deal with borders
30150
30151 2005-10-06  Jackson Harper  <jackson@ximian.com>
30152
30153         * MdiChildContext.cs: Use the new xplatui function to draw a
30154         reversible rect.
30155
30156 2005-10-06  Jackson Harper  <jackson@ximian.com>
30157
30158         * Form.cs: Add the parent before creating the child context cause
30159         we need the parent when setting up the child.
30160
30161 2005-10-06  Jackson Harper  <jackson@ximian.com>
30162
30163         * FolderBrowserDialog.cs: redo the tree population code so a
30164         second thread isn't used. Should be a lot faster and more stable
30165         now.
30166
30167 2005-10-05  Jackson Harper  <jackson@ximian.com>
30168
30169         * TreeView.cs: There are no expand/collapse boxes if the node has
30170         no children.
30171
30172 2005-10-05  Jackson Harper  <jackson@ximian.com>
30173
30174         * X11DesktopColors.cs: Get menu colours for the gtk theme.
30175
30176 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
30177
30178         * FileDialog.cs: Fix InitialDirectory
30179
30180 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
30181
30182         * ComboBox.cs:
30183                 - Fixes changing between styles
30184                 - Fixes simple mode
30185                 - Fixes last item crashing when navigating with keyboard
30186
30187 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
30188
30189         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
30190
30191 2005-10-05  Jackson Harper  <jackson@ximian.com>
30192
30193         * TreeView.cs: If updating the root node do a full refresh.
30194         * TreeNode.cs: The root node should be expanded by default. Also
30195         added a utility prop to tell if we are the root node.
30196         * TreeNodeCollection.cs: Only refresh if the node we are being
30197         added to is expanded. Also added a comment on a potential
30198         optimization.
30199         
30200 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
30201
30202         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
30203           in dispose method. Fixes #76330
30204
30205 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
30206
30207         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
30208
30209                 - Implements vertical and horizontal scrolling using XplatUI
30210                 - Fixes keyboard navagation
30211                 - Fixes EnsureVisible
30212                 - Drawing fixes
30213                 - Handles and draws focus properly
30214
30215
30216 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
30217
30218         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
30219           Create handle. NET_2_0: Destroy handle when value is null.
30220
30221 2005-10-03  Jackson Harper  <jackson@ximian.com>
30222
30223         * ScrollBar.cs: My last scrollbar patch was broken. This is a
30224         revert and a new patch to prevent the thumb from refreshing so
30225         much.
30226
30227 2005-10-02  Jackson Harper  <jackson@ximian.com>
30228
30229         * ScrollBar.cs: Don't update position if it hasn't actually
30230         changed. This occurs when you hold down the increment/decrement
30231         buttons and the thumb gets to the max/min.
30232
30233 2005-10-01  Jackson Harper  <jackson@ximian.com>
30234
30235         * Form.cs:
30236         * MdiChildContext.cs:
30237         * MdiClient.cs: Implement ActiveMdiChild in Form.
30238
30239 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
30240
30241         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
30242
30243 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
30244
30245         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
30246           be found
30247
30248 2005-09-30  Jackson Harper  <jackson@ximian.com>
30249
30250         * ListBox.cs: Don't do a full refresh unless some data has
30251         actually changed.
30252
30253 2005-09-30  Jackson Harper  <jackson@ximian.com>
30254
30255         * TreeView.cs: Make sure that the checkboxes size is factored in
30256         even when not visible.
30257
30258 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
30259
30260         * FileDialog.cs: Fix Jordi's build break
30261
30262 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
30263
30264         * FileDialog.cs: 
30265                 - Use standard the Windows colours for the combobox as espected
30266                 - Dispose objects that use resouces when no longer need them
30267
30268 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
30269
30270         * X11DesktopColors.cs: Initial incomplete implementation
30271         * XplatUIX11.cs: Added call to initialize X11DesktopColors
30272
30273 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
30274
30275         * Theme.cs: 
30276           - Switched Theme color names to match the names defined in 
30277             System.Drawing.KnownColors. Life's hard enough, no need to make 
30278             it harder.
30279           - Added setters to all theme color properties so themes can set
30280             their color schemes. The setters also propagate the color changes
30281             to System.Drawing.KnownColors via reflection
30282         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
30283           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
30284           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
30285           use the new, more logical theme color names
30286         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
30287           post-NT colors
30288         * ThemeWin32Classic.cs:
30289           - Removed code to set the old classic Windows colors. Instead it
30290             now relies on the colors returned by System.Drawing.KnownColors
30291             which will be either modern static colors (Unix) or colors
30292             read from the user's configuration (Win32)
30293           - Updated to use the new, more logical theme color names
30294           - Switched DataGrid drawing code to use only Theme colors instead of
30295             a mix of System.Drawing.KnownColors and Theme colors
30296           - DrawFrameControl(): Removed code that fills the button area, the
30297             fill would overwrite any previous fill done by a control. This
30298             fixes bug #75338 
30299           - Added DrawReversibleRectangle() stub
30300         * ScrollableControl.cs: Set visible state to false when scrollbars
30301           are removed (pdn fix)
30302         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
30303           DrawReversibleRectangle() method to allow drawing primitive 
30304           'rubber bands'
30305         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
30306
30307 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
30308
30309         * ImageList.cs: Add(Icon): Create handle.
30310
30311 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
30312
30313         * ListView.cs:
30314         * ThemeWin32Classic.cs:
30315                 - Fixes detail mode
30316                 - Sets clippings
30317                 - Issues with drawing
30318
30319 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
30320
30321         * ImageList.cs: Moved RecreateHandle back to ImageList as event
30322           source has to be the ImageList.
30323
30324 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
30325
30326         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
30327
30328 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
30329
30330         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
30331
30332 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
30333
30334         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
30335
30336 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
30337         * GridItem.cs: Fixed TODOs
30338         * GridItemCollection.cs: Added ICollection interface
30339
30340 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
30341
30342         * ImageList.cs: Resize icons when needed.
30343
30344 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
30345
30346         * ListViewItem.cs
30347                 - Fixes GetBounds and returns on screen rects
30348         * ListView.cs:
30349                 - Fixes vertical and horzintal scrolling of items
30350         * ThemeWin32Classic.cs:
30351                 - Fixes drawing
30352                 
30353 2005-09-29  Raja R Harinath  <harinath@gmail.com>
30354
30355         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
30356
30357 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
30358
30359         * ImageList.cs: Added comments about handle creation. Moved Handle,
30360           HandleCreated and OnRecreateHandle implementations to ImageCollection.
30361           Handle is created in Add methods.
30362
30363 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
30364          
30365         * DataGridDrawingLogic.cs: 
30366                 - Takes rows into account on Colum calculations
30367                 - Returns the column when clickig
30368         * DataGrid.cs:
30369                 - Fixes default HitTestInfo values
30370                 - Fixes HitTestInfo.ToString
30371                 - Fixes ResetBackColor          
30372         
30373 2005-09-28  Jackson Harper  <jackson@ximian.com>
30374
30375         * MdiChildContext.cs: Obey rules for fixed sized windows (no
30376         sizing or cursor changes). Also added some temp code to draw the
30377         titlebars text (Makes dev a little easier).
30378
30379 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
30380
30381         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
30382
30383 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
30384          
30385         * ListBox.cs: Fixes bug 76253
30386
30387 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
30388
30389         * ImageList.cs: Added comments about the current implementation. Added
30390           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
30391           Format32bppArgb to preserve transparency and can use Graphics.FromImage
30392           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
30393           with Bitmap.LockBits for better performance. Revised the whole file to
30394           match MS.NET behaviour and provide better performance. Non-public
30395           interface members are calling public members even when they throw
30396           NotSupportedException for better maintainability. Moved ColorDepth,
30397           ImageSize, ImageStream and TransparentColor implementations to
30398           ImageCollection for better performance as these properties are not used
30399           by ImageList.
30400         * ImageListStreamer.cs: Added a new internal constructor that takes an
30401           ImageList.ImageCollection and serializes Images based on
30402           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
30403           match ImageList property name.
30404
30405 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
30406
30407         * ListBox.cs: Fixes IndexFromPoint for last item
30408
30409 2005-09-27  Jackson Harper  <jackson@ximian.com>
30410
30411         * Form.cs: Set the position of new mdi children correctly.
30412
30413 2005-09-27  Jackson Harper  <jackson@ximian.com>
30414
30415         * MdiClient.cs: New mdi children need to be added to the back of
30416         the controls collection so the zorder is set correctly. Also add a
30417         count of all the child windows that have been created.
30418
30419 2005-09-27  Jackson Harper  <jackson@ximian.com>
30420
30421         * Form.cs (CreateParams): Setup MDI forms correctly.
30422
30423 2005-09-27  Jackson Harper  <jackson@ximian.com>
30424
30425         * MdiChildContext.cs:
30426         * MonthCalendar.cs:
30427         * UpDownBase.cs:
30428         * ListBox.cs:
30429         * ListView.cs:
30430         * TextBoxBase.cs:
30431         * TreeView.cs:
30432         * ScrollableControl.cs:
30433         * ComboBox.cs: Add implicit controls using the new implict control
30434         functionality in ControlCollection. Also try to block multiple
30435         control add in a suspend/resume layout to save some cycles.
30436         
30437 2005-09-27  Jackson Harper  <jackson@ximian.com>
30438
30439         * Control.cs: Add functionality to the controls collection to add
30440         'implicit controls' these are controls that are created by the
30441         containing control but should not be exposed to the user. Such as
30442         scrollbars in the treeview.
30443         * Form.cs: The list var of the ControlsCollection is no longer
30444         available because of the potential of implicit controls getting
30445         ignored by someone accessing the list directly.
30446
30447 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
30448
30449         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
30450           loose it's parent. (Fixed bug introduced in r49103 when we added
30451           setting the child parent to null on Remove)
30452
30453 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
30454
30455         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
30456         * Splitter.cs: Added missing attributes for BorderStyle property.
30457         * TextBoxBase.cs: Marked Calculate* methods internal.
30458         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
30459         MS.NET.
30460
30461 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
30462          
30463         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
30464
30465 2005-09-25  Jackson Harper  <jackson@ximian.com>
30466
30467         * TreeView.cs: Update the node bounds correctly regardless of
30468         whether the node is visible.
30469
30470 2005-09-25  Jackson Harper  <jackson@ximian.com>
30471
30472         * ImageList.cs: Don't dispose the image after it is added to the
30473         image list. Only reformat images that need to be resized.
30474
30475 2005-09-25  Jackson Harper  <jackson@ximian.com>
30476
30477         * ImageList.cs: Don't set the format when changing the image.
30478
30479 2005-09-25  Jackson Harper  <jackson@ximian.com>
30480
30481         * TreeView.cs: We can't just assume the node has a font. Use the
30482         treeviews font if no node font is available.
30483
30484 2005-09-25  Jackson Harper  <jackson@ximian.com>
30485
30486         * TreeView.cs: Allow the scrollbars to be reset with negative
30487         values.
30488         - Don't add scrollbars to negative sized windows.
30489
30490 2005-09-23  Jackson Harper  <jackson@ximian.com>
30491
30492         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
30493         old Mono.Posix. Also remove some stray code that shouldn't have
30494         been committed.
30495
30496 2005-09-23  Jackson Harper  <jackson@ximian.com>
30497
30498         * TreeView.cs: Attempt at proper sizing of the horizontal
30499         scrollbar. Also don't resize the scrollbars unless they are
30500         visible.
30501
30502 2005-09-23  Jackson Harper  <jackson@ximian.com>
30503
30504         * TreeView.cs: We don't need to expand the invalid area when the
30505         selection changes, as this is all drawn in the node's bounding
30506         box. The area needs to be expanded (previous typo was contracting
30507         it) when the focus rect moves.
30508
30509 2005-09-23  Jackson Harper  <jackson@ximian.com>
30510
30511         * TreeView.cs: Display the selection box under the correct
30512         circumstances. We were rendering white text with no selection box
30513         before.
30514
30515 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
30516
30517         * TextControl.cs(Split): Now updates selection start/end if it points 
30518           into a line that's being split. Fixes a FIXME and bug #75258
30519
30520 2005-09-23  Jackson Harper  <jackson@ximian.com>
30521
30522         * Binding.cs:
30523         * ListControl.cs: Don't use the path when retrieving binding
30524         managers from the binding context. My bat sense tells me that the
30525         path is only used on insertion.
30526
30527 2005-09-22  Jackson Harper  <jackson@ximian.com>
30528
30529         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
30530
30531 2005-09-22  Jackson Harper  <jackson@ximian.com>
30532
30533         * Splitter.cs: There are special cursors used for splitting.
30534         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
30535
30536 2005-09-22  Jackson Harper  <jackson@ximian.com>
30537
30538         * Splitter.cs: Change the cursor appropriately when the splitter
30539         is moused over, so the user actually knows there is a splitter
30540         there.
30541
30542 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
30543
30544        * Label.cs : Fix ToString method to give same output as MS.NET
30545
30546 2005-09-22  Jackson Harper  <jackson@ximian.com>
30547
30548         * TreeView.cs: Create the scrollbars when the handle is created
30549         and add them right away, just make them invisble. Also account for
30550         the window being shrunk vertically to the point that the vert
30551         scrollbar needs to be added.
30552         - Remove some 0.5 adjustments to get around anti aliasing issues.
30553         
30554 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
30555          
30556         * MainMenu.cs: Fixes default value
30557         * MenuItem.cs: Fixes default value
30558
30559 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
30560
30561         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
30562
30563 2005-09-21  Jackson Harper  <jackson@ximian.com>
30564
30565         * Control.cs: Don't try to set the border style on the window if
30566         it hasn't been created. When the window is created the border
30567         style will be used.
30568
30569 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
30570
30571         * Control.cs (Update): Don't call XplatUI if we don't have a
30572           window handle yet
30573
30574 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
30575
30576         * ContainerControl.cs: Instead of throwing an exception, print
30577           a one-time warning about Validate not being implemented
30578         * XplatUIWin32.cs: Removed debug output
30579
30580 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
30581
30582         * Control.cs: Only set XplatUI background if we expect the windowing
30583           system to handle the background. This stops controls that draw their
30584           own background from flickering
30585
30586         * XplatUIX11.cs: Support custom visuals and colormaps for window 
30587           creation. This allows, amongst other things, using MWF X11 windows 
30588           with OpenGL.
30589
30590 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
30591
30592         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
30593           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
30594           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
30595           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
30596           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
30597           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
30598           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
30599           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
30600           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
30601           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
30602           GridColumnStylesCollection.cs, 
30603           IDataGridColumnStyleEditingNotificationService.cs,
30604           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
30605           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
30606           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
30607           TreeNodeCollection.cs, AmbientProperties.cs, 
30608           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
30609           DataObject.cs, ErrorProvider.cs, Splitter.cs,
30610           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
30611           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
30612           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
30613           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
30614           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
30615           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
30616           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
30617           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
30618           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
30619           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
30620           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
30621           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
30622           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
30623           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
30624           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
30625           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
30626           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
30627           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
30628           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
30629           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
30630           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
30631           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
30632           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
30633           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
30634           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
30635           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
30636           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
30637           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
30638           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
30639           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
30640           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
30641           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
30642           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
30643           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
30644           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
30645
30646 2005-09-21  Jackson Harper  <jackson@ximian.com>
30647
30648         * TreeNode.cs: Call Before/After Expand not Collapse when
30649         expanding.
30650
30651 2005-09-20  Jackson Harper  <jackson@ximian.com>
30652         
30653         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
30654
30655 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
30656          
30657         * ListViewItem.cs:
30658                 - Fixes bug 76120
30659                 - Fixes proper storing of subitems
30660                 - Fixes not updated items
30661
30662 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
30663
30664         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
30665           things if our window handle isn't created yet. Also disabled 
30666           debug for TextBoxBase
30667
30668 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
30669
30670         * MenuAPI.cs: Remove filtering of events to allow menu usage
30671
30672 2005-09-20  Miguel de Icaza  <miguel@novell.com>
30673
30674         * Cursor.cs: Allow null to be passed to Cursor.Current.
30675
30676 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
30677
30678         * ThemeWin32Classic.cs:
30679           - Change some private methods/fields to protected virtual so that 
30680             they can be accessed and overriden in derived classes
30681           - First refactoring of some methods. Derived themes now don't 
30682             need to duplicate the complete code from ThemeWin32Classic
30683         * ThemeNice.cs:
30684           - Added nice StatusBar
30685           - Derive from ThemeWin32Classic and not Theme
30686           - Removed duplicate ThemeWin32Classic code
30687
30688 2005-09-20  Miguel de Icaza  <miguel@novell.com>
30689
30690         * Control.cs (ControlCollection.Add): If the value null is passed
30691         the control is ignored. 
30692
30693         Optimize this loop.
30694
30695 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
30696
30697         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
30698           PostQuitMessage state.
30699         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
30700
30701 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
30702
30703         * Application.cs: Our constructor will never get called, move 
30704           initialization to fields; fixes bug #75933
30705
30706 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
30707
30708         * FileDialog.cs :
30709                 - Allow files to be selected properly using file name
30710                 combo box.
30711                 - Add ability to change diretory (absolute / relative)
30712                 using file name combo box.
30713
30714 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
30715          
30716         * ListBox.cs: 
30717                 - Fixes Multicolumn listboxes item wrong calculations
30718                 - Allows to click when only one item is in the listbox
30719                 - Fixes crash when no items using keyboard navigation
30720
30721 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
30722
30723         * ComboBox.cs: Reverted almost everything from the latest patch which
30724           broke ComboBox
30725
30726 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
30727         
30728         * ToolTip.cs:
30729                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
30730         * ComboBox.cs:
30731                 - When DropDownStyle is Simple, it does not show scrollbar 
30732                 to the last item of the list.
30733                 - When DropDownStyle is Simple, it crashed when the list was 
30734                 scrolled down with the down cursor key.
30735                 - Fixed a bug that when DropDownStyle is DropDownList, the 
30736                 selected item was not shown.
30737                 - The position of the selected item was not preserved when 
30738                 the next dropdown happened.
30739         * ThemeWin32Classic.cs:
30740                 - Items were wrapped at the right end.
30741         * CheckedListBox.cs:
30742                 - Fixed Add method
30743         * ListBox.cs:
30744                 - Items should be fully shown.
30745                 - When resizing and vertical scrollbar disappeared, the item 
30746                 of index 0 should be on the top of the list.
30747                 - GetItemRectangle should consider the size of ver. scrollbar
30748         * StatusBar.cs:
30749                 - SizingGrip area should not be allocated when it is not 
30750                 displayed.
30751                 - Now it reflects MinWidth of the containing panel and 
30752                 fixed a crash that happens when its width becomes so small.
30753
30754 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
30755
30756         * CheckedListBox.cs: Fixes bug 76028
30757         * ListBox.cs: Fixes bug 76028
30758
30759 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
30760
30761         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
30762         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
30763
30764 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
30765
30766         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
30767
30768 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
30769
30770         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
30771
30772 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
30773
30774         * IRootGridEntry.cs: Added
30775         * PropertyGridCommands.cs: Added
30776         * PropertiesTab.cs: Added missing methods and property
30777         * PropertyGridView.cs: Made class internal
30778         * PropertyGridTextBox.cs: Made class internal
30779
30780 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
30781
30782         * MimeIcon.cs: Try to check some other environment variables
30783           if "DESKTOP_SESSION" returns "default"
30784
30785 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
30786
30787         * ThemeNice.cs: Corrected background colors (e.g. menus)
30788         * ColorDialog.cs: Use correct background colors for controls
30789
30790 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
30791
30792         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
30793
30794 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
30795
30796         * RichTextBox.cs: Added initial implementation
30797         * lang.cs: Removed. Was accidentally checked in long time ago
30798         * TODO: Removed. Contents were obsolete
30799
30800 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
30801                                                                                 
30802         * PropertiesTab.cs : Added
30803
30804 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
30805                                                                                 
30806         * PropertyGrid.cs : Update
30807         * PropertyGridView.cs : Update
30808         * System.Windows.Forms.resx : Added images and strings
30809
30810 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
30811
30812         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
30813  
30814 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
30815
30816         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
30817           a busy loop right after the Ungrab the X11 display is otherwise 
30818           blocked
30819
30820 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
30821
30822         * ThemeWin32Classic.cs: Optimise the use of clipping
30823
30824 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
30825
30826         * DataGrid.cs: fixes recursion bug
30827
30828 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
30829
30830         * ThemeNice.cs: 
30831           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
30832           - Cleanup
30833
30834 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
30835
30836         * ThemeNice.cs: Draw nice ProgressBars
30837
30838 2005-09-01  Miguel de Icaza  <miguel@novell.com>
30839
30840         * VScrollBar.cs: Another buglet found by Aaron's tool. 
30841
30842         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
30843         bug finder.
30844
30845 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
30846
30847         * ThemeNice.cs:
30848           - Added nicer menu drawing
30849           - Updated DrawTab
30850           - some refactoring
30851
30852 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
30853
30854         * CreateParams.cs (ToString): Made output match MS
30855         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
30856             handle is already created (to avoid forcing window creation)
30857         * XplatUIX11.cs: Set window text to caption after creating window,
30858           in case Text was set before window was created
30859         * Form.cs: Use this.Text instead of a static string as caption
30860
30861 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
30862
30863         * NotifyIcon.cs: Don't set the window to visible; this screws
30864           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
30865           OnPaint without a bitmap)
30866         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
30867           happen very often anyway; we could add the check to the WM_PAINT 
30868           event generation code
30869
30870 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
30871
30872         * NotifyIcon.cs: Fill the icon area with a background color, to 
30873           avoid 'residue' when transparent icons are drawn
30874         * XplatUIX11.cs:
30875           - Handle whole_window == client_window when destroying windows
30876           - SystrayAdd(): Set client_window to whole_window value to
30877             get mouse and other events passed to NotifyIcon
30878
30879 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
30880
30881         * Form.cs: Set proper default for Opacity property
30882         * NotifyIcon.cs:
30883           - ShowSystray(): Don't bother creating telling the OS
30884             about the systray item if no icon is provided
30885           - Now handles WM_NCPAINT message to deal with whole/client window
30886             split
30887           - Create window as visible to not get caught by Expose optimization
30888         * Hwnd.cs: Removed debug message
30889         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
30890           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
30891             PaintEventStart/End to use new client argument
30892         * TextBoxBase.cs:
30893           - Commented out debug messages
30894           - Switched PaintEventStart/End to use new client argument
30895         * XplatUI.cs: Added client window bool to PaintEventStart()/
30896           PaintEventEnd() calls, to support drawing in non-client areas
30897         * XplatUIDriver.cs: 
30898           - Added client window bool to PaintEventStart()/PaintEventEnd() 
30899             calls, to support drawing in non-client areas
30900           - Added conditional compile to allow using MWF BeginInvoke 
30901             on MS runtime
30902         * XplatUIX11.cs:
30903           - Added some conditional debug output
30904           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
30905             whole/client window split
30906           - Implemented handling of client argument to PaintEventStart()/End()
30907         * Control.cs:
30908           - Throw exception if BeginInvoke() is called and the window handle
30909             or one of the window's parent handles is not created
30910           - Added conditional compile to allow using MWF BeginInvoke on
30911             MS runtime
30912           - get_Parent(): Only sets parent if handle is created. This avoids
30913             forcing window handle creation when parent is set.
30914           - Now fires Layout and Parent changed events in proper order
30915           - Switched to use Handle instead of window.Handle for Z-Order setting,
30916             the get_Parent() patch above causes us to possibly get null for 'window'
30917           - Implemented handling of client argument to PaintEventStart()/End()
30918           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
30919             default handling)
30920           - Now sends a Refresh() to all child windows when Refresh() is called
30921
30922 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
30923
30924         * Form.cs: Added (non-functional) Opacity property
30925         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
30926
30927 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
30928         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
30929           use export MONO_THEME=nice to activate it.
30930           Currently supported controls:
30931           - Button
30932           - ComboBox
30933           - ScrollBar
30934           - TabControl (TabAlignment.Top only, other will follow)
30935         * ThemeEngine.cs: Add theme nice
30936         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
30937           if enabled
30938
30939 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
30940
30941         * Splitter.cs: Resize docked control and its neighbor.
30942
30943 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
30944         -- Making Windows with Menus layout correctly --
30945         * Form.cs : The first leg of the fix
30946                 Menu setter - adjust Client Size as needed to make space for the menu
30947                 SetClientSizeCore - doesn't call base version to be able to pass the 
30948                         menu handle to XplatUI.CalculateWindowRect
30949         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
30950         * XplatUIX11.cs: The critical second leg of the fix
30951                 GetWindowPos needs to use a recalculated client_rect
30952                 so that resizing the window doesn't break layout of child controls. 
30953                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
30954                 Lots of \t\n killed
30955
30956 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
30957
30958         * Label.cs: Now properly recalculates width and height on Font and Text
30959           changes if AutoSize is set
30960
30961 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
30962         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
30963
30964 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
30965
30966         * ImageList.cs: Makes ToString method compatible with MS
30967
30968 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
30969
30970         * MenuAPI.cs: fixes bug 75716
30971
30972 2005-08-11 Umadevi S <sumadevi@novell.com>
30973         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
30974
30975 2005-08-11 Umadevi S <sumadevi@novell.com>
30976         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
30977
30978 2005-08-10  Umadevi S <sumadevi@novell.com>
30979         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
30980
30981 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
30982
30983         * Menu.cs: fixes bug 75700
30984         * MenuAPI.cs: fixes navigation issues
30985
30986 2005-08-09  Umadevi S <sumadevi@novell.com>
30987         * CheckedListBox.cs - simple fix for GetItemChecked.
30988
30989 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
30990
30991         * ComboBox.cs: Serveral fixes
30992         * ListBox.cs: Serveral fixes
30993
30994 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
30995
30996         * ComboBox.cs: Fixes FindString methods and GetItemHeight
30997         * ListBox.cs: Fixes FindString methods
30998
30999 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
31000
31001         * DataGrid.cs: fixes bugs exposed by new tests
31002
31003 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
31004
31005         * Mime.cs: Compile Mono assembly references only if compiling
31006           with Mono (Allows to build with VS.Net again)
31007
31008 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
31009
31010         * Control.cs (PaintControlBackground): Draw background image
31011         corrrectly.
31012         (CheckForIllegalCrossThreadCalls): Stubbed.
31013         
31014         * Form.cs (OnCreateControl): Center when should be centered.
31015         
31016         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
31017
31018 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
31019
31020         * Binding.cs: Binding to properties should be case unsensitive
31021
31022 2005-07-18 vlindos@nucleusys.com
31023
31024         * DataGrid.cs: fixes setmember order
31025
31026 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
31027
31028         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
31029         * FileDialog.cs: FileDialog is now resizable and uses the new
31030           MimeIconEngine
31031
31032 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
31033
31034         * DataGridTextBoxColumn.cs: default value
31035         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
31036         * GridTableStylesCollection.cs: fixes checking MappingName
31037         * DataGridDrawingLogic.cs: fixes drawing logic issues
31038         * DataSourceHelper.cs: rewritten to make compatible with more data sources
31039         * DataGrid.cs: fixes    
31040
31041 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
31042
31043         * MimeGenerated.cs: Use case sensitive comparer for
31044           NameValueCollections
31045
31046 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
31047
31048         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
31049         * ThemeWin32Classic.cs: bug fixes, code refactoring
31050         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
31051         * DataGrid.cs: bug fixes, code refactoring
31052         * DataGridTextBox.cs: bug fixes, code refactoring
31053         * DataGridColumnStyle.cs:  bug fixes, code refactoring
31054         * Theme.cs:  bug fixes, code refactoring
31055
31056 2005-07-01  Peter Bartok  <pbartok@novell.com> 
31057
31058         * TextControl.cs: Quick fix for the reported crash on ColorDialog
31059           and other text box usage
31060
31061 2005-07-01  Jackson Harper  <jackson@ximian.com>
31062
31063         * TabControl.cs: Make sure the bottom of the tab covers the pages
31064         border.
31065
31066 2005-06-30  Peter Bartok  <pbartok@novell.com> 
31067
31068         * Form.cs (ShowDialog): Assign owner of the dialog
31069         * TextBoxBase.cs: Always refresh caret size when deleting, caret
31070           might have been moved to a tag with different height
31071
31072 2005-06-30  Jackson Harper  <jackson@ximian.com>
31073
31074         * Form.cs: Don't create an infinite loop when setting focus
31075         * MenuItem.cs: Don't dirty the parents if we don't have any
31076
31077 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
31078
31079         * LibSupport.cs: Rename
31080
31081 2005-06-29  Peter Bartok  <pbartok@novell.com>
31082
31083         * TextBoxBase.cs: Re-align caret after deleting a character
31084         * TextControl.cs:
31085           - DeleteChars(): Ensure that tag covers the provided position
31086           - StreamLine(): Drop reference for dropped tag
31087
31088 2005-06-29  Peter Bartok  <pbartok@novell.com> 
31089
31090         * TextControl.cs: 
31091           - Selections now work properly, anchoring at the initial location
31092             and properly extending in either direction (SetSelectionToCaret(),
31093             SetSelectionStart() and SetSelectionEnd())
31094           - No longer redraws the whole control on selection change, now
31095             calculates delta between previous and new selection and only
31096             invalidates/redraws that area
31097           - Fixed FindPos() math off-by-one errors
31098           - Changed DeleteChars() to verify the provided tag covers the
31099             provided position, selections may have a tag that doesn't cover
31100             the position if the selection is at a tag border
31101           - Fixed off-by-one errors in DeleteChars()
31102           - Added missing streamlining check in DeleteChars() to remove
31103             zero-length tags
31104           - Implemented Invalidate() method, now properly calculates exposures
31105             between two given lines/positions
31106           - Implemented SetSelection()
31107           - Obsoleted and removed FixupSelection()
31108           - Improved RecalculateDocument() logic, removing code duplication
31109
31110 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31111
31112         * LibSupport.cs: changes to match different input/output arguments.
31113
31114 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31115
31116         * LibSupport.cs: added libsupport.so init routine.
31117
31118 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
31119         
31120         * ControlBindingsCollection.cs
31121                 - Throws an exception on null datasource when adding
31122                 - Checks for duplicated bindings when adding
31123
31124 2005-06-28  Jackson Harper  <jackson@ximian.com>
31125
31126         * TreeView.cs (OnKeyDown): Support left and right properly
31127         (navigates as well as expanding and collapsing.
31128         - Add support for Multiply, this expands all the selected nodes
31129         children.
31130         - Fix some tabbing.
31131
31132 2005-06-28  Jackson Harper  <jackson@ximian.com>
31133
31134         * TreeView.cs: Implement keyboard navigation, currently supports,
31135         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
31136         support for toggling checkboxes with the space bar.
31137
31138 2005-06-28  Jackson Harper  <jackson@ximian.com>
31139
31140         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
31141         tree.
31142
31143 2005-06-28  Jackson Harper  <jackson@ximian.com>
31144
31145         * TreeView.cs: Add missing event.
31146
31147 2005-06-27  Peter Bartok  <pbartok@novell.com> 
31148
31149         * TextControl.cs:
31150           - Made line ending size configurable (now allows for counting 
31151             lineendings as \n or \r\n)
31152           - Added margin to viewport to keep caret visible on right side
31153           - Fixed translation routines for line/pos to documentpos to consider
31154             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
31155           - Fixed some line-endings to be unix style
31156           - Fixed Document.FormatText to perform it's calculations 1-based
31157           - Added descriptions for a few methods that might otherwise get 
31158             used wrong
31159           - Added NOTE section with some basic conventions to remember at 
31160             the top of the file
31161           - Major fixup for RichTextBox selection drawing:
31162             * Fixed crashes when multiple tags on a single line were selected
31163             * fixed selection box drawing not overlaying text
31164             * fixed bogus offset calculation for tags not starting at index 1
31165             * Switched behaviour from using multiple Substrings of a 
31166               StringBuilder.ToString() to using multiple 
31167               StringBuilder.ToString(start, length) statements, hoping this is
31168               faster (kept original version commented out in the code, in case
31169               original version was faster)
31170         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
31171           alignment != Left
31172         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
31173           call it as well
31174
31175 2005-06-27  Jackson Harper  <jackson@ximian.com>
31176
31177         * TabControl.cs: Move to the left and right with the arrow
31178         keys. These keys don't cycle beyond first and last like
31179         tab. Refresh all the tabs when scrolling them to the left or
31180         right.
31181
31182 2005-06-27  Jackson Harper  <jackson@ximian.com>
31183
31184         * TabControl.cs:
31185           - ToString: Added method
31186           - CreateParams: Remove TODO and comment
31187           - OnKeyDown: Cycle through bounds properly.
31188           - SelectedIndex: Scroll to the right or left if we need to
31189           display the newly selected tab.
31190
31191 2005-06-23  Jackson Harper  <jackson@ximian.com>
31192
31193         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
31194         set.
31195
31196 2005-06-23  Jackson Harper  <jackson@ximian.com>
31197
31198         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
31199         CTRL-SHIFT-TAB, and HOME, END are there any others?
31200
31201 2005-06-23  Jackson Harper  <jackson@ximian.com>
31202
31203         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
31204
31205 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
31206         
31207         * DataGridTextBoxColumn.cs: fixes and enhancements
31208         * ThemeWin32Classic.cs: fixes and enhancements
31209         * DataGridBoolColumn.cs:  fixes and enhancements
31210         * DataGridDrawingLogic.cs:  fixes and enhancements
31211         * CurrencyManager.cs: fixes and enhancements
31212         * DataGrid.cs: fixes and enhancements
31213         * DataGridColumnStyle.cs:  fixes and enhancements
31214
31215 2005-06-22  Jackson Harper  <jackson@ximian.com>
31216
31217         * TabControl.cs: Add some missing methods that just call into the
31218         base. Make the TabPageCollection's IList interface behave in the
31219         same manner as the MS implementation.
31220
31221 2005-06-22  Peter Bartok  <pbartok@novell.com> 
31222
31223         * TextControl.cs: Added sanity check
31224         * TextBoxBase.cs: 
31225           - Fixed wrapping behaviour, don't set wrap on single line controls
31226             (this fixes the breakage of colordialog introduced in an earlier
31227              checkin)
31228           - Added rudimentary support for autoscrolling right-aligned controls
31229             (still needs fixing, also, center alignment scroll is missing)
31230
31231 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
31232         
31233         * ScrollBar.cs: Fixes thumbpos on Maximum values
31234
31235 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
31236         
31237         * PropertyGridView.cs: Pass context information to UITypeEditors 
31238
31239 2005-06-21  Peter Bartok  <pbartok@novell.com> 
31240
31241         * TextBoxBase.cs:
31242           - Now calling PositionCaret with absolute space coordinates
31243           - Enabled vertical scrolling
31244           - Better tracking of scrollbar changes, tied into WidthChange
31245             event
31246           - Improved cursor tracking
31247           - Removed debug output
31248         * TextControl.cs:
31249           - PositionCaret coordinates are now works in absolute space, not 
31250             the canvas
31251           - Improved tracking of document size
31252           - Added events for width and height changes
31253
31254 2005-06-21  Peter Bartok  <pbartok@novell.com>
31255
31256         * Form.cs: Set focus to active control when form is activated
31257         * TextControl.cs: 
31258           - Added word-wrap functionality to RecalculateLine() 
31259           - Added some short function descriptions for VS.Net to aid in
31260             writing dependent controls
31261           - Added Caret property, returning the current coords of the caret
31262           - Added ViewPortWidth and ViewPortHeight properties
31263           - Added Wrap property
31264           - Added CaretMoved event
31265           - Removed some old debug code
31266           - Split() can now create soft splits
31267           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
31268           - Added method to format existing text
31269           - Fixed size/alignment calculations to use viewport
31270           - RecalculateDocument now can handle changing line-numbers while
31271             calculating lines
31272
31273         * TextBox.cs:
31274           - Added some wrap logic, we don't wrap if alignment is not left
31275           - Added casts for scrollbar var, base class switched types to
31276             also support RichTextBoxA
31277           - Implemented handling of scrollbar visibility flags
31278
31279         * TextBoxBase.cs:
31280           - Switched scrollbars type to RichTextBoxScrollBars to support
31281             RichTextBox
31282           - Added tracking of canvas width/height
31283           - Switched scrollbars to be not selectable (to keep focus on text)
31284           - Added central CalculateDocument() method to handle all redraw
31285             requirements
31286           - Added ReadOnly support
31287           - Added WordWrap support
31288           - Fixed handling of Enter key (we now treat it as a DialogKey)
31289           - Fixed caret positioning when h or v scroll is not zero
31290           - Fixed placing/generation of vertical scrollbar
31291           - Added CalculateScrollBars() method to allow updating scrollbar
31292             limits and visibility
31293           - Fixed handling of horizontal scroll
31294           - Added handling of vertical scroll
31295           - Implemented auto-'jump' when caret moves to close to a left or
31296             right border and there is text to be scrolled into view (currently
31297             there's the potential for a stack overflow, until a bug in
31298             scrollbar is fixed)
31299
31300 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
31301         
31302         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
31303
31304 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
31305
31306         * Mime.cs:
31307         - added inodes.
31308         - return application/x-zerosize for files with size zero
31309           (if no extension pattern matches).
31310         - check matches collection for strings too.
31311         - return only the first mime type if the name value
31312           collection has more than one mime type.
31313
31314 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
31315         
31316         * PropertyGrid.cs: Cleaned up some TODOs
31317         * PropertyGridView.cs: Added support for UITypeEditors
31318
31319 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
31320         
31321         * DataGrid.cs: clears cached value
31322
31323 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
31324
31325         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
31326         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
31327         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
31328         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
31329         
31330 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
31331
31332         * ThemeWin32Classic.cs: fixes colour
31333
31334 2005-06-15  Peter Bartok  <pbartok@novell.com>
31335
31336         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
31337         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
31338         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
31339         * Control.cs: Added some MWFCategory and MWFDescription attributes
31340         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
31341
31342 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
31343
31344         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
31345         usage
31346
31347 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
31348
31349         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
31350         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
31351         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
31352         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
31353         * DataGrid.cs: default datagrid settings for Default Styles, fixes
31354         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
31355
31356 2005-06-13  Jackson Harper  <jackson@ximian.com>
31357
31358         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
31359         isn't printed when the user enables dropping. (X11 does accept
31360         drops).
31361         
31362 2005-06-13  Jackson Harper  <jackson@ximian.com>
31363
31364         * TreeView.cs: Remove some TODOS.
31365
31366 2005-06-13  Jackson Harper  <jackson@ximian.com>
31367
31368         * Form.cs: Hook into the mdi framework.
31369         * MdiClient.cs: Use the base control collections add method so
31370         parents get setup correctly. Set the default back colour and dock
31371         style.
31372         * MdiChildContext.cs: New class, this bad actor handles an
31373         instance of an MDI window. Right now there is only basic
31374         support. You can drag, close, and resize windows. Minimize and
31375         Maximize are partially implemented.
31376
31377 2005-06-13  Jackson Harper  <jackson@ximian.com>
31378
31379         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
31380         freaky when both vals are negative. NOTE: There are probably other
31381         places in XplatUIX11 that this needs to be done.
31382
31383 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
31384
31385         * DataGrid.cs: implement missing methods, move KeyboardNavigation
31386         * DataGridColumnStyle.cs: fixes signature
31387
31388 2005-06-12  Jackson Harper  <jackson@ximian.com>
31389
31390         * XplatUIX11.cs: Use sizing cursors similar to the ones on
31391         windows.
31392
31393 2005-06-11  Jackson Harper  <jackson@ximian.com>
31394
31395         * StatusBarPanel.cs: Signature cleanups. Implement
31396         BeginInit/EndInit.
31397
31398 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
31399
31400         * DataGridTextBoxColumn.cs: Honors aligment
31401         * GridColumnStylesCollection.cs: Contains is case unsensitive
31402         * GridTableStylesCollection.cs: several fixes
31403         * DataGridTableStyle.cs: default column creation
31404         * DataGridDrawingLogic.cs: fixes
31405         * CurrencyManager.cs: ListName property
31406         * DataGrid.cs: multiple styles support
31407         * DataGridColumnStyle.cs: fixes
31408         
31409
31410 2005-06-10  Peter Bartok  <pbartok@novell.com>
31411
31412         * Control.cs(Select): Moved SetFocus call to avoid potential
31413           loops if controls change the active control when getting focus
31414         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
31415           the up/down buttons
31416
31417 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
31418
31419         * ImageListConverter.cs: Implemented
31420
31421 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
31422
31423         * MonthCalendar.cs: Wired in NumericUpDown control for year
31424
31425 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
31426
31427         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
31428           DoubleClick events, since they are not meant to be fired.
31429
31430 2005-06-09  Peter Bartok  <pbartok@novell.com>
31431
31432         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
31433           Jonathan's standalone controls into MWF, implemented missing
31434           events, attributes and methods; added xxxAccessible classes
31435         * AccessibleObject.cs: Made fields internal so other classes
31436           can change them if needed
31437
31438 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
31439
31440         * UpDownBase.cs: Complete implementation
31441         * NumericUpDown.cs: Complete implementation
31442         * DomainUpDown.cs: Complete implementation
31443
31444 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
31445
31446         * DataGridTextBoxColumn.cs: drawing fixes
31447         * DataGridCell.cs: fixes ToString method to match MSNet
31448         * DataGridTableStyle.cs: fixes
31449         * DataGridBoolColumn.cs: fixes, drawing
31450         * DataGridDrawingLogic.cs: fixes, new methods
31451         * DataGridTextBox.cs: Keyboard and fixes
31452         * DataGrid.cs:
31453                 - Keyboard navigation
31454                 - Scrolling fixes
31455                 - Row selection (single, multiple, deletion, etc)
31456                 - Lots of fixes
31457         
31458 2005-06-07  Jackson Harper  <jackson@ximian.com>
31459
31460         * ThemeWin32Classic.cs: Clear the background area when drawing
31461         buttons.
31462
31463 2005-06-06  Peter Bartok  <pbartok@novell.com>
31464
31465         * ImageListStreamer.cs: Fixed signature for GetData
31466         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
31467         * ComboBox.cs:
31468           - Added missing ChildAccessibleObject class
31469           - Added missing OnXXXFocus overrides, switched to using those
31470             instead of the event handler
31471         * Control.cs:
31472           - Added Parent property for ControlAccessibleObject
31473           - Fixed signatures
31474           - Fixed attributes
31475           - Added ResetBindings()
31476         * ListBindingConverter.cs: Implemented some methods
31477         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
31478         * ImageList.cs: Implemented basic handle scheme, removed TODOs
31479         * ContainerControl.cs: Fixed signature, now subscribing to the
31480           ControlRemoved event instead of overriding the handler, LAMESPEC
31481         * CurrencyManager.cs: Added missing attribute
31482         * MonthCalendar.cs: Added missing properties
31483
31484 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
31485
31486         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
31487         
31488 2005-06-06  Gaurav Vaish and Ankit Jain
31489
31490         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
31491         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
31492         
31493 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
31494
31495         * Control.cs: fixes CreateParams Width / Height.
31496
31497 2005-06-05  Peter Bartok  <pbartok@novell.com>
31498
31499         * Win32DnD.cs: Removed compilation warnings
31500
31501 2005-06-05  Peter Bartok  <pbartok@novell.com>
31502
31503         * Control.cs (CreateParams): Since we don't know if one of the
31504           properties we use is overridden, lets make sure if we fail accessing
31505           we continue with a backup plan
31506
31507 2005-06-05  Peter Bartok  <pbartok@novell.com>
31508
31509         * Win32DnD.cs:
31510           - Removed debug output
31511           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
31512             struct
31513           - Plugged resource leak
31514         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
31515           MS size
31516
31517 2005-06-05  Peter Bartok  <pbartok@novell.com>
31518
31519         * XplatUIWin32.cs: Removed DnD code
31520         * Win32DnD.cs: Implemented drop source and drop target functionality
31521
31522 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31523
31524         * UpDownBase.cs: remove duplicate addition of event, enable some code
31525         that was commented out.
31526         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
31527         Validate input when a key is pressed. It works fine now for every
31528         combination of Hexadecimal. Only missing some drawing love when sharing
31529         space with other controls.
31530
31531 2005-06-04  Peter Bartok  <pbartok@novell.com>
31532
31533         * Control.cs:
31534           - We need to pass a window for DragDrop, so enable callback events
31535           - Added DnD callback events when being a DragSource
31536         * XplatUI.cs (StartDrag): Added window handle argument
31537         * XplatUIDriver.cs (StartDrag): Added window handle argument
31538         * QueryContinueDragEventArgs: Made fields internally accessible so
31539           drivers can set them
31540         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
31541           can set them
31542
31543 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
31544
31545         * DataGridTextBoxColumn.cs: column text editing
31546         * DataGridTableStyle.cs: Respect columns styles created by the user
31547         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
31548         * DataGridBoolColumn.cs: bool column editing
31549         * DataGrid.cs: fixes to scrolling, properties, etc
31550         * DataGridTextBox.cs: handle keyboard
31551         * DataGridColumnStyle.cs: fixes
31552
31553 2005-06-02  Jackson Harper  <jackson@ximian.com>
31554
31555         * ImageListStreamer.cs: Somewhat broken implementation of
31556         GetObjectData. The RLE needs some work to match MS properly.
31557
31558 2005-06-02  Jackson Harper  <jackson@ximian.com>
31559
31560         * X11Dnd.cs: Attempting to keep at least one file in MWF
31561         monostyled.
31562
31563 2005-06-02  Peter Bartok  <pbartok@novell.com>
31564
31565         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
31566           that way
31567
31568 2005-06-02  Peter Bartok  <pbartok@novell.com>
31569
31570         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
31571         * XplatUI.cs: Added DoDragDrop() method
31572         * XplatUIDriver.cs: Added DoDragDrop() method
31573
31574 2005-06-02  Jackson Harper  <jackson@ximian.com>
31575
31576         * Splitter.cs: Implement BorderStyle.
31577
31578 2005-06-02  Jackson Harper  <jackson@ximian.com>
31579
31580         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
31581         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
31582         X11 using XDND.
31583
31584 2005-06-02  Peter Bartok  <pbartok@novell.com>
31585
31586         * DataObject.cs:
31587           - Added Data setter
31588           - Fixed broken insertion code for SetData, now also
31589             overwrites any existing entry of the same format name
31590         * Hwnd.cs: Added list of pointers that automatically gets
31591           freed when the window is disposed
31592         * XplatUI.cs: Call driver initialization method when loading
31593           a driver
31594         * Control.cs:
31595           - OnDragLeave takes EventArgs, not DragEventArgs
31596           - Added setting of WS_EX_ACCEPTFILES style when dropping is
31597             supported
31598           - Forces style update when drop state changes
31599         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
31600           not perfect since we cannot (yet) call the IDataObject.GetData()
31601           method, we keep getting 0x80004005 error, dunno why)
31602
31603 2005-06-02  Peter Bartok  <pbartok@novell.com>
31604
31605         * DragEventArgs.cs: Make fields internal so we can cache the
31606           object and re-set the fields from XplatUI
31607
31608 2005-06-02  Jackson Harper  <jackson@ximian.com>
31609
31610         * Control.cs: Add some internal methods so the DnD subsystem can
31611         raise DnD events. Also call into the driver when AllowDrop is set.
31612         * XplatUI.cs:
31613         * XplatUIDriver.cs: New method for setting whether or not a window
31614         is allowed to accept drag and drop messages.
31615                 
31616 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
31617         
31618         * ScrollBar.cs: Make sure that values sent in Scroll events
31619         are always between Maximum and Minimum.
31620
31621 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
31622
31623         * Menu.cs: Call MenuChanged when menuitem visibility has been
31624         changed.
31625         * MenuItem.cs: Rebuild menu when item is (not) visible.
31626         * MainMenu.cs: MainMenu has special MenuChanged.
31627         * Theme.cs: Caption and FrameBorderSize are not fixed.
31628         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
31629         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
31630         * XplatUIX11.cs,
31631         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
31632         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
31633
31634 2005-05-30  Jackson Harper  <jackson@ximian.com>
31635
31636         * DataFormat.cs: We can't statically initialize this stuff because
31637         it calls into the xplatui and could create a loop. So we lazy init
31638         it.
31639
31640 2005-05-28  Jackson Harper  <jackson@ximian.com>
31641
31642         * Control.cs: Proper implementation of Product(Name/Version).
31643
31644 2005-05-27  Jackson Harper  <jackson@ximian.com>
31645
31646         * DataObject.cs: Dont crash if no data is found.
31647
31648 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
31649         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
31650                 as per status page, guessing it should be set to true
31651
31652 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
31653
31654         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
31655         * DataGridTableStyle.cs: set proper formatting text, def header text
31656         * ThemeWin32Classic.cs: new themable paramaters
31657         * DataGridBoolColumn.cs: paint check box, get data, fixes
31658         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
31659         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
31660         * DataGridColumnStyle.cs: fixes
31661         * Theme.cs: new themable paramaters
31662                 
31663 2005-05-26  Peter Bartok  <pbartok@novell.com>
31664
31665         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
31666
31667 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31668         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
31669
31670 2005-05-24  Peter Bartok  <pbartok@novell.com>
31671
31672         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
31673           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
31674           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
31675           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
31676           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
31677           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
31678           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
31679           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
31680           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
31681           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
31682           missing attributes, etc
31683         * DataGridPreferredColumnWidthTypeConverter.cs: Added
31684
31685 2005-05-24  Peter Bartok  <pbartok@novell.com>
31686
31687         * Help.cs: Added, implemented trivial functions, throws up MessageBox
31688           when user tries to get help
31689         * DataObject.cs, DataFormats.cs, LinkArea.cs,
31690           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
31691           to suppress warnings
31692         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
31693           avoid unreachable code warning
31694
31695 2005-05-20  Peter Bartok  <pbartok@novell.com>
31696
31697         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
31698
31699 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
31700
31701         * DataGridTextBoxColumn.cs: Basic painting methods
31702         * DataGridTableStyle.cs: Set table style in the column
31703         * ThemeWin32Classic.cs: Use Theme for colors
31704         * DataGridDrawingLogic.cs: Implement more drawing
31705         * DataGrid.cs: drawing, theming, enhacements, fixes
31706         * DataGridColumnStyle.cs: fixes, drawing
31707         * Theme.cs: theming for Datagrid
31708
31709 2005-05-20  Peter Bartok  <pbartok@novell.com>
31710
31711         * Cursor.cs: Implemented GetObjectData() method
31712
31713 2005-05-20  Peter Bartok  <pbartok@novell.com>
31714
31715         * Cursors.cs: Added setting of cursor name
31716         * Cursor.cs:
31717           - Implemented constructors
31718           - Implemented Draw and DrawStretched
31719           - Implemented Current property
31720           - Implemented == and != operators
31721           - Implemented Dispose()
31722           - Implemented ToString
31723           - Added missing attributes
31724         * XplatUIX11.cs:
31725           - Added missing reset for OverrideCursor when DoEvents is called
31726           - Fixed creation of cursor, logic was wrong
31727         * XplatUIWin32.cs:
31728           - Added missing reset for OverrideCursor when DoEvents is called
31729           - Fixed creation of cursor, bit arrays were swapped
31730         * Clipboard.cs: Removed obsolete MonoTODO attribute
31731
31732 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
31733
31734         * ComboBox.cs: fixes OnSelectedItemChanged
31735         * ControlBindingsCollection.cs: fixes item range check
31736
31737 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
31738
31739         * UpDownBase.cs:
31740                 - Calc preferred height properly
31741                 - Implement missing properties
31742                 
31743         * NumericUpDown.cs: Implement missing events
31744
31745 2005-05-19  Jackson Harper  <jackson@ximian.com>
31746
31747         * TabControl.cs: New method that resizes the tab pages before
31748         redrawing them. This as needed as the control is double buffered
31749         and sizing will not be recalculated unless ResizeTabPages is
31750         called.
31751         * TabPage.cs: Set base.Text instead of Text in the constructor so
31752         that UpdateOwner does not get called. Use the new Redraw method of
31753         TabControl instead of Refresh so the sizing is recalculated.
31754         * ThemeWin32Classic.cs: Draw the text for button tabs.
31755
31756 2005-05-19  Jackson Harper  <jackson@ximian.com>
31757
31758         * Control.cs: Paint control background images. Fix typo where
31759         PaintControlBackground was not getting called correctly.
31760
31761 2005-05-19  Peter Bartok  <pbartok@novell.com>
31762
31763         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
31764           I can investigate, apparently I broke FileDialog
31765
31766 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
31767
31768         * AxHost.cs: Some simple properties.
31769         * Control.cs: window must be accessible after ctor.
31770         * Form.cs: Added TransparencyKey property.
31771         * TextBoxBase.cs: Implemented Clear. Text property can be null.
31772         * XplatUIWin32.cs: SetBorderStyle implemented.
31773
31774 2005-05-18  Peter Bartok  <pbartok@novell.com>
31775
31776         * DataObject.cs: Entries are not global but particular to the
31777           DataObject, now it behaves that way
31778         * XplatUIWin32.cs: Implemented Clipboard methods
31779         * Clipboard.cs: Implemented
31780         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
31781         * XplatUIOSX.cs: Updated to final clipboard prototypes
31782         * XplatUIX11.cs: Implemented Clipboard methods
31783         * XplatUIDriver.cs: Updated to final clipboard prototypes
31784         * XplatUIStructs.cs:
31785           - Added BITMAPINFOHEADER struct
31786           - Added ClipboardFormats enum
31787         * X11Structs.cs:
31788           - Added ClipboardStruct
31789           - Added Atom enum items for clipboard types
31790           - Fixed atom types for Selection event structures
31791         * DataFormats.cs:
31792           - Added internal properties and methods for drivers to enumerate
31793             all known formats
31794           - Switched initialization method to allow drivers to assign their
31795             own IDs even for the MS predefined clipboard IDs
31796         * XplatUI.cs: Updated to final clipboard interface
31797
31798 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31799         * PropertyGridView.cs: Fixed compiler warnings.
31800
31801 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31802         * PropertyGrid.cs: Added some event calls
31803         * PropertyGridView.cs: Change drawing code to use double buffering
31804         * PropertyGridTextBox.cs: Changed Text property name
31805         * GridItem.cs: Added Bounds property.
31806         * GridEntry.cs: Added Bounds property.
31807
31808 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
31809
31810         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
31811         since GetType() may not return the correct type if the object is
31812         a remoting proxy.
31813
31814 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
31815
31816         * TreeNodeCollection.cs: fixes get/set item ranges
31817         
31818 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
31819
31820         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
31821                 
31822 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
31823
31824         * ComboBox.cs: Fix item range comparation
31825         * ListView.cs: Fix item range comparation
31826
31827 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
31828
31829         * FontDialog.cs:
31830           - Clear example panel when OnPaint is called
31831           - Better solution for displaying the example panel text
31832           - Select default indexes in the ListBoxes
31833
31834 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
31835
31836         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
31837
31838 2005-05-11  Peter Bartok  <pbartok@novell.com>
31839
31840         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
31841         * SelectionRangeConverter.cs: Implemented
31842         * PropertyGrid.cs: Fixed attribute value
31843         * Control.cs:
31844           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
31845           - Added Sebastien Pouliot's CAS Stack Propagation fixes
31846         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
31847           that's common to all drivers. First methods to go there are
31848           Sebastien Pouliot's CAS Stack Propagation helper methods
31849         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
31850           Sebastien Pouliot for CAS Stack Propagation
31851
31852 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
31853
31854         * OSXStructs.cs:
31855           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
31856
31857 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
31858
31859         * DataGridTextBoxColumn.cs: fixed some members
31860         * GridColumnStylesCollection.cs: indexed column is case insensitive
31861         * DataGridTableStyle.cs: fixes
31862         * ThemeWin32Classic.cs: add new theme parameter
31863         * Theme.cs: add new theme parameter
31864         * DataGridDrawingLogic.cs: Datagrid's drawing logic
31865         * DataGrid.cs: fixes, new internal properties, etc.
31866         * DataGridColumnStyle.cs: allows to set grid value
31867         *
31868
31869 2005-05-10  Peter Bartok  <pbartok@novell.com>
31870
31871         * AccessibleObject.cs:
31872           - Removed MonoTODO attribute on help, method is correct
31873           - Fixed Bounds property
31874         * AxHost.cs: Moved MonoTODO
31875         * ButtonBase.cs: Now setting AccessibleObject properties
31876         * RadioButton.cs: Setting proper AccessibleObject role
31877         * CheckBox.cs: Setting proper AccessibleObject role
31878         * ControlBindingsCollection.cs: Added properties, methods and attributes
31879         * DataFormats.cs: Fixed awkward internal API, and changed to enable
31880           userdefined DataFormats.Format items as well
31881         * ListControl.cs: Removed data_member from the public eye
31882         * OpenFileDialog.cs:
31883           - Made class sealed
31884           - Added missing attributes
31885         * SaveFileDialog.cs: Added missing attributes
31886         * ImageListStreamer.cs: Fixed code that caused warnings
31887         * LinkLabel.cs: Removed unreachable code
31888         * TreeView.cs: Fixed code that caused warnings
31889         * PropertyGridView.cs: Fixed code that caused warnings
31890         * GridColumnStylesCollection.cs: Added missing attributes
31891         * GridTableStylesCollection: Added missing attribute
31892         * PropertyManager: Added .ctor
31893         * SecurityIDType: Added
31894         * DataObject.cs: Implemented class
31895         * LinkArea.cs: Added missing attribute
31896
31897 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
31898
31899         * RadioButton.cs: call base method to allow to fire OnClick event
31900         * UpDownBase.cs: OnMouseUp call base method
31901         * CheckedListBox.cs: call base method before returning
31902         * TrackBar.cs: call base method before returning
31903         
31904
31905 2005-05-10  Peter Bartok  <pbartok@novell.com>
31906
31907         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
31908           for messages
31909
31910 2005-05-10  Peter Bartok  <pbartok@novell.com>
31911
31912         * DataFormats.cs: Implemented
31913         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
31914           XplatUIX11.cs: Added Clipboard APIs
31915         * XplatUIWin32.cs: Implemented Clipboard APIs
31916         * FolderBrowserDialog.cs: Added missing event, attributes
31917
31918 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
31919
31920         * CheckBox.cs: call base method to allow to fire OnClick event
31921
31922 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
31923
31924         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
31925
31926 2005-05-06  Peter Bartok  <pbartok@novell.com>
31927
31928         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
31929         * Screen.cs: Implemented
31930         * HelpNavigator.cs: Added
31931         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
31932           property
31933         * HelpProvider.cs: Implemented all we can do until we have a CHM
31934           help library (which means that "What's This" does work now)
31935
31936 2005-05-06  Jackson Harper  <jackson@ximian.com>
31937
31938         * XplatUIX11.cs: Fix waking up the main loop.
31939                 
31940 2005-05-05  Peter Bartok  <pbartok@novell.com>
31941
31942         * XplatUI.cs: Updated revision
31943         * Form.cs: Removed enless loop
31944         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
31945         * Label.cs (OnPaint): Added call to base.OnPaint()
31946         * ToolTip.cs: Made ToolTipWindow reusable for other controls
31947         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
31948         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
31949         * AxHost.cs: Added
31950         * ButtonBase.cs: Moved base.OnPaint() call to end of method
31951         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
31952           to ToolTip.ToolTipWindow for drawing and size methods; this allows
31953           reuse of ToolTipWindow by other controls
31954         * SizeGrip.cs: Moved base.OnPaint() call to end of method
31955         * XplatUIX11.cs: Now clipping drawing area (experimental)
31956         * PictureBox.cs: Moved base.OnPaint() call to end of method
31957         * Theme.cs: Fixed ToolTip abstracts to match new format
31958         * ErrorProvider.cs: Implemented
31959
31960 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
31961
31962         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
31963         * LinkLabel.cs:
31964                 - Adds cursors
31965                 - Handles focus
31966                 - Implements LinkBehavior
31967                 - Fixes many issues
31968
31969 2005-05-03  Jackson Harper  <jackson@ximian.com>
31970
31971         * ListView.cs: Calculate the scrollbar positioning on resize and
31972         paint, so they get put in the correct place.
31973
31974 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
31975
31976         * ColorDialogs.cs: The small color panels are now handled by
31977           SmallColorControl. This fixes drawing of the focus rectangle
31978           and adds a 3D border.
31979
31980 2005-05-03  Peter Bartok  <pbartok@novell.com>
31981
31982         * Control.cs: Modified version of Jonathan Chamber's fix for
31983           double-buffering
31984
31985 2005-05-03  Jackson Harper  <jackson@ximian.com>
31986
31987         * ListView.cs: Remove redraw variable. Control now handles whether
31988         or not a redraw needs to be done, and will only raise the paint
31989         event if redrawing is needed.
31990
31991 2005-05-03  Jackson Harper  <jackson@ximian.com>
31992
31993         * Splitter.cs: No decorations for the splitter form. Cache the
31994         hatch brush.
31995
31996 2005-05-03  Jackson Harper  <jackson@ximian.com>
31997
31998         * TreeView.cs: Use dashed lines to connect nodes. Use the
31999         ControlPaint method for drawing the focus rect instead of doing
32000         that in treeview.
32001
32002 2005-05-02  Peter Bartok  <pbartok@novell.com>
32003
32004         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
32005
32006 2005-04-29  Jackson Harper  <jackson@ximian.com>
32007
32008         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
32009         entire image buffer. Just clear the clipping rectangle.
32010
32011 2005-04-29  Jackson Harper  <jackson@ximian.com>
32012
32013         * ThemeWin32Classic.cs: Don't draw list view items that are
32014         outside the clipping rectangle.
32015
32016 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
32017
32018         * ListBox.cs: added horizontal item scroll
32019
32020 2005-04-29  Jackson Harper  <jackson@ximian.com>
32021
32022         * ThemeWin32Classic.cs: Remove some old debug code that was
32023         causing flicker with the new double buffering code.
32024
32025 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
32026
32027         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
32028         behave like combobox and comboboxlist (still not sure if this is
32029         correct though).
32030
32031 2005-04-28  Jackson Harper  <jackson@ximian.com>
32032
32033         * ThemeWin32Classic.cs: Don't fill the middle of progress
32034         bars. This fills areas outside of the clip bounds that don't need
32035         to be filled.
32036
32037 2005-04-28  Jackson Harper  <jackson@ximian.com>
32038
32039         * Control.cs: Don't expose functionality to touch the image buffers.
32040         * ProgressBar.cs:
32041         * ListView.cs: We do not need to (and no longer can) manipulate
32042         the image buffers directly. All of this is handled by Control.
32043
32044 2005-04-28  Peter Bartok  <pbartok@novell.com>
32045
32046         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32047           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
32048           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
32049
32050 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
32051
32052         * Combobox:
32053                 - Adjust control's height for non-simple comboboxes (bug fix)
32054                 - Remove dead code
32055         * MenuAPI.cs: remove unused var
32056         * ScrollBar.cs: remove unsed var
32057                  
32058         * ListBox.cs: unselect items when clearing
32059
32060 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
32061
32062         * ListControl.cs: honors OnPositionChanged and default Selected Item
32063         * ListBox.cs: unselect items when clearing
32064
32065 2005-04-27  Jackson Harper  <jackson@ximian.com>
32066
32067         * X11Keyboard.cs: Initialize a default keyboard and give a warning
32068         if a "correct" keyboard is not found. This will make us not crash,
32069         but might give some users bad keyboard layouts...seems to be the
32070         same thing rewind does.
32071
32072 2005-04-27  Jackson Harper  <jackson@ximian.com>
32073
32074         * BindingManagerBase.cs: Attach the current/position changed
32075         handlers to their respective events.
32076
32077 2005-04-27  Jackson Harper  <jackson@ximian.com>
32078
32079         * Control.cs: Make sure that the first WM_PAINT does a full draw,
32080         not just a blit.
32081         * ThemeWin32Classic.cs: Don't fill the background for picture
32082         boxes. This could overright user drawing.
32083         * ComboBox.cs: Just fill the clipping rect not the entire client
32084         rect when drawing the background. This prevents pieces of the
32085         image buffer from getting overwritten and is theoretically faster.
32086
32087 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
32088
32089         * ComboBox.cs: Databinding support fixes, fire missing events
32090         * ListControl.cs: implement missing methods and properties, fixes
32091         * ThemeWin32Classic.cs: Databiding support on Drawing
32092         * CheckedListBox.cs: Databinding support fixes, fire missing events
32093         * ListBox.cs: Databinding support fixes, fire missing events
32094         
32095 2005-04-25  Peter Bartok  <pbartok@novell.com>
32096
32097         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
32098
32099 2005-04-25  Jackson Harper  <jackson@ximian.com>
32100
32101         * TreeView.cs: Use the horizontal scrollbars height not width when
32102         determining how much of the client area is available.
32103
32104 2005-04-25  Jackson Harper  <jackson@ximian.com>
32105
32106         * Control.cs: Double buffering is handled differently now. As per
32107         the spec, the extra buffer is created in the WM_PAINT message and
32108         passed down to the control's drawing code.
32109         * GroupBox.cs:
32110         * Label.cs:
32111         * CheckBox.cs:
32112         * ProgressBar.cs:
32113         * RadioButton.cs:
32114         * ColorDialog.cs:
32115         * ComboBox.cs:
32116         * PropertyGridView.cs:
32117         * UpDownBase.cs:
32118         * MessageBox.cs:
32119         * MenuAPI.cs:
32120         * ListView.cs:
32121         * ButtonBase.cs:
32122         * SizeGrip.cs:
32123         * ScrollBar.cs:
32124         * ListBox.cs:
32125         * TrackBar.cs:
32126         * ToolBar.cs:
32127         * PictureBox.cs:
32128         * DateTimePicker.cs:
32129         * StatusBar.cs:
32130         * TreeView.cs: Update to new double buffering system.
32131         * MonthCalendar.cs: Uncomment block, as Capture is now
32132         working. Update to new double buffering
32133         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
32134         * PaintEventArgs.cs: New internal method allows us to set the
32135         graphics object. This is used for double buffering.
32136         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
32137         rectangle. The internal paint_area var has been removed from
32138         StatusBar. The clipping rect should be used instead.
32139         * Theme.cs: Give the PictureBox drawing method a clipping rect.
32140         * TabPage.cs: The RefreshTabs method was removed, so just call the
32141         tab controls Refresh method now.
32142         * TabControl.cs: Update to new double buffering. Make sure the
32143         handle is created before sizing the tab pages, otherwise we will
32144         get stuck in a loop.
32145
32146 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
32147
32148         * LinkLabel.cs: Fix typo, bug #74719; patch
32149           from Borja Sanchez Zamorano
32150
32151 2005-04-22  Jackson Harper  <jackson@ximian.com>
32152
32153         * TreeNode.cs: Implement Handle stuff.
32154         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
32155
32156 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
32157
32158         * DataGridTextBoxColumn.cs: call base constructors, fixes
32159         * GridColumnStylesCollection.cs: missing events, methods, and functionality
32160         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
32161         * DataGridTableStyle.cs: implements create default column styles
32162         * DataGridBoolColumn.cs: which types can handle
32163         * DataGrid.cs: missing methods, fixes, new functionality
32164         * DataGridColumnStyle.cs: fixes
32165
32166 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
32167         * FolderBrowserDialog.cs:
32168         - Use a thread to fill the TreeView
32169         - Adjusted some sizes
32170
32171 2005-04-19  Peter Bartok  <pbartok@novell.com>
32172
32173         * LinkLabel.cs: (Re-)create the pieces when setting the Text
32174           property. Fixes #74360.
32175
32176 2005-04-19  Jackson Harper  <jackson@ximian.com>
32177
32178         * XEventQueue.cs: Lock when getting the lockqueue size.
32179         * PictureBox.cs: Call base OnPaint
32180         
32181 2005-04-19  Peter Bartok  <pbartok@novell.com>
32182
32183         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
32184           messages were no longer being processed (this broke BeginInvoke)
32185
32186           
32187 2005-04-18  Jackson Harper  <jackson@ximian.com>
32188
32189         * TreeView.cs: buglet that caused node images to get drawn
32190         regardless of whether or not they were in the clipping rectangle.
32191
32192 2005-04-18  Jackson Harper  <jackson@ximian.com>
32193
32194         * CurrencyManager.cs: There are four rules for GetItemProperties:
32195         - If the type is an array use the element type of the array
32196         - If the type is a typed list, use the type
32197         - If the list contains an Item property that is not an object, use
32198         that property
32199         - use the first element of the list if there are any elements in
32200         the list.
32201         
32202 2005-04-17  Jackson Harper  <jackson@ximian.oom>
32203
32204         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
32205         click. This handles offsets for scrolling properly and reduces
32206         memory. Also fixed GetNode to not offset now that TopNode works
32207         properly.
32208         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
32209         
32210 2005-04-17  Jackson Harper  <jackson@ximian.com>
32211
32212         * CursorConverter.cs: Initial implementation.
32213
32214 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
32215
32216         * ListControl.cs: work towards complex data binding support on ListControl
32217         * CurrencyManager.cs: work towards complex data binding support on ListControl
32218         * ListBox.cs: work towards complex data binding support on ListControl
32219
32220
32221 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
32222
32223         * GridTableStylesCollection.cs: fixes name and constructor
32224         * DataGridTableStyle.cs: fixes
32225         * DataGridBoolColumn.cs: fixes names and constructors
32226         * DataGrid.cs: define methods and properties. Some init implementations
32227         * DataGridCell.cs: define methods and properties. Some init implementations
32228         * GridTablesFactory.cs: Define methods and properties
32229
32230 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
32231
32232         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
32233         graphics port changes.  We still want the coordinates in global screen
32234         coordinates.
32235
32236 2005-04-14  Jackson Harper  <jackson@ximian.com>
32237
32238         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
32239         check plus minus or checkbox clicks unless those features are enabled.
32240
32241 2005-04-14  Jackson Harper  <jackson@ximian.com>
32242
32243         * TreeView.cs: Add methods for setting the top and bottom visible
32244         nodes. TreeNode::EnsureVisible uses these methods.
32245         * TreeNode.cs: Implement EnsureVisible
32246
32247 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
32248
32249         * Form.cs: Pospone menu assignation if the window has not been created yet
32250         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
32251         size and position
32252
32253 2005-04-12  Jackson Harper  <jackson@ximian.com>
32254
32255         * TreeView.cs: Set the TopNode properly when scrolling
32256         occurs. This has the added benifit of reducing the amount of
32257         walking that needs to be done when drawing. Also removed an old
32258         misleading TODO.
32259         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
32260         
32261 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
32262
32263         * Timer.cs: fixes interval setting when the timer is already enabled
32264         
32265 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
32266
32267         * FolderBrowserDialog.cs: First approach
32268
32269 2005-04-09  Peter Bartok  <pbartok@novell.com>
32270
32271         * FolderBrowserDialog: Added
32272
32273 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
32274
32275         * LinkLabel.cs: move drawing code into the theme
32276         * ThemeWin32Classic.cs: drawing code and painting background bugfix
32277         * Theme.cs: define DrawLinkLabel method
32278
32279 2005-04-05  Jackson Harper  <jackson@ximian.com>
32280
32281         * BindingContext.cs: Use weak references so these bad actors don't
32282         stay alive longer then they need to.
32283
32284 2005-04-05  Jackson Harper  <jackson@ximian.com>
32285
32286         * ListControl.cs: Basic implementation of complex databinding.
32287         * ComboBox.cs:
32288         * ListBox.cs: Add calls to ListControl databinding methods.
32289
32290 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
32291
32292         * FileDialog.cs:
32293           - Don't change PopupButtonState to Normal when the
32294             PopupButton gets pressed several times.
32295           - Renamed ButtonPanel to PopupButtonPanel
32296
32297 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
32298
32299         * ColorDialog.cs: Use cached objects instead of creating them
32300         * LinkLabel.cs: Use cached objects instead of creating them
32301         * Splitter.cs: Use cached objects instead of creating them
32302         * FontDialog.cs: Use cached objects instead of creating them
32303         * PropertyGridView.cs: Use cached objects instead of creating them
32304         * MessageBox.cs: Use cached objects instead of creating them
32305         * FileDialog.cs: Use cached objects instead of creating them
32306         * ThemeWin32Classic.cs: Use cached objects instead of creating them
32307         * TreeView.cs: Use cached objects instead of creating them
32308         
32309 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
32310
32311         * Control.cs: use Equals to compare the font since no == op
32312         * ScrollBar.cs: use Equals to compare the font since no == op
32313
32314 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
32315
32316         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
32317
32318 2005-04-01  Jackson Harper  <jackson@ximian.com>
32319
32320         * Binding.cs: Implement IsBinding.
32321         * BindingManagerBase.cs:
32322         * PropertyManager.cs:
32323         * CurrencyManager.cs: Add IsSuspended property.
32324
32325 2005-04-01  Jackson Harper  <jackson@ximian.com>
32326
32327         * Binding.cs: Had some IsAssignableFrom calls backwards.
32328
32329 2005-04-01  Jackson Harper  <jackson@ximian.com>
32330
32331         * Binding.cs: Handle null data members when pulling data.
32332         * PropertyManager.cs: Handle the data member being a property that
32333         does not exist.
32334
32335 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
32336
32337         * DataGridTextBoxColumn.cs: fixes signature
32338         * DataGrid.cs: calls right constructor
32339
32340 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
32341
32342         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
32343         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
32344         * GridTableStylesCollection.cs: implements GridTableStylesCollection
32345         * DataGridTableStyle.cs: implements DataGridTableStyle
32346         * DataGridBoolColumn.cs: implements DataGridBoolColumn
32347         * DataGridTextBox.cs: implements DataGridTextBox
32348         * DataGridColumnStyle.cs: implements DataGridColumnStyle
32349
32350 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
32351
32352         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
32353
32354 2005-03-29  Peter Bartok  <pbartok@novell.com>
32355
32356         * Application.cs:
32357           - Properly implemented CompanyName property
32358           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
32359             returns a path that includes CompanyName, ProductName and
32360             Version (fixes bug #70330)
32361
32362 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
32363
32364         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
32365           fixes bug #72588.
32366
32367 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
32368
32369         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
32370         
32371           - Added ReadOnly CheckBox
32372           - Further refactoring: moved some code from Open-/SaveFileDialog
32373             to FileDialog
32374
32375 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
32376
32377         * OpenFileDialog.cs: Fixed CheckFileExists
32378         * FileDialog.cs:
32379           Moved FileView and DirComboBox outside FileDialog class.
32380           They can now be used outside FileDialog
32381
32382 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
32383
32384         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
32385         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
32386
32387 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
32388
32389         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32390           - Added missing CreatePrompt property in SaveDialog
32391           - Overall SaveDialog handling should be better now
32392           - Added non standard ShowHiddenFiles property
32393           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
32394           - Added InitialDirectory and RestoreDirectory support
32395
32396 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
32397
32398         * FileDialog.cs: Made dirComboBox usable
32399
32400 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
32401
32402         * FileDialog.cs: Added Filter support (case sensitiv)
32403
32404 2005-03-24  Jackson Harper  <jackson@ximian.com>
32405
32406         * TabControl.cs: Need a couple more pixels for the lines.
32407
32408 2005-03-23  Jackson Harper  <jackson@ximian.com>
32409
32410         * TabControl.cs: Give the tab page focus when it is selected.
32411
32412 2005-03-23  Jackson Harper  <jackson@ximian.com>
32413
32414         * TabControl.cs: Account for the drawing of tabs borders when
32415         invalidating. If the slider was clicked dont do click detection on
32416         the tabs.
32417
32418 2005-03-23  Jackson Harper  <jackson@ximian.com>
32419
32420         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
32421
32422 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
32423
32424         * CategoryGridEntry.cs: Added
32425         * GridItem.cs: Added helper properties
32426         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
32427         * GridEntry.cs: Updated code for collection
32428         * PropertyGrid.cs: Cleaned up some formatting
32429         * PropertyGridView.cs: Added drop down functionality for enums.
32430         * GridItemCollection.cs: Added enumerator logic
32431         * PropertyGridEntry.cs: Added
32432
32433 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
32434
32435         * FileDialog.cs:
32436           - Removed unnecessary commented code
32437           - Fixed handling for entering the filename manually in the combobox
32438
32439 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
32440
32441         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
32442
32443 2005-03-18  Peter Bartok  <pbartok@novell.com>
32444
32445         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
32446           them being touching the border
32447
32448 2005-03-18  Peter Bartok  <pbartok@novell.com>
32449
32450         * TextControl.cs: Quick hack to center text better
32451
32452 2005-03-18  Peter Bartok  <pbartok@novell.com>
32453
32454         * ControlPaint.cs:
32455           - Don't throw NotImplemented exceptions, just print a notice once
32456             instead (requested by Miguel). This makes running existing SWF
32457             apps a bit easier
32458         * Control.cs:
32459           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
32460           - Added context menu trigger on right click
32461         * Panel.cs: Trigger invalidate on resize
32462         * StatusBar.cs:
32463           - Removed old double-buffer drawing
32464           - Added ResizeRedraw style to force proper update of statusbar
32465         * ListView.cs:
32466           - Removed debug output
32467         * ThemeWin32Classic.cs:
32468           - Fixed drawing of status bar, now draws Text property if there
32469             are no defined panels
32470
32471 2005-03-18  Jackson Harper  <jackson@ximian.com>
32472
32473         * ImageList.cs: When the image stream is set pull all the images
32474         from it.
32475         * ImageListStreamer.cs: Implement reading image list streams.
32476
32477 2005-03-18  Peter Bartok  <pbartok@novell.com>
32478
32479         * ThemeWin32Classic.cs (DrawPictureBox):
32480           - Fixed calculations for centered drawing
32481           - Fixed drawing for normal mode, not scaling the image on normal
32482
32483 2005-03-18  Peter Bartok  <pbartok@novell.com>
32484
32485         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
32486           textbox
32487         * FileDialog.cs:
32488           - Made Open/Save button the accept button for FileDialog
32489           - Tied the cancel button to the IButtonControl cancel button
32490           - Save/Open now properly builds the pathname
32491           - Now handles user-entered text
32492           - Preventing crash on right-click if no item is selected
32493           - Fixed Text property, now uses contents of textbox
32494           - Fixed SelectedText property, now just returns the text part that
32495             is selected in the text box
32496
32497 2005-03-18  Jackson Harper  <jackson@ximian.com>
32498
32499         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
32500         rect, make sure to de-adjust the interior rect after drawing the
32501         tab text.
32502
32503 2005-03-18  Peter Bartok  <pbartok@novell.com>
32504
32505         * MenuAPI.cs: Remove menu *before* executing selected action to
32506           prevent the menu from 'hanging around'
32507           
32508 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
32509
32510         * XplatUIOSX.cs: Implemented WorkingArea property
32511
32512 2005-03-17  Peter Bartok  <pbartok@novell.com>
32513
32514         * XplatUIX11.cs: Fixed menu coord calculations
32515         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
32516           for calculating offsets
32517
32518 2005-03-17  Peter Bartok  <pbartok@novell.com>
32519
32520         * Hwnd.cs: Do not consider menu presence for default client
32521           rectangle location/size
32522         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
32523           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
32524           translation functions
32525         * FileDialog.cs: Fixed (what I presume is a) typo
32526
32527 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
32528
32529         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
32530           X access (avoids X-Async errors)
32531
32532 2005-03-16  Jackson Harper  <jackson@ximian.com>
32533
32534         * TabControl.cs: Raise the SelectedIndexChanged event.
32535
32536 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
32537
32538         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32539           - Removed vertical ToolBar and replaced it with a custom panel
32540             (desktop and home button already work)
32541           - Added Help button (some controls get resized or relocated then)
32542           - Draw correct text depending on Open or Save.
32543           - Fixed some typos...
32544
32545 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
32546
32547         * ScrollBar.cs:
32548           - Only change Maximum and Minimum when need it (bug fix)
32549
32550 2005-03-15  Peter Bartok  <pbartok@novell.com>
32551
32552         * Form.cs: Use Handle for icon, to trigger creation if
32553           the window does not yet exist
32554         * Control.cs:
32555           - CanSelect: Slight performance improvement
32556           - Focus(): Preventing possible recursion
32557           - Invalidate(): Removed ControlStyle based clear flag setting
32558           - WM_PAINT: fixed logic for calling OnPaintBackground
32559           - WM_ERASEBKGND: Fixed logic, added call to new driver method
32560             EraseWindowBackground if the control doesn't paint background
32561         * XplatUIWin32.cs:
32562           - Moved EraseWindowBackground() method to internal methods
32563           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
32564             is sent via SendMessage on BeginPaint call on Win32
32565         * XplatUIX11.cs:
32566           - Added EraseWindowBackground() method
32567           - No longer sends WM_ERASEBKGND on .Expose, but on call to
32568             PaintEventStart, which more closely matches Win32 behaviour
32569           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
32570           - Fixed SetFocus() to properly deal with client and whole windows
32571         * Hwnd.cs: Added ErasePending property
32572         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
32573         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
32574
32575 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
32576
32577         * XplatUIOSX.cs:
32578           - Fix hard loop when timers exist.
32579           - Fix bugs with middle and right click for 3 button mice.
32580
32581 2005-03-11  Peter Bartok  <pbartok@novell.com>
32582
32583         * XplatUIX11.cs:
32584           - get_WorkingArea: Need to call X directly, GetWindowPos only
32585             returns cached data now
32586           - Added sanity check to GetWindowPos hwnd usage
32587
32588 2005-03-11  Jackson Harper  <jackson@ximian.com>
32589
32590         * BindingManagerBase.cs: This method isn't used anymore as
32591         PullData now updates the data in the control.
32592
32593 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
32594
32595         * Form.cs: fixes menu drawing on X11
32596         * MenuAPI.cs:  fixes menu drawing on X11
32597
32598 2005-03-11  Peter Bartok  <pbartok@novell.com>
32599
32600         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
32601           from Jonathan Gilbert; should fix bug #73606
32602         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
32603           in Screen coordinates. Thanks, Jordi.
32604         * Form.cs: Added missing attribute
32605
32606 2005-03-11  Peter Bartok  <pbartok@novell.com>
32607
32608         * Form.cs:
32609           - Rudimentary Mdi support
32610           - Removed outdated FormParent code
32611           - Implemented lots of missing properties and methods, still missing
32612             transparency support
32613           - Added missing attributes
32614           - Implemented support for MaximumBounds
32615           - Added firing of various events
32616         * XplatUI.cs: Added SetIcon() method
32617         * XplatUIDriver.cs: Added SetIcon() abstract
32618         * XplatUIOSX.cs: Stubbed out SetIcon() method
32619         * XplatUIX11.cs:
32620           - Implemented SetIcon() support
32621           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
32622           - Switched to unix line endings
32623         * XplatUIWin32.cs:
32624           - Made POINT internal so for can access it as part of MINMAX
32625           - Implemented SetIcon() support
32626           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
32627             native Mdi support again, might have to go managed)
32628         * Control.cs: Now fires the StyleChanged event
32629         * MdiClient.cs: Added; still mostly empty
32630
32631 2005-03-10  Peter Bartok  <pbartok@novell.com>
32632
32633         * SaveFileDialog.cs: Added emtpy file
32634
32635 2005-03-08  Peter Bartok  <pbartok@novell.com>
32636
32637         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
32638           in turn triggers OnCreateContro) when creating a handle for the
32639           first time.
32640         * TextControl.cs: Fixed endless loop in certain cases when
32641           replacing the current selection
32642
32643 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
32644
32645         * ScrollBar.cs:
32646           - Honors NewValue changes in Scroll events allowing apps to change it
32647           - Adds First and Last Scroll events
32648           - Fixes Thumb events
32649
32650 2005-03-07  Peter Bartok  <pbartok@novell.com>
32651
32652         * Hwnd.cs: Added DefaultClientRectangle property
32653         * XplatUI.cs: Now using the X11 driver Where() method, which provides
32654           more detailed debug information
32655         * XplatUIX11.cs:
32656           - Fixed size-change feedback loop, where we would pull an old size
32657             off the queue and mistakenly change our window's size to an
32658             earlier value
32659           - Now compressing ConfigureNotify events, to reduce looping and
32660             redraw issues
32661         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
32662           is called
32663
32664 2005-03-07  Jackson Harper  <jackson@ximian.com>
32665
32666         * Binding.cs: Push data pushes from data -> property. Check if the
32667         property is readonly when attempting to set it.
32668
32669 2005-03-07  Jackson Harper  <jackson@ximian.com>
32670
32671         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
32672         instead of IsSubclassOf. Pulling data now sets the value on the
32673         control.
32674         * PropertyManager.cs:
32675         * CurrencyManager.cs: Just need to pull data when updating now,
32676         because PullData will set the value on the control.
32677
32678 2005-03-04  Jackson Harper  <jackson@ximian.com>
32679
32680         * Binding.cs: Implement data type parsing and converting on pulled
32681         data. TODO: Are there more ways the data can be converted?
32682
32683 2005-03-04  Jackson Harper  <jackson@ximian.com>
32684
32685         * Binding.cs: Support <Property>IsNull checks. Also bind to the
32686         controls Validating method so we can repull the data when the
32687         control loses focus.
32688
32689 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
32690
32691         * ColumnHeader.cs:
32692           - Fixes null string format
32693           
32694         * ListView.cs:
32695           - Adds enum type checks
32696           - Fixes redrawing and recalc need after changing some properties
32697           - Fixes on focus_item set after the event
32698           - Fixes adding columns after the control has been created
32699           
32700         * ThemeWin32Classic.cs:
32701           - Fixes CheckBox focus rectangle
32702           - Fixes ColumnHeader drawing
32703
32704
32705 2005-03-03  Jackson Harper  <jackson@ximian.com>
32706
32707         * Binding.cs: Bind to <Property>Changed events so we can detect
32708         when properties are changed and update the data.
32709
32710 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
32711
32712         * ImageList.cs:
32713           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
32714           - Fixes ImageList constructor with ImageList container
32715           - Fixes image scaling (wrong parameters at DrawImage)
32716
32717 2005-02-02  Jackson Harper  <jackson@ximian.com>
32718
32719         * Binding.cs: Make property searches case-insensitive. Eliminate
32720         some duplicated code.
32721
32722 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
32723
32724         * ComboBox.cs:
32725                 - Handle focus event
32726                 - Fix scrollbar events
32727                 - Discard highlighted item if remove it
32728                 - Fixes SelectedItem with strings
32729
32730 2005-03-01  Peter Bartok  <pbartok@novell.com>
32731
32732         * Control.cs:
32733           - Fixed Visible property, now follows (once again) parent chain
32734             to return false if any control in the chain is visible=false
32735           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
32736           - Fixed several places where is_visible instead of Visible was used
32737           - Implemented FIXME related to focus selection when setting focused
32738             control to be invisible
32739
32740         * XplatUIWin32.cs: Now using proper method to find out if window is
32741           visible. Thanks to Jordi for pointing it out
32742
32743 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
32744
32745         * ComboBox.cs: show/hide scrollbar instead of creating it
32746
32747 2005-02-27  Jackson Harper  <jackson@ximian.com>
32748
32749         * CurrencyManager.cs: Add PositionChanged stuff.
32750
32751 2005-02-27  Peter Bartok  <pbartok@novell.com>
32752
32753         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
32754         * XplatUIOSX.cs: Added GetMenuOrigin() stub
32755         * XplatUIWin32.cs: Implemented GetMenuOrigin()
32756         * XplatUIX11.cs:
32757           - Implemented GetMenuDC()
32758           - Implemented GetMenuOrigin()
32759           - Implemented ReleaseMenuDC()
32760           - Implemented generation of WM_NCPAINT message
32761           - Implemented generation and handling of WM_NCCALCSIZE message
32762         * Form.cs: Added debug helper message for Jordi's menu work
32763         * Hwnd.cs:
32764           - Modified ClientRect property; added setter, fixed getter to handle
32765             setting of ClientRect
32766           - Added MenuOrigin property
32767
32768 2005-02-26  Peter Bartok  <pbartok@novell.com>
32769
32770         * XplatUIX11.cs:
32771           - Destroys the caret if a window that's being destroyed contains it
32772           - Ignores expose events coming from the X11 queue for windows that
32773             already are destroyed
32774           - Now uses the proper variable for handling DestroyNotify, before we
32775             marked the wrong window as destroyed
32776           - Improved/added some debug output
32777
32778 2005-02-26  Peter Bartok  <pbartok@novell.com>
32779
32780         * X11Keyboard.cs: Fixes to work on 64bit systems
32781
32782 2005-02-26  Peter Bartok  <pbartok@novell.com>
32783
32784         * Control.cs:
32785           - Now calling OnHandleDestroyed from DestroyHandle()
32786             instead of Dispose()
32787           - Removed bogus call to controls.Remove() from DestroyHandle()
32788
32789 2005-02-26  Peter Bartok  <pbartok@novell.com>
32790
32791         * Control.cs: Properly destroy child windows when our handle is
32792           destroyed
32793
32794 2005-02-25  Peter Bartok  <pbartok@novell.com>
32795
32796         * XplatUI.cs:
32797           - Added 'DriverDebug' define to allow tracing XplatUI API calls
32798           - Alphabetized Static Methods and Subclasses
32799
32800         * XplatUIX11.cs:
32801           - Added XException class to allow custom handling of X11 exceptions
32802           - Created custom X11 error handler, tied into XException class
32803           - Added support for MONO_XEXCEPTIONS env var to allow the user
32804             to either throw an exception on X errors or continue running
32805             after displaying the error
32806           - Added handling of DestroyNotify message
32807           - Added handler for CreateNotify message (still disabled)
32808           - Improved (tried to at least) Where method to provide file and lineno
32809         * X11Structs.cs:
32810           - Added XErrorHandler delegate
32811           - Added XRequest enumeration (to suppor translation of errors)
32812
32813 2005-02-25  Jackson Harper  <jackson@ximian.com>
32814
32815         * PropertyManager.cs: Implement editing features
32816         * CurrencyManager.cs:
32817         * Binding.cs: First attempt at UpdateIsBinding
32818         * BindingManagerBase.cs: Call UpdateIsBinding before
32819         pushing/pulling data.
32820
32821 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
32822
32823         * MenuAPI.cs: Respect disabled items
32824         * ThemeWin32Classic.cs
32825                 - Caches ImageAttributes creation for DrawImageDisabled
32826                 - Fixes vertical menu line drawing
32827                 - Draws disabled arrows in disable menu items
32828
32829 2005-02-24  Peter Bartok  <pbartok@novell.com>
32830
32831         * Hwnd.cs:
32832           - Added UserData property to allow associating arbitrary objects
32833             with the handle
32834           - Fixed leak; now removing Hwnd references from static windows array
32835         * XplatUIWin32.cs:
32836           - Fixed Graphics leak in PaintEventEnd
32837           - Removed usage of HandleData, switched over to Hwnd class
32838         * HandleData.cs: Removed, obsoleted by Hwnd.cs
32839
32840 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
32841
32842         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
32843         * ScrollBar.cs: Fixes bug
32844         * TrackBar.cs: removes death code, clipping, mimize refreshes,
32845          keyboard navigation enhancements
32846
32847 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
32848
32849         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
32850         * GroupBox.cs: Add control styles
32851         * Label.cs: Add control styles
32852         * UpDownBase.cs: Add control styles
32853         * ListBox.cs: Add control styles
32854         * XplatUIWin32.cs: Fixes wrong parameter order
32855
32856
32857 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
32858
32859         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
32860
32861 2005-02-23  Jackson Harper  <jackson@ximian.com>
32862
32863         * PropertyManager.cs: Implement property binding. This doesn't
32864         seem to work yet though as (I think) there are some bugs in
32865         System.ComponentModel.PropertyDescriptor.
32866         * BindingContext.cs: Use new PropertyManager constructor.
32867
32868 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
32869
32870         * ProgressBar.cs: use clip region in ProgressBar
32871         * ThemeWin32Classic.cs: use clip region in ProgressBar
32872
32873 2004-02-22  Jackson Harper  <jackson@ximian.com>
32874
32875         * BindingsCollection.cs: Remove some debug code.
32876
32877 2005-02-22  Jackson Harper  <jackson@ximian.com>
32878
32879         * BindingContext.cs:
32880         * ControlBindingsCollection.cs:
32881         * CurrencyManager.cs:
32882         * Binding.cs:
32883         * BindingManagerBase.cs: Initial implementation
32884         * BindingsCollection.cs: Add an internal contains method that the
32885         BindingManagerBase uses to ensure bindings aren't added twice to
32886         the collection.
32887         * PropertyManager.cs: Stubbed out.
32888         * Control.cs:
32889         * ContainerControl.cs: Hook up databinding
32890         
32891 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
32892
32893         * XplatUIOSX.cs:
32894           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
32895           Fixed Invalidate/Update chain.
32896           Fixed tons of other minor bugs (this is almost a complete rewrite).
32897
32898 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
32899
32900         * ComboBox.cs: do subcontrol creation when the control is created
32901
32902 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
32903
32904         * Label.cs: fixes image drawing (image and imagelist)
32905         * ThemeWin32Classic.cs: cache brushes
32906         
32907 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
32908
32909         * Form.cs: Move menu drawing code to Theme class
32910         * ComboBox.cs: Move ComboBox drawing code to Theme class
32911         * MenuItem.cs: Move menu drawing code to Theme class
32912         * MenuAPI.cs: Move menu drawing code to Theme class
32913         * ThemeWin32Classic.cs: New methods
32914         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
32915         * ListBox.cs: Move Listbox drawing code to Theme class
32916         * Theme.cs: New methods
32917
32918 2005-02-20  Peter Bartok  <pbartok@novell.com>
32919
32920         * Control.cs:
32921           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
32922             only process mnemonics on those)
32923           - Fixed event sequence for key handling; first calling
32924             ProcessKeyEventArgs now
32925         * TextBoxBase.cs:
32926           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
32927             for processing non-character keys
32928           - Fixed WM_CHAR to generate proper event sequence before processing
32929         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
32930           generation
32931
32932 2005-02-19  Peter Bartok  <pbartok@novell.com>
32933
32934         * UserControl.cs: Added TextChanged event; added attributes
32935         * SizeGrip.cs: Implemented resizing and optional display of grip
32936         * Form.cs: Fixed attribute
32937         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
32938           Changed meaning of ScrollWindow bool argument; instead of the
32939           clear attribute (which will be true usually anyway), it gives the
32940           option of moving child controls as well.
32941         * XplatUIX11.cs:
32942           - Changed to match new ScrollWindow argument
32943           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
32944             now handles the implicit parent window a WM puts around us
32945         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
32946           to work)
32947         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
32948         * TreeView.cs: Adjusted to new ScrollWindow arguments
32949
32950 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
32951
32952         * Form.cs: Menu integration with non-client area
32953         * MenuItem.cs: Menu integration with non-client area
32954         * MenuAPI.cs: Menu integration with non-client area
32955
32956 2005-02-18  Peter Bartok  <pbartok@novell.com>
32957
32958         * MethodInvoker.cs: Added
32959         * MdiLayout.cs: Added
32960         * SendKeys.cs: Started implementation
32961         * ErrorIconAlignment.cs: Added
32962
32963 2005-02-18  Peter Bartok  <pbartok@novell.com>
32964
32965         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
32966         * Form.cs: Added handling for Menu-related Non-client messages
32967
32968 2005-02-17  Peter Bartok  <pbartok@novell.com>
32969
32970         * UpDownBase.cs: Fixed typo, compilation errors
32971         * DomainUpDown.cs: Fixed attribute value
32972
32973 2005-02-16  Miguel de Icaza  <miguel@novell.com>
32974
32975         * UpDownBase.cs: Attach entry events.
32976         Propagate events.
32977         Add ForeColor property, Focused, InterceptArrowKeys (interception
32978         does not work yet).
32979
32980 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
32981
32982         * Form.cs:
32983                 - Redraw non client are on Setmenu
32984                 - Calc proper menu starting point
32985
32986 2005-02-17  Peter Bartok  <pbartok@novell.com>
32987
32988         * Application.cs: Fixed message_filter check
32989
32990 2005-02-17  Peter Bartok  <pbartok@novell.com>
32991
32992         * Application.cs: Now calls registered message filters
32993         * DockStyle.cs: Fixed attribute
32994         * Form.cs: Fixed attribute
32995         * Menu.cs: Fixed attribute
32996         * ToolTip.cs: Fixed attribute
32997         * TreeNode.cs: Added missing attributes and arranged in regions
32998         * PropertyGrid.cs: Fixed signatures
32999         * TreeNodeCollection.cs: Added attributes
33000         * Splitter.cs: Added missing attributes; arranged into regions
33001         * TabPage.cs: Added missing attributes; arranged into regions
33002         * TextBoxBase.cs: Added missing attributes
33003         * TextBox.cs: Added missing attributes
33004         * ArrangeDirection.cs: Added missing attributes
33005         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
33006         * ToolBarButton.cs: Fixed attributes
33007         * AnchorStyles.cs: Fixed attribute
33008         * TrackBar.cs: Fixed attributes
33009         * TabControl.cs: Added missing attributes and arranged into regions
33010         * ToolBar.cs: Fixed attribute
33011         * StatusBar.cs: Fixed signature, organized into regions and added
33012           attributes
33013         * StatusBarPanel.cs: Fixed attributes
33014         * ContentsResizedEventArgs.cs: Implemented
33015         * ContentsResizedEventHandler.cs: Implemented
33016         * DateBoldEventArgs.cs: Implemented
33017         * DateBoldEventHandler.cs: Implemented
33018         * UpDownEventArgs.cs: Implemented
33019         * UpDownEventHandler.cs: Implemented
33020         
33021 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
33022
33023         * Form.cs: first Menu NC refactoring
33024         * MenuAPI.cs: first Menu NC refactoring
33025         
33026 2005-02-16  Peter Bartok  <pbartok@novell.com>
33027
33028         * ImeMode.cs: Added missing attributes
33029         * Menu.cs: Fixed attribute
33030         * GroupBox.cs: Fixed attribute
33031         * Label.cs: Fixed attribute
33032         * ColorDialog.cs (RunDialog): Removed TODO attribute
33033         * ComboBox.cs: Fixed attributes
33034         * ListControl.cs: Added missing attributes
33035         * PropertyGrid.cs: Fixed attributes
33036         * Control.cs: Fixed attributes
33037         * ListViewItem.cs: Added TypeConverter attribute
33038         * NotifyIcon.cs: Fixed attributes
33039         * ListView.cs: Fixed attributes
33040         * ButtonBase.cs: Fixed attribute
33041         * ImageList.cs: Added missing attributes
33042         * ContainerControl.cs: Fixed signature
33043         * CheckedListBox.cs: Fixed attribute; added missing attributes
33044         * Panel.cs: Fixed attributes
33045         * PropertyTabChangedEventArgs.cs: Added missing attribute
33046         * PropertyValueChangedEventArgs.cs: Added missing attribute
33047         * Binding.cs: Fixed attribute
33048         * ListViewItemConverter: Implemented ListViewSubItemConverter class
33049         * ListBox.cs: Fixed attribute; added missing attributes;
33050         * ScrollableControl.cs: Added missing attributes
33051         * PictureBox.cs: Added missing attributes; implemented missing property
33052         * DateTimePicker.cs: Added missing attributes
33053         * Theme.cs (ToolWindowCaptionHeight): Fixed type
33054         * MonthCalendar.cs: Fixed attributes
33055         * StatusBarPanel.cs: Added missing attributes
33056         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
33057
33058 2005-02-16  Peter Bartok  <pbartok@novell.com>
33059
33060         * TextBoxBase.cs: The previous method to enforce height yet remember
33061           the requested high was less than ideal, this is an attempt to do
33062           it better.
33063         * Control.cs: Added comment about possible problem
33064         * Copyright: Updated format
33065         * GridItemType.cs: Fixed swapped values
33066
33067 2005-02-15  Jackson Harper  <jackson@ximian.com>
33068
33069         * BaseCollection.cs: Use property so we never access an
33070         uninitialized list. Also initialize the list in the property.
33071
33072 2005-02-15  Peter Bartok  <pbartok@novell.com>
33073
33074         * GroupBox.cs (ProcessMnemonic): Implemented
33075         * Label.cs (ProcessMnemonic): Implemented
33076         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
33077           hotkeys
33078
33079 2005-02-15  Peter Bartok  <pbartok@novell.com>
33080
33081         * RadioButton.cs (ProcessMnemonic): Implemented
33082         * CheckBox.cs (ProcessMnemonic): Implemented
33083         * Control.cs:
33084           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
33085             handling
33086           - Added internal method to allow calling ProcessMnemonic from other
33087             controls
33088         * ContainerControl.cs:
33089           - Started support for handling validation chain handling
33090           - Implemented ProcessMnemonic support
33091           - Added Select() call to Active, to make sure the active control
33092             receives focus
33093         * Form.cs: Setting toplevel flag for Forms (this was lost in the
33094           FormParent rewrite)
33095         * ThemeWin32Classic.cs:
33096           - DrawCheckBox(): Fixed stringformat to show hotkeys
33097           - DrawRadioButton(): Fixed stringformat to show hotkeys
33098         * CommonDialog.cs: Removed WndProc override, not needed
33099
33100 2005-02-14  Peter Bartok  <pbartok@novell.com>
33101
33102         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
33103           missed those in the rewrite
33104
33105 2005-02-14  Miguel de Icaza  <miguel@novell.com>
33106
33107         * NumericUpDown.cs (Increment, ToString): Add.
33108         (DecimalPlaces): implement.
33109         
33110         Add attributes.
33111         
33112         * UpDownBase.cs: Add the designer attributes.
33113
33114 2005-02-13  Peter Bartok  <pbartok@novell.com>
33115
33116         * Panel.cs: Removed border_style, now in Control
33117         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
33118           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
33119
33120 2005-02-13  Peter Bartok  <pbartok@novell.com>
33121
33122         * MouseButtons.cs: Added missing attributes
33123         * XplatUIStructs.cs: Added enumeration for title styles
33124         * LeftRightAlignment.cs: Added missing attributes
33125         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
33126           it compatible with Graphics.FromHwnd()
33127         * SelectedGridItemChangedEventArgs.cs: Fixed property type
33128         * Keys.cs: Added missing attributes
33129         * SelectionRange.cs: Added missing attributes
33130         * SelectionRangeConverter.cs: Added
33131         * XplatUI.cs:
33132           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
33133             ReleaseMenuDC methods
33134           - Renamed ReleaseWindow to UngrabWindow
33135           - Added proper startup notice to allow version identification
33136         * Form.cs:
33137           - Added missing attributes
33138           - Removed FormParent concept
33139         * Label.cs: Removed border_style field, now in Control
33140         * RadioButton.cs: Now properly selects RadioButton when focus is
33141           received
33142         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
33143         * Control.cs:
33144           - Added missing attributes
33145           - Added borderstyle handling
33146           - Removed FormParent concept support
33147           - Fixed calls to XplatUI to match changed APIs
33148           - Fixed bug that would case us to use disposed Graphics objects
33149           - Removed unneeded internal methods
33150           - PerformLayout(): Fixed to handle DockStyle.Fill properly
33151           - SelectNextControl(): Fixed to properly check common parents
33152         * TextBoxBase.cs: Removed border_style field (now in Control)
33153         * MessageBox.cs:
33154           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
33155             fixed calculations for form size
33156           - Added support for localized strings and icons
33157           - Improved form size calculations, added border
33158         * ListView.cs: Removed border_style field (now in Control)
33159         * X11Structs.cs: Moved several structs from X11 driver here
33160         * X11Keyboard.cs: Changed debug message
33161         * Application.cs: Removed FormParent concept support
33162         * CommonDialog.cs:
33163           - Resetting end_modal flag
33164           - Removed FormParent concept support
33165         * NativeWindow.cs: Removed FormParent concept support
33166         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
33167           Client area and Non-Client whole window to allow support for WM_NC
33168           messages
33169         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
33170           prevent using it until it supports Hwnd as per Geoff Norton's request
33171         * ToolBar.cs: Fixed drawing, was not doing proper drawing
33172         * PictureBox.cs: Removed border_style field, now in Control
33173         * XplatUIWin32.cs: Added new driver methods
33174
33175 2005-02-12  Peter Bartok  <pbartok@novell.com>
33176
33177         * OpacityConverter.cs: Implemented
33178         * Hwnd.cs: Internal class to support drivers that need to emulate
33179           client area/non-client area window behaviour
33180
33181 2005-02-11  Peter Bartok  <pbartok@novell.com>
33182
33183         * KeysConverter.cs: Implemented
33184
33185 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
33186
33187         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
33188         * LinkLabel: Added missing attributes
33189         * MainMenu.cs: fixes ToString
33190         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
33191         * ListBox.cs: fixes event position
33192         * TrackBar.cs: adds missing attributes and events
33193         
33194 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
33195
33196         * MenuItem.cs: Use SystemInformation and bug fixes
33197         * MenuAPI.cs: Use SystemInformation and bug fixes
33198
33199 2005-02-09  Jackson Harper  <jackson@ximian.com>
33200
33201         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
33202         their keystate otherwise things like VK_MENU get stuck "on".
33203
33204 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
33205
33206         * ListBox.cs: Fixes AddRange bug
33207         
33208 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
33209
33210         * ProgressBar.cs
33211                 - Add missing attributes
33212                 - Add missing method
33213                 
33214         * CheckedListBox.cs: Added missing attributes
33215                 - Add missing attributes
33216                 - Remove extra method
33217         
33218         * ComboBox.cs: Added missing attributes
33219         * VScrollBar.cs: Added missing attributes
33220         * ScrollBar.cs:  Added missing attributes
33221         * ListBox.cs: Fixes signature, add missing consts
33222         * LinkArea.cs:   Added missing attributes
33223         
33224
33225 2005-02-08  Peter Bartok  <pbartok@novell.com>
33226
33227         * Menu.cs: Added missing attributes
33228         * MainMenu.cs: Added missing attributes
33229         * GroupBox.cs: Added missing attributes
33230         * Label.cs: Added missing attributes
33231         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
33232         * ColorDialog.cs:
33233           - Added Instance and Options properties
33234           - Added missing attributes
33235         * Cursor.cs: Made Serializable
33236         * NotifyIcon: Added missing attributes
33237         * MenuItem.cs: Added missing attributes
33238         * TextBoxBase.cs: Implemented AppendText() and Select() methods
33239         * Panel.cs: Added Missing attributes
33240         * MonthCalendar.cs: Fixed CreateParams
33241
33242 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
33243         
33244         * LinkLabel.cs:
33245                 - Fixes signature
33246                 - Fixes issues with links
33247                 - Adds the class attributes
33248
33249 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
33250         
33251         * ComboBox.cs:
33252                 - Fixes button when no items available in dropdown
33253                 - Fixes repainting problems
33254                 - Adds the class attributes
33255                 
33256 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
33257
33258         * XplatUIOSX.cs: Detect the menu bar and title bar height from
33259         the current theme.  Cache these on startup.
33260
33261 2005-02-07  Jackson Harper  <jackson@ximian.com>
33262
33263         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
33264         the scrollbar buttons when they are depressed.
33265
33266 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
33267
33268         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
33269         Get the display size from the main displayid.  We currently dont
33270         support multiple display configurations.
33271
33272 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
33273
33274         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
33275
33276 2005-02-07  Miguel de Icaza  <miguel@novell.com>
33277
33278         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
33279
33280 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
33281
33282         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
33283
33284 2005-02-04  Jackson Harper  <jackson@ximian.com>
33285
33286         * ThemeWin32Classic.cs: Respect the clipping rect when
33287         drawing. Only fill the intersection of clips and rects so there
33288         isn't a lot of large fills.
33289         * ScrollBar.cs: Pass the correct clipping rect to the theme
33290         engine. Remove some debug code.
33291
33292 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
33293         
33294         * DateTimePicker.cs:
33295                 - Fixed crash on DateTime.Parse, use Constructor instead
33296
33297 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
33298         
33299         * MenuItem.cs:
33300         * MenuAPI.cs:
33301                 - Owner draw support (MeasureItem and DrawItem)
33302
33303 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
33304         
33305         *  Menu.cs:
33306                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
33307                 - Fixes MenuItems.Add range
33308         * MenuItem.cs:
33309                 - MergeMenu and Clone and CloneMenu functions
33310
33311 2005-02-03  Jackson Harper  <jackson@ximian.com>
33312
33313         * ScrollBar.cs: Make abstract
33314         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
33315         is abstract.
33316
33317 2005-02-03  Jackson Harper  <jackson@ximian.com>
33318
33319         * ScrollBar.cs: First part of my scrollbar fixups. This removes
33320         all the unneeded refreshes and uses invalidates with properly
33321         computed rects.
33322
33323 2005-02-03  Peter Bartok  <pbartok@novell.com>
33324
33325         * ComponentModel.cs: Added
33326         * IDataGridEditingService.cs: Added
33327         * Timer.cs: Added missing attributes
33328         * ToolTip.cs: Added missing attributes
33329
33330 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
33331
33332         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
33333
33334 2005-02-03  Peter Bartok  <pbartok@novell.com>
33335
33336         * ListBox.cs: Added missing attributes
33337
33338 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
33339         
33340         * ListBox.cs:
33341                 - Fixes font height after font change
33342                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
33343                 
33344 2005-02-02  Peter Bartok  <pbartok@novell.com>
33345
33346         * HandleData.cs: Introduced static methods to allow class
33347           to be more self-contained and track it's own HandleData objects
33348         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
33349           HandleData to use new static methods
33350
33351 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
33352
33353         * Combobox.cs:
33354                 - Fixes default size and PreferredHeight
33355                 - Missing events
33356                 - ObjectCollection.Insert implementation
33357                 
33358         * ListControl.cs
33359                 - Fixes signature
33360         * ListBox.cs:
33361                 - Several fixes
33362                 - ObjectCollection.Insert implementation
33363                 - No selection after clean
33364                 - Small fixes
33365
33366 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
33367
33368         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
33369
33370 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
33371
33372         * Combobox.cs:
33373                 - Caches ItemHeight calculation for OwnerDrawVariable
33374                 - Handles dropdown properly
33375                 - Fixes several minor bugs
33376
33377 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
33378
33379         * ListBox.cs:
33380                 - Fixes 71946 and 71950
33381                 - Fixes changing Multicolumn on the fly
33382                 - Fixes keyboard navigation on Multicolumn listboxes
33383
33384 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
33385         
33386         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
33387         crash reporter log.
33388
33389 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
33390
33391         * XplatUIOSX.cs: Allow applications to actually exit.
33392
33393 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
33394
33395         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
33396         their parent at creation time rather than lazily later.  Fixes a major
33397         regression we were experiencing.
33398
33399 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
33400
33401         * ThemeWin32Classic.cs: more date time picker painting fixes
33402         * DateTimePicker.cs: more monthcalendar drop down fixes
33403         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
33404
33405 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
33406
33407         * ScrollBar.cs:
33408                 - When moving the thumb going outside the control should stop the moving
33409                 - Adds the firing of missing events
33410                 - Fixes no button show if Size is not specified
33411                 - End / Home keys for keyboard navigation
33412
33413 2005-01-30  Peter Bartok  <pbartok@novell.com>
33414
33415         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
33416           sanity check to prevent theoretical loop
33417         * XplatUIWin32.cs (SetVisible): Removed debug output
33418         * XplatUIX11.cs (SystrayChange): Added sanity check
33419         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
33420         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
33421           behaviour, valid until the X11 client window rewrite is done
33422         * TextBox.cs (ctor): Setting proper default foreground and background
33423           colors
33424
33425 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
33426
33427         * Theme: Added DrawDateTimePicker to interface
33428         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
33429         * DateTimePicker.cs: Created (still needs keys and painting code)
33430         * DateTimePickerFormat.cs: added
33431         * MonthCalendar.cs: fixed CreateParams for popup window mode
33432           
33433 2005-01-29  Peter Bartok  <pbartok@novell.com>
33434
33435         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
33436           this should also the calculations for ligher/darker
33437         * Theme.cs: Fixed defaults for ScrollBar widths/heights
33438
33439 2005-01-29  Peter Bartok  <pbartok@novell.com>
33440
33441         * ArrangeDirection.cs: Added
33442         * ArrangeStartingPositon.cs: Added
33443         * SystemInformation.cs: Implemented
33444         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33445           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
33446           used by SystemInformation class
33447         * X11Strucs.cs: Added XSizeHints structure
33448         * MenuAPI.cs:
33449           - Fixed CreateParams to make sure the menu window is always visible
33450           - TrackPopupMenu: Added check to make sure we don't draw the
33451             menu offscreen
33452
33453 2005-01-29  Peter Bartok  <pbartok@novell.com>
33454
33455         * HandleData.cs: Added method for altering invalid area
33456         * TextBoxBase.cs: Implemented TextLength
33457
33458 2005-01-28  Peter Bartok  <pbartok@novell.com>
33459
33460         * XplatUIX11.cs: Improvement over last patch, not sending
33461           the WM_PAINT directly anymore, instead we scroll any pending
33462           exposed areas and let the system pick out the WM_PAINT later
33463
33464 2005-01-28  Peter Bartok  <pbartok@novell.com>
33465
33466         * SWF.csproj: Deleted, no longer used. Instead,
33467           Managed.Windows.Forms/SWF.csproj should be used
33468         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
33469           directly, to avoid a potential race condition with the next
33470           scroll
33471
33472 2005-01-28  Peter Bartok  <pbartok@novell.com>
33473
33474         * XplatUI.cs: Made class internal
33475
33476 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
33477
33478         * CheckedListBox.cs:
33479                 - Draw focus
33480                 - Fixed Drawing
33481                 - Missing methods and events
33482
33483 2005-01-27  Peter Bartok  <pbartok@novell.com>
33484
33485         * Application.cs (Run): Don't use form if we don't have one
33486
33487 2005-01-27  Peter Bartok  <pbartok@novell.com>
33488
33489         * TextBoxBase.cs (get_Lines): Fixed index off by one error
33490
33491 2005-01-27  Peter Bartok  <pbartok@novell.com>
33492
33493         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
33494         * GridItem.cs: Added; Patch by Jonathan S. Chambers
33495         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
33496         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
33497         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
33498         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
33499         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33500         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33501         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33502         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33503         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33504         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33505
33506 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
33507
33508         * Combobox.cs:
33509                 - Draw focus on Simple Combobox
33510                 - Fixes drawing issues
33511                 - fixes 71834
33512
33513 2005-01-27  Peter Bartok  <pbartok@novell.com>
33514
33515         * Form.cs:
33516           - Place window in default location, instead of hardcoded 0/0
33517           - Send initial LocationChanged event
33518         * Control.cs:
33519           - UpdateBounds after creation to find out where the WM placed us
33520           - Make sure that if the ParentForm changes location the Form
33521             is notified
33522         * XplatUIX11.cs: XGetGeometry will not return the coords relative
33523             to the root, but to whatever the WM placed around us.
33524             Translate to root coordinates before returning toplevel
33525             coordinates
33526         * XplatUIWin32.cs: Removed debug output
33527         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
33528           flag to GetWindowPos, to allow translation of coordinates on X11
33529
33530 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
33531
33532         * ListBox.cs: connect LostFocus Event
33533
33534 2005-01-27  Peter Bartok  <pbartok@novell.com>
33535
33536         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
33537           XplatUIX11.cs: Extended the Systray API
33538         * Form.cs: Removed debug output
33539         * Application.cs: Fixed focus assignment, always need to call
33540           XplatUI.Activate() since Form.Activate() has rules that may
33541           prevent activation
33542         * NotifyIcon.cs: Should be complete now
33543         * ToolTip.cs: Worked around possible timer bug
33544
33545 2005-01-27  Jackson Harper  <jackson@ximian.com>
33546
33547         * TabControl.cs:
33548         - Only invalidate the effected tabs when the
33549         selected index changes. This reduces drawing and gets rid of some
33550         flicker.
33551         - Only refresh if the tabs need to be shifted, otherwise only
33552         invalidate the slider button.
33553         - On windows the tabs are not filled to right if the slider is
33554         visible.
33555         
33556 2005-01-27  Jackson Harper  <jackson@ximian.com>
33557
33558         * TabControl.cs: Only refresh on mouseup if we are showing the
33559         slider. Also only invalidate the button whose state has changed.
33560
33561 2005-01-26  Peter Bartok  <pbartok@novell.com>
33562
33563         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
33564         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
33565           and SystrayRemove() methods
33566         * XplatUIOSX.cs: Stubbed Systray methods
33567         * XplatUIX11.cs:
33568           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
33569             methods
33570           - Fixed broken XChangeProperty calls (marshalling messed up things)
33571         * X11Structs.cs: Added enums and structs required for Size hinting
33572         * NotifyIcon.cs: Added & implemented
33573
33574 2005-01-26  Jackson Harper  <jackson@ximian.com>
33575
33576         * TabControl.cs: Space vertically layed out tabs properly.
33577
33578 2005-01-26  Peter Bartok  <pbartok@novell.com>
33579
33580         * Form.cs (CreateClientParams): Always set the location to 0,0
33581           since we're a child window.
33582
33583         * Control.cs (SetVisibleCore): Always explicitly setting the location
33584           of a toplevel window, apparently X11 doesn't like to move windows
33585           while they're not mapped.
33586
33587 2005-01-26  Jackson Harper  <jackson@ximian.com>
33588
33589         * TabControl.cs: Implement FillToRight size mode with vertically
33590         rendered tabs.
33591
33592 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
33593
33594         * ControlPaint.cs, ThemeWin32Classic.cs
33595                 - Fixes DrawFocusRectangle
33596
33597 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
33598
33599         * MenuAPI.cs:
33600                 - MenuBar tracking only starts when item is first clicked
33601                 - Fixes menu hidding for multiple subitems
33602                 - Unselect item in MenuBar when item Executed
33603                 - Fixes bug 71495
33604
33605 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
33606
33607         * ListControl.cs:
33608                 - IsInputKey for ListBox
33609         * ListBox.cs:
33610                 - Focus item
33611                 - Shift and Control item selection
33612                 - Implement SelectionMode.MultiExtended
33613                 - Fixes RightToLeft
33614         * ComboBox.cs:
33615                 - IsInputKey implemented
33616                 - Do not generate OnTextChangedEdit on internal txt changes
33617                 
33618 2005-01-23  Peter Bartok  <pbartok@novell.com>
33619
33620         * AccessibleObject.cs: Partially implemented Select()
33621         * MonthCalendar.cs: Added missing attributes and events
33622         * Form.cs: Fixed CreateParams behaviour, now controls derived from
33623           form can properly override CreateParams.
33624         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33625           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
33626           Control performs Invalidate & Update
33627         * NativeWindow (CreateHandle): Added special handling for Form
33628           and Form.FormParent classes to allow overriding of From.CreateParams
33629         * Control.cs:
33630           - ControlNativeWindow: Renamed 'control' variable to more intuitive
33631             name 'owner'
33632           - ControlNativeWindow: Added Owner property
33633           - Removed usage of Refresh() on property changes, changed into
33634             Invalidate(), we need to wait until the queue is processed for
33635             updates, direct calls might cause problems if not all vars for
33636             Paint are initialized
33637           - Added call to UpdateStyles() when creating the window, to set any
33638             styles that CreateWindow might have ignored.
33639           - Added support for Form CreateParent overrides to UpdateStyles()
33640         * MessageBox.cs: Removed no longer needed FormParent override stuff,
33641           CreateParams are now properly overridable
33642         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
33643           CreateParams are now properly overridable
33644
33645 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
33646
33647         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
33648         OnTextBoxChanged.
33649
33650         Capture LostFocus and OnTextBoxChanged.  The later introduces a
33651         recursive invocation that I have not figured out yet.
33652
33653         Reset the timer when not using (it was accumulating).
33654
33655
33656         (OnTextBoxChanged): Set UserEdit to true here to track whether the
33657         user has made changes that require validation.
33658
33659         Reset changing to avoid loops.
33660
33661 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
33662
33663         * NumericUpDown.cs: Display value at startup.
33664
33665         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
33666         ValidateEditText.
33667
33668         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
33669         filled in.  Added some basic parsing of text.
33670
33671         Still missing the OnXXX method overrides, and figuring out the
33672         events that must be emitted.
33673
33674         * UpDownBase.cs: Handle UserEdit on the Text property.
33675         
33676 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
33677
33678         * ComboBox.cs:
33679           - Fixes IntegralHeight
33680           - ToString method
33681
33682 2005-01-21  Jackson Harper  <jackson@ximian.com>
33683
33684         * TabControl.cs: Set the SelectedIndex property when SelectedTab
33685         is set so that the page visibility is updated and the tabs are
33686         sized correctly.
33687
33688 2005-01-21  Jackson Harper  <jackson@ximian.com>
33689
33690         * TabControl.cs: Use cliping rectangle for blitting. Give the
33691         theme the clipping rect so we can do clipping while
33692         drawing. Remove some debug code.
33693
33694 2005-01-21  Jackson Harper  <jackson@ximian.com>
33695
33696         * TabPage.cs: Add a new method so tab pages can force the tab
33697         control to recalculate the tab page sizes.
33698         * TabControl.cs: UpdateOwner needs to make the tab control recalc
33699         sizes.
33700
33701 2005-01-20  Jackson Harper  <jackson@ximian.com>
33702
33703         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
33704
33705 2005-01-20  Jackson Harper  <jackson@ximian.com>
33706
33707         * TreeView.cs: Set the bounds for nodes properly. They were
33708         getting screwed up when checkboxes were not enabled, but images
33709         were.
33710
33711 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
33712
33713         * ListBox.cs:
33714                 - Owner draw support
33715                 - Fixes
33716                 
33717 2005-01-20  Jackson Harper  <jackson@ximian.com>
33718
33719         * XplatUIStructs.cs: More misc keys
33720         * X11Keyboard.cs: Ignore some control keys.
33721
33722 2005-01-20  Jackson Harper  <jackson@ximian.com>
33723
33724         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
33725         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
33726
33727 2005-01-19  Peter Bartok  <pbartok@novell.com>
33728
33729         * Control.cs: Un-selecting the control when it is loosing focus
33730
33731 2005-01-19  Jackson Harper  <jackson@ximian.com>
33732
33733         * TreeView.cs: Hook up to the text controls leave event so we can
33734         end editing when the users clicks outside the text box.
33735         
33736 2005-01-19  Jackson Harper  <jackson@ximian.com>
33737
33738         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
33739         get set in the conversion array.
33740
33741 2005-01-19  Peter Bartok  <pbartok@novell.com>
33742
33743         * Application.cs (ModalRun): Added a call to CreateControl to ensure
33744           focus is properly set
33745         * Button.cs:
33746           - Added missing attributes
33747           - removed styles, those are already set in the base class
33748         * ButtonBase.cs:
33749           - Added missing attributes
33750           - Added clip window styles
33751         * CheckBox.cs: Added missing attributes
33752         * CommonDialog.cs:
33753           - FormParentWindow.CreateParams: Added required clip styles
33754         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
33755           also filters modifier keys
33756         * MessageBox.cs:
33757           - Added assignment of Accept and Cancel button to enable Enter
33758             and Esc keys in MessageBox dialogs
33759           - FormParentWindow.CreateParams: Added required clip styles
33760         * RadioButton.cs: Added missing attributes
33761         * TextControl.cs: No longer draws selection if control does not
33762           have focus
33763         * TextBoxBase.cs:
33764           - Now draws simple rectangle around test area to make it obvious
33765             there's a control. This is a hack until we properly support borders
33766           - A few simple fixes to support selections better, now erases selected
33767             text when typing, and resets selection when using movement keys
33768
33769 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
33770
33771         * UpDownBase.cs: Added some new properties.
33772
33773         * DomainUpDown.cs: Implement a lot to get my test working.
33774
33775 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
33776
33777         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
33778
33779 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
33780
33781         * OSXStructs (WindowAttributes): Fixed csc complaints
33782
33783 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
33784
33785         * XplayUIOSX.cs:
33786           OSXStructs.cs: Initial refactor to move enums and consts into
33787           OSXStructs and use them in the driver for greater readability.
33788
33789 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
33790
33791         * XplatUIOSX.cs: Initial support for Standard Cursors.
33792         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
33793
33794 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
33795
33796         * ComboBox.cs: ability to change style when the ctrl is already
33797         created, missing methods and events, bug fixes, signature fixes
33798
33799 2005-01-19  Peter Bartok  <pbartok@novell.com>
33800
33801         * Cursors.cs (ctor): Added ctor to fix signature
33802
33803 2005-01-18  Peter Bartok  <pbartok@novell.com>
33804
33805         * Button.cs: Implemented DoubleClick event
33806         * ButtonBase.cs:
33807           - Fixed keyboard handling to behave like MS, where the press of
33808             Spacebar is equivalent to a mousedown, and the key release is
33809             equivalent to mouseup. Now a spacebar push will give the same
33810             visual feedback like a mouse click.
33811           - Added missing attributes
33812           - Added ImeModeChanged event
33813           - Added support for generating DoubleClick event for derived classes
33814         * CheckBox.cs:
33815           - Implemented DoubleClick event
33816           - Added missing attributes
33817         * CommonDialog.cs: Added missing attribute
33818         * ContextMenu.cs: Added missing attributes
33819         * RadioButton.cs:
33820           - AutoChecked buttons do not allow to be unselected when clicked
33821             (otherwise we might end up with no selected buttons in a group)
33822           - Added missing attributes
33823           - Implemented DoubleClickEvent
33824         * ThreadExceptionDialog.cs: Enabled TextBox code
33825
33826 2005-01-18  Peter Bartok  <pbartok@novell.com>
33827
33828         * Form.cs: Removed debug output
33829         * Button.cs: Added support for DoubleClick method
33830
33831 2005-01-18  Peter Bartok  <pbartok@novell.com>
33832
33833         * Form.cs:
33834           - Added method to parent window that allows triggering size
33835             calculations when a menu is added/removed
33836           - set_Menu: Cleaned up mess from early days of Form and Control,
33837             now properly triggers a recalc when a menu is added/removed
33838           - Added case to select form itself as focused form if no child
33839             controls exist
33840           - Added PerformLayout call when showing dialog, to ensure properly
33841             placed controls
33842         * Control.cs:
33843           - Select(): Made internal so Form can access it
33844           - Focus(): Only call Xplat layer if required (avoids loop), and sets
33845             status
33846         * Application.cs (Run): Removed hack and calls PerformLayout instead
33847           to trigger calculation when Form becomes visible
33848
33849 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
33850
33851         * ComboBox.cs: fixes for ownerdraw
33852
33853 2005-01-18  Peter Bartok  <pbartok@novell.com>
33854
33855         * TextControl.cs:
33856           - Sentinel is no longer static, each Document gets it's own, this
33857             avoids locking or alternatively overwrite problems when more
33858             than one text control is used simultaneously.
33859           - Switched to use Hilight and HilightText brushes for text selection
33860
33861         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
33862
33863 2005-01-18  Peter Bartok  <pbartok@novell.com>
33864
33865         * Control.cs:
33866           - Hooked up the following events:
33867                 o ControlAdded
33868                 o ControlRemoved
33869                 o HandleDestroyed
33870                 o ImeModeChanged
33871                 o ParentChanged
33872                 o TabStopChanged
33873                 o Invalidated
33874                 o SystemColorsChanged
33875                 o ParentFontChanged
33876                 o Move
33877           - Removed debug output
33878           - Added a call to the current theme's ResetDefaults when a color change
33879             is detected
33880         * Form.cs: Now setting the proper ImeMode
33881         * Theme.cs: Defined a method to force recreation of cached resources
33882           and rereading of system defaults (ResetDefaults())
33883         * ThemeWin32Classic.cs: Added ResetDefaults() stub
33884
33885 2005-01-17  Peter Bartok  <pbartok@novell.com>
33886
33887         * Control.cs: Added missing attributes
33888
33889 2005-01-17  Jackson Harper  <jackson@ximian.com>
33890
33891         * TreeNode.cs: Implement editing. Add missing properties selected
33892         and visible.
33893         * TreeView.cs: Implement node editing. Also some fixes to use
33894         Invalidate (invalid area) instead of Refresh when selecting.
33895
33896 2005-01-17  Peter Bartok  <pbartok@novell.com>
33897
33898         * Control.cs:
33899           - Implemented InvokeGotFocus() method
33900           - Implemented InvokeLostFocus() method
33901           - Implemented InvokePaint() method
33902           - Implemented InvokePaintBackground() method
33903           - Implemented InvokeClick() method
33904           - Implemented FindForm() method
33905           - Implemented RectangleToClient() method
33906           - Implemented ClientToRectangle() method
33907           - Implemented ResetBackColor() method
33908           - Implemented ResetCursor() method
33909           - Implemented ResetFont() method
33910           - Implemented ResteForeColor() method
33911           - Implemented ResetImeMode() method
33912           - Implemented ResetLeftToRight() method
33913           - Implemented ResetText() method
33914           - Implemented Scale() methods
33915           - Implemented ScaleCore() method
33916           - Implemented Update() method
33917           - Removed unused variables
33918           - Stubbed AccessibilityNotifyClients and
33919             ControlAccessibleObject.NotifyClients() methods (dunno what to do
33920             with those yet)
33921           - Now setting proper default for RightToLeft property
33922           - Fixed bug in SetClientSizeCore that would cause windows to get
33923             really big
33924           - Now sending Click/DoubleClick events
33925           - Now selecting controls when left mouse button is clicked on
33926             selectable control
33927         * AccessibleEvents.cs: Added
33928         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
33929         * XplatUIOSX.cs: Stubbed UpdateWindow() method
33930         * XplatUIWin32.cs: Implemented UpdateWindow() method
33931         * XplatUIX11.cs: Implemented UpdateWindow() method
33932         * Form.cs: Removed stray semicolon causing CS0162 warning
33933         * ThemeWin32Classic.cs: Fixed unused variable warnings
33934         * ScrollableControl.cs: Now calls base method for ScaleCore
33935         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
33936           style to avoid interference with internal click handler (which is
33937           different than standard Control click handling)
33938         * RadioButton.cs:
33939           - Now unchecks all sibling radio buttons when control is
33940             selected (Fixes #68756)
33941           - Removed internal tabstop variable, using the one inherited from
33942             Control
33943
33944 2005-01-17  Jackson Harper  <jackson@ximian.com>
33945
33946         * NavigateEventArgs.cs: Fix base type.
33947         * LinkLabel.cs: Sig fix
33948         
33949 2005-01-17  Jackson Harper  <jackson@ximian.com>
33950
33951         * TreeView.cs: Only invalidate the effected nodes bounds when
33952         selecting nodes.
33953
33954 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
33955
33956         * XplatUIWin32.cs: fixes Win32 marshaling
33957         * XplatUIX11.cs: fixes method signature
33958
33959 2005-01-17  Peter Bartok  <pbartok@novell.com>
33960
33961         * XplatUIX11.cs: Clean up resources when we no longer need them
33962
33963 2005-01-17  Peter Bartok  <pbartok@novell.com>
33964
33965         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
33966           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
33967           and DestroyCursor() methods.
33968         * Cursor.cs: Partially implemented, now supports standard cursors;
33969           still contains some debug code
33970         * Cursors.cs: Implemented class
33971         * Control.cs:
33972           - WndProc(): Added handling of WM_SETCURSOR message, setting the
33973             appropriate cursor
33974           - Implemented Cursor property
33975           - Replaced break; with return; more straightforwar and possibly
33976             faster
33977           - Now properly setting the result for WM_HELP
33978         * X11Structs.cs: Added CursorFontShape enum
33979         * XplatUIStructs.cs:
33980           - Added StdCursor enum (to support DefineStdCursor() method)
33981           - Added HitTest enum (to support sending WM_SETCURSOR message)
33982         * XplatUIX11.cs:
33983           - Now sends the WM_SETCURSOR message
33984           - Implemented new cursor methods
33985         * XplatUIOSX.cs: Stubbed new cursor methods
33986         * XplatUIWin32.cs:
33987           - Implemented new cursor methods
33988           - Added GetSystemMetrics function and associated enumeration
33989
33990 2005-01-15  Peter Bartok  <pbartok@novell.com>
33991
33992         * Control.cs:
33993           - WndProc(): Now handles EnableNotifyMessage
33994           - SelectNextControl(): Fixed bug where if no child or sibling
33995             controls exist we looped endlessly
33996
33997 2005-01-14  Jackson Harper  <jackson@ximian.com>
33998
33999         * TreeView.cs: Recalculate the tab pages when a new one is added
34000         so that the proper bounding rects are created.
34001
34002 2005-01-14  Jackson Harper  <jackson@ximian.com>
34003
34004         * TreeView.cs: Draw a gray box instead of a grip in the lower
34005         right hand corner when there are both horizontal and vertical
34006         scroll bars.
34007
34008 2005-01-14  Jackson Harper  <jackson@ximian.com>
34009
34010         * Control.cs: When erasing backgrounds use FromHwnd instead of
34011         FromHdc when there is a NULL wparam. This occurs on the X driver.
34012         * XplatUIX11.cs: Set the wparam to NULL.
34013
34014 2005-01-13  Jackson Harper  <jackson@ximian.com>
34015
34016         * PictureBox.cs: Implement missing methods (except ToString, need
34017         to test that on windows) and events. When visibility is changed we
34018         need to redraw the image because the buffers are killed. When size
34019         is changed refresh if the sizemode needs it.
34020
34021 2005-01-13  Peter Bartok  <pbartok@novell.com>
34022
34023         * Control.cs (SelectNextControl): Was using wrong method to select
34024           a control
34025
34026 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
34027
34028         * ComboBox.cs: fixes dropstyle
34029
34030 2005-01-13  Peter Bartok  <pbartok@novell.com>
34031
34032         * Form.cs:
34033           - Implemented Select() override
34034           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
34035           - Now sets keyboard focus on startup
34036         * Control.cs (SelectNextControl): Now properly handles directed=true
34037         * TextBoxBase.cs:
34038           - WndProc: Now passes tab key on to base if AcceptTabChar=false
34039           - Added (really bad) focus rectangle (mostly for testing)
34040         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
34041           to enforce redraw on focus changes
34042         * ContainerControl.cs:
34043           - Fixed detection of Shift-Tab key presses
34044           - Fixed traversal with arrow keys
34045         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
34046           gonna keep this or if it's complete yet
34047         
34048 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
34049
34050         * ComboBox.cs: missing properties, fixes
34051
34052 2005-01-13  Peter Bartok  <pbartok@novell.com>
34053
34054         * Panel.cs (ctor): Setting Selectable window style to off
34055         * Splitter.cs (ctor): Setting Selectable window style to off
34056         * GroupBox.cs (ctor): Setting Selectable window style to off
34057         * Label.cs (ctor): Setting Selectable window style to off
34058
34059 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
34060
34061         * UpDownBase.cs (InitTimer): If the timer has been already
34062         created, enable it.
34063
34064         Use a TextBox instead of a Label.
34065
34066 2005-01-12  Jackson Harper  <jackson@ximian.com>
34067
34068         * TreeView.cs: Refresh the tree after sorting the nodes. Always
34069         draw the connecting node lines (when ShowLines is true).
34070         * TreeNode.cs: The nodes index can now be updated. This is used
34071         when a node collection is sorted.
34072         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
34073         insert or an existing unsorted node collection can be sorted.
34074         
34075 2005-01-12  Peter Bartok  <pbartok@novell.com>
34076
34077         * ContainerControl.cs: Implemented ProcessDialogKeys()
34078
34079 2005-01-12  Peter Bartok  <pbartok@novell.com>
34080
34081         * Control.cs:
34082           - Implemented SelectNextControl() method
34083           - Several focus related bug fixes
34084           - Fixed Docking calculations to match MS documentation and
34085             behaviour
34086
34087 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
34088
34089         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
34090         bug fixes
34091
34092 2005-01-12  Peter Bartok  <pbartok@novell.com>
34093
34094         * Control.cs:
34095           - Fixed broken Contains() method
34096           - Implemented GetNextControl() method. Finally. This is the pre-
34097             requisite for focus handling.
34098
34099 2005-01-12  Peter Bartok  <pbartok@novell.com>
34100
34101         * OSXStrucs.cs: Added
34102
34103 2005-01-12  Peter Bartok  <pbartok@novell.com>
34104
34105         * XplatUIWin32.cs:
34106           - Removed PeekMessageFlags
34107           - Implemented SetWindowStyle() method
34108         * XplatUIStructs.cs: Added PeekMessageFlags
34109         * X11Structs: Added missing border_width field to XWindowChanges struct
34110         * XplatUIX11.cs:
34111           - PeekMessage: Now throws exception if flags which are not yet
34112             supported are passed
34113           - Implemented SetWindowStyle() method
34114           - Fixed SetZOrder to handle AfterHwnd properly
34115         * XplatUI.cs: Added SetWindowStyle() method
34116         * XplatUIDriver.cs: Added SetWindowStyle() abstract
34117         * Control.cs:
34118           - Implemented UpdateStyles() method
34119           - Implemented UpdateZOrder() method
34120         * XplatUIOSX.cs: Added SetWindowStyle() stub
34121
34122 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
34123
34124         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
34125         button mouse).
34126
34127
34128 2005-01-11  Jackson Harper  <jackson@ximian.com>
34129
34130         * TreeView.cs: Still need to draw lines to siblings even if out of
34131         the current node is out of the clip.
34132
34133 2005-01-11  Jackson Harper  <jackson@ximian.com>
34134
34135         * TreeView.cs: When setting the hbar/vbar/grip position use
34136         SetBounds so that perform layout is only called once. Also suspend
34137         and resume layout so layout is only done once for all controls.
34138         - Removed some debug fluff
34139         * SizeGrip.cs: Call base implmentation in overriding methods.
34140         - When visibility is changed the drawing buffers are killed so we
34141         need to redraw.
34142
34143 2005-01-11  Jackson Harper  <jackson@ximian.com>
34144
34145         * TreeView.cs: Calculate the open node count while drawing. This
34146         saves us an entire tree traversal for every paint operation. Use
34147         a member var for the open node count so less vars are passed around.
34148
34149 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
34150
34151         * MonthCalendar.cs:
34152         - fixed selection to use mousemove, not mouse polling on timer
34153         * ThemeWin32Classic.cs
34154         - removed redundant unused variable "no_more_content"
34155         
34156 2005-01-11  Peter Bartok  <pbartok@novell.com>
34157
34158         * XplatUIX11.cs (DoEvents): Needs to return when no more events
34159           are pending, so it now calls PeekMessage instead of GetMessage;
34160           implemented a incomplete version of PeekMessage
34161         
34162 2005-01-11  Peter Bartok  <pbartok@novell.com>
34163
34164         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
34165           I18n issues
34166         * TextBoxBase.cs: Added sending of TextChanged event
34167
34168 2005-01-10  Jackson Harper  <jackson@ximian.com>
34169
34170         * TreeView.cs: Try not to draw outside the clipping rectangle on
34171         each node element.
34172
34173 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
34174
34175         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
34176
34177 2005-01-10  Jackson Harper  <jackson@ximian.com>
34178
34179         * TreeView.cs:
34180         - Implement fast scrolling. Now only the newly
34181         exposed nodes are drawn and the old image is moved using the
34182         XplatUI::ScrollWindow method.
34183         - Factor in height of nodes when calculating whether or not the
34184         node is in the clipping rect.
34185
34186 2005-01-10  Jackson Harper  <jackson@ximian.com>
34187
34188         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
34189
34190 2005-01-10  Peter Bartok  <pbartok@novell.com>
34191
34192         * Application.cs: Added temporary hack to resolve all our resize
34193           required issues on startup. This will get fixed properly at
34194           some point in the future
34195
34196 2005-01-10  Jackson Harper  <jackson@ximian.com>
34197
34198         * SizeGrip.cs: New internal class that is used as a sizing
34199         grip control...hence the name.
34200
34201 2005-01-10  Peter Bartok  <pbartok@novell.com>
34202
34203         * Control.cs: Implemented proper TabIndex handling, now assigning
34204           a tabindex when a control is added to a container
34205         * GroupBox.cs (ctor): Now sets the Container style bit, required
34206           for Control.GetNextControl()
34207
34208 2005-01-09  Jackson Harper  <jackson@ximian.com>
34209
34210         * TextBoxBase.cs: Clear window when scrolling (fixes build).
34211
34212 2005-01-09  Peter Bartok <pbartok@novell.com>
34213
34214         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
34215           XplatUIX11.cs: Added ability to control ScrollWindow expose and
34216           an overload for ScrollWindow to allow only scrolling a rectangle
34217
34218 2005-01-09  Peter Bartok <pbartok@novell.com>
34219
34220         * Form.cs:
34221           - Implemented SetDesktopBounds method
34222           - Implemented SetDesktopLocation method
34223
34224 2005-01-08  Jackson Harper  <jackson@ximian.com>
34225
34226         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
34227         the node count has changed, this removes to VScroll::Refresh calls
34228         when drawing.
34229
34230 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
34231
34232         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
34233
34234 2005-01-07  Jackson Harper  <jackson@ximian.com>
34235
34236         * TreeNode.cs: Just update the single node when it is
34237         checked. Don't refresh after toggling, the Expand/Collapse already
34238         handles this.
34239         * TreeView.cs: Respect clipping a little more when drawing. Try
34240         not to redraw things that don't need to be redrawn. Just hide the
34241         scrollbars when they are no longer needed instead of removing
34242         them, so they don't have to be created again and again.
34243         
34244 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
34245
34246         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
34247         coordinates to window space to place the caret properly, FIXED.
34248         Implement GetWindowState & SetWindowState
34249
34250 2005-01-06  Peter Bartok <pbartok@novell.com>
34251
34252         * Form.cs:
34253           - Implemented ClientSize property
34254           - Implemented DesktopBounds property
34255           - Implemented DesktopLocation property
34256           - Implemented IsRestrictedWindow property
34257           - Implemented Size property
34258           - Implemented TopLevel property
34259           - Implemented FormWindowState property
34260         * Control.cs:
34261           - Implemented GetTopLevel() method
34262           - Implemented SetTopLevel() method
34263         * X11Structs.cs (Atom):
34264           - Added AnyPropertyType definition
34265           - Added MapState definiton and updated XWindowAttribute struct
34266         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
34267         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
34268         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
34269         * XplatUIWin32.cs:
34270           - Implemented GetWindowState() and SetWindowState() methods
34271           - Fixed Win32GetWindowLong return type
34272         * XplatUIX11.cs:
34273           - Introduced central function for sending NET_WM messages
34274           - Implemented GetWindowState() and SetWindowState() methods
34275         * TextBoxBase.cs (set_Lines):
34276           - Now uses Foreground color for text added via Text property (Duh!)
34277           - Added code to remember programmatically requested size (fixes
34278             behaviour when Multiline is set after Size)
34279           - Added AutoSize logic
34280
34281 2005-01-06  Jackson Harper  <jackson@ximian.com>
34282
34283         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
34284
34285 2005-01-06  Jackson Harper  <jackson@ximian.com>
34286
34287         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
34288         set to less then 0.
34289
34290 2005-01-06  Jackson Harper  <jackson@ximian.com>
34291
34292         * ScrollableControl.cs: Lazy init the scrollbars.
34293         
34294 2005-01-06  Jackson Harper  <jackson@ximian.com>
34295
34296         * Theme.cs: Speed up getting pens and solid brushes, by using
34297         their ARGB as a hash instead of tostring and not calling Contains.
34298
34299 2005-01-06  Peter Bartok <pbartok@novell.com>
34300
34301         * Form.cs:
34302           - Implemented OnActivated and OnDeactivate event trigger
34303           - Implemented Activate() method
34304           - Fixed ShowDialog() to activate the form that was active before
34305             the dialog was shown
34306         * XplatUIX11.cs:
34307           - Added global active_window var that tracks the currently active
34308             X11 window
34309           - Now always grabs Property changes from the root window to always
34310             catch changes on the active window property
34311           - Added code to PropertyNotify handler to send Active/Inactive
34312             messages when state changes. This puts X11 and Win32 en par on
34313             WM_ACTIVATE notifications (except for double notifications when
34314             the user clicks away from our modal window to another one of our
34315             windows)
34316
34317 2005-01-05  Jackson Harper  <jackson@ximian.com>
34318
34319         * ImageList.cs: Implment ctor
34320
34321 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
34322
34323         * XplatUIOSX.cs: Implement Activate/SetTopmost
34324
34325 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
34326
34327         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
34328
34329 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
34330
34331         * XplatUIOSX.cs: Implement GetActive/SetFocus.
34332
34333 2005-01-05  Peter Bartok <pbartok@novell.com>
34334
34335         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
34336           XplatUIOSX.cs: Added GetActive method to return the currently
34337           active window for the application (or null, if none is active)
34338         * Form.cs:
34339           - Implemented ActiveForm
34340           - Commented out owner assignment for modal dialogs (causes problems
34341             on Win32, since the owner will be disabled)
34342           - Reworked some Active/Focus handling (still incomplete)
34343         * CommonDialog.cs: Commented out owner assignment for modal dialogs
34344           (causes problems on Win32, since the owner will be disabled)
34345         * IWin32Window: Added ComVisible attribute
34346
34347 2005-01-05  Peter Bartok <pbartok@novell.com>
34348
34349         * ToolTip.cs (WndProc): Enable setting focus now that we have the
34350           required XplatUI functions.
34351
34352 2005-01-05  Peter Bartok <pbartok@novell.com>
34353
34354         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
34355           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
34356           to implement focus and activation handling; still incomplete and
34357           with debug output
34358
34359 2005-01-04  Peter Bartok <pbartok@novell.com>
34360
34361         * TextBoxBase.cs: Changed access level for Document property to
34362           match switch to internal for TextControl
34363
34364 2005-01-04  Peter Bartok <pbartok@novell.com>
34365
34366         * AccessibleObject: Added ComVisible attribute
34367
34368 2005-01-04  Jackson Harper  <jackson@ximian.com>
34369
34370         * X11Keyboard.cs: Remove unneeded var.
34371
34372 2005-01-04  Jackson Harper  <jackson@ximian.com>
34373
34374         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
34375         but PAINT.
34376         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
34377         ClientMessage. This makes apps exit cleanly (more often).
34378         
34379 2005-01-04  Jackson Harper  <jackson@ximian.com>
34380
34381         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
34382         handling focus, return correct colors and fonts,
34383         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
34384         handle selection, horizontal scrolling, and mouse interaction.
34385
34386 2005-01-04  Peter Bartok <pbartok@novell.com>
34387
34388         * ICommandExecutor.cs: Added
34389         * IDataGridColumnStyleEditingNotificationService.cs: Added
34390         * IFeatureSupport.cs: Added
34391         * IFileReaderService.cs: Added
34392         * IDataObject.cs: Added ComVisible attribute
34393         * AmbientProperties.cs: Added
34394         * BaseCollection.cs: Added missing attributes
34395         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
34396         * BaseCollection.cs: Added missing attributes
34397         * Binding.cs: Added TypeConverter attribute
34398         * BindingContext.cs: Added DefaultEvent attribute
34399         * BindingsCollection.cs: Added DefaultEvent attribute
34400         * Button.cs: Added DefaultValue attribute
34401         * DragEventArgs.cs: Added ComVisible attribute
34402         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
34403         * KeyEventArgs.cs: Added ComVisible attribute
34404         * KeyPressEventArgs.cs: Added ComVisible attribute
34405         * MouseEventArgs.cs: Added ComVisible attribute
34406         * NavigateEventArgs.cs: Added
34407         * NavigateEventHandler.cs: Added
34408         * FeatureSupport.cs: Added
34409         * OSFeature.cs: Added
34410         * Theme.cs: Added abstract Version property to support OSFeature
34411         * ThemeWin32Classic.cs: Added Version property to
34412           support OSFeature.Themes
34413         * ProgressBar.cs: Removed OnPaintBackground override, not required since
34414           the proper styles to avoid background drawing are set, also doesn't
34415           match MS signature
34416         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
34417         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
34418         * ScrollEventArgs.cs: Added ComVisible attribute
34419         * SplitterEventArgs.cs: Added ComVisible attribute
34420         * AccessibleSelection.cs: Added Flags attribute
34421         * Appearance.cs: Added ComVisible attribute
34422         * Border3DSide.cs: Added ComVisible attribute
34423         * Border3DStyle.cs: Added ComVisible attribute
34424         * BorderStyle.cs: Added ComVisible attribute
34425         * DragAction.cs: Added ComVisible attribute
34426         * ErrorBlinkStyle.cs: Added
34427         * ScrollEventType.cs: Added ComVisible attribute
34428         * AnchorStyles.cs: Added Editor attribute
34429         * DockStyle.cs: Added Editor attribute
34430         * HorizontalAlignment.cs: Added ComVisible attribute
34431         * HelpEventArgs.cs: Added ComVisible attribute
34432         * PaintEventArgs.cs: Added IDisposable
34433
34434 2005-01-04  Peter Bartok <pbartok@novell.com>
34435
34436         * TextControl.cs: Switched Line, LineTag and Document classes to
34437           internal
34438
34439 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
34440
34441         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
34442         Simple mode, fixes, IntegralHeight, etc.
34443
34444 2005-01-04  Peter Bartok <pbartok@novell.com>
34445
34446         * TextBoxBase.cs: Using proper font variable now
34447
34448 2005-01-04  Peter Bartok <pbartok@novell.com>
34449
34450         * Form.cs (ShowDialog): Set parent to owner, if provided
34451         * GroupBox.cs: Removed unused vars
34452         * TextControl.cs:
34453           - Added GetHashCode() for Document and LineTag classes
34454           - Removed unused variables
34455           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
34456             to allow translation between continuous char position and line/pos
34457         * CheckBox.cs: Removed vars that are provided by base class
34458         * RadioButton.cs: Removed vars that are provided by base class, added
34459           new keyword where required
34460         * LinkLabel.cs: Added new keyword where required
34461         * Control.cs (WndProc): Removed unused variable
34462         * TextBoxBase.cs:
34463           - Finished SelectionLength property
34464           - Implemented SelectionStart property
34465           - Implemented Text property
34466           - Removed unused vars
34467         * MessageBox.cs: Added new keyword where required
34468         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
34469           WndProc signature
34470         * MenuAPI.cs: Added new keyword where required
34471         * ButtonBase.cs: Removed vars that are provided by base class, added
34472           new keyword where required
34473         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
34474           argument to double, to allow compiling with csc 2.0 (Atsushi ran
34475           into this)
34476         * Application.cs (Run): Now triggers the ThreadExit event
34477         * CommonDialog.cs: Added new keyword where required; now properly sets
34478           parent (owner) for dialog
34479         * XplatUIX11.cs: Commented out unused vars
34480         * StatusBar.cs: Fixed signature for Text property
34481         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
34482
34483 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
34484
34485         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
34486         TrackBar.cs, MonthCalendar.cs: remove unused vars
34487
34488 2005-01-03  Jackson Harper  <jackson@ximian.com>
34489
34490         * ThemeWin32Classic.cs:
34491         * X11Keyboard.cs: Remove unused vars.
34492
34493 2005-01-03  Peter Bartok  <pbartok@novell.com>
34494
34495         * TextBox.cs:
34496           - set_Text: Tied into TextControl
34497           - set_TextAlignment: Tied into TextControl
34498         * TextControl.cs:
34499           - Added alignment properties and implemented alignment handling
34500             and drawing (still has a bug, not generating proper expose events)
34501           - Added new Line() constructor to allow passing the line alignment
34502           - Fixed selection setting, properly handling end<start now
34503           - Added aligment considerations to RecalculateDocument()
34504         * TextBoxBase.cs:
34505           - Now properly enforces control height for single line controls
34506           - Added support for CharacterCasing
34507           - Added IsInputKey override
34508           - Fixed Keys.Enter logic
34509           - Added SetBoundsCore override
34510           - Fixed mouse selection handling
34511
34512 2005-01-03  Jackson Harper  <jackson@ximian.com>
34513
34514         * TreeView.cs:
34515           - Collapse and uncheck all nodes when CheckBoxes is disabled.
34516           - Checkboxes are always aligned to the bottom of the node,
34517           regardless of item height.
34518           - Use the node bounds to draw the text so we can center it when
34519           the item height is greater then the font height.
34520           - Node::Bounds are only the text part of the node.
34521         * TreeNode.cs: New method to combine collapsing and unchecking all
34522           nodes recursively.
34523
34524 2005-01-02  Jackson Harper  <jackson@ximian.com>
34525
34526         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
34527         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
34528         tree when a check is changed. TODO: Only refresh the checked node.
34529
34530 2004-12-30  Jackson Harper  <jackson@ximian.com>
34531
34532         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
34533         * TreeNode.cs: When collapsing make sure to never collapse the
34534         root node.
34535
34536 2004-12-29  Jackson Harper  <jackson@ximian.com>
34537
34538         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
34539         
34540 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
34541
34542         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
34543
34544 2004-12-28  Peter Bartok  <pbartok@novell.com>
34545
34546         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
34547           not yet assigned
34548
34549 2004-12-28  Peter Bartok  <pbartok@novell.com>
34550
34551         * Control.cs (WndProc): Added WM_HELP handler, now generates
34552           HelpRequested event
34553         * Form.cs: Added HelpButton property and required support code
34554         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
34555
34556 2004-12-28  Peter Bartok  <pbartok@novell.com>
34557
34558         * CommonDialog.cs:
34559           - Made DialogForm.owner variable internal
34560           - Added check to ensure owner form is set before setting
34561             owner properties in CreateParams
34562
34563 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
34564
34565         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
34566           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
34567           GetCursorPos.  Fix major visibility issues.  Rework the windowing
34568           system to support borderless/titleless windows (implements menus).
34569           Fix GetWindowPos.  Implement initial background color support for
34570           views.
34571
34572 2004-12-28  Peter Bartok  <pbartok@novell.com>
34573
34574         * Form.cs (get_CreateParams): Make sure we have an owner before using
34575           the owner variable. Implement proper default if no owner exists
34576
34577 2004-12-28  Peter Bartok  <pbartok@novell.com>
34578
34579         * In preparation for making Managed.Windows.Forms the default build target
34580           for System.Windows.Forms, the following stubbed files were added.
34581           Dialogs are currently being implemented by contributors and are only
34582           short-term place holders.
34583         * ColorDialog.cs: Initial check-in (minmal stub)
34584         * DataGrid.cs: Initial check-in (minimal stub)
34585         * DataGridLineStyle.cs: Initial check-in (minimal stub)
34586         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
34587         * DataGridTableStyle.cs: Initial check-in (minimal stub)
34588         * FontDialog.cs: Initial check-in (minimal stub)
34589         * FileDialog.cs: Initial check-in (minimal stub)
34590         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
34591         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
34592         * OpenFileDialog: Initial check-in (minimal stub)
34593         * IComponentEditorPageSite.cs: Initial check-in
34594         * Splitter.cs: Initial check-in (for Jackson)
34595         * SplitterEventArgs.cs: Initial check-in (for Jackson)
34596         * SplitterEventHandler.cs: Initial check-in (for Jackson)
34597         * TextBox.cs: Initial check-in; still needs some wiring to
34598           TextControl backend
34599         * Form.cs: Implemented ControlBox property
34600         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
34601         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
34602         * TextControl.cs: Added selection functionality; added todo header
34603         * TextBoxBase.cs:
34604           - Implemented Lines property
34605           - Implemented TextHeight property
34606           - Implemented SelectedText property
34607           - Implemented SelectionLength property
34608           - Implemented SelectAll method
34609           - Implemented ToString method
34610           - Removed and cleaned up some debug code
34611           - Implemented (still buggy) mouse text selection
34612
34613 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
34614
34615         * ComboBox.cs: Complete DropDownList implementation, fixes.
34616
34617 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
34618
34619         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
34620         * ComboBoxStyle.cs: ComboBoxStyle enum
34621         * ComboBox.cs: Initial work on ComboBox control
34622
34623 2004-12-21  Peter Bartok  <pbartok@novell.com>
34624
34625         * Control.cs (ctor, CreateParams): Moved setting of is_visible
34626           forward so that anything that creates a window gets the default,
34627           also no longer uses Visible property in CreateParams to avoid
34628           walking up the parent chain and possibly get the wrong visible
34629           status. Fixed IsVisible to no longer walk up to the parent.
34630
34631 2004-12-21  Peter Bartok  <pbartok@novell.com>
34632
34633         * Form.cs (ShowDialog): Unset modality for the proper window
34634  
34635 2004-12-20  Peter Bartok  <pbartok@novell.com>
34636
34637         * CommonDialog.cs: Initial check-in
34638
34639 2004-12-20  Peter Bartok  <pbartok@novell.com>
34640
34641         * Control.cs (Visible): Now uses the parent window instead of the
34642           client area window for the property
34643
34644         * Form.cs
34645           - ShowDialog(): Now uses the proper window for modality
34646           - The default visibility state for the form parent is now false. This
34647             will prevent the user from seeing all the changes to the form and
34648             its controls before the application hits Application.Run()
34649           - Removed some stale commented out code
34650
34651         * NativeWindow.cs:
34652           - Added FindWindow() method to have a method to check for existence
34653             of a window handle
34654           - Added ability to override default exception handling (for example
34655             when debugging with VS.Net; to do this the ExternalExceptionHandler
34656             define must be set
34657           - Removed some useless debug output
34658
34659         * XplatUIX11.cs:
34660           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
34661             not working as expected
34662           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
34663             property to allow switching back to the modal window if focus is
34664             given to another one of our windows (Application Modal)
34665           - Now only sets override_redirect if we create a window
34666             without WS_CAPTION
34667           - Moved EventMask selection before mapping of newly created window
34668             so we can catch the map event as well
34669           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
34670           - Added various Atom related DllImports
34671           - Implemented Exit() method
34672           - .ctor() : No longer shows window if WS_VISIBLE is not defined
34673             in the CreateParams
34674
34675         * MessageBox.cs: Now properly deals with the FormParent window by
34676           providing an override the FormParent CreateParams property to
34677           set as POPUP instead of OVERLAPPED window.
34678
34679 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
34680
34681         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
34682         Minor code cleanup.
34683
34684 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
34685         
34686         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
34687
34688 2004-12-18  Peter Bartok  <pbartok@novell.com>
34689
34690         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
34691           implementing SetModal() method
34692
34693 2004-12-18  Peter Bartok  <pbartok@novell.com>
34694
34695         * X11Structs.cs (XGCValues): Fixed type of function element
34696         * XplatUI.cs: Added ScrollWindow() method
34697         * XplatUIDriver.cs: Added ScrollWindow() abstract
34698         * XplatUIWin32.cs: Implemented ScrollWindow() method
34699         * XplatUIX11.cs: Implemented ScrollWindow() method
34700         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
34701
34702 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
34703
34704         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
34705         Some more keyboard support (INCOMPLETE)
34706
34707 2004-12-17  Peter Bartok  <pbartok@novell.com>
34708
34709         * TextControl.cs:
34710         - Added color attribute to line tags.
34711         - Added color argument to all functions dealing with tags
34712         - Added color argument support to various functions
34713         - Fixed miss-calculation of baseline/shift in certain circumstances
34714
34715         * TextBoxBase.cs: Added new color option to test code
34716
34717 2004-12-17  Jackson Harper  <jackson@ximian.com>
34718
34719         * TreeNode.cs:
34720         * MonthCalendar.cs: Signature fixes
34721
34722 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
34723
34724         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
34725         keyboard event moved it.  Create a new graphics context for each paint resolves this
34726
34727 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
34728
34729         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
34730         Make caret exist and go blink blink.  Initial keyboard support.
34731         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
34732         works.
34733
34734 2004-12-17  Jackson Harper  <jackson@ximian.com>
34735
34736         * XplatUIStructs.cs: Updated set of virtual keycodes.
34737         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
34738
34739 2004-12-17  Jackson Harper  <jackson@ximian.com>
34740
34741         * XplatUIX11.cs: Prune old keyboard code.
34742
34743 2004-12-17  Jackson Harper  <jackson@ximian.com>
34744
34745         * XplatUIX11.cs: When generating mouse wparams get the modifier
34746         keys from the ModifierKeys property.
34747
34748 2004-12-17  Jackson Harper  <jackson@ximian.com>
34749
34750         * X11Keyboard.cs: Send up/down input when generating
34751         messages. Remove some unused vars.
34752
34753 2004-12-17  Jackson Harper  <jackson@ximian.com>
34754
34755         * TabControl.cs:
34756         * TreeView.cs: get rid of warnings.
34757
34758 2004-12-17  Jackson Harper  <jackson@ximian.com>
34759
34760         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
34761
34762 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
34763
34764         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
34765           CheckedListBox.cs: Implementation
34766
34767 2004-12-17  Peter Bartok  <pbartok@novell.com>
34768
34769         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
34770
34771 2004-12-16  Peter Bartok  <pbartok@novell.com>
34772
34773         * TextControl.cs:
34774           - InsertCharAtCaret(): Fixed start pos fixup
34775           - CaretLine_get: No longer derives the line from the tag, the tag
34776             could be stale if lines in the document have been added or deleted
34777           - RebalanceAfterDelete(): Fixed bug in balancing code
34778           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
34779           - Line.Streamline(): Now can also elminate leading empty tags
34780           - DumpTree(): Added a few more tests and prevented exception on
34781             uninitialized data
34782           - Added Debug section for Combining lines
34783           - Delete(): Now copies all remaining properties of a line
34784           
34785         * TextBoxBase.cs:
34786           - Left mousebutton now sets the caret (and middle button still acts
34787             as formatting tester, which must go away soon)
34788           - Added Debug section for Deleting/Combining lines
34789           - Fixed calculations for UpdateView after Combining lines
34790
34791 2004-12-16  Peter Bartok  <pbartok@novell.com>
34792
34793         * TextControl.cs: Now properly aligns text on a baseline, using the
34794           new XplatUI.GetFontMetrics() method. Simplified several calculations
34795         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
34796           defined
34797
34798 2004-12-16  Peter Bartok  <pbartok@novell.com>
34799
34800         * XplatUI.cs: Added GetFontMetrics() method
34801         * XplatUIDriver.cs: Added GetFontMetrics() abstract
34802         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
34803           into libgdiplus, our private GetFontMetrics function
34804         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
34805         * XplatUIWin32.cs: Implemented GetFontMetrics() method
34806
34807 2004-12-16  Jackson Harper  <jackson@ximain.com>
34808
34809         * XplatUIStruct.cs: Add enum for dead keys
34810         * X11Keyboard.cs: Map and unmap dead keys.
34811
34812 2004-12-16  Jackson Harper  <jackson@ximian.com>
34813
34814         * X11Keyboard.cs: Detect and use the num lock mask.
34815
34816 2004-12-16  Peter Bartok  <pbartok@novell.com>
34817
34818         * Control.cs (CreateGraphics): Added check to make sure the
34819           handle of the window exists before calling Graphics.FromHwnd()
34820
34821 2004-12-16  Peter Bartok  <pbartok@novell.com>
34822
34823         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
34824           contains a lot of code that's not supposed to be there for the
34825           real thing, but required for developing/testing the textbox
34826           backend.
34827
34828 2004-12-16  Peter Bartok  <pbartok@novell.com>
34829
34830         * TextControl.cs:
34831         - Fixed Streamline method
34832         - Added FindTag method to Line
34833         - Added DumpTree method for debugging
34834         - Added DecrementLines() method for deleting lines
34835         - Fixed UpdateView to update the cursor to end-of-line on single-line
34836           updates
34837         - Added PositionCaret() method
34838         - Fixed MoveCaret(LineDown) to move into the last line, too
34839         - Added InsertChar overload
34840         - Fixed InsertChar tag offset calculations
34841         - Added DeleteChar() method
34842         - Added Combine() method for folding lines
34843         - Fixed Delete() method, no longer allocates wasted Line object and
34844           now copies all properties when swapping nodes
34845         - Delete() method now updates document line counter
34846
34847 2004-12-15  Jackson Harper  <jackson@ximian.com>
34848
34849         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
34850         * X11Keyboard.cs: Expose the currently selected modifier keys
34851         through a property.
34852
34853 2004-12-15  Peter Bartok  <pbartok@novell.com>
34854
34855         * TextControl.cs: Initial check-in. Still incomplete
34856
34857 2004-12-15  Jackson Harper  <jackson@ximian.com>
34858
34859         * TreeNode.cs:
34860         * TreeView.cs: Fix build on csc (second time today ;-))
34861
34862 2004-12-15  Jackson Harper  <jackson@ximian.com>
34863
34864         * TreeView.cs: Store the treenodes plus/minus box bounds when it
34865         is calculated and use this for click testing.
34866         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
34867
34868 2004-12-15  Jackson Harper  <jackson@ximian.com>
34869
34870         * TreeView.cs: Pass the nodes image index to the image list when
34871         drawing that image.
34872
34873 2004-12-15  Jackson Harper  <jackson@ximian.com>
34874
34875         * X11Keyboard.cs: Set messages hwnd.
34876         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
34877         post_message calls.
34878
34879 2004-12-15  Jackson Harper  <jackson@ximian.com>
34880
34881         * X11Keyboard.cs: Fix to compile with csc.
34882         
34883 2004-12-15  Jackson Harper  <jackson@ximian.com>
34884
34885         * X11Structs.cs: Add key mask values
34886         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
34887         * X11Keyboard.cs: New file - Extrapolates and interpolates key
34888         down/up foo into WM_CHAR foo
34889         * KeyboardLayouts.cs: Common keyboard layouts
34890         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
34891         post messages into the main queue.
34892
34893 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
34894
34895         * Button.cs: implement ProcessMnemonic
34896         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
34897           brushes everytime
34898         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
34899         * ButtonBase.cs: Show HotkeyPrefix (not the &)
34900
34901 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
34902         
34903         * MonthCalendar.cs: Implemented click-hold for next/previous month
34904           and date selection
34905           
34906 2004-12-11  Peter Bartok  <pbartok@novell.com>
34907
34908         * X11Structs.cs:
34909           - Added XKeyboardState (moved from XplatUIX11.cs)
34910           - Added XCreateGC related enums and structures
34911           - Added GXFunction for XSetFunction
34912
34913         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
34914
34915         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
34916           CaretVisible() calls
34917
34918         * ToolTip.cs: Added code to prevent stealing focus from app windows
34919
34920         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
34921           DestroyCaret, SetCaretPos and CaretVisible)
34922
34923         * XplatUIX11.cs:
34924           - Added implementation for caret functions
34925           - Moved hover variables into a struct, to make it a bit easier
34926             on the eyes and to debug
34927           - Removed XKeyboardState (moved to XplatUIX11.cs)
34928           - Moved Keyboard properties into the properties region
34929
34930         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
34931           call to get a graphics context for our control
34932
34933         * XplatUIOSX.cs: Added empty overrides for the new caret functions
34934
34935         * TreeView.cs: Fixed bug. No matter what color was set it would always
34936           return SystemColors.Window
34937
34938         * XplatUIWin32.cs: Implemented caret overrides
34939
34940 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
34941
34942         * ListBox.cs: fire events, implement missing methods and properties,
34943         sorting.
34944
34945 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
34946
34947         * MonthCalendar.cs: invalidation bug fixing
34948         * ThemeWin32Classic.cs: paint fixing
34949
34950 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
34951
34952         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
34953         prepare the CGContextRef there now.
34954
34955 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
34956
34957         * MonthCalendar.cs:
34958           - optimisationL only invalidate areas that have changed
34959         * ThemeWin32Classic.cs:
34960           - only paint parts that intersect with clip_area
34961
34962 2004-12-09  Peter Bartok  <pbartok@novell.com>
34963
34964         * Application.cs: Undid changes from r37004 which cause problems
34965         on X11
34966
34967 2004-12-09  Ravindra  <rkumar@novell.com>
34968
34969         * ToolBar.cs: Added support for displaying ContextMenu
34970         attached to a button on ToolBar.
34971         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
34972         property.
34973
34974 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
34975
34976         * Label.cs: autosize works in text change and removes unnecessary
34977         invalidate
34978
34979 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
34980
34981         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
34982         remove warnings
34983
34984 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
34985
34986         * XplatUIOSX.cs: Added mouse move/click/grab support
34987         Remove some debugging WriteLines not needed anymore.
34988         Add window resizing/positioning.
34989         Fix visibility on reparenting.
34990
34991 2004-12-08  Peter Bartok  <pbartok@novell.com>
34992
34993         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
34994
34995 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
34996
34997         * XplatUIOSX.cs: Initial checkin
34998         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
34999
35000 2004-12-03  Ravindra <rkumar@novell.com>
35001
35002         * ListView.cs: Added some keybindings and fixed scrolling.
35003         ScrollBars listen to ValueChanged event instead of Scroll
35004         Event. This would let us take care of all changes being
35005         done in the scrollbars' values programmatically or manually.
35006         * ListView.cs (CanMultiselect): Added a check for shift key.
35007         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
35008         * ListViewItem.cs (Clone): Fixed. We need to make a copy
35009         of ListViewSubItemCollection as well.
35010
35011 2004-12-06  Peter Bartok <pbartok@novell.com>
35012
35013         * Control.cs (Parent): Added check and exception to prevent
35014         circular parenting
35015
35016 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
35017
35018         * ListBox.cs: implemented clipping, selection single and multiple,
35019         bug fixing
35020
35021 2004-12-03  Ravindra <rkumar@novell.com>
35022
35023         * ListView.cs (ListView_KeyDown):
35024         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
35025         when CTRL key is pressed.
35026         * ListViewItem.cs (Selected): Fixed setting the property.
35027
35028 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
35029
35030         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
35031
35032         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
35033         MinimizeBox, ShowInTaskbar, TopMost properties.
35034
35035         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
35036         will be implemented).
35037
35038 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
35039
35040         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
35041
35042         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
35043         tests.
35044         
35045         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
35046         
35047         * TreeView.cs: BackColor is Colors.Window.
35048
35049 2004-12-01  Jackson Harper  <jackson@ximian.com>
35050
35051         * TreeView.cs: When resizing the tree if the user is making it
35052         smaller we don't get expose events, so we need to handle adding
35053         the horizontal scrollbar in the size changed handler as well as
35054         the expose handler.
35055
35056 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
35057
35058         * DrawItemState.cs: fixes wrong enum values
35059
35060 2004-12-01  Jackson Harper  <jackson@ximian.com>
35061
35062         * TreeView.cs: Resize the hbar as well as the vbar on resize.
35063
35064 2004-12-01  Jackson Harper  <jackson@ximian.com>
35065
35066         * NodeLabelEditEventArgs.cs:
35067         * NodeLabelEditEventHandler.cs:
35068         * OpenTreeNodeEnumerator.cs:
35069         * TreeNode.cs:
35070         * TreeNodeCollection.cs:
35071         * TreeView.cs:
35072         * TreeViewAction.cs:
35073         * TreeViewCancelEventArgs.cs:
35074         * TreeViewCancelEventHandler.cs:
35075         * TreeViewEventArgs.cs:
35076         * TreeViewEventHandler.cs: Initial implementation.
35077
35078 2004-12-01  Ravindra <rkumar@novell.com>
35079
35080         * ListView.cs (CalculateListView): Fixed scrolling related
35081         calculations. Also, removed some debug statements from other
35082         places.
35083         * ListViewItem.cs: Changed access to 'selected' instance variable
35084         from private to internal.
35085         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
35086
35087 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
35088
35089         * ThemeWin32Classic.cs: remove cache of brush and pens for
35090         specific controls and use the global system, fixes scrollbutton
35091         bugs (for small sizes, disabled, etc)
35092         
35093         * ScrollBar.cs: does not show the thumb for very small controls
35094         (as MS) and allow smaller buttons that the regular size
35095
35096 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
35097
35098         * UpDownBase.cs: Add abstract methods for the interface.
35099         Add new virtual methods (need to be hooked up to TextEntry when it
35100         exists).
35101         Add override methods for most features.
35102         Computes the size, forces the height of the text entry.
35103
35104         * NumericUpDown.cs: Put here the current testing code.
35105
35106         * Set eol-style property on all files that do not have mixed line
35107         endings, to minimize the future problems.  There are still a few
35108         files with mixed endings, and someone should choose whether they
35109         want to move it or not.
35110
35111 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
35112
35113         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
35114         System.Colors
35115         
35116 2004-11-30  Ravindra <rkumar@novell.com>
35117
35118         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
35119         drawing and replaced use of SystemColors by theme colors.
35120         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
35121         * ListView.cs (ListViewItemCollection.Add): Throw exception when
35122         same ListViewItem is being added more than once.
35123
35124 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
35125
35126         * MonthCalendar.cs:
35127           - ControlStyles love to make the control not flicker
35128           
35129 2004-11-30  Peter Bartok  <pbartok@novell.com>
35130
35131         * CharacterCasing.cs: Added
35132
35133 2004-11-29  Peter Bartok  <pbartok@novell.com>
35134
35135         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35136           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
35137           I am removing these files as they conflict with already completed
35138           work. While it is fantastic to get contributions to MWF, I
35139           respectfully ask that everyone please coordinate their contributions
35140           through mono-winforms-list or #mono-winforms at this time. We're
35141           explicitly avoiding stubbing and don't want controls that don't have
35142           their basic functionality implemented in svn. Please also see
35143           http://www.mono-project.com/contributing/winforms.html
35144
35145
35146 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
35147
35148         * Application.cs (ModalRun): Don't hang after exit.
35149
35150         * Theme.cs: New TreeViewDefaultSize property.
35151
35152         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
35153         with less hardcoded SystemColors constant.
35154         Implemented TreeViewDefaultSize.
35155
35156         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35157         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
35158
35159
35160 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
35161
35162         * MonthCalendar.cs:
35163           - Fix NextMonthDate and PrevMonthDate click moving calendar
35164
35165 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
35166
35167         * MonthCalendar.cs:
35168           - Fix usage of ScrollChange Property when scrolling months
35169
35170 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
35171
35172         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
35173          - Fixes menu destroying
35174          - Support adding and removing items on already created menus
35175
35176 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
35177
35178         * MonthCalendar.cs:
35179           - Re-worked all bolded dates handling to match win32
35180         * ThemeWin32Classic.cs:
35181           - Fixed rendering with bolded dates
35182
35183 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
35184
35185         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
35186         - Horizontal scroolbar
35187         - Multicolumn
35188         - Fixes
35189
35190
35191 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
35192
35193         * MonthCalendar.cs:
35194           - Fix Usage of MaxSelectionCount from SelectionRange
35195           - Fixed Shift + Cursor Selection
35196           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
35197           - Fixed normal cursor selection to be compat with win32
35198           - Fixed Shift + Mouse Click selection
35199
35200 2004-11-24  Peter Bartok <pbartok@novell.com>
35201
35202         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
35203         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
35204         * XplatUIX11.cs:
35205           - CreatedKeyBoardMsg now updates keystate with Alt key
35206           - Added workaround for timer crash to CheckTimers, Jackson will
35207             develop a proper fix and check in later
35208           - Implemented DispatchMessage
35209           - Removed calling the native window proc from GetMessage (call
35210             now moved to DispatchMessage)
35211
35212         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
35213           the keydata (Fixes bug #69831)
35214
35215         * XplatUIWin32.cs:
35216           - (DispatchMessage): Switched to return IntPtr
35217           - Added DllImport for SetFocus
35218
35219 2004-11-24  Ravindra <rkumar@novell.com>
35220
35221         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
35222         background drawing.
35223         * ListViewItem.cs: Fixed various properties, calculations
35224         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
35225         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
35226         and some internal properties. Fixed MouseDown handler and Paint
35227         method.
35228
35229 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
35230
35231         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
35232
35233 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
35234
35235         * ContainerControl.cs: correct accidental check in of local changes
35236
35237 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
35238
35239         * ThemeWin32Classic.cs:
35240                 - Fixed Drawing Last month in grid (sometimes not showing)
35241         * MonthCalendar.cs:
35242                 - Fixed title width calculation bug (makeing title small)
35243
35244 2004-11-23  Peter Bartok <pbartok@novell.com>
35245
35246         * XplatUIX11.cs:
35247           - Added generation of WM_MOUSEHOVER event
35248           - Added missing assignment of async_method atom
35249           - Fixed WM_ERASEBKGND; now only redraws the exposed area
35250
35251 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
35252
35253         * ThemeWin32Classic.cs:
35254                 - Fixed Drawing of today circle when showtodaycircle not set
35255                 - fixed drawing of first and last month in the grid (gay dates)
35256         * MonthCalendar.cs:
35257                 - Fixed Drawing of today circle
35258                 - Fixed drawing of grady dates
35259                 - Fixed HitTest for today link when ShowToday set to false
35260                 - Fixed DefaultSize to obey ShowToday
35261
35262 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
35263
35264         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
35265         * System.Windows.Forms/Theme.cs
35266         * MonthCalendar.cs: added for MonthCalendar
35267         * SelectionRange.cs: added for MonthCalendar
35268         * Day.cs: added for MonthCalendar: added for MonthCalendar
35269         * DateRangeEventArgs.cs: added for MonthCalendar
35270         * DateRangeEventHandler.cs: added for MonthCalendar
35271
35272 2004-11-22  Ravindra <rkumar@novell.com>
35273
35274         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
35275         property.
35276
35277 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
35278
35279         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
35280         event handler.
35281         
35282         * NumericUpDown.cs: Added new implementation.
35283         * UpDownBase.cs: Added new implementation.
35284
35285         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
35286         implementations.
35287         
35288         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
35289         implementations.
35290
35291         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
35292         methods.
35293
35294 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
35295
35296         * Timer.cs  (Dispose): Should call the base dispose when
35297         overriding.
35298
35299 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
35300
35301         * ScrollBar.cs: updates thumb position when max, min or increment
35302         is changed
35303
35304 2004-11-21  Ravindra <rkumar@novell.com>
35305
35306         * ListView.cs: Implemented item selection, activation and
35307         column header style. Fixed properties to do a redraw, if
35308         required. Added support for MouseHover, DoubleClick, KeyDown
35309         and KeyUp event handling and some minor fixes.
35310         * ListViewItem.cs: Fixed constructor.
35311         * ThemeWin32Classic.cs: Improved drawing for ListView.
35312
35313 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
35314
35315         * ThemeWin32Classic.cs: initial listbox drawing code
35316         * DrawMode.cs: new enumerator
35317         * ListControl.cs: stubbed class
35318         * ListBox.cs: initial implementation
35319         * Theme.cs: new methods definitions
35320         * SelectionMode.cs: new enumerator
35321
35322 2004-11-17  Peter Bartok  <pbartok@novell.com>
35323
35324         * XplatUIWin32.cs: Added double-click events to the class style
35325         * Control.cs (WndProc):
35326           - Added handling of click-count to MouseDown/ MouseUp events.
35327           - Added handling of middle and right mouse buttons
35328           - Removed old debug code
35329
35330 2004-11-17  Jackson Harper  <jackson@ximian.com>
35331
35332         * XplatUIX11.cs: Use the new Mono.Unix namespace.
35333
35334 2004-11-17  Ravindra <rkumar@novell.com>
35335
35336         * ListView.cs: Added event handling for MouseMove/Up/Down.
35337         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
35338         * ThemeWin32Classic.cs: We need to clear the graphics context and
35339         draw column header in a proper state.
35340
35341
35342 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
35343
35344         *  Menu.cs: fixes signature
35345
35346 2004-11-16  Peter Bartok  <pbartok@novell.com>
35347
35348         * XplatUIX11.cs (GetMessage): Implemented generation of
35349           double click mouse messages
35350
35351 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
35352
35353         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
35354         not by menu
35355
35356 2004-11-11  Peter Bartok  <pbartok@novell.com>
35357
35358         * HandleData.cs: Added Visible property
35359         * XplatUIX11.cs (IsVisible): Now uses Visible property from
35360           HandleData
35361         * XplatUIX11.cs: Removed old debug leftovers
35362         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
35363         * Control.cs (WndProc): Removed old debug leftovers,
35364           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
35365           needed WM_SIZE handling
35366
35367 2004-11-11  Jackson Harper  <jackson@ximian.com>
35368
35369         * OwnerDrawPropertyBag.cs:
35370         * TreeViewImageIndexConverter.cs: Initial implementation
35371
35372 2004-11-10  Jackson Harper  <jackson@ximian.com>
35373
35374         * ThemeWin32Classic.cs:
35375         * TabControl.cs: instead of moving tabs by the slider pos just
35376         start drawing at the tab that is offset by the slider. This way
35377         scrolling always moves by exactly one tab.
35378
35379 2004-11-10  Jackson Harper  <jackson@ximian.com>
35380
35381         * TabControl.cs: You can only scroll left when the slider has
35382         already ben moved right.
35383         
35384 2004-11-10  Jackson Harper  <jackson@ximian.com>
35385
35386         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
35387         the clip area.
35388         
35389 2004-11-10  Jackson Harper  <jackson@ximian.com>
35390
35391         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
35392         clip area.
35393         
35394 2004-11-09  Jackson Harper  <jackson@ximian.com>
35395
35396         * TabControl.cs (CalcXPos): New helper method so we can determine
35397         the proper place to start drawing vertical tabs.
35398         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
35399         
35400 2004-11-09  Jackson Harper  <jackson@ximian.com>
35401
35402         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
35403         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
35404         and Bottom, left and right are illegal values for this and
35405         multiline is enabled when the alignment is set to left or right.
35406         (DrawTab): Each alignment block should draw the text itself now
35407         because Left requires special love. Also add rendering for Left
35408         aligned tabs.
35409         
35410 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
35411
35412         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
35413         does not destroy the windows, removes debugging messages
35414
35415 2004-11-09  jba  <jba-mono@optusnet.com.au>
35416
35417         * ThemeWin32Classic.cs
35418         (DrawButtonBase): Fix verticle text rect clipping in windows
35419         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35420         rendering and incorrect text rect clipping
35421         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35422         rendering and incorrect text rect clipping
35423         
35424 2004-11-08  Jackson Harper  <jackson@ximian.com>
35425
35426         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
35427         bottom when they are bottom aligned so the bottoms of the tabs get
35428         displayed.
35429         * TabControl.cs (DropRow): Move rows up instead of down when the
35430         tab control is bottom aligned.
35431
35432 2004-11-08 13:59  pbartok
35433
35434         * XplatUIX11.cs:
35435           - Added handling for various window styles
35436           - Added handling for popup windows
35437           - Added SetTopmost handling
35438
35439 2004-11-08 13:55  pbartok
35440
35441         * XplatUIWin32.cs:
35442           - Added argument to SetTopmost method
35443           - Fixed broken ClientToScreen function
35444
35445 2004-11-08 13:53  pbartok
35446
35447         * XplatUIStructs.cs:
35448           - Added missing WS_EX styles
35449
35450 2004-11-08 13:53  pbartok
35451
35452         * XplatUI.cs, XplatUIDriver.cs:
35453           - Added argument to SetTopmost
35454
35455 2004-11-08 13:52  pbartok
35456
35457         * X11Structs.cs:
35458           - Added XSetWindowAttributes structure
35459           - Improved XWindowAttributes structure
35460           - Added SetWindowValuemask enum
35461           - Added window creation arguments enum
35462           - Added gravity enum
35463           - Added Motif hints structure
35464           - Added various Motif flags and enums
35465           - Added PropertyMode enum for property functions
35466
35467 2004-11-08 13:50  pbartok
35468
35469         * Form.cs:
35470           - Fixed arguments for updated SetTopmost method
35471
35472 2004-11-08 13:49  pbartok
35473
35474         * ToolTip.cs:
35475           - Fixed arguments for updated SetTopmost function
35476           - Fixed usage of PointToClient
35477
35478 2004-11-08 13:44  pbartok
35479
35480         * MenuAPI.cs:
35481           - Added Clipping of children and siblings
35482
35483 2004-11-08 13:41  pbartok
35484
35485         * MainMenu.cs:
35486           - Removed SetMenuBarWindow call. We do this in Form.cs
35487
35488 2004-11-08 13:40  jackson
35489
35490         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
35491           scrolling jimmi in the correct location with bottom aligned tabs
35492
35493 2004-11-08 13:36  pbartok
35494
35495         * ContainerControl.cs:
35496           - Implemented BindingContext
35497           - Implemented ParentForm
35498
35499 2004-11-08 12:46  jackson
35500
35501         * TabControl.cs: Put bottom rendered tabs in the right location
35502
35503 2004-11-08 07:15  jordi
35504
35505         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
35506           removes dead code
35507
35508 2004-11-05 17:30  jackson
35509
35510         * TabControl.cs: When selected tabs are expanded make sure they
35511           don't go beyond the edges of the tab control
35512
35513 2004-11-05 14:57  jackson
35514
35515         * TabControl.cs: Reset show_slider so if the control is resized to
35516           a size where it is no longer needed it's not displayed anymore
35517
35518 2004-11-05 13:16  jackson
35519
35520         * TabControl.cs: Make tab pages non visible when added to the
35521           control
35522
35523 2004-11-05 12:42  jackson
35524
35525         * TabControl.cs: Implement SizeMode.FillToRight
35526
35527 2004-11-05 12:16  jackson
35528
35529         * Control.cs: Do not call CreateHandle if the handle is already
35530           created
35531
35532 2004-11-05 11:46  jackson
35533
35534         * TabControl.cs: Remove superflous call to CalcTabRows
35535
35536 2004-11-05 09:07  jackson
35537
35538         * XplatUIX11.cs: Update for Mono.Posix changes
35539
35540 2004-11-05 07:00  ravindra
35541
35542         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
35543           scrolling.
35544
35545 2004-11-04 22:47  jba
35546
35547         * ThemeWin32Classic.cs:
35548           - Fix Button rendering for FlatStyle = Flat or Popup
35549           - Fix RadioButton and CheckBox rendering when Appearance = Button
35550             (normal and flatstyle).
35551           - Correct outer rectangle color when drawing focus rectangle
35552           - Adjust button bounds to be 1 px smaller when focused
35553           - Make button not draw sunken 3d border when pushed (windows compat)
35554           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
35555           - Offset the text in RadioButton and Checkbox when being rendered as
35556           a button.
35557           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
35558           radiobuttons
35559           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
35560           - Fixed disabled text rendering for normally rendered radiobuttons
35561
35562 2004-11-04 10:26  jackson
35563
35564         * TabControl.cs: Recalculate tab rows when resizing
35565
35566 2004-11-04 07:47  jordi
35567
35568         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
35569           collection completion, drawing issues, missing features
35570
35571 2004-11-04 05:03  ravindra
35572
35573         * ScrollBar.cs:
35574                 - We need to recalculate the Thumb area when
35575                 LargeChange/maximum/minimum values are changed.
35576           - We set the 'pos' in UpdatePos() method to minimum, if it's less
35577                 than minimum. This is required to handle the case if large_change is
35578                 more than max, and use LargeChange property instead of large_change
35579                 variable.
35580           - We return max+1 when large_change is more than max, like MS does.
35581
35582 2004-11-04 04:29  ravindra
35583
35584         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
35585                 - Changed default value signatures (prefixed all with ListView).
35586                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
35587                 ListView.
35588           - Fixed calculations for ListViewItem and implemented Clone()
35589           method.
35590
35591 2004-11-04 04:26  ravindra
35592
35593         * Theme.cs, ThemeWin32Classic.cs:
35594                 - Changed default ListView values signatures (prefixed all with
35595                 ListView).
35596           - Fixed default size values for VScrollBar and HScrollBar.
35597                 - Fixed DrawListViewItem method.
35598
35599 2004-11-04 04:05  ravindra
35600
35601         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
35602
35603 2004-11-04 04:04  ravindra
35604
35605         * ImageList.cs: Implemented the missing overload for Draw method.
35606
35607 2004-11-03 19:29  jackson
35608
35609         * TabControl.cs: Handle dropping rows on selection properly
35610
35611 2004-11-03 11:59  jackson
35612
35613         * TabControl.cs: remove debug code
35614
35615 2004-11-03 11:52  jackson
35616
35617         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
35618           the scrolly widgerywoo
35619
35620 2004-11-02 13:52  jackson
35621
35622         * TabControl.cs: Resize the tab pages and tabs when the tab control
35623           is resized
35624
35625 2004-11-02 13:40  jackson
35626
35627         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
35628           selected tab to the bottom
35629
35630 2004-11-02 13:39  jackson
35631
35632         * TabPage.cs: Store the tab pages row
35633
35634 2004-11-02 12:33  jordi
35635
35636         * MenuItem.cs: fixes handle creation
35637
35638 2004-11-02 11:42  jackson
35639
35640         * TabControl.cs: signature fix
35641
35642 2004-11-02 08:56  jackson
35643
35644         * TabControl.cs: Calculate whether the tab is on an edge properly.
35645           Remove top secret debugging code
35646
35647 2004-11-01 19:57  jackson
35648
35649         * TabControl.cs: Add click handling, and proper sizing
35650
35651 2004-11-01 19:47  jackson
35652
35653         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
35654           tab controls
35655
35656 2004-11-01 19:39  jackson
35657
35658         * TabPage.cs: add internal property to store the bounds of a tab
35659           page
35660
35661 2004-10-30 04:23  ravindra
35662
35663         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
35664           values.
35665
35666 2004-10-30 04:21  ravindra
35667
35668         * ListView.cs, ListViewItem.cs: Added support for scrolling and
35669           fixed calculations.
35670
35671 2004-10-30 03:06  pbartok
35672
35673         * XplatUIX11.cs:
35674           - Removed extension of DllImported libs
35675
35676 2004-10-29 09:55  jordi
35677
35678         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
35679           navigation, itemcollection completion, menu fixes
35680
35681 2004-10-27 22:58  pbartok
35682
35683         * XplatUIX11.cs:
35684           - Now throws a nice error message when no X display could be opened
35685
35686 2004-10-26 13:51  jordi
35687
35688         * ListView.cs: removes warning
35689
35690 2004-10-26 03:55  ravindra
35691
35692         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
35693           ThemeWin32Classic.cs: Some formatting for my last checkins.
35694
35695 2004-10-26 03:36  ravindra
35696
35697         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
35698           control and default values.
35699
35700 2004-10-26 03:35  ravindra
35701
35702         * Theme.cs: Added some default values for ListView control.
35703
35704 2004-10-26 03:33  ravindra
35705
35706         * ToolBar.cs: ToolBar should use the user specified button size, if
35707           there is any. Added a size_specified flag for the same.
35708
35709 2004-10-26 03:33  ravindra
35710
35711         * ColumnHeader.cs: Added some internal members and calculations for
35712           ColumnHeader.
35713
35714 2004-10-26 03:32  ravindra
35715
35716         * ListViewItem.cs: Calculations for ListViewItem.
35717
35718 2004-10-26 03:31  ravindra
35719
35720         * ListView.cs: Added some internal members and calculations for
35721           ListView.
35722
35723 2004-10-22 13:31  jordi
35724
35725         * MenuAPI.cs: speedup menus drawing
35726
35727 2004-10-22 13:16  jackson
35728
35729         * XplatUIX11.cs: Make sure to update exposed regions when adding an
35730           expose event
35731
35732 2004-10-22 11:49  jackson
35733
35734         * Control.cs: oops
35735
35736 2004-10-22 11:41  jackson
35737
35738         * Control.cs: Check to see if the window should have its background
35739           repainted by X when drawing.
35740
35741 2004-10-22 11:31  jackson
35742
35743         * XplatUIX11.cs: When invalidating areas only use XClearArea if
35744           clear is true, this way we do not get flicker from X repainting the
35745           background
35746
35747 2004-10-22 11:28  jackson
35748
35749         * XEventQueue.cs: Queue properly
35750
35751 2004-10-21 09:38  jackson
35752
35753         * XEventQueue.cs: Fix access modifier
35754
35755 2004-10-21 09:36  jackson
35756
35757         * XEventQueue.cs: Don't loose messages
35758
35759 2004-10-21 09:22  jackson
35760
35761         * XEventQueue.cs: Don't loose messages
35762
35763 2004-10-20 04:15  jordi
35764
35765         * BootMode.cs: enum need it by SystemInfo
35766
35767 2004-10-19 21:58  pbartok
35768
35769         * XplatUIWin32.cs:
35770           - Small sanity check
35771
35772 2004-10-19 21:56  pbartok
35773
35774         * Form.cs:
35775           - Added private FormParentWindow class which acts as the container
35776             for our form and as the non-client area where menus are drawn
35777           - Added/Moved required tie-ins to Jordi's menus
35778           - Fixed/Implemented the FormStartPosition functionality
35779
35780 2004-10-19 21:52  pbartok
35781
35782         * Control.cs:
35783           - Removed unneeded locals
35784           - Added code to all size and location properties to understand and
35785             deal with the parent container of Form
35786
35787 2004-10-19 21:33  pbartok
35788
35789         * Application.cs:
35790           - Fixed to deal with new Form subclasses for menus
35791
35792 2004-10-19 17:48  jackson
35793
35794         * XEventQueue.cs: commit correct version of file
35795
35796 2004-10-19 16:50  jackson
35797
35798         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
35799
35800 2004-10-19 16:15  jordi
35801
35802         * MenuAPI.cs: MenuBarCalcSize returns the height
35803
35804 2004-10-19 08:31  pbartok
35805
35806         * Control.cs:
35807           - Added missing call to PreProcessMessage before calling OnXXXKey
35808           methods
35809
35810 2004-10-19 00:04  ravindra
35811
35812         * ToolTip.cs: Fixed constructor.
35813
35814 2004-10-18 09:31  jordi
35815
35816         * MenuAPI.cs: menuitems in menubars do not have shortcuts
35817
35818 2004-10-18 09:26  jordi
35819
35820         * MenuItem.cs: fixes MenuItem class signature
35821
35822 2004-10-18 08:56  jordi
35823
35824         * MenuAPI.cs: prevents windows from showing in the taskbar
35825
35826 2004-10-18 00:28  ravindra
35827
35828         * ToolTip.cs: Suppressed a warning message.
35829
35830 2004-10-18 00:27  ravindra
35831
35832         * Control.cs: Default value of visible property must be true.
35833
35834 2004-10-17 23:19  pbartok
35835
35836         * ToolTip.cs:
35837           - Complete implementation
35838
35839 2004-10-17 23:19  pbartok
35840
35841         * XplatUIX11.cs:
35842           - Added EnableWindow method
35843           - Added SetModal stub
35844           - Added generation of WM_ACTIVATE message (still needs testing)
35845           - Added SetTopMost stub
35846           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
35847
35848 2004-10-17 23:17  pbartok
35849
35850         * XplatUIWin32.cs:
35851           - Removed VirtualKeys to XplatUIStructs
35852           - Implemented SetTopMost method
35853           - Implemented EnableWindow method
35854           - Bugfix in ScreenToClient()
35855           - Bugfixes in ClientToScreen()
35856
35857 2004-10-17 22:51  pbartok
35858
35859         * XplatUIStructs.cs:
35860           - Added WS_EX styles to WindowStyles enumeration
35861
35862 2004-10-17 22:50  pbartok
35863
35864         * XplatUI.cs, XplatUIDriver.cs:
35865           - Added method for enabling/disabling windows
35866           - Added method for setting window modality
35867           - Added method for setting topmost window
35868
35869 2004-10-17 22:49  pbartok
35870
35871         * ThemeWin32Classic.cs:
35872           - Added ToolTip drawing code
35873
35874 2004-10-17 22:49  pbartok
35875
35876         * Theme.cs:
35877           - Added ToolTip abstracts
35878
35879 2004-10-17 22:47  pbartok
35880
35881         * Form.cs:
35882           - Fixed Form.ControlCollection to handle owner relations
35883           - Added Owner/OwnedForms handling
35884           - Implemented Z-Ordering for owned forms
35885           - Removed unneeded private overload of ShowDialog
35886           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
35887             so I hope)
35888           - Fixed Close(), had wrong default
35889           - Added firing of OnLoad event
35890           - Added some commented out debug code for Ownership handling
35891
35892 2004-10-17 22:16  pbartok
35893
35894         * Control.cs:
35895           - Fixed/implemented flat list of controls
35896
35897 2004-10-17 22:14  pbartok
35898
35899         * Application.cs:
35900           - Added code to simulate modal dialogs on Win32
35901
35902 2004-10-17 16:11  jordi
35903
35904         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
35905           mouse event
35906
35907 2004-10-17 13:39  jordi
35908
35909         * MenuAPI.cs: menu drawing fixes
35910
35911 2004-10-15 09:10  ravindra
35912
35913         * StructFormat.cs: General Enum.
35914
35915 2004-10-15 09:09  ravindra
35916
35917         * SizeGripStyle.cs: Enum for Form.
35918
35919 2004-10-15 09:08  ravindra
35920
35921         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
35922           in Theme for ListView.
35923
35924 2004-10-15 09:06  ravindra
35925
35926         * ColumnHeader.cs: Flushing some formatting changes.
35927
35928 2004-10-15 09:05  ravindra
35929
35930         * ListViewItem.cs: Implemented GetBounds method and fixed coding
35931           style.
35932
35933 2004-10-15 09:03  ravindra
35934
35935         * ListView.cs: Implemented Paint method and fixed coding style.
35936
35937 2004-10-15 07:34  jordi
35938
35939         * MenuAPI.cs: fix for X11
35940
35941 2004-10-15 07:32  ravindra
35942
35943         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
35944                 - Renamed Paint() method to Draw() for clarity. Also, moved
35945                 DrawImage() to OnPaint().
35946
35947 2004-10-15 07:25  ravindra
35948
35949         * CheckBox.cs, RadioButton.cs:
35950                 - Removed Redraw (), we get it from ButtonBase.
35951                 - Implemented Paint (), to do class specific painting.
35952
35953 2004-10-15 07:16  ravindra
35954
35955         * ButtonBase.cs:
35956                 - Redraw () is not virtual now.
35957                 - Added an internal virtual method Paint (), so that
35958                 derived classes can do their painting on their own.
35959                 - Modified OnPaint () to call Paint ().
35960
35961 2004-10-15 06:43  jordi
35962
35963         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
35964           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
35965
35966 2004-10-15 00:30  ravindra
35967
35968         * MessageBox.cs:
35969                 - MessageBox on windows does not have min/max buttons.
35970                 This change in CreateParams fixes this on Windows. We
35971                 still need to implement this windowstyle behavior in
35972                 our X11 driver.
35973
35974 2004-10-14 05:14  ravindra
35975
35976         * ToolBar.cs:
35977                 - Changed Redraw () to do a Refresh () always.
35978                 - Fixed the MouseMove event handling when mouse is pressed,
35979                 ie drag event handling.
35980                 - Replaced the usage of ToolBarButton.Pressed property to
35981                 ToolBarButton.pressed internal variable.
35982
35983 2004-10-14 05:10  ravindra
35984
35985         * ToolBarButton.cs:
35986                 - Added an internal member 'inside' to handle mouse move
35987                 with mouse pressed ie mouse drag event.
35988                 - Changed 'Pressed' property to return true only when
35989                 'inside' and 'pressed' are both true.
35990                 - Some coding style love.
35991
35992 2004-10-14 00:17  ravindra
35993
35994         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
35995           public method.
35996
35997 2004-10-14 00:15  ravindra
35998
35999         * ButtonBase.cs: Redraw () related improvements.
36000
36001 2004-10-14 00:14  ravindra
36002
36003         * MessageBox.cs: Moved InitFormSize () out of Paint method and
36004           removed unnecessary calls to Button.Show () method.
36005
36006 2004-10-13 17:50  pbartok
36007
36008         * XplatUIX11.cs:
36009           - Formatting fix
36010           - Removed destroying of window until we solve the problem of X
36011             destroying the window before us on shutdown
36012
36013 2004-10-13 16:32  pbartok
36014
36015         * ButtonBase.cs:
36016           - Now Redraws on MouseUp for FlatStyle Flat and Popup
36017
36018 2004-10-13 14:18  pbartok
36019
36020         * XplatUIX11.cs:
36021           - Added code to destroy the X window
36022
36023 2004-10-13 14:18  pbartok
36024
36025         * XplatUIWin32.cs:
36026           - Added code to destroy a window
36027
36028 2004-10-13 14:12  pbartok
36029
36030         * ButtonBase.cs:
36031           - Added the Redraw on Resize that got dropped in the last rev
36032
36033 2004-10-13 09:06  pbartok
36034
36035         * ThemeWin32Classic.cs:
36036           - Path from John BouAntoun:
36037             * Fix check rendering (centre correctly for normal style, offset
36038               correctly for FlatStyle).
36039             * Fix border color usage (use backcolor) for FlatStyle.Popup
36040             * Use checkbox.Capture instead of checkbox.is_pressed when
36041               rendering flatstyle states.
36042
36043 2004-10-12 21:48  pbartok
36044
36045         * ThemeWin32Classic.cs:
36046           - Removed all occurences of SystemColors and replaced them with the
36047             matching theme color
36048
36049 2004-10-12 21:41  pbartok
36050
36051         * ThemeWin32Classic.cs:
36052           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
36053             him using the function for flatstyle drawing
36054           - Changed functions to use the new version of CPDrawBorder3D
36055
36056 2004-10-12 21:15  pbartok
36057
36058         * ControlPaint.cs:
36059           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
36060             match MS documentation. They need to return defined colors if the
36061             passed color matches the configured control color. Thanks to John
36062             BouAntoun for pointing this out.
36063
36064 2004-10-12 20:57  pbartok
36065
36066         * Control.cs:
36067           - Fix from John BouAntoun: Raise ForeColorChanged event when text
36068             color is changed
36069
36070 2004-10-12 20:46  pbartok
36071
36072         * CheckBox.cs:
36073           - Fix from John BouAntoun: Now properly sets the Appearance property
36074
36075 2004-10-12 20:45  pbartok
36076
36077         * ThemeWin32Classic.cs:
36078           - Fixes from John BouAntoun: now handles forecolors and backcolors
36079             for flatstyle rendered controls much better; It also fixes normal
36080             checkbox rendering when pushed or disabled.
36081
36082 2004-10-08 02:50  jordi
36083
36084         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
36085           work
36086
36087 2004-10-07 08:56  jordi
36088
36089         * ThemeWin32Classic.cs: Removes deletion of cached brushes
36090
36091 2004-10-06 03:59  jordi
36092
36093         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
36094           XplatUIWin32.cs: removes warnings from compilation
36095
36096 2004-10-05 12:23  jackson
36097
36098         * RadioButton.cs: Fix ctor
36099
36100 2004-10-05 11:10  pbartok
36101
36102         * MessageBox.cs:
36103           - Partial implementation by Benjamin Dasnois
36104
36105 2004-10-05 10:15  jackson
36106
36107         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
36108           by John BouAntoun
36109
36110 2004-10-05 03:07  ravindra
36111
36112         * ToolBar.cs:
36113                 - Removed a private method, Draw ().
36114                 - Fixed the ButtonDropDown event handling.
36115                 - Fixed MouseMove event handling.
36116
36117 2004-10-05 03:04  ravindra
36118
36119         * ThemeWin32Classic.cs:
36120                 - Added DrawListView method and ListViewDefaultSize property.
36121                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
36122                 - Changed DOS style CRLF to Unix format (dos2unix).
36123
36124 2004-10-05 03:03  ravindra
36125
36126         * Theme.cs:
36127                 - Added DrawListView method and ListViewDefaultSize property.
36128
36129 2004-10-05 02:42  ravindra
36130
36131         * ToolBarButton.cs: Added an internal member dd_pressed to handle
36132           clicks on DropDown arrow.
36133
36134 2004-10-04 22:56  jackson
36135
36136         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
36137           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
36138           Control handle the buffers, derived classes should not have to
36139           CreateBuffers themselves.
36140
36141 2004-10-04 21:20  jackson
36142
36143         * StatusBar.cs: The control handles resizing the buffers now.
36144
36145 2004-10-04 21:18  jackson
36146
36147         * Control.cs: When resizing the buffers should be invalidated. This
36148           should be handled in Control not in derived classes.
36149
36150 2004-10-04 14:45  jackson
36151
36152         * TabPage.cs: oops
36153
36154 2004-10-04 02:14  pbartok
36155
36156         * LeftRightAlignment.cs:
36157           - Initial check-in
36158
36159 2004-10-04 01:09  jordi
36160
36161         * ThemeWin32Classic.cs: fixes right button position causing right
36162           button not showing on horizontal scrollbars
36163
36164 2004-10-02 13:12  pbartok
36165
36166         * XplatUIX11.cs:
36167           - Simplified the Invalidate method by using an X call instead of
36168             generating the expose ourselves
36169           - Added an expose when the window background is changed
36170           - Implemented ClientToScreen method
36171
36172 2004-10-02 13:08  pbartok
36173
36174         * XplatUIWin32.cs:
36175           - Added Win32EnableWindow method (test for implementing modal
36176           dialogs)
36177           - Added ClientToScreen method and imports
36178
36179 2004-10-02 13:07  pbartok
36180
36181         * XplatUI.cs, XplatUIDriver.cs:
36182           - Added ClientToScreen coordinate translation method
36183
36184 2004-10-02 13:06  pbartok
36185
36186         * KeyPressEventArgs.cs:
36187           - Fixed access level for constructor
36188
36189 2004-10-02 13:06  pbartok
36190
36191         * NativeWindow.cs:
36192           - Changed access level for the window_collection hash table
36193
36194 2004-10-02 13:05  pbartok
36195
36196         * Form.cs:
36197           - Added KeyPreview property
36198           - Added Menu property (still incomplete, pending Jordi's menu work)
36199           - Implemented ProcessCmdKey
36200           - Implemented ProcessDialogKey
36201           - Implemented ProcessKeyPreview
36202
36203 2004-10-02 13:02  pbartok
36204
36205         * Control.cs:
36206           - Added private method to get the Control object from the window
36207           handle
36208           - Implemented ContextMenu property
36209           - Implemented PointToScreen
36210           - Implemented PreProcessMessage
36211           - Implemented IsInputChar
36212           - Implemented IsInputKey
36213           - Implemented ProcessCmdKey
36214           - Completed ProcessKeyEventArgs
36215           - Fixed message loop to call the proper chain of functions on key
36216           events
36217           - Implemented ProcessDialogChar
36218           - Implemented ProcessDialogKey
36219           - Implemented ProcessKeyMessage
36220           - Implemented ProcessKeyPreview
36221           - Added RaiseDragEvent stub (MS internal method)
36222           - Added RaiseKeyEvent stub (MS internal method)
36223           - Added RaiseMouseEvent stub (MS Internal method)
36224           - Added RaisePaintEvent stub (MS Internal method)
36225           - Added ResetMouseEventArgs stub (MS Internal method)
36226           - Implemented RtlTranslateAlignment
36227           - Implemented RtlTranslateContent
36228           - Implemented RtlTranslateHorizontal
36229           - Implemented RtlTranslateLeftRight
36230           - Added generation of KeyPress event
36231
36232 2004-10-02 05:57  ravindra
36233
36234         * ListViewItem.cs: Added attributes.
36235
36236 2004-10-02 05:32  ravindra
36237
36238         * ListView.cs: Added attributes.
36239
36240 2004-10-01 11:53  jackson
36241
36242         * Form.cs: Implement the Close method so work on MessageBox can
36243           continue.
36244
36245 2004-09-30 14:06  pbartok
36246
36247         * XplatUIX11.cs:
36248           - Bug fixes
36249
36250 2004-09-30 11:34  jackson
36251
36252         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
36253
36254 2004-09-30 07:26  ravindra
36255
36256         * ListViewItemConverter.cs: Converter for ListViewItem.
36257
36258 2004-09-30 07:26  ravindra
36259
36260         * SortOrder.cs: Enum for ListView control.
36261
36262 2004-09-30 07:25  ravindra
36263
36264         * ColumnHeader.cs: Supporting class for ListView control.
36265
36266 2004-09-30 07:24  ravindra
36267
36268         * ListView.cs, ListViewItem.cs: Initial implementation.
36269
36270 2004-09-30 07:20  ravindra
36271
36272         * ItemActivation.cs: Enum for ListView Control.
36273
36274 2004-09-29 20:29  pbartok
36275
36276         * XplatUIX11.cs:
36277           - Added lookup of pixel value for background color; tries to get a
36278             color 'close' to the requested color, it avoids having to create a
36279             colormap.  Depending on the display this could mean the used color
36280             is slightly off the desired color. Might have to change it to a more
36281             resource intensive colormap approach, but it will work as a
36282           workaround to avoid red screens.
36283
36284 2004-09-29 14:27  jackson
36285
36286         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
36287
36288 2004-09-28 12:44  pbartok
36289
36290         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
36291           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
36292           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
36293           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
36294           TrackBar.cs, VScrollBar.cs:
36295           - Streamlined Theme interfaces:
36296             * Each DrawXXX method for a control now is passed the object for
36297               the control to be drawn in order to allow accessing any state the
36298               theme might require
36299
36300             * ControlPaint methods for the theme now have a CP prefix to avoid
36301               name clashes with the Draw methods for controls
36302
36303             * Every control now retrieves it's DefaultSize from the current
36304             theme
36305
36306 2004-09-28 12:17  jackson
36307
36308         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
36309           drawing
36310
36311 2004-09-24 14:57  jackson
36312
36313         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
36314           Gives us a nice little performance boost.
36315
36316 2004-09-24 12:02  jackson
36317
36318         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
36319           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
36320           Control and supporting classes. Initial checkin
36321
36322 2004-09-23 13:08  jackson
36323
36324         * Form.cs: Temp build fixage
36325
36326 2004-09-23 01:39  ravindra
36327
36328         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
36329           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
36330           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
36331           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
36332           EventHandlers needed by ListView Control.
36333
36334 2004-09-22 14:12  pbartok
36335
36336         * ScrollableControl.cs:
36337           - Implemented DockPadding property
36338           - Implemented AutoScroll property
36339           - Implemented AutoScrollMargin property
36340           - Implemented AutoScrollMinSize property
36341           - Implemented AutoScrollPosition property
36342           - Implemented DisplayRectangle property (still incomplete)
36343           - Implemented CreateParams property
36344           - Implemented HScroll property
36345           - Implemented VScroll property
36346           - Implemented OnVisibleChanged property
36347
36348 2004-09-22 14:09  pbartok
36349
36350         * Form.cs:
36351           - Added Form.ControllCollection class
36352           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
36353             RemoveOwnedForm (still incomplete, missing on-top and common
36354             minimize/maximize behaviour)
36355           - Added StartPosition property (still incomplete, does not use when
36356             creating the form)
36357           - Added ShowDialog() methods (still incomplete, missing forcing the
36358             dialog modal)
36359
36360 2004-09-22 14:05  pbartok
36361
36362         * Application.cs:
36363           - Added message loop for modal dialogs
36364
36365 2004-09-22 14:02  pbartok
36366
36367         * GroupBox.cs:
36368           - Fixed wrong types for events
36369
36370 2004-09-22 14:00  pbartok
36371
36372         * Shortcut.cs, FormWindowState.cs:
36373           - Fixed wrong values
36374
36375 2004-09-22 12:01  jackson
36376
36377         * Control.cs: Text is never null
36378
36379 2004-09-20 22:14  pbartok
36380
36381         * XplatUIWin32.cs:
36382           - Fixed accessibility level for Idle handler
36383
36384 2004-09-20 18:54  jackson
36385
36386         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36387           XplatUIX11.cs: New message loop that uses poll so we don't get a
36388           busy loop
36389
36390 2004-09-17 10:43  pbartok
36391
36392         * ScrollBar.cs:
36393           - Fixed behaviour of arrow buttons. Now properly behaves like
36394             Buttons (and like Microsoft's scrollbar arrow buttons)
36395
36396 2004-09-17 10:14  pbartok
36397
36398         * ScrollBar.cs:
36399           - Added missing release of keyboard/mouse capture
36400
36401 2004-09-17 06:18  jordi
36402
36403         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
36404           Theme.cs: Very early menu support
36405
36406 2004-09-16 17:45  pbartok
36407
36408         * XplatUIWin32.cs:
36409           - Fixed sending a window to the front
36410           - Added overload for SetWindowPos to avoid casting
36411
36412 2004-09-16 17:44  pbartok
36413
36414         * Control.cs:
36415           - Added SendToBack and BringToFront methods
36416
36417 2004-09-16 07:00  ravindra
36418
36419         * Copyright: Added Novell URL.
36420
36421 2004-09-16 07:00  ravindra
36422
36423         * ToolBar.cs: Invalidate should be done before redrawing.
36424
36425 2004-09-15 21:19  ravindra
36426
36427         * ColumnHeaderStyle.cs: Enum for ListView Control.
36428
36429 2004-09-15 21:18  ravindra
36430
36431         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
36432           ListView Control.
36433
36434 2004-09-13 18:26  jackson
36435
36436         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
36437           properly
36438
36439 2004-09-13 18:13  jackson
36440
36441         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
36442           a second thread and post messages into the main threads message
36443           queue. This makes timing much more consistent. Both win2K and XP
36444           have a minimum timer value of 15 milliseconds, so we now do this
36445           too.
36446
36447 2004-09-13 15:18  pbartok
36448
36449         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36450           XplatUIX11.cs:
36451           - Added Z-Ordering methods
36452
36453 2004-09-13 10:56  pbartok
36454
36455         * Form.cs:
36456           - Fixed #region names
36457           - Moved properties and methods into their proper #regions
36458
36459 2004-09-13 10:51  pbartok
36460
36461         * Form.cs:
36462           - Added Accept and CancelButton properties
36463           - Added ProcessDialogKey() method
36464
36465 2004-09-13 08:18  pbartok
36466
36467         * IWindowTarget.cs:
36468           - Initial check-in
36469
36470 2004-09-10 21:50  pbartok
36471
36472         * Control.cs:
36473           - Added DoDragDrop() [incomplete]
36474           - Properly implemented 'Visible' handling
36475           - Added SetVisibleCore()
36476           - Implemented FindChildAtPoint()
36477           - Implemented GetContainerControl()
36478           - Implemented Hide()
36479
36480 2004-09-10 19:28  pbartok
36481
36482         * Control.cs:
36483           - Moved methods into their appropriate #regions
36484           - Reordered methods within regions alphabetically
36485
36486 2004-09-10 18:57  pbartok
36487
36488         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36489           - Added method to retrieve text from window
36490
36491 2004-09-10 18:56  pbartok
36492
36493         * Control.cs:
36494           - Moved some internal functions into the internal region
36495           - Implemented FontHeight
36496           - Implemented RenderRightToLeft
36497           - Implemented ResizeRedraw
36498           - Implemented ShowFocusCues
36499           - Implemented ShowKeyboardCues
36500           - Implemented FromChildHandle
36501           - Implemented FromHandle
36502           - Implemented IsMnemonic
36503           - Implemented ReflectMessage
36504           - All public and protected Static Methods are now complete
36505
36506 2004-09-10 16:54  pbartok
36507
36508         * Control.cs:
36509           - Implemented remaining missing public instance properties
36510           - Alphabetized some out of order properties
36511
36512 2004-09-10 05:51  ravindra
36513
36514         * PictureBox.cs: Added a check for null image.
36515
36516 2004-09-10 00:59  jordi
36517
36518         * GroupBox.cs: remove cvs tag
36519
36520 2004-09-09 05:25  ravindra
36521
36522         * ToolBar.cs: Make redraw accessible from ToolBarButton.
36523
36524 2004-09-09 05:23  ravindra
36525
36526         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
36527           parent redraw.
36528
36529 2004-09-09 02:28  pbartok
36530
36531         * ThemeWin32Classic.cs:
36532           - Improve disabled string look
36533
36534 2004-09-09 01:15  jordi
36535
36536         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
36537           args and handler
36538
36539 2004-09-08 23:56  ravindra
36540
36541         * ItemBoundsPortion.cs: It's enum, not a class!
36542
36543 2004-09-08 23:47  ravindra
36544
36545         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
36546           Enums for Form.
36547
36548 2004-09-08 21:13  ravindra
36549
36550         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
36551           ListView control.
36552
36553 2004-09-08 21:03  ravindra
36554
36555         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
36556           avoid crash.
36557
36558 2004-09-08 21:01  ravindra
36559
36560         * ScrollableControl.cs: Removed unreachable code.
36561
36562 2004-09-08 06:45  jordi
36563
36564         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
36565
36566 2004-09-08 01:00  jackson
36567
36568         * XplatUIX11.cs: Only run the timers when updating the message
36569           queue. This effectively gives X messages a higher priority then
36570           timer messages. Timers still need love though
36571
36572 2004-09-07 14:01  jackson
36573
36574         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
36575           this for us and the handle is no longer valid.
36576
36577 2004-09-07 13:59  jackson
36578
36579         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
36580           loop that manages to not crash. TODO: Add poll and cleanup timers
36581
36582 2004-09-07 11:12  jordi
36583
36584         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
36585
36586 2004-09-07 03:40  jordi
36587
36588         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
36589           fixes, methods, multiple links
36590
36591 2004-09-06 06:55  jordi
36592
36593         * Control.cs: Caches ClientRectangle rectangle value
36594
36595 2004-09-05 02:03  jordi
36596
36597         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
36598           certain situations
36599
36600 2004-09-04 11:10  jordi
36601
36602         * Label.cs: Refresh when font changed
36603
36604 2004-09-02 16:24  pbartok
36605
36606         * Control.cs:
36607           - Added sanity check to creation of double buffer bitmap
36608
36609 2004-09-02 16:24  pbartok
36610
36611         * ButtonBase.cs:
36612           - Fixed selection of text color
36613           - Fixed handling of resize event; now properly recreates double
36614             buffering bitmap
36615           - Added missing assignment of TextAlignment
36616           - Added proper default for TextAlignment
36617
36618 2004-09-02 14:26  pbartok
36619
36620         * RadioButton.cs:
36621           - Added missing RadioButton.RadioButtonAccessibleObject class
36622
36623 2004-09-02 14:26  pbartok
36624
36625         * Control.cs:
36626           - Added missing Control.ControlAccessibleObject class
36627           - Started to implement Select()ion mechanisms, still very incomplete
36628
36629 2004-09-02 14:25  pbartok
36630
36631         * AccessibleObject.cs:
36632           - Added missing methods
36633
36634 2004-09-02 14:23  pbartok
36635
36636         * AccessibleNavigation.cs, AccessibleSelection.cs:
36637           - Initial check-in
36638
36639 2004-09-02 10:32  jordi
36640
36641         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
36642           pool for pens, brushes, and hatchbruses
36643
36644 2004-09-01 15:30  jackson
36645
36646         * StatusBar.cs: Fix typo
36647
36648 2004-09-01 14:44  pbartok
36649
36650         * RadioButton.cs:
36651           - Fixed state
36652
36653 2004-09-01 14:39  pbartok
36654
36655         * Button.cs, RadioButton.cs:
36656           - Functional initial check-in
36657
36658 2004-09-01 14:01  pbartok
36659
36660         * CheckBox.cs:
36661           - Added missing default
36662           - Added missing region mark
36663
36664 2004-09-01 09:10  jordi
36665
36666         * Label.cs: fixes method signatures, new methods, events, fixes
36667           autosize
36668
36669 2004-09-01 07:19  jordi
36670
36671         * Control.cs: Init string variables with an empty object
36672
36673 2004-09-01 04:20  jordi
36674
36675         * Control.cs: fires OnFontChanged event
36676
36677 2004-08-31 20:07  pbartok
36678
36679         * ButtonBase.cs:
36680           - Enabled display of strings
36681
36682 2004-08-31 20:05  pbartok
36683
36684         * Form.cs:
36685           - Added (partial) implementation of DialogResult; rest needs to be
36686             implemented when the modal loop code is done
36687
36688 2004-08-31 19:55  pbartok
36689
36690         * CheckBox.cs:
36691           - Fixed to match the removal of the needs_redraw concept
36692
36693 2004-08-31 19:55  pbartok
36694
36695         * ButtonBase.cs:
36696           - Removed the rather odd split between 'needs redraw' and redrawing
36697           - Now handles the events that require regeneration (ambient
36698             properties and size)
36699
36700 2004-08-31 19:41  pbartok
36701
36702         * Control.cs:
36703           - Added firing of BackColorChanged event
36704           - Added TopLevelControl property
36705           - Fixed handling of WM_ERASEBKGRND message
36706
36707 2004-08-31 12:49  pbartok
36708
36709         * ButtonBase.cs:
36710           - Removed debug
36711           - Minor fixes
36712
36713 2004-08-31 12:48  pbartok
36714
36715         * CheckBox.cs:
36716           - Finished (famous last words)
36717
36718 2004-08-31 04:35  jordi
36719
36720         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
36721           scrolling bugs, adds new methods
36722
36723 2004-08-30 14:42  pbartok
36724
36725         * CheckBox.cs:
36726           - Implemented CheckBox drawing code
36727
36728 2004-08-30 14:42  pbartok
36729
36730         * ButtonBase.cs:
36731           - Made Redraw() and CheckRedraw() virtual
36732           - Improved mouse up/down/move logic to properly track buttons
36733
36734 2004-08-30 09:44  pbartok
36735
36736         * CheckBox.cs:
36737           - Updated to fix broken build. Not complete yet.
36738
36739 2004-08-30 09:28  pbartok
36740
36741         * CheckState.cs:
36742           - Initial checkin
36743
36744 2004-08-30 09:17  pbartok
36745
36746         * Appearance.cs:
36747           - Initial check-in
36748
36749 2004-08-27 16:12  ravindra
36750
36751         * ToolBarButton.cs: Added TypeConverter attribute.
36752
36753 2004-08-27 16:07  ravindra
36754
36755         * ImageIndexConverter.cs: Implemented.
36756
36757 2004-08-27 14:17  pbartok
36758
36759         * Control.cs:
36760           - Removed unneeded stack vars
36761           - First attempt to fix sizing issues when layout is suspended
36762
36763 2004-08-25 15:35  jordi
36764
36765         * ScrollBar.cs: more fixes to scrollbar
36766
36767 2004-08-25 14:04  ravindra
36768
36769         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
36770           Added the missing divider code and grip for ToolBar Control.
36771
36772 2004-08-25 13:20  pbartok
36773
36774         * Control.cs:
36775           - Control now properly passes the ambient background color to child
36776             controls
36777
36778 2004-08-25 13:20  jordi
36779
36780         * ScrollBar.cs: small bug fix regarding bar position
36781
36782 2004-08-25 12:33  pbartok
36783
36784         * Timer.cs:
36785           - Now only calls SetTimer or KillTimer if the enabled state has
36786           changed
36787
36788 2004-08-25 12:33  pbartok
36789
36790         * XplatUIWin32.cs:
36791           - Fixed timer handling, now seems to work
36792           - Improved error message for window creation
36793
36794 2004-08-25 12:32  pbartok
36795
36796         * Control.cs:
36797           - Fixed generation of MouseUp message
36798
36799 2004-08-25 12:29  jordi
36800
36801         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
36802           and fixes for progressbar
36803
36804 2004-08-24 18:43  ravindra
36805
36806         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
36807           in ToolBar control.
36808
36809 2004-08-24 17:15  pbartok
36810
36811         * Panel.cs:
36812           - Added #region
36813           - Added missing events
36814           - Alphabetized
36815
36816 2004-08-24 17:14  pbartok
36817
36818         * StatusBar.cs, PictureBox.cs:
36819           - Now uses Control's CreateParams
36820
36821 2004-08-24 16:36  pbartok
36822
36823         * XplatUIX11.cs:
36824           - Fixed background color handling
36825           - Fixed sending of enter/leave events on a grab
36826
36827 2004-08-24 16:35  pbartok
36828
36829         * X11Structs.cs:
36830           - Refined definitions for CrossingEvent
36831
36832 2004-08-24 12:37  jordi
36833
36834         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
36835           formmating, methods signature, and adds missing events
36836
36837 2004-08-24 12:24  jordi
36838
36839         * Control.cs: fire OnEnabledChanged event
36840
36841 2004-08-24 11:17  pbartok
36842
36843         * XplatUIWin32.cs:
36844           - Implemented SetTimer() and KillTimer()
36845
36846 2004-08-24 11:16  pbartok
36847
36848         * XplatUIX11.cs:
36849           - Now uses Remove instead of Add to kill the timer
36850
36851 2004-08-24 10:16  jackson
36852
36853         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
36854           picture boxes in the theme now. Draw picture box borders and obey
36855           sizing modes
36856
36857 2004-08-24 05:49  jackson
36858
36859         * Timer.cs: Remove top secret debugging code
36860
36861 2004-08-24 05:34  jackson
36862
36863         * PictureBox.cs: Temp hack to make picture boxes draw their full
36864           image
36865
36866 2004-08-24 05:29  jackson
36867
36868         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36869           XplatUIX11.cs: Move timers to the driver level. On X they are
36870           queued by the driver and checked on idle.
36871
36872 2004-08-24 01:07  jackson
36873
36874         * XplatUIX11.cs: Use a queue for async messages instead of passing
36875           them as ClientMessages since that was totally broken. Also simply
36876           check for events and return an idle message if none are found. This
36877           gives us an idle handler, and prevents deadlocking when no messages
36878           are in the queue.
36879
36880 2004-08-23 18:19  ravindra
36881
36882         * XplatUIWin32.cs: Removed the unwanted destructor.
36883
36884 2004-08-23 17:27  pbartok
36885
36886         * ButtonBase.cs:
36887           - Finishing touches. Works now, just needs some optimizations.
36888
36889 2004-08-23 16:53  jordi
36890
36891         * ScrollBar.cs: small fix
36892
36893 2004-08-23 16:45  pbartok
36894
36895         * Application.cs:
36896           - Removed debug output
36897           - Simplifications
36898
36899 2004-08-23 16:43  jordi
36900
36901         * ScrollBar.cs: [no log message]
36902
36903 2004-08-23 16:10  pbartok
36904
36905         * Form.cs:
36906           - Fixed handling of WM_CLOSE message
36907           - Removed debug output
36908
36909 2004-08-23 16:09  pbartok
36910
36911         * Application.cs:
36912           - Added handling of Idle event
36913           - Added handling of form closing
36914           - Fixed reporting of MessageLoop property
36915           - Removed some unneeded code, should provide a bit of a speedup
36916
36917 2004-08-23 15:22  pbartok
36918
36919         * Control.cs:
36920           - Added InitLayout() method
36921           - Added code to properly perform layout when Anchor or Dock property
36922             is changed
36923           - Changed 'interpretation' of ResumeLayout. MS seems to have a
36924             LAMESPEC, tried to do it in a way that makes sense
36925
36926 2004-08-23 14:10  jordi
36927
36928         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
36929           properties and methods
36930
36931 2004-08-23 13:55  pbartok
36932
36933         * Control.cs:
36934           - Properly fixed Jordi's last fix
36935           - Now uses Cursor's Position property instead of calling XplatUI
36936           directly
36937
36938 2004-08-23 13:44  jordi
36939
36940         * PaintEventHandler.cs: Adding missing attribute
36941
36942 2004-08-23 13:39  pbartok
36943
36944         * Cursor.cs:
36945           - Implemented Position property
36946
36947 2004-08-23 13:39  pbartok
36948
36949         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36950           - Added method to move mouse cursor
36951
36952 2004-08-23 13:39  pbartok
36953
36954         * XplatUIX11.cs:
36955           - Fixed setting of background color
36956           - Added method to move mouse cursor
36957
36958 2004-08-23 13:16  jordi
36959
36960         * Control.cs: avoids null exception
36961
36962 2004-08-22 17:46  jackson
36963
36964         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
36965           PictureBox
36966
36967 2004-08-22 17:40  jackson
36968
36969         * XplatUIX11.cs: Add some missing locks
36970
36971 2004-08-22 15:10  pbartok
36972
36973         * Control.cs, Form.cs:
36974           - Removed OverlappedWindow style from Control, instead it's default
36975             now is child
36976           - Made form windows OverlappedWindow by default
36977
36978 2004-08-22 13:34  jackson
36979
36980         * ScrollBar.cs: Update the position through the Value property so
36981           the OnValueChanged event is raised.
36982
36983 2004-08-22 12:04  pbartok
36984
36985         * SWF.csproj:
36986           - Added Cursor.cs and UserControl.cs
36987
36988 2004-08-22 12:03  pbartok
36989
36990         * Cursor.cs:
36991           - Started implementation, not usable yet
36992
36993 2004-08-22 12:00  pbartok
36994
36995         * UserControl.cs:
36996           - Implemented UserControl (complete)
36997
36998 2004-08-21 19:20  ravindra
36999
37000         * ToolBar.cs: Correcting the formatting mess of VS.NET.
37001
37002 2004-08-21 18:49  ravindra
37003
37004         * ToolBar.cs: Probably this completes the missing attributes in
37005           toolbar control.
37006
37007 2004-08-21 18:03  ravindra
37008
37009         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
37010           Fixed toolbar control signatures.
37011
37012 2004-08-21 16:32  pbartok
37013
37014         * LinkLabel.cs:
37015           - Signature Fixes
37016
37017 2004-08-21 16:30  pbartok
37018
37019         * Label.cs:
37020           - Signature fixes
37021
37022 2004-08-21 16:19  pbartok
37023
37024         * Control.cs, Label.cs:
37025           - Signature fixes
37026
37027 2004-08-21 15:57  pbartok
37028
37029         * ButtonBase.cs:
37030           - Added loads of debug output for development
37031           - Fixed typo in method name
37032
37033 2004-08-21 15:52  pbartok
37034
37035         * ToolBarButtonClickEventArgs.cs:
37036           - Added missing base class
37037
37038 2004-08-21 14:53  pbartok
37039
37040         * Control.cs:
37041           - Updated to match new GrabWindow signature
37042
37043 2004-08-21 14:51  pbartok
37044
37045         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37046           - Added method to get default display size
37047
37048 2004-08-21 14:23  pbartok
37049
37050         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37051           - Added method to query current grab state
37052           - Added argument to allow confining a grab to a window
37053
37054 2004-08-21 14:22  pbartok
37055
37056         * Keys.cs:
37057           - Added [Flags] attribute so that modifiers can be used in bitwise
37058           ops
37059
37060 2004-08-21 14:21  pbartok
37061
37062         * TrackBar.cs, ScrollBar.cs:
37063           - Replaced direct XplatUI calls with their Control counterpart
37064
37065 2004-08-21 13:32  pbartok
37066
37067         * Control.cs:
37068           - Implemented Created property
37069
37070 2004-08-21 13:28  pbartok
37071
37072         * Control.cs:
37073           - Implemented ContainsFocus
37074
37075 2004-08-21 13:26  pbartok
37076
37077         * Control.cs:
37078           - Implemented CausesValidation
37079
37080 2004-08-21 13:21  pbartok
37081
37082         * Control.cs:
37083           - Implemented CanFocus
37084           - Implemented CanSelect
37085           - Implemented Capture
37086
37087 2004-08-21 12:35  pbartok
37088
37089         * XplatUIWin32.cs:
37090           - Fixed bug with Async message handling
37091           - Implemented getting the ModifierKeys
37092
37093 2004-08-21 12:32  jackson
37094
37095         * AsyncMethodResult.cs: Make sure we have the mutex before we
37096           release it. Fixes BeginInvoke on windows
37097
37098 2004-08-21 11:31  pbartok
37099
37100         * XplatUIWin32.cs, XplatUIX11.cs:
37101           - Drivers now return proper mouse state
37102
37103 2004-08-21 10:54  jackson
37104
37105         * Control.cs: Implement EndInvoke
37106
37107 2004-08-21 10:48  jackson
37108
37109         * Timer.cs: Remove unneeded finalizer
37110
37111 2004-08-20 19:52  ravindra
37112
37113         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
37114           in mouse event handling in the ToolBar control.
37115
37116 2004-08-20 19:50  ravindra
37117
37118         * ImageList.cs: Changed draw method to use the arguments passed in
37119           to draw the image.
37120
37121 2004-08-20 18:58  pbartok
37122
37123         * XplatUIStructs.cs:
37124           - Added private message for async communication
37125
37126 2004-08-20 17:38  ravindra
37127
37128         * Control.cs: Made RightToLeft property virtual and removed a
37129           Console.WriteLine.
37130
37131 2004-08-20 14:39  jordi
37132
37133         * ThemeGtk.cs: use style_attach
37134
37135 2004-08-20 14:39  pbartok
37136
37137         * XplatUIWin32.cs:
37138           - Added jackson's Async code from X11 to Win32
37139
37140 2004-08-20 14:09  pbartok
37141
37142         * SWF.csproj:
37143           - Added all new files
37144
37145 2004-08-20 14:09  pbartok
37146
37147         * Control.cs:
37148           - Added call to set window background color
37149
37150 2004-08-20 14:03  pbartok
37151
37152         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
37153           - Added method for setting the window background
37154
37155 2004-08-20 14:02  pbartok
37156
37157         * XplatUIWin32.cs:
37158           - Added method for setting the background color
37159           - Added handling for erasing the window background
37160
37161 2004-08-20 13:45  jordi
37162
37163         * TrackBar.cs: fixes timer, new properties and methods
37164
37165 2004-08-20 13:34  jackson
37166
37167         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
37168           correct thread
37169
37170 2004-08-20 13:22  jackson
37171
37172         * Timer.cs: Timer Tick events are now handed through Controls Async
37173           mechanism so the callbacks are executed in the same thread as X
37174
37175 2004-08-20 13:19  jackson
37176
37177         * XplatUIDriver.cs: Expose functionality to send async messages
37178           through the driver
37179
37180 2004-08-20 13:18  jackson
37181
37182         * Control.cs: Implement Begininvoke
37183
37184 2004-08-20 13:14  jackson
37185
37186         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
37187           messages through the driver
37188
37189 2004-08-20 13:12  jackson
37190
37191         * XplatUIX11.cs: Lock before all X operations. Also added Async
37192           method functionality through XSendEvent
37193
37194 2004-08-20 13:11  jackson
37195
37196         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
37197           This will screw up on 64 bit systems)
37198
37199 2004-08-20 13:10  jackson
37200
37201         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
37202           Async messages through X/Win32
37203
37204 2004-08-19 19:39  pbartok
37205
37206         * XplatUIX11.cs:
37207           - Updated code to match new HandleData.DeviceContext type
37208
37209 2004-08-19 19:38  pbartok
37210
37211         * HandleData.cs:
37212           - Made DeviceContext a generic object to allow usage from various
37213           drivers
37214           - Added support for queueing Windows messages
37215
37216 2004-08-19 19:37  pbartok
37217
37218         * XplatUIWin32.cs:
37219           - Added generation of MouseEnter, MouseLeave and MouseHover events
37220           - Added cleanup on EndPaint
37221
37222 2004-08-19 19:17  pbartok
37223
37224         * Control.cs:
37225           - Added handling of WM_MOUSEHOVER
37226           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
37227           code
37228
37229 2004-08-19 18:55  jordi
37230
37231         * ThemeGtk.cs: fixes button order
37232
37233 2004-08-19 18:12  jordi
37234
37235         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
37236
37237 2004-08-19 17:09  pbartok
37238
37239         * Control.cs:
37240           - Added Right property
37241           - Added RightToLeft property
37242
37243 2004-08-19 16:27  jordi
37244
37245         * ThemeGtk.cs: experimental GTK theme support
37246
37247 2004-08-19 16:26  jordi
37248
37249         * ITheme.cs, Theme.cs: move themes from an interface to a class
37250
37251 2004-08-19 16:25  jordi
37252
37253         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
37254           theme enhancaments
37255
37256 2004-08-19 16:04  pbartok
37257
37258         * XplatUIX11.cs:
37259           - Added colormap basics
37260           - Added a way to re-initialize with a different display handle
37261           - Fixed setting of the window background color
37262           - Added various X11 imports related to colors and colormaps
37263
37264 2004-08-19 15:51  pbartok
37265
37266         * X11Structs.cs:
37267           - Removed packing hints (Paolo suggested this a while back)
37268           - fixed colormap type
37269           - Added default Atom types
37270           - Added Screen and color structs and enums
37271
37272 2004-08-19 15:39  pbartok
37273
37274         * ImageList.cs:
37275           - Added missing Draw() method
37276           - Added missing RecreateHandle event
37277
37278 2004-08-19 15:30  pbartok
37279
37280         * Form.cs:
37281           - Added handling of WM_CLOSE
37282
37283 2004-08-18 13:16  jordi
37284
37285         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
37286           a table
37287
37288 2004-08-18 09:56  jordi
37289
37290         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
37291
37292 2004-08-17 15:31  ravindra
37293
37294         * SWF.csproj: Updated project.
37295
37296 2004-08-17 15:25  pbartok
37297
37298         * Control.cs:
37299           - Drawing improvement; don't call UpdateBounds if we are not visible
37300             (or have been minimized)
37301
37302 2004-08-17 15:24  pbartok
37303
37304         * XplatUIWin32.cs:
37305           - Finished IsVisible
37306           - Added Win32GetWindowPlacement
37307
37308 2004-08-17 15:08  jackson
37309
37310         * Panel.cs: Initial checkin of the Panel
37311
37312 2004-08-17 14:25  pbartok
37313
37314         * Control.cs:
37315           - Fixed broken handling of default window sizes
37316
37317 2004-08-17 13:29  jackson
37318
37319         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
37320           has a large startup time.
37321
37322 2004-08-17 10:25  jackson
37323
37324         * HandleData.cs: union areas properly
37325
37326 2004-08-17 10:12  jackson
37327
37328         * HandleData.cs: union areas properly
37329
37330 2004-08-16 20:00  ravindra
37331
37332         * ToolBar.cs, ToolBarButton.cs: Added attributes.
37333
37334 2004-08-16 18:48  ravindra
37335
37336         * ToolBar.cs: Added attributes.
37337
37338 2004-08-16 17:17  ravindra
37339
37340         * SWF.csproj: Updated project.
37341
37342 2004-08-16 17:16  jackson
37343
37344         * XplatUIX11.cs: Check for more expose events before sending a
37345           WM_PAINT so they can all be grouped together. This makes dragging a
37346           window across another window redraw in a sane way.
37347
37348 2004-08-16 15:47  pbartok
37349
37350         * Control.cs:
37351           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
37352             support OnMouseEnter/Leave()
37353           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
37354             exposure handling
37355
37356 2004-08-16 15:46  pbartok
37357
37358         * XplatUIStructs.cs, XplatUIX11.cs:
37359           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
37360           OnMouseEnter/Leave()
37361
37362 2004-08-16 15:34  jackson
37363
37364         * XplatUIX11.cs: Group multiple expose events in HandleData, make
37365           sure messages get the message field set to WM_NULL if they are not
37366           handled.
37367
37368 2004-08-16 15:24  jackson
37369
37370         * HandleData.cs: HandleData is used for storing message information
37371           for window handles
37372
37373 2004-08-15 17:23  ravindra
37374
37375         * ColorDepth.cs: Added attribute.
37376
37377 2004-08-15 17:23  ravindra
37378
37379         * SWF.csproj: Updated project for ToolBar Control.
37380
37381 2004-08-15 17:20  ravindra
37382
37383         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
37384           control and also dos2unix format.
37385
37386 2004-08-15 17:13  ravindra
37387
37388         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
37389           ToolBarButtonClickEventArgs.cs,
37390           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
37391           ToolBarTextAlign.cs: First Implementation of ToolBar control.
37392
37393 2004-08-15 15:31  pbartok
37394
37395         * ButtonBase.cs:
37396           - First (mostly) working version
37397
37398 2004-08-13 16:15  pbartok
37399
37400         * Control.cs:
37401           - Fixed Anchor default
37402
37403 2004-08-13 15:43  pbartok
37404
37405         * Control.cs:
37406           - Changed GetCursorPos signature
37407
37408 2004-08-13 15:42  pbartok
37409
37410         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37411           - Changed signature for GetCursorPos
37412
37413 2004-08-13 15:25  pbartok
37414
37415         * XplatUIX11.cs:
37416           - Cleanup
37417           - Fixed resizing/exposure handling
37418
37419 2004-08-13 15:22  jordi
37420
37421         * ThemeWin32Classic.cs: removes redundant code and fixes issues
37422           with tickposition
37423
37424 2004-08-13 14:55  jordi
37425
37426         * TrackBar.cs: change from wndproc to events
37427
37428 2004-08-13 13:00  jordi
37429
37430         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37431           XplatUIX11.cs: implements PointToClient (ScreenToClient)
37432
37433 2004-08-13 12:53  pbartok
37434
37435         * XplatUIWin32.cs:
37436           - Changed GetWindowPos to also provide client area size
37437           - Fixed broken prototypes for several win32 functions
37438
37439 2004-08-13 12:53  pbartok
37440
37441         * XplatUI.cs, XplatUIDriver.cs:
37442           - Changed GetWindowPos to also provide client area size
37443
37444 2004-08-13 12:52  pbartok
37445
37446         * XplatUIX11.cs:
37447           - Added generation of WM_POSCHANGED
37448           - Changed GetWindowPos to also provide client area size
37449
37450 2004-08-13 12:52  pbartok
37451
37452         * Control.cs:
37453           - Added Dispose() and destructor
37454           - Fixed resizing and bounds calculation
37455           - Fixed Layout
37456           - Added memory savings for invisible windows
37457
37458 2004-08-13 12:46  jordi
37459
37460         * TrackBar.cs: adds timer and grap window
37461
37462 2004-08-13 10:25  jackson
37463
37464         * Timer.cs: SWF Timer
37465
37466 2004-08-12 16:59  pbartok
37467
37468         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37469           - Implemented method to get current mouse position
37470
37471 2004-08-12 14:29  jordi
37472
37473         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
37474           enhancement, fix mouse problems, highli thumb, etc
37475
37476 2004-08-12 13:31  pbartok
37477
37478         * Control.cs:
37479           - Fixed Anchoring bugs
37480
37481 2004-08-12 13:01  jackson
37482
37483         * StatusBar.cs: Don't forget things
37484
37485 2004-08-12 12:54  jackson
37486
37487         * ThemeWin32Classic.cs: Handle owner draw status bars
37488
37489 2004-08-12 12:54  jackson
37490
37491         * StatusBar.cs: Implement missing properties, events, and methods.
37492           Handle mouse clicking
37493
37494 2004-08-12 10:19  jackson
37495
37496         * StatusBarPanelClickEventArgs.cs,
37497           StatusBarPanelClickEventHandler.cs: Classes for handling status
37498           bar panel click events
37499
37500 2004-08-12 10:10  jackson
37501
37502         * Control.cs: Add missing properties
37503
37504 2004-08-12 09:46  pbartok
37505
37506         * BindingsManagerBase.cs:
37507           - Name changed to BindingManagerBase.cs
37508
37509 2004-08-12 09:25  jordi
37510
37511         * ScrollableControl.cs: calls ctrlbase instead of exeception
37512
37513 2004-08-11 16:28  pbartok
37514
37515         * InputLanguageChangingEventArgs.cs:
37516           - Never check in before compiling. Fixes the last check-in
37517
37518 2004-08-11 16:26  pbartok
37519
37520         * InputLanguageChangingEventArgs.cs:
37521           - More signature fixes
37522
37523 2004-08-11 16:20  pbartok
37524
37525         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
37526           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
37527           ImageListStreamer.cs, InputLanguage.cs,
37528           InputLanguageChangedEventArgs.cs,
37529           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
37530           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
37531           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
37532           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37533           - Signature fixes
37534
37535 2004-08-11 16:16  pbartok
37536
37537         * Application.cs:
37538           - Fixed Signature
37539           - Added .Net 1.1 method
37540
37541 2004-08-11 15:25  pbartok
37542
37543         * SWF.csproj:
37544           - Fixed BindingManagerBase.cs filename
37545
37546 2004-08-11 15:22  pbartok
37547
37548         * BindingManagerBase.cs:
37549           - Was checked in with wrong filename
37550
37551 2004-08-11 14:50  pbartok
37552
37553         * SWF.csproj:
37554           - Updated
37555
37556 2004-08-11 13:41  jordi
37557
37558         * XplatUIWin32.cs: Fixes ClientRect
37559
37560 2004-08-11 13:19  pbartok
37561
37562         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37563           XplatUIX11.cs:
37564           - We had SetWindowPos and MoveWindow to set window positions and
37565             size, removed MoveWindow. We have GetWindowPos, so it made sense to
37566             keep SetWindowPos as matching counterpart
37567           - Added some X11 sanity checking
37568
37569 2004-08-11 12:59  pbartok
37570
37571         * Control.cs:
37572           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
37573             (It seems that SetBounds is just a front for SetBoundsCore and
37574              SetBoundsCore updates the underlying window system and
37575              UpdateBounds is responsible for updating the variables associated
37576              with the Control and sending the events)
37577           - Major cleanup of Size handling; we now have two sizes, client_size
37578             and bounds. Bounds defines the window with decorations, client_size
37579             without them.
37580
37581 2004-08-11 12:55  pbartok
37582
37583         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37584           - Added method to calculate difference between decorated window and
37585             raw client area
37586
37587 2004-08-11 12:54  pbartok
37588
37589         * Label.cs:
37590           - Forcing redraw on resize
37591
37592 2004-08-11 11:43  pbartok
37593
37594         * ImageList.cs:
37595           - Removed disposing of the actual images when the list is disposed
37596
37597 2004-08-11 09:13  pbartok
37598
37599         * Control.cs:
37600           - Now properly reparents windows
37601
37602 2004-08-11 08:37  pbartok
37603
37604         * Control.cs:
37605           - Duh!
37606
37607 2004-08-11 07:47  pbartok
37608
37609         * Control.cs:
37610           - Rewrote the collection stuff. Might not be as fast now, not
37611             keeping the number of children around and accessible directly, but
37612             it's more straightforward
37613
37614 2004-08-11 07:44  pbartok
37615
37616         * AccessibleObject.cs:
37617           - Fixed to match ControlCollection rewrite
37618
37619 2004-08-11 07:43  pbartok
37620
37621         * ImageList.cs:
37622           - Added missing creation of the collection list
37623
37624 2004-08-10 20:08  jackson
37625
37626         * StatusBar.cs: Get the paint message from WndProc
37627
37628 2004-08-10 19:31  jackson
37629
37630         * ThemeWin32Classic.cs: Create Brushes as little as possible
37631
37632 2004-08-10 19:20  jackson
37633
37634         * UICues.cs: Add Flags attribute
37635
37636 2004-08-10 19:19  jackson
37637
37638         * StatusBarPanel.cs: Signature cleanup
37639
37640 2004-08-10 19:10  jackson
37641
37642         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
37643           Initial implementation of status bar item drawing
37644
37645 2004-08-10 17:27  jordi
37646
37647         * TrackBar.cs: add missing methods, properties, and restructure to
37648           hide extra ones
37649
37650 2004-08-10 16:24  jackson
37651
37652         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
37653           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
37654           attribute
37655
37656 2004-08-10 13:21  jordi
37657
37658         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
37659           enhancements and standarize on win colors defaults
37660
37661 2004-08-10 12:52  jackson
37662
37663         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
37664           ThemeWin32Classic.cs: Implement DrawItem functionality
37665
37666 2004-08-10 12:47  jordi
37667
37668         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
37669
37670 2004-08-10 12:32  jordi
37671
37672         * Control.cs: throw ontextchange event
37673
37674 2004-08-10 11:43  pbartok
37675
37676         * Control.cs:
37677           - Added more to the still unfinished Dock/Anchor layout code
37678
37679 2004-08-10 11:39  pbartok
37680
37681         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
37682           - Added GetWindowPos method
37683
37684 2004-08-10 11:36  pbartok
37685
37686         * XplatUIWin32.cs:
37687           - Implemented several methods
37688
37689 2004-08-10 09:47  jackson
37690
37691         * TrackBar.cs: Allow control to handle buffering
37692
37693 2004-08-10 09:41  jackson
37694
37695         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
37696
37697 2004-08-10 09:24  jackson
37698
37699         * Label.cs, LinkLabel.cs: Let Control handle buffering.
37700
37701 2004-08-10 09:09  jackson
37702
37703         * StatusBar.cs: Let Control handle all the buffering.
37704
37705 2004-08-10 09:08  jackson
37706
37707         * Control.cs: Control will now handle the buffering code, so each
37708           control does not have to implement this.
37709
37710 2004-08-10 08:34  jackson
37711
37712         * XplatUIDriver.cs: Use default colors from the theme
37713
37714 2004-08-09 17:12  pbartok
37715
37716         * ImageList.cs:
37717           - Fixed several bugs Ravindra pointed out
37718
37719 2004-08-09 16:11  pbartok
37720
37721         * Control.cs:
37722           - Added incomplete dock layout code
37723           - Added support for mouse wheel
37724
37725 2004-08-09 16:09  pbartok
37726
37727         * XplatUIX11.cs:
37728           - Added handling for middle and right mousebutton
37729           - Added handling for mouse wheel
37730           - Added handling for key state and mouse state and position
37731           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
37732           messages
37733
37734 2004-08-09 15:40  jackson
37735
37736         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
37737           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
37738           checkin
37739
37740 2004-08-09 15:37  jackson
37741
37742         * StatusBar.cs: Initial implementation of StatusBar
37743
37744 2004-08-09 15:36  jackson
37745
37746         * ITheme.cs: Add support for drawing status bar and getting status
37747           bar item sizes
37748
37749 2004-08-09 15:35  pbartok
37750
37751         * MouseButtons.cs:
37752           - Fixed values
37753
37754 2004-08-09 15:34  jackson
37755
37756         * ThemeWin32Classic.cs: Add support for drawing status bar and get
37757           status bar item sizes
37758
37759 2004-08-09 15:21  jackson
37760
37761         * ThemeWin32Classic.cs: Use known colors for default control
37762           colours
37763
37764 2004-08-09 15:12  jackson
37765
37766         * ThemeWin32Classic.cs: Make the default font static, it is static
37767           in control so this doesn't change functionality and creating fonts
37768           is sloooooow.
37769
37770 2004-08-09 14:56  pbartok
37771
37772         * X11Structs.cs:
37773           - Added GrabMode enum
37774
37775 2004-08-09 14:55  pbartok
37776
37777         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37778           - Removed Run method, was only required for initial development
37779
37780 2004-08-09 14:51  pbartok
37781
37782         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37783           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
37784           capture
37785
37786 2004-08-09 13:48  pbartok
37787
37788         * XplatUIX11.cs:
37789           - Fixed default sizing for child windows
37790
37791 2004-08-09 12:56  pbartok
37792
37793         * XplatUIX11.cs:
37794           - Added generation of WM_DESTROY message
37795           - Added handling of window manager induced shutdown
37796
37797 2004-08-09 11:31  jackson
37798
37799         * ThemeWin32Classic.cs: New names for control properties
37800
37801 2004-08-09 11:25  jackson
37802
37803         * Control.cs: Use new color names
37804
37805 2004-08-09 11:02  jackson
37806
37807         * XplatUI.cs: Get default window properties from the theme
37808
37809 2004-08-09 11:01  jackson
37810
37811         * ITheme.cs: The theme engine now controls default window
37812           properties
37813
37814 2004-08-09 11:00  jackson
37815
37816         * ThemeWin32Classic.cs: Add default window color properties
37817
37818 2004-08-09 10:17  jackson
37819
37820         * ThemeWin32Classic.cs: Use correct default back color
37821
37822 2004-08-09 10:05  jackson
37823
37824         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
37825           the theme now.
37826
37827 2004-08-09 09:56  jackson
37828
37829         * XplatUI.cs: Remove defaults, these are handled by the theme now.
37830
37831 2004-08-09 09:54  jackson
37832
37833         * Control.cs: Get default properties from the theme.
37834
37835 2004-08-09 09:53  jackson
37836
37837         * ITheme.cs: Themes now handle default control properties
37838
37839 2004-08-09 09:53  jackson
37840
37841         * ThemeWin32Classic.cs: Themes now handle default control
37842           properties so coloring will be consistent
37843
37844 2004-08-08 16:54  jordi
37845
37846         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
37847
37848 2004-08-08 15:08  jordi
37849
37850         * XplatUIX11.cs: fixes keyboard crash
37851
37852 2004-08-08 13:47  jordi
37853
37854         * Label.cs: add cvs header info
37855
37856 2004-08-08 12:09  jackson
37857
37858         * ThemeWin32Classic.cs: Add pen_buttonface
37859
37860 2004-08-08 11:52  jordi
37861
37862         * Label.cs, LinkLabel.cs: [no log message]
37863
37864 2004-08-08 11:34  jordi
37865
37866         * ThemeWin32Classic.cs: Use Windows Standard Colours
37867
37868 2004-08-07 17:32  jordi
37869
37870         * TrackBar.cs: throw exceptions of invalid enums values
37871
37872 2004-08-07 17:31  jordi
37873
37874         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
37875           draw method name
37876
37877 2004-08-07 16:56  jackson
37878
37879         * HorizontalAlignment.cs: Initial checkin
37880
37881 2004-08-07 13:16  jordi
37882
37883         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
37884           methods
37885
37886 2004-08-07 13:05  jordi
37887
37888         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
37889           GetSysColor defines
37890
37891 2004-08-06 18:01  pbartok
37892
37893         * ThemeWin32Classic.cs:
37894           - Fixed some rounding issues with float/int
37895
37896 2004-08-06 18:00  jackson
37897
37898         * DockStyle.cs, AnchorStyles.cs:
37899
37900                   Add flags and serializable attributes.
37901
37902 2004-08-06 17:46  pbartok
37903
37904         * XplatUIX11.cs:
37905           - Implemented GetParent
37906
37907 2004-08-06 17:18  pbartok
37908
37909         * TrackBar.cs:
37910           - Fixed some rounding issues with float/int
37911
37912 2004-08-06 17:17  pbartok
37913
37914         * X11Structs.cs, XplatUIX11.cs:
37915           - Fixed Refresh and Invalidate
37916
37917 2004-08-06 15:30  pbartok
37918
37919         * Control.cs, X11Structs.cs, XplatUIX11.cs:
37920           - Fixed recursive loop when resizing
37921           - Improved/fixed redrawing on expose messages
37922
37923 2004-08-06 09:53  jordi
37924
37925         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
37926           keyboard navigation
37927
37928 2004-08-06 08:02  pbartok
37929
37930         * X11Structs.cs, XplatUIX11.cs:
37931           - Fixed reparenting
37932           - Fixed window border creation
37933
37934 2004-08-05 15:38  pbartok
37935
37936         * XplatUIX11.cs:
37937           - Attempted fix for reparenting problems
37938
37939 2004-08-04 15:14  pbartok
37940
37941         * Control.cs:
37942           - Fixed Invalidation bug (calculated wrong client area)
37943           - Added ClientSize setter
37944
37945 2004-08-04 15:13  pbartok
37946
37947         * Form.cs:
37948           - Added AutoScale properties
37949
37950 2004-08-04 15:13  pbartok
37951
37952         * SWF.csproj:
37953           - Added latest files
37954
37955 2004-08-04 14:11  pbartok
37956
37957         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37958           XplatUIX11.cs:
37959           - Added Invalidate handling
37960
37961 2004-08-03 17:09  jordi
37962
37963         * XplatUIDriver.cs: fixes spelling mistake
37964
37965 2004-07-27 09:53  jordi
37966
37967         * TrackBar.cs: fixes trackbar events, def classname, methods
37968           signature
37969
37970 2004-07-27 09:29  jordi
37971
37972         * ScrollBar.cs: fixes scrollbar events
37973
37974 2004-07-27 04:38  jordi
37975
37976         * Control.cs: changes to be able to run winforms samples
37977
37978 2004-07-26 11:42  jordi
37979
37980         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
37981           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
37982
37983 2004-07-26 05:41  jordi
37984
37985         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
37986           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
37987           implementation
37988
37989 2004-07-22 09:22  jordi
37990
37991         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
37992           check link overlapping, implement events, and fixes
37993
37994 2004-07-21 10:28  jordi
37995
37996         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
37997
37998 2004-07-21 10:19  jordi
37999
38000         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
38001           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
38002           LinkLabelLinkClickedEventArgs.cs,
38003           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
38004           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
38005           implementation
38006
38007 2004-07-19 13:09  jordi
38008
38009         * Control.cs, Label.cs: label control re-written: added missing
38010           functionlity, events, and properties
38011
38012 2004-07-19 10:49  jordi
38013
38014         * Control.cs: fixes SetBounds logic
38015
38016 2004-07-19 01:29  jordi
38017
38018         * Control.cs: Call RefreshWindow only if the window has created
38019
38020 2004-07-15 14:05  pbartok
38021
38022         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
38023           - Implemented ImageList and ImageList.ImageCollection classes
38024           - Added ColorDepth enumeration
38025           - Updated SWF VS.Net project
38026
38027 2004-07-15 11:06  jordi
38028
38029         * XplatUIStructs.cs: added MsgButons enum
38030
38031 2004-07-15 11:03  jordi
38032
38033         * Control.cs: added basic mouse handeling events
38034
38035 2004-07-15 03:38  jordi
38036
38037         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
38038           Vertical TrackBar control implementation
38039
38040 2004-07-13 09:33  jordi
38041
38042         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
38043
38044 2004-07-13 09:31  jordi
38045
38046         * Control.cs, Form.cs: commit: new properties and fixes form size
38047           problems
38048
38049 2004-07-09 14:13  miguel
38050
38051         * ProgressBar.cs: Spelling
38052
38053 2004-07-09 11:25  pbartok
38054
38055         * ProgressBar.cs:
38056           - Removed usage of Rectangle for drawing. Miguel pointed out it's
38057           faster
38058
38059 2004-07-09 11:17  miguel
38060
38061         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
38062
38063                 * ProgressBar.cs: Fixed spelling for `block'
38064
38065                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
38066                 style guidelines.
38067
38068                 Avoid using the += on rect.X, that exposed a bug in the compiler.
38069
38070 2004-07-08 23:21  pbartok
38071
38072         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
38073           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
38074           BaseCollection.cs, Binding.cs, BindingContext.cs,
38075           BindingMemberInfo.cs, BindingsCollection.cs,
38076           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
38077           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
38078           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
38079           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
38080           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
38081           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
38082           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
38083           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
38084           FrameStyle.cs, GiveFeedbackEventArgs.cs,
38085           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
38086           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
38087           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
38088           InputLanguageChangedEventArgs.cs,
38089           InputLanguageChangedEventHandler.cs,
38090           InputLanguageChangingEventArgs.cs,
38091           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
38092           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
38093           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
38094           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
38095           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
38096           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
38097           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
38098           QueryAccessibilityHelpEventArgs.cs,
38099           QueryAccessibilityHelpEventHandler.cs,
38100           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
38101           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
38102           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
38103           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
38104           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
38105           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
38106           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
38107           XplatUIX11.cs, lang.cs:
38108           - Initial check-in
38109
38110