2008-06-05 Jonathan Pobst <monkey@jpobst.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
2
3         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
4
5 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6
7         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
8         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
9         in 64 bit machines.
10
11 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
12
13         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
14         Use Format/FormatProvider before trying converters.
15         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
16         are 'set'.  Change constructor to not use ApplyStyle since it wants
17         everything applied.  Clone the Font.
18         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
19         ApplyStyle the rest.
20
21 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22
23         * ListView.cs: We need to calculate the scrollbars even if the handle
24         hasn't been created - this is needed when methods using scrollbars
25         info, such EnsureVisible, are called before control has been created.
26         Fixes #397272.
27
28 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
29
30         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
31         only if the elements are defined. 
32
33 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
34
35         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
36         section. Also, when setting bounds, snap height as well as save the
37         requested height if Dock has any value affecting the height: Left,
38         Right and Bottom - important if using IntegralHeight as true.
39
40 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
41
42         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
43         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
44         instead of doing that only in our SetBoundsCore override, since the 
45         bounds cached can be the same as saved one and we could not get the
46         new height applied.
47         Fixes #396297.
48
49 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
50
51         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
52         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
53         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
54         ToolWindowCaptionButtonSize.
55         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
56
57 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
58
59         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
60         hard coded values.
61         * Theme.cs: Made DoubleClickTime plaform dependent.
62
63 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
64
65         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
66         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
67         ToolWindowCaptionHeight.
68
69 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
70
71         * InternalWindowManager.cs: The adjustment to ensure positive client area
72         sizes is now platform dependent (disabled on Windows).
73         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
74         RequiresPositiveClientAreaSize.
75
76 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
77
78         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
79
80 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
81
82         * InternalWindowManager.cs: Changed IconicSize to use
83         SystemInformation.MinimizedWindowSize.
84         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
85         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
86
87 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
88
89         * ComboBox.cs: If the combobox is anchored both on top and bottom,
90         adjust height if IntegralHeight is true when calling SetBoundsCore (as
91         likely the height was modified even if Height wasn't specified in
92         BoundsSpecified parameter).
93         Fixes part of #396297.
94
95 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
96
97         * InternalWindowsManager.cs: Changed minimum window size while resizing to
98         SystemInformation.MinWindowTrackSize.
99         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
100         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
101
102 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
103
104         * MenuItem.cs: Fixed Dispose.
105
106 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
107
108         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
109         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
110         EnteredHeaderCell, PressedHeaderCell: Added.
111         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
112         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
113         theme a chance to override default painting.
114         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
115         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
116         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
117         ListView and DataGridView header rendering.
118         
119 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
120
121         * RichTextBox.cs: GetPositionFromCharIndex should return the 
122         visual position of the character relative to the viewport.
123         [Fixes part of bug #396664]
124
125 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
126
127         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
128         and not just for the existance of an UITypeEditor. In some cases 
129         there is an editor associated just to do PaintValue, but which 
130         doesn't actually support editing.
131         [Fixes bug #396632]
132
133 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
134
135         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
136         if needed, instead of 0 - this should help us in the corner case where
137         we have more than one item but we are only partially showing 1 item.
138         Fixes part of #374713.
139
140 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
141
142         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
143         control, return immediately if the any parent control's handle hasn't
144         been created or isn't visible, as well as avoiding creating the parent
145         Form if the handle hasn't been previously created.
146         Fixes tests.
147
148 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
149
150         * TableLayoutPanel.cs: Use border sizes when calculating the
151         panel's preferred size.  [Fixes part of bug #396433]
152
153 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
154
155         * SplitContainer.cs:
156          - Fix SplitterDistance to update only if needed. 
157          - Make it force min and max validation.
158          - Handle properly mouse moves outside the resizeable area.
159          [Fixes bug #396232]
160
161 2008-06-02  Andreia Gaita <avidigal@novell.com> 
162
163         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
164           (which also suppresses all popup dialogs). Throw NotSupported
165           exceptions for activex getters/setters.
166         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
167           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
168           StatusText, Version, GoSearch
169         * HtmlDocument.cs: Add DocType support
170
171 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
172
173         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
174         [Fixes bug 396124]
175
176 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
177
178         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
179
180 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
181
182         * TableLayoutPanel.cs: When calculating preferred size, use the
183         actual number of columns and rows, not what the user set them to.
184         [Fixes bug #396141]
185
186 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
187
188         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
189         394311.
190
191 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
192
193         * XplatUIX11.cs: When detecting areas obscured in a control by other
194         toplevel windows while scrolling, return if the control hasn't a 
195         container form.
196         Fixes some tests.
197
198 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
199
200         * XplatUIX11.cs: Properly detect the visible area of a control being
201         scrolled (obscured by other winforms controls and any X toplevel
202         windows), to mark as invalid the requested area to be scrolled that
203         isn't visible and thus can't be copied.
204         Fixes #324513.
205
206 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
207
208         * ListBox.cs: Compute the precise amount to vertically scroll when
209         using DrawMode.OwnerDrawVariable.
210         Patch by jkeymer (j.keymer@gmx.net).
211
212 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
213
214         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
215         to avoid setting an invalid value for the verticall scrollbar 
216         when navigating items. And, duh, also remove my silly debug messages
217         from previous commits.
218         Fixes #374713.
219
220 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
221
222         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
223         make it MS compatible.
224
225 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
226
227         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
228          - Allow the editing of entries even if their parent is read-only.
229          - Do not render expandable properties read-only.
230          - Refactor expansion checks form PropertyGrid into PropertyGrid.
231
232 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
233
234         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
235         support for the hover style.
236
237 2008-05-29  Andreia Gaita <avidigal@novell.com> 
238
239         * ContainerControl.cs: Check for null dead-end when traversing the tree
240           of parent controls.
241         
242           [Fixes #394332, patch by Ernesto Carrea]
243
244 2008-05-29  Geoff Norton  <gnorton@novell.com>
245
246         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
247         constant that it is.  Fixes #393981
248
249 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
250
251         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
252         that the user probably doesn't want to set this.
253
254 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
255
256         * ThemeWin32Classic.cs: Don't let the text size be bigger than
257         the control size for CheckBox/RadioBox.
258         [Fixes part of bug #394645]
259
260 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
261
262         * PropertyGrid.cs: Update the state of the sorting buttons in 
263         the toolbar if PropertySort is set programatically.
264
265 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
266
267         * GridItemCollection.cs: Add multiple items with conflicting names 
268         support and also preserve name ordering.
269         [Fixes #395345]
270
271 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
272
273         * GridItemCollection.cs: Revert my multiple items with same 
274         name patch.
275
276 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
277
278         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
279         or middle ones.
280         Fixes part of #393908.
281
282 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
283
284         * ToolStripDrowDown.cs: When using the Show () methods that have a
285         Control parameter, set the menu owner to that Control.
286         [Fixes bug #394345]
287
288 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
289
290         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
291         [Fixes bug #362756]
292
293 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
294
295         * GridItemCollection.cs: Refactor to support multiple items with the 
296         same name.
297         [Fixes bug #394314]
298
299 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
300
301         * Control.cs: The 2.0 check for illegal cross thread calls in 
302         Control.Handle were throwing an exception when we were getting
303         the Handle in order to invoke correctly.  Created a private
304         version that does not contain this check.
305         [Fixes bug #394531]
306
307 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
308
309         * PropertyGrid.cs: Respect DefaultTabType.
310
311 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
312
313         * ListView.cs: SPACE selects an item.
314         [Fixes bug #393023]
315
316 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
317
318         * ListView.cs: Reset the search string whenever the items are 
319         modified.
320         [Fixes bug #393020]
321
322 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
323
324         * ListControl.cs: For the first added item PositionChanged is fired
325         _before_ ItemChanged, which leave us in a temporary invalid state - so
326         we need to set the selected index from ItemChanged handler *if* we
327         know that the first item has just been added *and* the items have been
328         actually added to the ListControl.
329         Fixes #369048.
330
331 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
332
333         * TabControl.cs: Only clicks with the left button should be
334         handled.
335         Fixes #393908.
336
337 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
338
339         * ComboBox.cs: 
340         * FIleDialog.cs:
341         * TextBox.cs: Expose an internal method in TextBox to restore the
342         original context menu, and call it from ComboBox to re-use it in the
343         combobox containing the file name in FileDialog.cs.
344         Fixes part of #393775.
345
346 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
347
348         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
349         style.
350
351 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
352
353         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
354         down button style.
355
356 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
357
358         * ComboBox.cs: Minor correction to previous patch: PageDown should
359         also *try* to move by one item if the computed offset is negative,
360         just like the PageUp case.
361
362 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
363
364         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
365         should be done for at least 1 item, and not stay at the same item.
366         Fixes part of #374713.
367
368 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
369
370         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
371         directories.  [Fixes bug #393931]
372
373 2008-05-22  Andreia Gaita <avidigal@novell.com> 
374
375         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
376           Don't fire events until the initial about:blank page has finished
377           loading. Clean up events.
378
379 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
380
381         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
382           FocusIn() too. This should fix the issue on switching
383           scim keyboards.
384
385 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
386
387         * X11Keyboard.cs : set XIM font size to somewhat reasonable
388           number (ideally the input textbox size, but that could be
389           too messy).
390
391 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
392
393         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
394         the ToolStripItem's TextChanged.  [Fixes bug #393597]
395
396 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
397
398         * TabControl.cs: When invalidating in SelectedIndex and we need to
399         inflate to take into account the border of the tabs, make sure that
400         the invalidated rect doesn't overflow the control bounds, since that
401         would avoid updating at all.
402
403 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
404
405         * TabControl.cs: Don't substract scroller width from the row width,
406         since we need to take into account the total width of the control when
407         calculating the position of the tabs. This avoids showing scroller
408         when it is actually not needed.
409         Fixes part of #322325.
410
411 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
412
413         * ThemeVisualStyles.cs: Added support for TextBoxBase.
414
415 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
416
417         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
418         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
419
420 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
421
422         * DataGridView.cs: Only paint the top left header cell if there
423         are columns.
424
425 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
426
427         * DataGridView.cs: When binding to a BindingSource, get the underlying
428         list to bind to.  [Fixes bug #345483]
429
430 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
431
432         * DataGridView.cs: Do not bind to collection properties.
433         [Fixes bug #337470]
434
435 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
436
437         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
438
439 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
440
441         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
442         thumb style.
443
444 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
445
446         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
447
448 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
449
450         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
451         background.
452
453 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
454
455         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
456
457 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
458
459         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
460         checked styles.
461
462 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
463
464         * TabControl.cs: Extended to handle the hot style.
465
466 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
467
468         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
469         Extended UpDownBase code to handle hot and disabled styles.
470
471 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
472
473         * DataGridView.cs: Handle databinding to generic list type things.
474         [Fixes bug #325239]
475
476 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
477
478         * DataGridViewCellCollection.cs: Add a method to find the cell
479         with the given DataPropertyName.
480         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
481         * DataGridViewColumnCollection.cs: Add a method to clear all
482         autogenerated columns.
483         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
484         columns.
485         [Fixes bug #348082]
486
487 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
488
489         * DataGridView.cs: Don't try to update the RowTemplate with
490         a null CellTemplate.
491
492 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
493
494         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
495         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
496         * DataGridView.cs: Lots of fixes/enhancements to databinding to
497         a DataSet.
498
499 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
500
501         * Control.cs: Remove invalidating implicit child controls when
502         control is invalidated.  It was causing too many redraws on
503         controls with implicit scrollbars.
504         * ListView.cs: Listen to the Invalidated event and invalidate
505         child controls.
506
507 2008-05-20  Andreia Gaita <avidigal@novell.com> 
508
509         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
510         * HtmlDocument.cs: Check for nulls
511
512 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
513
514         * Control.cs: In ControlCollection.RemoveInternal, remove the
515         internal control before calling PerformLayout and OnControlRemoved,
516         which was leaving us in an invalid state and causing a X error (bad
517         match). Observe that Remove () call has the same order.
518         Fixes an X error changing ComboBoxStyle.DropDownStyle.
519
520 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
521
522         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
523         being fired if ControlStyles.UserPaint style is activated.
524         Fixes #371905.
525
526 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
527
528         * GridEntry.cs: Don't be so strict when setting the value - 
529         do not check if what we set is what we get.
530         [Fixes bug #389245]
531
532 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
533
534         * XplatUIX11.cs: If there are no timers timeout should be 0
535         [Fixes bug #363522]
536
537 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
538
539         * Control.cs: As a followup to invalidating implicit children when
540         a control is invalidated, only invalidate them if they are in the
541         clip rectangle.
542
543 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
544
545         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
546
547 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
548
549         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
550
551 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
552
553         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
554         * XplatUIWin32.cs: Made Win32DeleteObject public.
555
556 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
557
558         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
559         PropertyDescriptor.ShouldSerializeValue.
560         [Fixes bug #391924]
561
562 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
563
564         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
565         in the classic theme.
566
567 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
568
569         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
570         ThumbPressed.
571         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
572         ScrollBarHasPressedThumbStyle.
573
574 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
575
576         * TextRenderer.cs: Included some methods in the 1.1 profile.
577
578 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
579
580         * Control.cs: When we make a control visible, it may have been
581         previously visible and while it wasn't visible, the z-order of
582         things may have been shuffled, so the control needs to have its
583         z-order updated just in case.  [Fixes bug #391518]
584
585 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
586
587         * ThemeVisualStyles.cs: Added support for GroupBox.
588
589 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
590
591         * GroupBoxRenderer.cs: Included in the 1.1 profile.
592
593 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
594
595         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
596           bug #389996; XSelectInput() behaved as mouse handler robber,
597           so remove extra call to it.
598
599 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
600
601         * Control.cs: Simplify ControlCollection.Contains method.
602
603 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
604
605         * DataGridViewRow.cs: Implement GetPreferredSize.
606
607 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
608
609         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
610
611 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
612
613         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
614         painting and edit control fixes.
615
616 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
617
618         * DataGridView.cs, DataGridViewCell.cs: Work around some external
619         checks to make sure we are in an actual row/col for top left header cell.
620         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
621
622 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
623
624         * Control.cs: Use long instead of int when handling WParam from
625         mousewheel scrolling.  Int was overflowing on Win64.
626
627 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
628
629         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
630         flow panel without scrolling first, and then calculate the 
631         scrolling based on the new layout.  [Fixes bug #390149]
632
633 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
634
635         * ListBox.cs: Invalidate after scrolling up when selected index
636         changes.  [Fixes bug #390151]
637
638 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
639
640         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
641         set, default height to 150. I tried first with DefaultSize, but this
642         is not generating a SetBoundsCore call before handle creation time, so
643         we can take it into account. This is just what .net does.
644
645 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
646
647         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
648         as it broke some stuff.  Calberto is filing a bug for eno to
649         work with.
650
651 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
652
653         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
654         to 0 is the current value is -1, and if style is not Simple, just
655         return, like .net does.
656         Fixes part of #374713.
657
658 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
659
660         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
661         progress bar stuffs, use doubles instead of ints to prevent
662         overflow.  [Fixes bug #389798]
663
664 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
665
666         * XplatUIX11.cs, X11Keyboard.cs :
667           Significant refactoring on XIM support. Now IM engine UI
668           should show up, at mostly-correct preedit position.
669           - Eliminated use of FocusWindow, as it is never mapped
670             and hence blocks correct preedit position. XIC is now
671             created per window, and it must be destroyed too when
672             the window is destroyed.
673           - WM_QUIT messages should not be filtered even when hwnd
674             is zombie. Filtering it could cause endless loop.
675           - Preedit position must move only when the window is alive.
676           - Make it IDisposable and make sure to release XIM/XICs.
677
678 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
679
680         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
681           XplatUIX11.cs, XplatUIWin32.cs :
682           fix for bug #325033 and #387693;
683           - WM_QUIT should not be sent when no running application
684             exists.
685           - SetTimer/KillTimer (especially on win32) should be
686             invoked for the window that the timer is/will_be attached.
687           - There could be unattached timers to a window when it's
688             started. For those timers, hold pending timers and when
689             a window is mapped, attach them to it.
690           - WaitForHwndMessage() could run into loop when
691             WM_SHOWWINDOW is handled before this method is called.
692             So, strictly check wm_showwindow state.
693           - Tick handler should not be invoked while one Tick handler
694             call is still running (introduced Busy state).
695
696 2008-05-13  Andreia Gaita <avidigal@novell.com> 
697
698         * WebBrowserBase.cs: Override Internal alternative methods for
699           SetBoundsCore and OnResize instead of the protected ones.
700         * Control.cs: Move SetBoundsCore and OnResize implementations to
701           SetBoundsCoreInternal and OnResizeInternal, so they can be
702           overriden internally (WebBrowserBase needs to catch them but can't
703           override the protected methods without api compat problems)
704
705 2008-05-13  Andreia Gaita <avidigal@novell.com> 
706
707         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
708
709 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
710
711         * Binding.cs:
712         * ListView.cs: Remove debug messages.
713
714 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
715
716         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
717         area is empty. Also calculate scrollbars in Simple mode based in area
718         height and total number of items, not in MaxDropDownItems.
719         Fixes part of #371991.
720
721 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
722
723         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
724
725 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
726
727         * BindingSource.cs: GetListSortDescription is not public.
728
729 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
730
731         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
732
733 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
734
735         * HtmlElement.cs: Fix parameter names to match MS.
736         * HtmlWindowCollection.cs: Should not be sealed.
737
738 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
739
740         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
741         button, because the thumb button will not get drawn if the scrollbar
742         is disabled.  [Fixes bug #389262]
743
744 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
745
746         * ListBox.cs: Handle End key for multi-column listboxen.
747         [Fixes bug #389266]
748
749 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
750
751         * ListBox.cs: Fix algorithm to determine which column our item is in.
752         [Fixes bug #389265]
753
754 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
755
756         * ListBox.cs: Invalidate when the listbox is resized.
757         [Fixes bug #389256]
758
759 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
760
761         * ListBox.cs: There is always at least one row in the ListBox (if
762         we are doing these calculations.)  [Fixes bug #389253]
763
764 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
765
766         * ListBox.cs: There is always at least one column in the ListBox.
767         [Fixes bug #389250]
768
769 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
770
771         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
772         ensure in Simple mode that the height is exactly the requested one.
773         Also add the ComboBoxListControl to the controls collection in Simple
774         mode even if handle hasn't been created.
775         Fixes part of #371991.
776
777 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
778
779         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
780         our ComboBox owner instead of giving it back to the previous control (
781         as done in other controls). Also remove the empty override of Select
782         method, since we want to be selected *and* give focus to our owner.
783         This should let the user do keys-navigation in Simple mode. 
784
785 2008-05-10  Geoff Norton  <gnorton@novell.com>
786
787         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
788         problems with rapid scrolling of treeviews. Fixes #381084
789
790 2008-05-10  Geoff Norton  <gnorton@novell.com>
791
792         * XplatUICarbon.cs: Deactivate the active window before
793         activating the desired window.  Completes fixing #386504
794
795 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
796
797         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
798         SmallChange to the item size width plus the padding, to match .net.
799
800 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
801
802         * FileDialog.cs: Apply the custom filter typed by the user in the file
803         name combobox as much as possible while navigating in the file dialog.
804         Fixes #385261.
805
806 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
807
808         * Binding.cs: Actually use NullValue if the retrieved value of
809         data source is null or DBNull. Makes a test pass.
810
811 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
812
813         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
814         * MimeIcon.cs: Provide a way to get icons from resources.
815
816 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
817
818         * Binding.cs: When the value retrieved from the control to be assigned
819         to the data source is null, actually use the 2.0 DataSourceNullValue
820         value. Make pass a data binding test.
821
822 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
823
824         * Control.cs: We need to invalidate implicit children even when
825         invalidate is called with invalidatechildren = false.  (Implicit
826         children are really part of the parent.)
827         * ListView.cs: Double-buffer internal child controls for less
828         flicker.
829         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
830         owner ListView subitems for greatly increased performance.
831         [Fixes bug #388477]
832
833 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
834
835         * FileDialog.cs: When the user types a wildcard character in the
836         filename combobox, update the contents of the folder using the text as
837         a filter.
838         Fixes part of #385261.
839
840 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
841
842         * ListBox.cs: Various fixes for MultiColumn listboxen.
843         [Fixes bug #388114]
844
845 2008-05-08  Andreia Gaita <avidigal@novell.com> 
846
847         * HtmlElement.cs: Implement Style property
848
849 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
850
851         * ListBox.cs: Respect checkboxes when measuring item size.
852         * ThemeWin32Classis.cs: When drawing list items, don't draw
853         text outside of the item's bounds to prevent overlapping.
854         (.Net actually overlaps, but that's just silly.)
855         [Fixes bug #388117]
856
857 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
858
859         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
860         Gert Driesen. Fixes bug #324830. 
861
862 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
863
864         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
865         method implemented.
866
867 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
868
869         * BindingSource.cs: When calling IsSynchronized, return the value of
870         the related IList list.
871
872 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
873
874         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
875         make a test pass.
876
877 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
878
879         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
880         navigation to scroll the grid if the current cell is not visible.
881
882 2008-05-07  Andreia Gaita <avidigal@novell.com> 
883
884         * HtmlElement.cs: Implement TabIndex
885
886 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
887
888         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
889         properties, even when there are no items.
890         [Fixes bug #387611]
891
892 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
893
894         * NativeWindow.cs: Add support for multiple handles per window.
895         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
896         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
897         directly - use FromHandle instead.
898         [Fixes bug #374660]
899
900 2008-05-07  Andreia Gaita <avidigal@novell.com> 
901
902         * HtmlElement.cs: Implement InnerHTML setter
903
904 2008-05-07  Andreia Gaita <avidigal@novell.com> 
905
906         * HtmlDocument.cs: Implement Focused
907
908 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
909
910         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
911         methods, as well as add messages to the exceptions.
912
913 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
914
915         * BindingSource.cs: Setting DataSource should only reset DataMember if
916         the previous value was null (make pass a not working test).
917
918 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
919
920         * BindingSource.cs: When EndInit call is postponed and is called until
921         DataSource.EndInit is called, remove the handler for data source.
922
923 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
924
925         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
926
927 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
928
929         * ToolStripManager.cs: Store references to toolstrips as
930         weak references so they do not prevent forms from getting collected.
931         [Fixes bug #386483]
932
933 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
934
935         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
936         on .Net.  So do the same thing in WndProc.
937
938 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
939
940         * TrackBar.cs: Commit patch from Andy Hume that corrects
941         the clickable areas to better match .Net.
942         [Fixes bug #387074]
943
944 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
945
946         * TrackBar.cs: Commit patch from Andy Hume that adds the
947         ResizeRedraw control flag so the track bar repaints itself
948         when it is resized.  [Fixes bug #387072]
949
950 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
951
952         * TrackBar.cs: Commit patch from Andy Hume that adds better
953         support for keyboard navigation when the TrackBar is vertical.
954         [Fixes bug #387071]
955
956 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
957
958         * BindingSource.cs: Implement ISupportInitializeNotification support.
959
960 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
961
962         * ThemeVisualStyles.cs: Added support for ToolBar.
963
964 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
965
966         * ToolBar.cs: Made the Vertical property internal.
967
968 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
969
970         * ThemeVisualStyles.cs: Added support for TrackBar.
971
972 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
973
974         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
975         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
976         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
977         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
978         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
979         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
980
981 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
982
983         * ThemeVisualStyles.cs: Added support for UpDownBase.
984
985 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
986
987         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
988         Extracted Theme.UpDownBaseDrawButton.
989
990 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
991
992         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
993         removed from the static toolstrips collection in ToolStripManager
994         when they are disposed.  Provides a workaround for bug #386483.
995
996 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
997
998         * GridEntry.cs: Read-only properties with Editor with 
999         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
1000         [Fixes bug #384184]
1001
1002 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
1003
1004         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
1005         the menu key and there are no items on the menu.
1006         [Fixes bug #386644]
1007
1008 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
1009
1010         * Control.cs: Avoid calling ToString on a string.
1011         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
1012         * GroupBox.cs: In FlatStyle property throw, not just create, the 
1013         exception. Avoid calling ToString on a string.
1014         * ProgressBar.cs: Avoid calling ToString on a string. 
1015         * ScrollBar.cs: Avoid calling ToString on a string. 
1016         [All issues were found using Gendarme]
1017
1018 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
1019
1020         * NotifyIcon.cs: Prevent click events to be trigger after double click 
1021         events. Fixes remaining issues of bug #324832.
1022
1023 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
1024
1025         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
1026         to mimic win32 behavior. Partially fixes bug #324832.
1027
1028 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1029
1030         * BindingSource.cs: Implement Find methods.
1031
1032 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1033
1034         * BindingSource.cs: Implement Sort, ApplySort overloads, and
1035         RemoveSort methods.
1036
1037 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1038
1039         * ListBindingHelper.cs: When calling GetListItemProperties and the
1040         passed object is ITypedList, return the result of
1041         ITypedList.GetItemProperties instead.
1042
1043 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
1044
1045         * LinkLabel.cs: Set default value of name on constructor of Link class
1046         only for 2.0 profile.
1047
1048 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
1049
1050         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
1051         Fixes remaining issues of bug #346154.
1052
1053 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
1054
1055         * LinkLabel.cs: Set a default value for name on internal contructor of
1056         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
1057
1058 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
1059
1060         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
1061         and refer all instances to owner.links. Partially fixes #346154.
1062
1063 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1064
1065         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
1066         length equal zero. Also called CreateLinkPieces in constructor. It fixes
1067         the LinkLabel test 'TestLinkArea'.
1068
1069 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1070
1071         * Form.cs: Remove menu before close form to prevent form to be not gaced.
1072         [Fixes #386460]
1073
1074 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1075
1076         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
1077         [Fixes #386463]
1078
1079 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1080
1081         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
1082         [Fixed bug #357004]
1083
1084 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1085
1086         * MenuAPI.cs: Remove unused ProcessCmdKey method.
1087
1088 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1089
1090         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
1091         [Fixes bug #375398]
1092
1093 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1094
1095         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
1096         of bug #367492.
1097
1098 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1099
1100         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
1101         sometimes we open a conext menu on mouse down of some controls and the mouse
1102         up is dispatched to menu and dont need to. It fix remaining issues of 
1103         #363711 and other problems related to menu mouse click events.
1104
1105 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
1106
1107         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
1108         some var names to better fit changes, now we have month_menu and today_menu
1109         vars. Fixes bug #363711.
1110
1111 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
1112
1113         * MonthCalendar.cs: Handle every right mouse click to open context menu,
1114         right now the default month menu but it will be change to have "Go to today"
1115         menu.
1116
1117 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1118
1119         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
1120
1121 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
1122
1123         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
1124
1125 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1126
1127         * ThemeVisualStyles.cs: Added support for TreeView.
1128
1129 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1130
1131         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
1132         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
1133
1134 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1135
1136         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
1137
1138 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1139
1140         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
1141         Implement 2.0 SP1 stuffs.
1142
1143 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1144
1145         * FileDialog.cs: Implement 2.0 SP1 stuffs.
1146
1147 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1148
1149         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
1150         Implement CanEnableIme property. (2.0 SP1)
1151
1152 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1153
1154         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
1155         from the 2.0 API.
1156
1157 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1158
1159         * Control.cs: Provide an internal way for a control to override
1160         the setting of Height.
1161         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
1162         set height using new method.
1163
1164 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1165
1166         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
1167
1168 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1169
1170         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1171         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
1172
1173 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1174
1175         * ThemeVisualStyles.cs: Added support for StatusBar.
1176
1177 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1178
1179         * DataObject.cs: Add the other IDataObject interface.
1180
1181 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1182
1183         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
1184         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
1185
1186 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1187
1188         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
1189         * ListView.cs: Hide non-public API.
1190         * MaskedTextBox.cs: Remove extra attribute.
1191
1192 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1193
1194         * DataGridViewImageCell.cs: Use formatted value instead of value
1195         to calculate preferred size.
1196
1197 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
1198
1199         * ListBox.cs: Move some initialization around so that selected_indices
1200         is not accessed before it is created.
1201
1202 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
1203
1204         * InputLanguageCollection.cs: Implement the collection better.
1205         [Fixes bug #385506]
1206
1207 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
1208
1209         * ToolStripDropDownItem.cs: Get the correct event object for
1210         DropDownItemClicked.
1211         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
1212         [Fixes bug #385475]
1213
1214 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
1215
1216         * DataGridViewRowCollection.cs: We don't currently support shared 
1217         rows.  Should fix test failures caused by previous commit.
1218
1219 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
1220
1221         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
1222         datagridview gets set.  Only paint cells in visible columns.
1223         * DataGridViewCell.cs: Draw border after cell content.
1224         * DataGridView.cs: Invalidate after setting some properties.  Only
1225         use visible columns.  Fit hit test bug with areas in the col/row header
1226         area but not in a row or col.  Implement UpdateCell/Row methods.
1227
1228 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
1229
1230         * DataGridViewElement.cs: Don't throw NIEX.
1231         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
1232         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
1233         * DataGridViewCheckBoxColumn.cs: Implement ToString.
1234         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
1235         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
1236         if the user filled in the formatting Value, use it.
1237
1238 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
1239
1240         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
1241         to a string.
1242
1243 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1244
1245         * BindingSource.cs: Some corrections to Filter property, as well as
1246         setting it for our list when resetting it.
1247
1248 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
1249
1250         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
1251         than the maximum.  Fixes reopened bug #384182.
1252
1253 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1254
1255         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
1256         Fixes remaining issues of #367490.
1257
1258 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1259
1260         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
1261         SystemInformation.WorkingArea to get max_screen value.
1262
1263 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1264
1265         * BindingSource.cs: Implement Filter and RemoveFilter.
1266
1267 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1268
1269         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
1270
1271 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1272
1273         * X11Dnd.cs: When trying to convert data and we know we started the
1274         dnd loop, don't try to use the cached data if the loop is not running,
1275         which means that the data has been resetted.
1276         Fixes #378191.
1277
1278 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1279
1280         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
1281         win32 behavior.
1282
1283 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1284
1285         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
1286         it to drawn off screen edge. Fixes bug #367490.
1287
1288 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1289
1290         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
1291         menu position to have only one assignment of Location var.
1292
1293 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1294
1295         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
1296         for this patch. Fixes bug #384115.
1297
1298 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
1299
1300         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
1301         the same.  If LargeChange is zero, set a minimum size for the scroll
1302         thumb grip.  [Fixes bug #384182]
1303
1304 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
1305
1306         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
1307         [Fixes bug #384181]
1308
1309 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
1310
1311         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
1312
1313 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
1314
1315         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
1316         patch from Ernesto).
1317
1318 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
1319
1320         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
1321
1322 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
1323
1324         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
1325
1326 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
1327
1328         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
1329
1330 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
1331
1332         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
1333
1334 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
1335
1336         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
1337
1338 2008-04-27  Andreia Gaita <avidigal@novell.com> 
1339
1340         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
1341           supposed to return a reference to an mshtml interface, which we
1342           don't support).
1343         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
1344           reference to an mshtml interface, which we don't support). Code
1345           formatting cleanup.
1346         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
1347           DomDocument getter (it's supposed to return a reference to an
1348           mshtml interface, which we don't support). Code formatting cleanup.
1349
1350 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1351
1352         * ListView.cs: Ouch, forgot to commit.
1353
1354 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1355
1356         * ListView.cs: 
1357         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
1358
1359 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1360
1361         * ListView.cs: When calculating box selection for virtual mode, don't
1362         look for intersection with item's text, but item bounds, since that
1363         would mean read ListViewItem's text for _every_ item, and that's
1364         something we just can't do in virtual mode (items are only requested
1365         when drawn).
1366
1367 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
1368
1369         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
1370         partial support for managed windows (based on the patch from Ernesto).
1371
1372 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1373
1374         * ListView.cs: When doing a key search use FindItemWithText method
1375         instead of doing the search by ourselves, this way we avoid
1376         duplicating the code and also we handle the special case for virtual
1377         mode. To achieve that make our private overload of FindItemWithText
1378         internal and also have a 'roundtrip' parameter.
1379
1380 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1381
1382         * ListView.cs: When doing the layout don't request the
1383         ListViewItem instance if we are in virtual mode (since we can't request it
1384         until the item is actully drawn).
1385
1386 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
1387
1388         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
1389         from Ernesto).
1390
1391 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
1392
1393         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
1394         the patch from Ernesto).
1395
1396 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
1397
1398         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
1399         * ThemeVisualStyles.cs: Added.
1400
1401 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
1402
1403         * IDeviceContext.cs: Added a missing using.
1404
1405 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
1406
1407         * ButtonBase.cs: Made IsDefault protected internal.
1408         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
1409
1410 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
1411
1412         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
1413         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
1414         RadioButtonRenderer.cs: Included in the 1.1 profile.
1415         * IDeviceContext.cs: Added.
1416         * TextRenderer.cs: Included a member in the 1.1 profile.
1417
1418 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
1419
1420         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
1421
1422 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
1423
1424         * ErrorProvider.cs: Make the error icons come after the control
1425         they refer to.  It isn't the way the MS does it, but its better
1426         than what we were doing.  See bug #368587.
1427
1428 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
1429
1430         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
1431         from Eric Albright that lazy loads the input language as ensures
1432         everything gets properly initialized.  Fixes bug #373871.
1433
1434 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
1435
1436         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
1437         implicit mnemonics.  [Fixes bug #383000]
1438
1439 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1440
1441         * X11Dnd.cs: When canceling the operation, automatically restore the
1442         default cursor - normally the default cursor is restored when the
1443         mouse buttons are released, but we should be able to restore it even
1444         if the buttons are still pressed (for example, when pressing ESC to
1445         cancel).
1446         Fixes #381894.
1447
1448 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1449
1450         * X11Dnd.cs: When starting a new drad and drop operation, set control
1451         field to null, just as the other fields, to avoid calling any
1452         operation on a previous control. Also, when calling DndLeave on a
1453         control, set it to null, thus we don't fire that event multiple times
1454         for that control.
1455         Fixes #209264.
1456
1457 2008-04-23  Geoff Norton  <gnorton@novell.com>
1458
1459         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
1460         the whole_window object.  Fixes #377084.
1461
1462 2008-04-23  Andreia Gaita <avidigal@novell.com> 
1463
1464         * HtmlElement.cs: Implement RaiseEvent (event injection into the
1465           embedded browser)
1466
1467 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
1468
1469         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
1470
1471 2008-04-23  Andreia Gaita <avidigal@novell.com> 
1472
1473         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
1474           invocation
1475
1476 2008-04-23  Andreia Gaita <avidigal@novell.com> 
1477
1478         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
1479           attaching/detaching
1480
1481 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1482
1483         * X11Dnd.cs: When the drop was cancelled, or could just not be
1484         performed, return DragDropEffect.None always (match .net).
1485
1486 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
1487
1488         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
1489
1490 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
1491
1492         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
1493
1494 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
1495
1496         * DataGridView.cs: Add support for error icon tool tips.
1497         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
1498         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
1499
1500 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
1501
1502         * X11Structs.cs: Add mouse button masks enum.
1503         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
1504         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
1505         form resize/move operation instead of for each step of it.
1506         [Fixes bug #346529 for the x11 backend]
1507
1508 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
1509
1510         * DataGridView*: Implement support for drawing error icons.
1511
1512 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
1513
1514         * TreeView.cs: Make vbar and hbar internal.
1515         * TreeNode.cs: If collapsing the node removes one of the TreeView's
1516         scrollbars, invalidate the whole thing.
1517         [Fixes bug #382001]
1518
1519 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
1520
1521         * TreeView.cs: Calling Sort() sets Sorted = true.
1522         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
1523         if the nodes need to be sorted.
1524         [Fixes bug #382028]
1525
1526 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
1527
1528         * Form.cs: Fire SizeChanged for both when the form is minimized and 
1529         restored.
1530         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
1531         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
1532
1533 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
1534
1535         * ComboBox.cs: If the combobox is disabled, draw a disabled
1536         background before painting anything else.
1537         [Fixes bug #381729]
1538
1539 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1540
1541         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
1542         forget to send a Leave event to the target window - just as .net does
1543         when cancelling dnd operations.
1544
1545 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1546
1547         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
1548         soon as possible - this happens when we send the drop message to the
1549         target window. This way we avoid firing any DragOver _after_ drop finished.
1550         Fixes #378179.
1551
1552 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
1553
1554         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
1555         * Form.cs: Handle form minimization as a special state, where size doesn't 
1556         change, but we have to fire SizeChanged.
1557         [Fixes bug #325122 for the win32 and x11 backends]
1558
1559 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
1560
1561         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
1562         if the handle is disabled.
1563         [Fixes bug #371751]
1564
1565 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
1566
1567         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
1568         for forms with FormBorderStyle.None.
1569         [Fixes bug #349571]
1570
1571 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
1572
1573         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
1574         WM_EXITSIZEMOVE.
1575         [Fixes bug #346529 for the X11 backend]
1576
1577 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
1578
1579         * XplatUIX11.cs: 
1580           - Send a mouse Enter message after say dragging the mouse with a 
1581           button down and then release it in another client.
1582           - Reset the cursor to prevent X11 from remembering it and setting it 
1583           before the control gets WM_SETCURSOR.
1584           - Qeueue a mouse move after a mouse enter like win32.
1585           [Fixes bug #323234]
1586
1587 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
1588
1589         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
1590         It's sent when the form gets moved, resized, closed.
1591         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
1592         [Fixes bug #359193 for X11]
1593
1594 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
1595
1596         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
1597         the build.
1598
1599 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
1600
1601         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
1602         group. Fixes the 1.1 build.
1603
1604 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1605
1606         * ListView.cs: Use display indexes for selection in Details view, as
1607         well as do the proper layout based on display indexes for that view
1608         too.
1609
1610 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1611
1612         * ListView.cs: Focused item information is now stored as a display
1613         index, and display indexes are used all over the place for selection,
1614         instead of ListViewItem.Index values, which doesn't give us enough
1615         information to modify the selection in groups mode, and was broken.
1616
1617 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
1618
1619         * Control.cs: Do not fire MouseDown if validation of the control has 
1620         failed.
1621         * Form.cs: Validate the form before closing.
1622         [Fixes bugs #330501 and #353310]
1623
1624 2008-04-18  Andreia Gaita <avidigal@novell.com> 
1625
1626         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
1627           CreateWebBrowserSiteBase implementations
1628         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
1629           Style and TabIndex setters
1630
1631 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1632
1633         * ListViewGroup.cs: When returning the actual item count, return the
1634         proper count for default group.
1635         Fix the tests.
1636
1637 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1638
1639         * ListView.cs:
1640         * ListViewGroup.cs: When calculating groups layout, get the actual
1641         number of items per group, since groups added to the group BUT not
1642         added to the ListView are just ignored, and can cause some nasty
1643         exceptions because of the lack of synchronization. Also for
1644         ListViewGroup don't use lazy initialization for items, since we 
1645         the common scenario is to use it always - and it helps us to  refactor
1646         and clean the .ctor overloads.
1647
1648 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1649
1650         * ListView.cs: When adding an item to a ListViewItemCollection
1651         belonging to a group (ListViewGroup.Items), don't generate a redraw if
1652         the added item hasn't beeen previously added to the ListView instance
1653         refered by the group, since it will be ignored. This should avoid some 
1654         really nasty flickering.
1655
1656 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1657
1658         * ListView.cs: When accessing an item in a specific display
1659         position, use the helper method GetItemAtDisplayIndex, instead of
1660         direct access to the reordered_items_indices array. When doing layout
1661         for groups set the correct Items index for the display position (since
1662         in groups mode items don't have the same position as in Items
1663         collection).
1664         * ListViewGroup.cs: Add a field to store the starting item number,
1665         which is later used when calculating the layout.
1666
1667         Fixes #360805.
1668
1669 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
1670
1671         * Application.cs: Fixed ProductVersion to fallback to the assembly
1672         version. Fixes regression for bug #325413.
1673
1674 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1675
1676         * ListView.cs: New helper method to retrieve an item in a _specific
1677         display_ position (the items can be displayed in a different order
1678         than one of Items collection).
1679         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
1680         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
1681         specific display position (again remember that items can be sorted
1682         different than Items).
1683
1684 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
1685
1686         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
1687         list and update it when the collection changes.  We were recreating
1688         this several times per row paint and for every pixel the mouse moved
1689         across the grid.
1690         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
1691         changes.
1692
1693 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
1694
1695         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
1696         list to use generics.
1697         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
1698         and remove unneccessay casts.
1699
1700 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
1701
1702         * DataGridViewBand.cs: Add internal way to set displayed variable.
1703         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
1704         * DataGridView.cs: Make sure we always keep track of Displayed
1705         rows and columns, and only draw things that are displayed.
1706
1707 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
1708
1709         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
1710           whether the key events are filtered or not. Introduced
1711           PreFilter() process for this purpose. This fixes atokx3/iiimx
1712           shift state issue.
1713
1714 2008-04-16  Andreia Gaita <avidigal@novell.com> 
1715
1716         * HtmlHistory.cs: Implement Length property
1717
1718 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
1719
1720         * DataGridView.cs: Call EndEdit when a sort is performed so we take
1721         away the edit textbox.  Refactor to reuse column sort code.
1722
1723 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
1724
1725         * MenuAPI.cs: Remove the code that save and restore capture status of 
1726         grab_control, this fixes some Menu and Context menu bugs but maybe it can
1727         cause some others, I cant figure the possible problems of this patch but
1728         right now remove the code looks to be better than keep it. This patch fixes
1729         bugs #357638, #378721 and #379570.
1730
1731 2008-04-12  Andreia Gaita <avidigal@novell.com> 
1732
1733         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
1734         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
1735         add missing properties and event handlers.
1736         
1737 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
1738
1739         * ListBox.cs: Make sure the LargeChange we are setting is at least
1740         zero, to prevent an IOORE.  [Fixes bug #379531]
1741
1742 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
1743
1744         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
1745         in DropDownList mode, for each key-press select the next item 
1746         starting with that letter.
1747         For other modes, when no item selected, on arrow-up/-down and open 
1748         drop-down select the first item matching the text in the textbox.
1749
1750 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
1751
1752         * X11Keyboard.cs : Control.FromHandle() could return null
1753           in MoveCurrentCaretPos().
1754
1755 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1756
1757         * ListView.cs: When changing the size in VirtualMode, also Reset the
1758         selection.
1759         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
1760         changing selection info for VirtualMode.
1761         Fixes #372618.
1762
1763 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1764
1765         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
1766         view, don't use LineLimit for the first item - use NoWrap *always*
1767         instead, since ListView.LabelWrap is not used for this view.
1768         Fixes #378054.
1769
1770 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1771
1772         * Binding.cs: Call UpdateIsBinding when setting control - probably
1773         Binding is already usable and we don't need to wait to check the
1774         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
1775         Created, just like 2.0 does.
1776         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
1777
1778 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1779
1780         * Binding.cs: Just realized we don't need to have a handler for
1781         BindingContextChanged, since this info should be now consumed directly
1782         in the BindingManagerBase. And also, the manager.IsBindingSuspended
1783         state info is checked directly, instead of caching it.
1784
1785         * CurrencyManager.cs: IsSuspended should return always false if Count
1786         == 0.
1787
1788 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1789
1790         * Binding.cs: When calling PushData, return if manager.Count == 0,
1791         since we just don't have data to be read. Also, when setting the
1792         Control for binding, hook up some events to refresh the IsBinding
1793         state when BindingContext change or control gets created; use
1794         Control.IsHandleCreated instead of Control.Created check to set
1795         IsBinding state - we *actually* need to modify IsBinding when control
1796         is created, but we don't have any Created event, only HandleCreated.
1797         Fixes part of #349364.
1798
1799 2008-04-11  Geoff Norton  <gnorton@novell.com>
1800
1801         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
1802         warping a null Caret.
1803
1804 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
1805
1806         * DataGridView.cs: Implement row/column autosizing methods. Implement
1807         autosorting.
1808         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
1809         * DataGridViewRowCollection.cs: Add an internal sorting method.
1810
1811 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
1812
1813         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
1814         value in ListView drawing code.
1815
1816 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
1817
1818         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
1819         is clicked.  Respect the user setting Cancel in FileOk.
1820
1821 2008-04-11  Geoff Norton  <gnorton@novell.com>
1822
1823         * ListView.cs: Avoid setting and resetting control Width/Heights and
1824         calculate the final value and set it once.  Prevents a feedback loop
1825         on the mac.
1826
1827 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
1828
1829         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
1830         [Fixes bug #378869]
1831
1832 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
1833
1834         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
1835           Add some on-the-spot code, but it seems we don't need it.
1836
1837 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
1838
1839         * Form.cs: Add method for DataGridView to trigger focus cues
1840         even when it handles the tab keypress.
1841
1842 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
1843
1844         * DataGridView.cs: More keyboard handling, tab, esc.
1845         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
1846         when at the beginning or end of the text in the text box.
1847
1848 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
1849
1850         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
1851
1852 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
1853
1854         * DataGridView.cs: Some fixups for showing and adding the edit control.
1855         * DataGridViewButtonColumn.cs: Implement ToString.
1856         * DataGridViewCell.cs: Size and position the control simultaneously.
1857         * DataGridViewTextBoxCell.cs: Use base to position control.
1858
1859 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
1860
1861         * DataGridViewCell.cs: Fix up some formatting and painting code.
1862         * DataGridViewImageCell.cs: Implement some NIEX methods.
1863
1864 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
1865
1866         * ToolStripItemCollection.cs: What moving an item from one owner
1867         to another, remove from source owner before adding to destination.
1868         [Fixes bug #378109]
1869
1870 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
1871
1872         * PictureBox.cs: Call Load when ImageLocation is set.
1873         [Fixes bug #378308]
1874
1875 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
1876
1877         * X11Keyboard.cs, XplatUIX11.cs :
1878           Implement over-the-spot mode (with some odd offsets).
1879           - set preedit position when caret is set.
1880           - Wrap XMoveResizeWindow() to move preedit position.
1881
1882 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
1883
1884         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
1885         array lenght.
1886
1887 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
1888
1889         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
1890         and ScanTableIndex public, it fix compilations errors when compiling
1891         WinForms to generate keyboard layout resources.
1892
1893 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
1894
1895         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
1896         different element count than scan table. It prevents some errors in non
1897         standard keyboards.
1898
1899 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
1900
1901         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
1902
1903 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
1904
1905         * DataGridView.cs: Call OnContentClick.
1906         * DataGridViewCell.cs: Do a null check on ValueType instead
1907         of valueType.
1908         * DataGridViewCheckBoxCell.cs: Implement.
1909
1910 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
1911
1912         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
1913
1914 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
1915
1916         * X11Keyboard.cs : Check XGetIMValues() return value in
1917           case it does not return input styles in some environment.
1918
1919 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
1920
1921         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
1922
1923 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1924
1925         * BindingContext.cs: Stub UpdateBinding method.
1926
1927 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
1928
1929         * X11Structs.cs : added couple of structs for XIM support.
1930         * X11Keyboard.cs :
1931           Release XIM in case it failed to create XIC. 
1932           Use consts for XNblah string.
1933           Add support for IM style customization and XIC creation
1934           for preedit-position and preedit-callback.
1935           Right now use MONO_WINFORMS_XIM_STYLE environment variable
1936           (list of: over-the-spot | on-the-spot | root). Only root
1937           mode works so far.
1938
1939           (redoing r99172 with fix.)
1940
1941 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
1942
1943         * TreeView.cs: Center the checkbox a little better.
1944
1945 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
1946
1947         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
1948         Apply very nice patch from Ernesto Carrea that simplifies our
1949         scrollbar drawing.  [From bug #376146]
1950
1951 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
1952
1953         * TreeView.cs: Correct the location of the root node checkbox when
1954         ShowRootLines = false.  Don't draw the root lines for the root node
1955         when ShowRootLines = false.  [Fixes bug #377535]
1956
1957 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
1958
1959         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
1960         Fixed line endings.
1961         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
1962         line endings.
1963         * MaskedTextBox.cs: Added missing attribute. Code formatting.
1964         * PageSetupDialog.cs: Added missing attribute. Code formatting.
1965         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
1966         * ImeMode.cs: Added missing field.
1967         * HtmlWindow.cs: Code formatting. Fixed line endings.
1968         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
1969         warnings.
1970         * HtmlHistory.cs: Code formatting. Fixed line endings.
1971         * HtmlDocument.cs: Code formatting. Fixed line endings.
1972         * ToolStripPanel.cs: Added missing IList implementation.
1973         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
1974
1975 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
1976
1977         * BindingContext.cs: Changed argument names to fix corcompare errors.
1978         * DataGridView.cs: Removed extra explicit interface implementation
1979         of IDropTarget. Code formatting.
1980         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
1981         * ComboBox.cs: Changed argument names to fix corcompare errors.
1982         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
1983         errors.
1984         * GridColumnStylesCollection.cs: Changed argument names to fix
1985         corcompare errors. Removed extra tabs.
1986         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
1987         errors.
1988         * Control.cs: Changed argument names to fix corcompare errors. Code
1989         formatting. Removed extra explicit IList implementation.
1990         * TextBox.cs: Changed argument names to fix corcompare errors. Code
1991         formatting. Use string.Empty instead of "".
1992         * GridItemCollection.cs: Changed argument names to fix corcompare
1993         errors. Code formatting.
1994         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
1995         corcompare errors. Code formatting.
1996         * ImageList.cs: Changed argument names to fix corcompare errors.
1997         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
1998         * DataGridViewRowCollection.cs: Changed argument names to fix
1999         corcompare errors. Code formatting.
2000         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
2001         * DataGridViewSelectedCellCollection.cs: Changed argument names to
2002         fix corcompare errors. Code formatting.
2003         * DataGridViewComboBoxCell.cs: Changed argument names to fix
2004         corcompare errors. Code formatting.
2005         * LinkLabel.cs: Changed argument names to fix corcompare errors.
2006         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
2007         formatting.
2008         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
2009         Code formatting.
2010         * BindingSource.cs: Changed argument names to fix corcompare errors.
2011         Removed extra explicit interface implementations.
2012         * DataGridViewSelectedRowCollection.cs: Changed argument names to
2013         fix corcompare errors. Code formatting.
2014         * ToolStripItemCollection.cs: Removed extra explicit interface
2015         implementation of IList.ReadOnly.
2016         * DataGridViewColumnCollection.cs: Changed argument names to fix
2017         corcompare errors. Code formatting.
2018         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
2019         * ListView.cs:  Changed argument names to fix corcompare errors.
2020         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
2021         errors.
2022         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
2023         errors.
2024         * ListBindingHelper.cs: Changed argument names to fix corcompare
2025         errors.
2026         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
2027         fix corcompare errors. Code formatting.
2028         * ToolStripPanel.cs: Removed extra explicit implementation of
2029         IDropTarget interface.
2030         * ListBox.cs: Changed argument names to fix corcompare errors. Code
2031         formatting. Removed extra tabs and spaces.
2032         * DataGridViewCellCollection.cs: Changed argument names to fix
2033         corcompare errors.
2034         * Help.cs: Changed argument names to fix corcompare errors. Code
2035         formatting.
2036         * TabControl.cs: Changed argument names to fix corcompare errors.
2037         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
2038         errors.
2039         * TableLayoutSettings.cs: Changed argument names to fix corcompare
2040         errors.
2041
2042 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2043
2044         * ListBindingHelper.cs: When returning properties, only return those
2045         that are browsable. Also, don't do a linear search of the properties,
2046         but use the indexer of the PropertyDescriptorCollection class.
2047
2048 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2049
2050         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
2051         Dictionary containing the related (child) currency managers. Also,
2052         when setting DataSource, add datasource to our List if it is not a list.
2053
2054 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
2055
2056         * PropertyGridTextBox.cs: Fix background color of the buttons.
2057         * PropertyGridView.cs: Make the entry less jumpy.
2058
2059 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
2060
2061         * PropertyGrid.cs: Fix unused variable warnings.
2062
2063 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
2064
2065         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
2066         double-click. It expanded it once in the mouse down and then 
2067         again in the double-click handler.
2068
2069 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
2070         
2071         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
2072         TypeConverter and UITypeEditors.
2073
2074 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
2075
2076         * Control.cs: Visibility should be set synchronously, 
2077         so we must also redraw once it is and not rely on layouting or 
2078         other code to repaint.
2079         [Fixes bug #339898]
2080
2081 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
2082
2083         * DataGridViewCell.cs: Respect DataGridView.GridColor.
2084
2085 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
2086
2087         * Control.cs: Invalidate when the alpha channel is less than 255,
2088         not only when control is transparent.
2089
2090 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
2091
2092         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
2093         Implement some painting convenience methods that threw NIEX.
2094
2095 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
2096
2097         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
2098         * DataGridViewLinkCell.cs: Implement.
2099
2100 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
2101
2102         * GridEntry.cs: Report the conversion exception error description.
2103         [Fixes bug #375792]
2104
2105 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
2106
2107         * PropertyGridView.cs: Do not scroll to item on resize.
2108         [Fixes bug #375789]
2109
2110 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2111
2112         * BindingContext.cs: When retrieving a BindingManagerBase, if the
2113         dataSource parameter is ICurrencyManagerProvider, then return
2114         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
2115         instead of creating a new one.
2116
2117 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2118
2119         * BindingSource.cs: Implement support for Type instances as
2120         DataSource.
2121
2122 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
2123
2124         * DataGridView.cs: Minor cleanups and call CellMouseUp.
2125         * DataGridViewCell.cs: Make some painting routines internally virtual.
2126         * DataGridViewButtonCell.cs: Implement.
2127
2128 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
2129
2130         * Control.cs: We always need to invalidate our children with
2131         transparent backgrounds when we are invalidated.
2132         [Fixes bug #376081]
2133
2134 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2135
2136         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
2137         and CancelCurrentEdit on CurrencyManager respectively. Implement
2138         support for ICancelAddNew too.
2139
2140 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2141
2142         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
2143         call EndNew/CancelNew if list is ICancelAddNew.
2144
2145 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
2146
2147         * DataGridView.cs: Guard against an exception while painting
2148         if there are no rows.
2149
2150 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
2151
2152         * DataGridView.cs: Implement a bunch of keyboard commands.
2153
2154 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
2155
2156         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
2157         isn't set, don't call OnPaint.  [Fixes bug #375300]
2158
2159 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2160
2161         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
2162         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
2163         hookup the remaining events related to CurrencyManager, and fire
2164         OnListChanged also for the Clear () method.
2165
2166 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2167
2168         * BindingSource.cs: Use Current and Position implementations in
2169         CurrencyManager instead of using our own routines, since we need 
2170         to be in synch with it. Count should NEVER return a -1 value, and 
2171         also report ListChanged events for both simple IList data 
2172         sources (manually) as well for IBindingList ones (by hooking up an
2173         event handler for it).
2174
2175 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2176
2177         * BindingSource.cs: Make one .ctor call the another, to avoid
2178         duplicate code. Add the CurrencyManager property, and also for AddNew
2179         throw the proper exceptions and show better error messages.
2180
2181 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
2182
2183         * ComboBox.cs: Only adjust selectedindex if Handle has been
2184         created.  Fixes failing test.
2185
2186 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
2187
2188         * ComboBox.cs: Adjust selectedindex if we insert a new item
2189         above the current selectedindex in a sorted ComboBox.
2190         [Fixes bug #374654]
2191
2192 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
2193
2194         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
2195         [Fixes bug #374712]
2196
2197 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
2198
2199         * DataGridViewTextBoxCell.cs: Implement stuffs.
2200
2201 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
2202
2203         * TreeView.cs: Create the scrollbars even earlier to be
2204         double dog certain they are created before they are accessed.
2205
2206 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
2207
2208         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
2209
2210 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
2211
2212         * ScrollBar.cs: Create an internal safe Value setter so we
2213         won't crash if we try to set a value outside the min and max.
2214         * TextBoxBase.cs: Use safe value setter to guard against a
2215         potential NRE that is being reported by Reflector.
2216
2217 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
2218
2219         * TreeView.cs: Create the scrollbars earlier in the constructor
2220         to attempt to guard against an NRE in SetTop in Reflector.
2221
2222 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
2223
2224         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
2225         DataGridViewRowCollection.cs: Do not scroll column and row headers,
2226         show messagebox on data format error, use column display index
2227         correctly, make sure HitTest supports new layout stuff,
2228         make sure scrollbars support new layout stuff.
2229
2230 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
2231
2232         * XplatUIX11.cs : Patch by Doug Rintoul.
2233           For some IM engines, keypress events need to delay call
2234           to XPending() and XNextEvent() in the loop so that it
2235           does not mess the orders in XIM commit callback.
2236           Some KeyRelease events such as shift keys need to be
2237           processed both in the IM engine and winforms driver
2238           itself since winforms holds its own state check.
2239
2240           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
2241
2242 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
2243
2244         * X11Keyboard.cs, XplatUIX11.cs :
2245           add primitive support for XIM input support (preedit-
2246           nothing and status-nothing). It requires precise event
2247           capturing (XSelectInput/"filterEvents") and different
2248           call to XFilterEvent against root window.
2249           Get composed string and send dummy WM_IME_COMPOSITION.
2250           Free XIM and XIC instances in finalizer.
2251
2252           (This first patch does not include suggested changes
2253            by Doug Rintoul. It will follow.)
2254
2255 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
2256
2257         * DataGridView.cs: When binding to a property, if the property
2258         doesn't have a setter, set the column to readonly.
2259         [Fixes bug #343965]
2260
2261 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
2262
2263         * ComboBox.cs: Guard against NRE if an arrow key is hit while
2264         we aren't dropped down.  Support Home/End in DropDownList mode.
2265         [Fixes bug #371990]
2266
2267 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
2268
2269         * TreeNodeCollection.cs: Don't increment count until we've
2270         saved our index to return.
2271         [Fixes bug #373603]
2272
2273 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
2274
2275         * Label.cs: Add padding to the label's AutoSize calculation.
2276         [Fixes bug #373792]
2277
2278 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2279
2280         * ListBindingHelper.cs: Actually implement GetListName method.
2281
2282 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2283
2284         * BindingSource.cs: Throw the propert expceptions for some methods, as
2285         well as detect the list item type for Add method if DataSource is null.
2286
2287 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
2288
2289         * DataGridViewCell.cs: I don't know why I commented this out,
2290         putting it back for now.
2291
2292 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
2293
2294         * DataGridViewCell.cs: Remove storage for owning column, just
2295         use column index.
2296         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
2297         * DataGridViewColumnHeaderCell.cs: If the header text has been
2298         explicitly set, return it.
2299         [Fixes bug #325979]
2300
2301 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
2302
2303         * DataGridViewRowCollection.cs: Disable row sharing when
2304         using data binding.  Its a great feature, but lets work on
2305         getting DGV usable first before we worry about optimizations.
2306
2307 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2308
2309         * BindingSource.cs: When resetting our internal list, compute list
2310         item type information to be used for indirect list access. Also
2311         implement/tune some properties and methods related to the list access
2312         too.
2313         * ListBindingHelper.cs: Add a stub for GetListName method, used from
2314         BindingSource.
2315
2316 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
2317
2318         * DataGridView.cs: If RowCount is increased while ColumnCount
2319         is zero, add a column.  [Fixes bug #331649]
2320
2321 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
2322
2323         * DataGridViewRowCollection.cs: When adding new rows for
2324         databinding, make sure they are place before the add row.
2325         [Fixes bug #343961]
2326
2327 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
2328
2329         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
2330         instead of Index order.
2331
2332 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
2333
2334         * DataGridView.cs: If columns are added by increasing ColumnCount,
2335         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
2336         [Fixes bug #325588]
2337
2338 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
2339
2340         * DataGridView.cs: Turn off and on the "new row" when 
2341         AllowUserToAddRows is toggled.  When the handle is created,
2342         set current cell and selected cell/row/col.
2343
2344 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
2345
2346         * ComboBox.cs: When navigating the drop down by keyboard, we
2347         need to scroll the list box if our selection moves out of the
2348         currently shown items.  [Fixes bug #371990]
2349
2350 2008-03-24  Luke Page <luke.a.page@gmail.com>
2351
2352         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
2353         on the control. Also now handles unicode compatibility characters and
2354         stores the unicode compatibility length on the stack. Fixes Bugs
2355         #355198 and #366436.
2356
2357 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2358
2359         * BindingSource..cs: Take into account DataMember when re-creating the
2360         List property, and also create a specific kind of list as needed.
2361
2362 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2363
2364         * ListBindingHelper.cs: Add a new case for GetList () method - when we
2365         get an empty IEnumerable, try to detect whether the datamember is
2366         valid or not for that type, if true, return null, and throw exception
2367         otherwise.
2368
2369 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
2370
2371         * ComboBox.cs: Alt-Down should drop down the list, Esc should
2372         retract it.  [Fixes bug #371989]
2373
2374 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
2375
2376         * PropertyGrid.cs: Initialize the sorting button as pushed.
2377
2378 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
2379
2380         * PropertyGrid.cs: 
2381          - Visually select the PropertyTab.
2382          - Filter Properties by Attributes properly.
2383
2384 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
2385
2386         * MenuItem.cs: Remove menu item from parent when disposed.
2387         [Fixes bug #372845]
2388
2389 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
2390
2391         * ToolBar.cs: Don't reset layout_type if Dock = None.
2392
2393 2008-03-21  Andreia Gaita <avidigal@novell.com> 
2394
2395         * UserControl.cs: Select the first available control when we get focus.
2396           Fixes #372616
2397
2398 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
2399
2400         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
2401         the content if we are in edit mode.  [Fixes bug #343964]
2402
2403 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
2404
2405         * DataGridViewCell.cs: Fix border painting for column headers.
2406
2407 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2408
2409         * BindingSource.cs: When setting or resetting data source,
2410         use ListBindingHelper.GetList () method, since it will get the list in
2411         case datasource is IListSource.
2412
2413 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
2414
2415         * DataGridViewCell.cs: Implement lots more stuffs.
2416
2417 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
2418
2419         * PropertyGridView.cs, GridEntry.cs: Implement support for 
2420         UITypeEditor.IsDropDownResizable.
2421
2422 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
2423
2424         * DataGridViewCell.cs: Remove unused variables, improve how
2425         several of the property getters work.
2426         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
2427         get its size from the parent row/col.
2428
2429 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
2430
2431         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
2432         user alters manually the PropertyTabs collection via the 
2433         PropertyTabs property.
2434
2435 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2436
2437         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
2438         new tests for them to be sure to be compatible with .net.
2439
2440 2008-03-20  Andreia Gaita <avidigal@novell.com> 
2441
2442         * WebBrowserBase.cs: Fix attributes, add events
2443         * WebBrowser.cs: Fix Padding signature
2444
2445 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
2446
2447         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
2448
2449 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
2450
2451         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
2452         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
2453         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
2454         passes the new suite of tests for it.
2455
2456 2008-03-18  Andreia Gaita <avidigal@novell.com> 
2457
2458         * WebBrowser.cs: Add missing attributes, missing Padding and
2459           DefaultSize properties, remove extraneous getters
2460
2461 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2462
2463         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
2464         method overloads.
2465
2466 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
2467
2468         * ComboBox.cs: Move resetting the selected index to keypress
2469         instead of textchanged.  Changing the text programmatically
2470         should not trigger resetting the selected index.  Fixes test.
2471
2472 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
2473
2474         * ComboBox.cs: When the user types into the textbox, reset
2475         the selected index to -1.  [Fixes bug #371672]
2476
2477 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
2478
2479         * FileDialog.cs: Support Control-A for selecting everything
2480         in an OpenFileDialog.  [Fixes bug #371564]
2481
2482 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
2483
2484         * DataGridView.cs: When row/column visible/height properties
2485         change, invalidate.  Take the NIEX out of InvalidateRow/Column
2486         etc.  We don't support them yet, but we can just invalidate
2487         everything until we do support them.  (Added MonoTODO).  Set
2488         proper control styles.
2489         * DataGridViewRow.cs: Don't call PaintHeader if row headers
2490         are turned off. 
2491
2492 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2493
2494         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
2495
2496 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
2497
2498         * DataGridViewRow.cs: Only paint the white background in
2499         cell bounds, the row bounds extends past the cells if the 
2500         grid width isn't as wide as the DGV.
2501
2502 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
2503
2504         * DataGridView*: Completely revamp the drawing to match the
2505         public API.  Our grids now look better, and call all the
2506         appropriate methods and event to allow users to override
2507         the painting and do their own.
2508
2509 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2510
2511         * ListBindingHelper.cs: Implement 2.0 GetList methods.
2512
2513 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
2514
2515         * DataGridView.cs: Implement BorderStyle.
2516
2517 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
2518
2519         * FileDialog.cs: Apply patch from Andy Hume: Any time we
2520         are comparing attributes, make sure we only look at the
2521         one we are interested.  These calls were failing if there
2522         were more than one attribute.
2523         [Fixes bug #370385]
2524
2525 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
2526
2527         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
2528
2529 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
2530
2531         * PageSetupDialog.cs: Stub EnableMetric.
2532         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
2533         * PrintPreviewDialog.cs: Add ProcessDialogKey,
2534         ProcessTabKey.
2535
2536 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
2537
2538         * MonthCalendar.cs: Remove unused variable.
2539
2540 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
2541
2542         * DataGridView*.cs: corcompare stuffs.
2543
2544 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
2545
2546         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
2547         The savings aren't worth the extra code to fix the optimization.
2548         [Fixes bug #368585]
2549
2550 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
2551
2552         * ToolBar.cs: Always call base.Dock in the Dock override so that
2553         Control's layout_type gets reset correctly.
2554         [Fixes bug #368882]
2555
2556 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
2557
2558         * X11Dnd.cs: End DnD operation also for the middle mouse button.
2559
2560 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
2561
2562         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
2563         at the same time we do explicit ones, because we have to give all
2564         other controls on the container a chance to handle explicit ones
2565         first.  If no one has an explicit mnemonic, then we can let the
2566         MenuStrip have a shot at implicit mnemonics.
2567         * MenuStrip.cs: Create an implicit mnemonic function.
2568         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
2569         mnemonics for MenuStrips.
2570         [Fixes bug #368493]
2571
2572 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
2573
2574         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
2575         DataGridColumnStyle.cs: corcompare stuffs.
2576
2577 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2578
2579         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
2580         Details - This is needed after we added the bits to use any available
2581         column also for List and SmallIcon view. 
2582
2583 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2584
2585         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
2586         at the proper place, not only when changing SelectedIndex and changing
2587         the selection using keys/mouse, as .net does.
2588
2589 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2590
2591         * ControlBindingsCollection.cs: Implement last 2.0
2592         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
2593         in the new 2.0 Add methods.
2594
2595 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2596
2597         * ListBox.cs: When calling SelectedIndexCollection.Clear,
2598         return if no items are previously selected - this is done to avoid 
2599         firing OnSelectedIndexChanged without need to do so. Also,
2600         when creating handle ensure that the focused item is visible (as
2601         .net does).
2602
2603 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2604
2605         * ListBox.cs: Rewrote/refactored most of selection code. We require
2606         the following things in selection: a) keep selection sorted (both
2607         indices and items), b) SelectedIndices automatically detect the
2608         selection mode, c) SelectedIndex should be the first selected item
2609         index, d) Need to Focus/adjust scroll bar when selecting a new item,
2610         not only for SelectedIndex, which is specially important in Multi*
2611         selection modes. To achieve this we are moving the selection core to
2612         SelectedIndexCollection and make depend all selection modifications on
2613         it.
2614         Fixes #366438.
2615
2616 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
2617
2618         * ToolStrip.cs: Enable implicit mnemonics for drop down
2619         menu strips.  [Fixes part of bug #367692]
2620
2621 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
2622
2623         corcompare - fix parameter names [stragglers].
2624         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
2625         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
2626         TabControl.cs.
2627
2628 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
2629
2630         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
2631         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
2632         mnemonic, let the ToolStripManager have it even if it doesn't
2633         have a matching mnemonic.
2634         [Fixes bug #367499]
2635
2636 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
2637
2638         corcompare - fix warning about implicit implementation
2639         * ToolStrip.cs: Add IToolStripData interface.
2640         * IToolStripData.cs: Add.
2641
2642 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
2643
2644         corcompare - fix warning about implicit implementation
2645         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
2646         * IBounds.cs: Add.
2647
2648 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
2649
2650         corcompare - fix parameter names [N-Z].
2651         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
2652         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
2653         PropertyManager.cs, RichTextBox.cs,
2654         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
2655         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
2656         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
2657         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
2658         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
2659         ToolStripContentPanel.cs, ToolStripDropDown.cs,
2660         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
2661         ToolStripPanel.cs, ToolStripSeparator.cs,
2662         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
2663         UICuesEventHandler.cs, UpDownBase.cs.
2664
2665 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
2666
2667         corcompare - fix parameter names [G-M].
2668         GridColumnStylesCollection.cs, GridItemCollection.cs,
2669         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
2670         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
2671         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
2672         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
2673         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
2674
2675 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
2676
2677         corcompare - fix parameter names [A-F].
2678         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
2679         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
2680         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
2681         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
2682         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
2683         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
2684         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
2685
2686 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
2687
2688         * GridEntry.cs: Do not convert not only if the types match, 
2689         but also if the property type is assigneable from the value's
2690         type.
2691         [Fixes bug #366566]
2692
2693 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
2694
2695         * PropertyGridView.cs: 
2696          - Subscribe to the listbox only once and not everytime.
2697          - Update the textbox even if SetValue fails.
2698          - Close the listbox before calling TrySetValue just in case.
2699          [Fixes bug #366569]
2700
2701 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
2702
2703         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
2704
2705 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2706
2707         * ListView.cs: Implement support for custom column width based on
2708         Columns collection (we were previously using this collection only
2709         with Details view).
2710         Fixes #364484.
2711
2712 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2713
2714         * ListViewItem.cs: For Tile view, always set bounds for the first
2715         subitem (which is the main one), and also don't let Width be larger
2716         than ListView.TileSize.Width. Improve code readibility also.
2717         * ThemeWin32Classic.cs: When painting the ListViewItem instances
2718         in Tile view, _always_ use the NoWrap flag.
2719         Fixes #360798.
2720
2721 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
2722
2723         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
2724         in case.
2725         * GridEntry.cs: For MS compitability make all child properties 
2726         readonly if the parent is readonly. Ugh.
2727         [Fixes bug #365945 and #365944]
2728
2729 2008-02-29  Andreia Gaita <avidigal@novell.com> 
2730
2731         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
2732           relative to the history
2733
2734 2008-02-29  Andreia Gaita <avidigal@novell.com>
2735
2736         * HtmlElement.cs: More handlers for mouse and key events
2737
2738 2008-02-28  Andreia Gaita <avidigal@novell.com>
2739
2740         * WebBrowserBase.cs: MouseClick sig changed.
2741         * HtmlHistory.cs: Implement history navigation
2742         * HtmlElement.cs: Add event handlers, and connect them.
2743
2744 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
2745
2746         * GridEntry.cs: 
2747          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
2748            so that DisplayNameAttribute doesn't get ignored.
2749          - Check for ParenthesizeNameAttribute and parenthesize the Label.
2750          - Add support for PasswordPropertyTextAttribute
2751         * PropertyGridView.cs: Check if an entry is a password.
2752         [Fixes bugs #365589, #365586, #365588]
2753
2754 2008-02-28  Andreia Gaita <avidigal@novell.com>
2755
2756         * PropertyGridView.cs: Revert the message filtering change, as we
2757         need it to block after all. Remove block parameter, unnecessary.
2758
2759 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
2760
2761         * UserControl.cs: Better implementation of GetPreferredSize.
2762         First step to fixing bug #361441.
2763
2764 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2765
2766         * Binding.cs: Actually implement data binding support for 
2767         classes implementing IBindableComponent.
2768         * ControlBindingsCollection.cs: Likewise.
2769
2770 2008-02-26  Andreia Gaita  <avidigal@novell.com>
2771
2772         * PropertyGridView.cs: Use a message filter to check when to 
2773         close the dropdown
2774
2775 2008-02-26  Andreia Gaita  <avidigal@novell.com>
2776
2777         * Application.cs: Change the message_filters loop so a filter 
2778         can be removed while looping.
2779
2780 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
2781
2782         * GridEntry.cs: Optimization in ToggleValue so that it caches
2783         the current value.
2784         * PropertyGridView.cs: An optimization so that the property isn't 
2785         re-read twice for each StandardValue added to the drop-down menu.
2786         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
2787         license.
2788         [Fixes bug #362755]
2789
2790 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
2791
2792         * Application.cs: Apply patch from Justin Cherniak to match
2793         MS better for ProductName, ProductVersion, and CompanyName.
2794         [Fixes bug #361709]
2795
2796 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2797
2798         * Binding.cs: Actually implement 2.0 NullValue property. Also
2799         when changing the formatting related properties, only update the state
2800         if formatting_enabled is true (we don't mind otherwise).
2801
2802 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
2803
2804         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
2805         [Fixes bug #364486]
2806
2807 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
2808
2809         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
2810         of GetType on the current value as it uses reflection to 
2811         determine the type. This fixes the case where the new value is 
2812         null. 
2813
2814 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
2815
2816         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
2817         past the view.
2818
2819 2008-02-24  Luke Page  <luke.a.page@gmail.com>
2820
2821         * Line.cs, TextControl.cs: Implement offset x and y so that a
2822         document doesn't have to begin  at (0,0) on the viewpoint.
2823         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
2824         bars and switches the text alignment (and therefore is now
2825         implemented for textbox). Fixes #321383.
2826
2827 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2828
2829         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
2830         properties. Also when changing FormattingEnabled update the control
2831         property -as .Net does-.
2832
2833 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
2834
2835         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
2836         * Binding.cs: Add stubs for the overloads of the Add method in
2837         CBCollection.
2838
2839 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2840
2841         * Binding.cs: PullData () returns a false value if we got an exception.
2842         Also when validating the control and we get an error, instead of
2843         setting the value of the previous one, cancel the event (tested in 1.1
2844         and 2.0).
2845
2846 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
2847
2848         * TreeView.cs: Make selected_node and highlighted_node internal.
2849         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
2850         to null when Nodes.Clear is called.
2851         [Fixes bug #363884]
2852
2853 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
2854
2855         * FontDialog.cs: Ensure that when the Font is set in code,
2856         all the gui pieces are updated accordingly.
2857         [Fixes bug #361020]
2858
2859 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
2860
2861         * TextRenderer.cs: Respect proposed size for MeasureString.
2862         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
2863         autosize, use a proposed width to force wrapping for long text.
2864         [Fixes bug #360981]
2865
2866 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
2867
2868         * TreeView.cs: Factor in checkboxes = false and state images in
2869         to HitTest.  [Fixes bug #363360]
2870
2871 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
2872
2873         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
2874         when drawing the selected range.
2875         [Fixes bug #363648]
2876
2877 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
2878
2879         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
2880         ResizeRedraw control styles.
2881         [Fixes bug #363555]
2882
2883 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
2884
2885         * TreeView.cs: StateImages are basically custom checkboxes, so
2886         factor their size the same as real checkboxes when determining
2887         what got clicked.
2888         [Fixes bug #363367]
2889
2890 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
2891
2892         * MessageBox.cs: Make the message box wider if the form caption
2893         is longer than the text in the form.
2894         [Fixes bug #361137]
2895
2896 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
2897
2898         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
2899
2900 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
2901
2902         * TreeNode.cs: Guard against an NRE when the parent's
2903         StateImageList hasn't been set.
2904         [Fixes bug #363353]
2905
2906 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
2907
2908         * SplitContainer.cs: Add SupportsTransparentBackColor and
2909         OptimizedDoubleBuffering control styles.
2910         [Fixes bug #363303]
2911
2912 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
2913
2914         * Application.cs: For the app data paths and the registry key paths,
2915         ensure they are created before returning them to the user.
2916         [Fixes bug #361709]
2917
2918 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
2919
2920         * Application.cs: Guard against an NRE in CompanyName and
2921         ProductName.
2922
2923 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
2924
2925         * Application.cs: For CompanyName, ProductName, and ProductVersion,
2926         make sure we handle all three cases correctly: attribute is present,
2927         attribute is present but is an empty string, and attribute is not
2928         present.
2929
2930 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
2931
2932         * PropertyGridView.cs: 
2933          - Fix a NRE that caused a test failure
2934          - Another performance improvement - cache the standard values
2935          listbox.
2936
2937 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
2938
2939         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
2940         code paths.
2941
2942 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
2943
2944         * PropertyGridView.cs: Fix a big performance bug.
2945
2946 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
2947
2948         * SelectionRange.cs: Apply patch from Andy Hume to make
2949         constructor behavior more accurate.  [Fixes bug #362117]
2950
2951 2008-02-19  Andreia Gaita <avidigal@novell.com> 
2952
2953         * Control.cs: Added a new flag is_disposing to track if the
2954         window is currently in the process of being disposed of.
2955         This is used so that, when firing visibility changes triggered
2956         by unparenting controls during Dispose, the control doesn't
2957         get created again.      
2958
2959 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
2960
2961         * ComboBox.cs: Set height to preferred height when the handle
2962         is created.  [Fixes bug #360862]
2963
2964 2008-02-18  Andreia Gaita <avidigal@novell.com>
2965
2966         * XplatUIX11.cs: Create FosterParent with border width at 0.
2967         With the previous value of 4, everytime a control got reparented
2968         from parent = null, it's location would be shifted right and 
2969         down by 4, since these coordinates would be offset by the 
2970         FosterParent's border width.
2971
2972 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
2973
2974         * Control.cs: During diposing firstly remove ourselfes from
2975         the parent and *then* destroy our handle, because removing
2976         ourselfes from the parent controls collection causes 
2977         VisibilityChange, etc events, which require a handle and end
2978         up recreating the control.
2979
2980 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
2981
2982         * GridEntry.cs: Set expanded state before notifying that the
2983         expansion has taken place.
2984         * PropertyGridView.cs:
2985          - Set the propertygridtextbox text to the selected 
2986          StandardValue before proceeding to setting it.
2987          - Scrolling bugfixes.
2988
2989 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
2990
2991         * GridEntry.cs:
2992          - Fix ValueText to not return null.
2993          - Fix conversion error reporting to actually happen.
2994         * PropertyGridView.cs: Set entry only if the text has changed.
2995         [Fixes bug #362116]
2996
2997 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
2998
2999         * GridEntry.cs: 
3000          - Fix handling of a null current value.
3001          - Swallow editor exceptions.
3002         [Fixes bug #362114]
3003
3004 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
3005
3006         * PropertyGrid.cs: Clear current items first thing before 
3007         repopulating subitems.
3008         * GridEntry.cs: 
3009          - Handle null StandardValuesCollection.
3010          - Mark as not editable if there is no PropertyDescriptor and
3011          if the Converter cannot convert from string.
3012         [Part of fix for bugs #360666 and #358332]
3013
3014 2008-02-15  Luke Page  <luke.a.page@gmail.com>
3015         * MaskedTextBox.cs: Now skips non editable characters after a
3016         character has been entered and we are progressing to the next
3017         position in the MaskedTextBox.
3018
3019 2008-02-15  Luke Page  <luke.a.page@gmail.com>
3020         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
3021         that it changes the selection rather than just repositioning the
3022         cursor. Fixes Bug #360873.
3023
3024 2008-02-15  Luke Page  <luke.a.page@gmail.com>
3025         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
3026         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
3027         correctly. See #359330
3028
3029 2008-02-15  Andreia Gaita <avidigal@novell.com>
3030
3031         * XplatUIX11.cs: If the handle is null when posting a message, use the
3032         current thread queue to post instead. Fixes #332409
3033
3034         * SendKeys.cs: Slight optimization
3035
3036 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
3037
3038         * PropertyGrid.cs, PropertyGridView.cs:
3039         Fix multiple scrolling and sizing issues.
3040         [Fixes bug #359199]
3041
3042 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
3043
3044         * PropertyGridView.cs: Ensure that drop down editors are shown
3045         in the WorkingArea of the screen.
3046         [Fixes bug #359807]
3047
3048 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
3049
3050         * GridEntry.cs: Fail silently when UITypeEditor is missing.
3051         [Fixes bug #360666]
3052
3053 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3054
3055         * Binding.cs: Implement 2.0 DataSourceNullValue property.
3056
3057 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
3058
3059         * PropertyGridView.cs:
3060          - Clear the controls in the drop down form after it is hidden.
3061          - Fix Width sizing of the dropdown editors to match MSFT.
3062
3063 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
3064
3065         * PropertyGridView.cs: 
3066          - Fix height for drawing the grid entry
3067          text value, so that it clips multiline text properly.
3068          - Fix unfocusing to match MSFT.
3069
3070 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
3071
3072         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
3073         Fixes a bug where on repopulation after value changed items become
3074         expandable.
3075
3076 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3077
3078         * Binding.cs: For the 2.0 profile, look for a 
3079         'PropertyChanged' event in the target control, and add checks for
3080         DataSourceUpdateMode property to change -or not- the data source
3081         from validation/control property change.
3082
3083 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
3084
3085         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
3086           not compare struct with null in 2.0).
3087
3088 2008-02-10  Luke Page <luke.a.page@gmail.com>
3089
3090         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
3091         updates the provider and if not using a provider, uses the internal document
3092         class implementation of password char. Also when showing text, uses display string
3093         from the provider, instead of the actual text.
3094
3095 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3096
3097         * Binding.cs: Ooooops, forgot to take into account the data_source
3098         and binding_member_info null case (it was breaking the Binding tests).
3099
3100 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3101
3102         * Binding.cs: Implement support for data source changes exposed by
3103         'PropertyNameChanged' events, and update the control property as
3104         needed.
3105
3106 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3107
3108         * Binding.cs: Implement 2.0 WriteValue method.
3109
3110 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
3111
3112         Commit patch from James Purcell for better AutoScale implementation:
3113
3114         * ScaleControl should call GetScaledBounds with the control's total size rather
3115         than client size.  GetScaledBounds should handle ignoring the borders in its
3116         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
3117         (for the most part they just call the base code now since that is fixed).
3118         * Added ScaleChildrenInternal to allow controls to disable scaling of children
3119         without having to override ScaleChildren (since none of .NET's controls do). 
3120         This is required for most controls in Mono that have scrollbars to prevent the
3121         scrollbars from being moved/resized.
3122         * Nested ContainerControls can have a different scale mode than their parent. 
3123         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
3124         designer produce different results both of which look incorrect).
3125         * Default AutoScaleMode for ContainerControl should be Inherit.
3126         * Simplified workaround for ComboBox scaling issue.
3127         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
3128         1.0 style auto scaling should scale the whole control's size instead of
3129         ignoring the borders (except for Form) and the rounding is done differently to
3130         preserve control alignment.
3131         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
3132         GetAutoScaleSize.
3133         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
3134         * CurrentAutoScaleDimensions should round the estimated character width instead
3135         of truncating.
3136         * ListBox's GetScaledBounds should always use the height it was set to instead
3137         of the height that was passed in.  This prevents rounding errors from
3138         accumulating quickly with IntegralHeight.
3139         [Bug #359098]
3140
3141 2008-02-08  Andreia Gaita <avidigal@novell.com>
3142
3143         * Form.cs: Add a null check (darn it). 
3144
3145 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
3146
3147         * MdiClient.cs: Make sure the requesting form actually owns the
3148         control menu items before removing them.  Also, use
3149         Suspend/ResumeLayout when adding or removing items so we only
3150         layout once.
3151         [Fixes bug #359887]
3152
3153 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
3154
3155         * Control.cs: Guard against an NRE in ShowFocusCues.
3156         [Fixes bug #359830]
3157
3158 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3159
3160         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
3161         property, as well as stubbing DataSourceUpdateMode.
3162
3163 2008-02-08  Andreia Gaita <avidigal@novell.com>
3164
3165         * Form.cs: When closing forms, get focus back to the active control of the
3166         active form. [Fixes #341314, corner case]
3167         
3168 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3169
3170         * MdiClient.cs: After we move the scrollbars, invalidate the NC
3171         area, so any old scrollbar artifacts are cleaned up.
3172         [Fixes bug #336305]
3173
3174 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3175
3176         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
3177         for our menus, display that control box menu instead of the 1.1
3178         menu one.
3179
3180 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3181
3182         * MdiControlStrip.cs: Add property to access the mdi form tied to
3183         each toolstripitem.
3184         * MdiClient.cs: Be smarter about removing and adding toolstripitems
3185         to the implicitly merged menu.  Every time we clicked the form, items
3186         were getting removed and the re-added, causing the form to jump around
3187         as the menu resized.
3188
3189 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3190
3191         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
3192         was being reset by the implicit menu merge for menustrips.
3193         [Fixes bug #336296]
3194
3195 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3196
3197         * Form.cs: Don't do the previous change when WindowState = Normal,
3198         or it messes up where the window is placed.  Fixes test failure.
3199
3200 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3201
3202         * Form.cs: When becoming visible, if we are an MDI child, call
3203         SetWindowState with a dummy old_state so that changes will actually
3204         be made.
3205         [Fixes the 2nd part of bug #325473]
3206
3207 2008-02-07  Andreia Gaita <avidigal@novell.com>
3208
3209         * Control.cs: Reset properties to their pre parent-change values in case
3210         the new parent == null (in which case we're basically removing the control, 
3211         and don't want any events fired due to fake property changes)
3212         [Fixes #355850]
3213
3214 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
3215
3216         * PropertyGridView.cs: 
3217          - Refactor SetValue to allow setting the value
3218         when a custom editor is used, but the entry is not editable.
3219          - Remove the custom editor control on CloseDropDown.
3220         [Fixes #359196]
3221
3222 2008-02-06  Andreia Gaita <avidigal@novell.com>
3223
3224         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
3225         reflection only on 1.1, this property is public on system.drawing on 2.0.
3226         Fixed #359247
3227
3228 2008-02-06  Andreia Gaita  <avidigal@novell.com>
3229         
3230         * WebBrowser.cs: Do a normal page refresh by default.
3231
3232 2008-02-05  Andreia Gaita  <avidigal@novell.com>
3233
3234         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
3235         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
3236         platforms. Fixes #359036
3237         
3238         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
3239         platform-specific flags.
3240
3241 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3242
3243         * Binding.cs: Add 2.0 BindableComponent property - just return control
3244         by now.
3245
3246 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
3247
3248         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
3249         Jonathan for this patch. Fixes #358442.
3250
3251 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
3252
3253         * Form.cs: If we change the active MDI child form, let the others
3254         know they need to repaint their title bar so it will appear inactive.
3255         [Fixes part 1 of bug #325473]
3256
3257 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
3258
3259          * PropertyGridView.cs: Do not trucate custom editors' width
3260          and align them to the left.
3261          [Fixes #358353 and #358349]
3262
3263 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3264
3265         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
3266         Also fix the arguments passed to CollectionChangeEventArgs in the
3267         related methods.
3268
3269 2008-02-04  Geoff Norton  <gnorton@novell.com>
3270
3271         * Hwnd.cs: The conversion to Quartz coordinates happens in
3272         System.Drawing.  Removing this translation from here.
3273
3274 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
3275
3276          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
3277          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
3278          GridItemCollection.cs:
3279          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
3280
3281 2008-02-04  Geoff Norton  <gnorton@novell.com>
3282
3283         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
3284         SYSKEYUP if any other key has been pressed in the mean time.
3285         Fixes #324404
3286
3287 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3288
3289         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
3290         when the item in current position is different than 0. Also, save the
3291         item index in the beginning of the operation, instead of getting the
3292         index of the item when the event is actually performed. Lastly clean
3293         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
3294         triggered.
3295         [Fixes #357873]
3296
3297 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
3298
3299         * Form.cs: Alt-Minus for MDI children system menu should work
3300         with both the minus keys on the keyboard.
3301         [Fixes bug #336295]
3302
3303 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
3304
3305         * Control.cs: Don't invalidate on region change.  The WM should
3306         take care of this automagically.  Keeps us out of an infinite
3307         paint loop if someone changes the Region in the OnPaint.
3308         [Fixes bug #358327]
3309
3310 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
3311
3312          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
3313
3314 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
3315
3316         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
3317         down the MonthCalendar only on F4, not Alt+F4.
3318         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
3319         [Fixes bug #358340]
3320
3321 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
3322
3323         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
3324         if its part of a DateTimePicker, else, use the back color.
3325         [Fixes bug #358339]
3326
3327 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
3328
3329         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
3330         [Fixes bug #358342]
3331
3332 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3333
3334         * CurrencyManager.cs: When we get a ListChanged event from our source,
3335         always fire our own ListChanged event, as .Net does.
3336
3337 2008-02-03  Luke Page  <luke.a.page@gmail.com>
3338
3339         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
3340         #358379.
3341
3342 2008-02-03  Luke Page  <luke.a.page@gmail.com>
3343
3344         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
3345         property. Removed if for richtext property that was always true.
3346         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
3347
3348 2008-02-03  Luke Page  <luke.a.page@gmail.com>
3349
3350         * TextBoxBase.cs - commited patch from James Purcell that
3351         correctly sets the FixedHeight control style when the MultiLine
3352         property is changed on a TextBox control. Fixes bug 358229.
3353
3354 2008-02-02  Luke Page  <luke.a.page@gmail.com>
3355
3356         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
3357         Fixes bug 351938 - caret is positioned correctly when drawn
3358         and when calculating textual position of caret, no longer
3359         has a NRE in certain situations.
3360         
3361 2008-02-01  Geoff Norton  <gnorton@novell.com>
3362
3363         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
3364         get that region removed from the paint event.
3365         * XplatUICarbon.cs: Remove the window mapping after disposing of 
3366         window.  Prevents a crash with handle reuse.  Optimize exposes
3367         only onto visible windows (rare; but possible).
3368
3369 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
3370
3371         * UpDownBase.cs: Make sure the internal textbox calls the base's
3372         OnMouseDown and OnMouseUp so the textbox will function correctly.
3373         There were notes saying it doesn't chain up, but its an internal
3374         class, so our implementation may differ.
3375         [Fixes bug #357482]
3376
3377 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
3378
3379         * ListBox.cs: Fix a logic error and don't process MouseDown
3380         for mouse buttons other than Left.
3381
3382 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
3383
3384         * Control.cs: Remove HeightInternal.
3385         * ListBox.cs: Commit patch from James Purcell that correctly
3386         calculates heights for ListBoxen.
3387         [Fixes bug #357152]
3388
3389 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
3390
3391         * Label.cs: Apply patch from James Purcell that corrects the 
3392         signature of the AutoSize property.
3393         [Fixes bug #357605]
3394
3395 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
3396
3397         * ListBox.cs: Don't throw [Mouse]Click events for buttons
3398         other than the left mouse button.
3399
3400 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
3401
3402         * Control.cs: Remove my awesome optimization as it caused some
3403         regressions with control ordering.  :(
3404         [Fixes bug #357467]
3405
3406 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
3407
3408          * PropertyGridView.cs: Fix a NRE on double click when there is no
3409          selected object.
3410
3411 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3412
3413         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
3414
3415 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
3416
3417         * ListBox.cs: Call MouseClick and MouseDoubleClick.
3418         [Fixes bug #357146]
3419
3420 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
3421
3422         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
3423         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
3424         instead of Hwnd.bmp_g.
3425
3426 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
3427
3428         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
3429         Use the Hwnd one instead.
3430
3431 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
3432
3433         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
3434
3435 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
3436
3437         * Form.cs: corcompare for RestoreBounds.
3438
3439 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
3440
3441         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
3442
3443 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
3444
3445         * Form.cs: Handle Alt-Minus for MDI children forms.
3446         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
3447         Add mnemonics to the control menu.
3448         [Fixes bug #336295]
3449
3450 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3451
3452         * Binding.cs: Initial implementation bits of FormattingEnabled
3453         property and BindingComplete event (2.0). 
3454         * BindingCompleteEventArgs.cs: Internal methods for setting error text
3455         and exception.
3456
3457 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
3458
3459         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
3460         table.Location.  [Fixes bug #354672]
3461
3462 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
3463
3464         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
3465         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
3466
3467 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3468
3469         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
3470         of doing all the re-bound work, just invalidate and call SetControlText 
3471         to set the updated text of selected item to our textbox.
3472         Fixes #333750.
3473
3474 2008-01-28  Andreia Gaita <avidigal@novell.com>
3475
3476         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
3477         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
3478         missing properties and methods. Add Load, Unload, Error, GotFocus, 
3479         LostFocus, Resize, Scroll events (only load and unload are connected)
3480
3481 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
3482
3483         * AccessibleObject.cs: Modified argument names to match MS.
3484         * Button.cs: Modified argument names to match MS.
3485         * BindingContext.cs: Modified argument names to match MS.
3486         * BindingMemberInfo.cs: Modified argument names to match MS.
3487         * ButtonBase.cs: Modified argument names to match MS.
3488         * ComboBox.cs: Modified argument names to match MS.
3489         * Control.cs: Modified argument names to match MS.
3490         * CheckedListBox.cs: Modified argument names to match MS.
3491         * CommonDialog.cs: Modified argument names to match MS.
3492         * DataGrid.cs: Modified argument names to match MS.
3493         * CursorConverter.cs: Modified argument names to match MS.
3494         * ControlPaint.cs: Modified argument names to match MS.
3495         * CheckBox.cs: Modified argument names to match MS.
3496         * ControlBindingsCollection.cs: Modified argument names to match MS.
3497         * BindingSource.cs: Modified argument names to match MS.
3498         * DataFormats.cs: Modified argument names to match MS.
3499         * ContainerControl.cs: Modified argument names to match MS.
3500         * CurrencyManager.cs: Modified argument names to match MS.
3501         * Application.cs: Modified argument names to match MS.
3502         * ContextMenuStrip.cs: Modified argument names to match MS.
3503         * ContextMenu.cs: Modified argument names to match MS.
3504         * BindingManagerBase.cs: Modified argument names to match MS.
3505         * WindowsFormsSection.cs: Fixed line ending.    
3506
3507 2008-01-27  Andreia Gaita <avidigal@novell.com>
3508
3509         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
3510         detecting that the dropdown toolwindow is hidden. EndLoop outside the
3511         while.
3512
3513 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
3514
3515         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
3516         MS. Code formatting.
3517
3518 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3519
3520         * Binding.cs: Don't avoid the Format event if the control 
3521         property type is object. Also, if the value retrieved by 
3522         the data source is null _and_ the control proeprty type 
3523         is object, return Convert.DBNull (match .Net).
3524         Fixes part of #324286.
3525
3526 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3527
3528         * ListControl.cs: Since we are getting two BinginContextChanged events
3529         for the same binding context instance (when the control is added to
3530         form, and when the form is actually shown), take it into account only the
3531         first time for a given binding context instance.
3532         Fixes part of #324286.
3533
3534 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
3535
3536          * PropertryGridView.cs: Ops.
3537
3538 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
3539
3540          * PropertyGridView.cs: Close dropdown form if the owner form is
3541          moved or minimized.
3542          [Fixes bug #322446]
3543
3544 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
3545
3546          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
3547          RootGridEntry.cs, CategoryGridEntry.cs:
3548          PropertyGrid rewrite.
3549          - Rewrite all of the control logic in PropertyGrid.
3550          - Rewrite all of the ComponentModel logic in GridEntry.
3551          - Rewrite all UI work in PropertyGridView.
3552          - Many bugfixes, etc.
3553
3554 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
3555
3556         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
3557         when all contained controls are autosize or dock-fill.  Also take into
3558         account when the total percentage of column/row sizes is not 100%.
3559         [Fixes bug #354672]
3560
3561 2008-01-24  Andreia Gaita <avidigal@novell.com>
3562
3563         * HtmlDocument.cs:
3564         - Save a reference to the IDocument in the instance and
3565           use that one instead of going to WebHost.Document; the document that the 
3566           WebHost returns might not be the right one (in case of frames).
3567         - Use the hashcode returned from the IDocument interface.
3568         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
3569           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
3570           LinkColor, Url, VisitedColor, Window
3571
3572         * HtmlElement.cs: 
3573         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
3574           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
3575           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
3576           SetAttribute, Equals, equality operators.
3577         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
3578           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
3579         
3580         * HtmlElementCollection.cs: Change implementation to use a generic
3581         collection. Implemented Enumerator and CopyTo
3582
3583         * HtmlHistory.cs: Add constructor, no implementation yet.
3584
3585         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
3586         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
3587         Equals, equality operators.
3588
3589         * HtmlWindowCollection.cs: Implemented. 
3590
3591         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
3592         has been deprecated).
3593
3594         * WebBrowserBase.cs: Use Completed event to track document loading
3595         (Navigated has been deprecated)
3596
3597 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
3598
3599         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
3600         level MenuItems do not respect tabs.
3601         [Fixes bug #355196]
3602
3603 2008-01-23  Geoff Norton  <gnorton@novell.com>
3604
3605         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
3606         FormWindowState.  Finished fixing Fullscreen windows on Carbon
3607
3608 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
3609
3610         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
3611         be used as grab_control. Also save status of capture before show ContextMenu
3612         and restore it after close.
3613
3614 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
3615
3616         * Control.cs: Internal FindRootParent method added to return high control
3617         in parent tree.
3618
3619 2008-01-23  Geoff Norton  <gnorton@novell.com>
3620
3621         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
3622         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
3623         it work again.  Handle HITTEST events.
3624
3625 2008-01-23  Geoff Norton  <gnorton@novell.com>
3626
3627         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
3628         a crash in certain cases.  Support for fullscreen windows in certain cases.
3629
3630 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
3631
3632         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
3633         [Fixes bug #355703]
3634
3635 2008-01-23  Geoff Norton  <gnorton@novell.com>
3636         
3637         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
3638
3639 2008-01-23  Geoff Norton  <gnorton@novell.com>
3640
3641         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
3642
3643 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
3644
3645         * SplitContainer.cs: Remove unused declarations.
3646         * Binding.cs: Remove unused declarations.
3647
3648 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
3649
3650         * Form.cs: Remove unused declaration of 'active' in Activate method.
3651         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
3652         prevent compilation warnings.
3653         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
3654         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
3655         * Bindings.cs: Remove unused formatting_enabled declaration.
3656         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
3657         warnings.
3658         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
3659         warnings.
3660         * PropertyGridView.cs: Remove usused 'ex' declaration.
3661         * DataGridView.cs: Remove unused declarations.
3662
3663 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
3664
3665         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
3666         
3667         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
3668         to Control class, it makes possible to grab menu to controls that can't 
3669         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
3670         WmMouseMove removed since it was used only to track menu events.
3671
3672         * Control.cs:
3673         - Moved all active_tracker stuff from Form.
3674         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
3675         can call this method instead of reimplement all necessary code handle for
3676         menu tracker.
3677         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
3678         and WmMouseMove).
3679         
3680         * MenuAPI.cs: 
3681         - Remove special handle to ToolStripOverflow, now we can grab menu to 
3682         controls that can't reach Form using parent tree.
3683         - Change type of grab_control from Form to Control.
3684
3685 2008-01-22  Geoff Norton  <gnorton@novell.com>
3686
3687         * TextBoxBase.cs: Split up the sizing of controls and placing of 
3688         controls.  Fixes a bug where scrollbars in Reflector could be sized
3689         wrong and have non-working thumbers.
3690
3691 2008-01-23  Geoff Norton  <gnorton@novell.com>
3692
3693         * XplatUI.cs: Refactor environment variables to default support to the
3694         Carbon driver on the Mac.
3695
3696 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
3697
3698         * Label.cs: Uses new LabelPainter for drawing operations.
3699         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
3700         * Theme.cs: DrawLabel and LabelDefaultSize removed.
3701
3702 2008-01-22  Geoff Norton  <gnorton@novell.com>
3703
3704         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
3705
3706 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
3707
3708         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
3709         through the normal flat button code and don't draw the checkbox glyph.
3710         * Theme.cs: Button->ButtonBase signature change.
3711         [Fixes bug #324755]
3712
3713 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
3714
3715         * LinkLabel.cs: Uses new class LinkLabelPainter.
3716
3717 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
3718
3719         * MessageBox.cs: Adjust right border space, we don't need to add 
3720         "space_border*2" two times.
3721
3722 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
3723
3724         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
3725         becomes a wrapper around Padding.
3726         [Fixes a part of bug #354676]
3727
3728 2008-01-22 Geoff Norton  <gnorton@novell.com>
3729
3730         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
3731         acquired.  Also ensure the buffer is large enough to grab the header
3732         we need on linux boxes.
3733
3734 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
3735
3736         * Control.cs: Implement a custom enumerator so people can delete
3737         from the Controls collection while in a foreach.
3738         [Fixes bug #355074]
3739
3740 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
3741
3742          * PropertyGridView.cs: Fix focusing behavior:
3743          - Tab should focus the grid text box.
3744          - Clicking on the labels shouldn't focus the grid text box.
3745
3746 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
3747
3748          * PropertyGridView.cs: IsValueTypeGridItem should return true 
3749          for Arrays as well.
3750
3751 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
3752
3753          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
3754           - Renamed GridEntry.SelectedObjects to TargetObjects to better
3755           reflect the property name role.
3756           - PropertyGrid.GetTarget is not required as the target is known
3757           (TargetObjects).
3758           - Setting values will handle value types as a special case now and
3759           populate them up in the chain.
3760           [Fixes #354990]
3761
3762 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
3763
3764         * Hwnd.cs: Create a public property for the Graphics we keep around.
3765
3766 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
3767
3768          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
3769          when the current object selection changes. 
3770          Fixes failing test SelectedObject_Null2.B5.
3771
3772 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
3773
3774          * PropertyGrid.cs: Process Browsable properties with 
3775          DesignerSerializationVisibilityAttribute.Content as being expandable.
3776          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
3777          will not be expandable. We should be nested components-friendly now.
3778
3779 2008-01-21  Andreia Gaita <avidigal@novell.com>
3780
3781         * WebBrowserBase.cs: Check if control was loaded properly, 
3782         don't bind if it wasn't.
3783
3784         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
3785         GetElementFromPoint, equality operators, OpenNew, Write.
3786         Remove extra set_Body
3787
3788 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
3789
3790         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
3791         that makes our AutoScale* stuff more tolerant to different orders
3792         of being set.  [Fixes bug #354669]
3793
3794 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
3795
3796          * PropertyGridView.cs, PropertyGridTextBox.cs: 
3797          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
3798          [Fixes #339005 and #348209]
3799
3800 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
3801
3802          * PropertyGridView.cs: Hide the grid text box before adjusting it
3803          for the newly selected GridItem.
3804          [Fixes #338999]
3805
3806 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
3807
3808         * Form.cs: Give MDI children the opportunity to cancel the parent form
3809         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
3810         properly for both the parent and child.
3811         * Application.cs: Signature of internal method changed, pass the previous
3812         default of false.
3813         [Fixes bug #354286]
3814
3815 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
3816
3817         * PropertyGridView.cs: Set the property value only if it has changed.
3818         [Fixes bug #338997]
3819
3820 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
3821
3822         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
3823         If the mouse hasn't actually moved, ignore these messages so the currently
3824         highlighted menuitem isn't reset to the one under the mouse.
3825         [Fixes bug #333668]
3826
3827 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
3828
3829         * PropertyGridView.cs: When the property changes Invalidate the GridItem
3830         in order for the properties with UITypeEditor.GetPaintValueSupported == true
3831         to reflect the change visually.
3832         [Fixes bug #338998]
3833
3834 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
3835
3836         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
3837         to 2.0 button drawing.
3838         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
3839         the button text is tall enough for one line.  LineLimit says it will
3840         always draw at least one line, but it is a lie.
3841         [Fixes bug #324941]
3842
3843 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
3844
3845         * XplatUIStructs.cs, X11Keyboard.cs :
3846           added some more VK_* keys to be handled.
3847
3848 2008-01-16  Andreia Gaita <avidigal@novell.com>
3849
3850         * Control.cs: Check if there is a container before setting or getting
3851         the validation flag.
3852
3853 2008-01-16  Andreia Gaita <avidigal@novell.com>
3854
3855         * ContainerControl.cs: Add flag to track if a control cancels validation, 
3856         so we don't fire click events.
3857
3858         * Control.cs: 
3859         - (HandleClick) Check if validation was cancelled before  firing the click
3860         events (doubleclicks are fired, but not clicks)
3861         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
3862         ContainerControl.set_ActiveControl, but in the case of non-selectable
3863         controls, like a Label, activecontrol is not set. 
3864
3865         * ButtonBase.cs: Only fire clicks if validation passes.
3866         
3867         Fixes #353310
3868
3869 2008-01-16  Geoff Norton  <gnorton@novell.com>
3870
3871         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
3872         trunk
3873
3874 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
3875
3876         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
3877         SelectedPath, just display the default dialog instead of crashing.
3878         [Fixes bug #348989]
3879
3880 2008-01-16  Geoff Norton  <gnorton@novell.com>
3881
3882         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
3883         AddExpose instead of trusting apples compositing manager which doesn't
3884         work for our use case.  Remove some dead code causing warnings and 
3885         redecorate some other code to prevent warnings.
3886
3887 2008-01-16  Geoff Norton  <gnorton@novell.com>
3888
3889         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
3890         carbon signals us to redraw.  Fixes another portion of the flickering bug
3891
3892 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
3893
3894         * Form.cs: Prevent the MdiParent property to be set when value is the same
3895         as value already set. Fixes bug #328019.
3896
3897 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
3898
3899         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
3900         it prevents NRE when closing mdi child windows. Fixes bug #325211.
3901
3902 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
3903
3904         * InternalWindowManager.cs: Invalidade close button after mouse up when 
3905         mdi form is prevented to close.
3906
3907 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
3908
3909         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
3910         thanks to Andy Hume. Fixes bug #325433.
3911
3912 2008-01-16  Andreia Gaita <avidigal@novell.com>
3913
3914         * LinkLabel.cs: Reset focused_index when resellecting the control.
3915         Fixes #323190
3916
3917 2008-01-15  Geoff Norton  <gnorton@novell.com>
3918
3919         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
3920         messages.
3921
3922 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
3923
3924         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
3925         of truncate.
3926
3927 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
3928
3929         * ContainerControl.cs: Setting AutoScaleMode to anything should set
3930         Form.AutoScale to false.
3931         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
3932         AutoScaleBaseSize should be changed on Font change unless it has been
3933         explicitly set.
3934         [Fixes bug #353827]
3935
3936 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
3937
3938         * MenuAPI.cs: On instance of MenuTracker check if source control is
3939         ToolStripOverflow and use properly method to find form.
3940         [Fixes bug #338511]
3941
3942 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
3943
3944         [Fixes bug #323241 Transparent toolbar support]
3945
3946         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
3947         is flat.
3948
3949         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
3950         defined in control style to mimic win32 behavior.
3951
3952         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
3953         it will be transparent.
3954
3955 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
3956
3957         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
3958         CreateParams for ToolBar controls.
3959
3960 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
3961
3962         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
3963         FixedToolWindow, SizeableToolWindow, or None for border styles have
3964         different minimum sizes than regular forms.  Implemented to fix
3965         regression in PDN with toolbox being too wide.
3966
3967 2008-01-14  Andreia Gaita <avidigal@novell.com>
3968
3969         * HtmlElementCollection.cs: Implemented
3970
3971         * HtmlElement.cs: Implemented:
3972           - All
3973           - InnerHtml
3974           - InnerText
3975           - Id
3976           - Name
3977           - FirstChild
3978
3979         * HtmlDocument.cs: Implemented GetElementsByTagName.
3980
3981 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
3982
3983         * Screen.cs: Stub BitsPerPixel to always return 32.
3984
3985 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
3986
3987         * Form.cs: Implement RestoreBounds.
3988
3989 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
3990
3991         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
3992         Sebastien and his fabulous magical problem-finding machine:
3993         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
3994         respect the value set.
3995
3996 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
3997
3998         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
3999         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
4000
4001 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4002
4003         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
4004         messages (to match .Net), we need to remove the capture ourselves.
4005
4006 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
4007
4008         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
4009         will process the message and close our window.
4010         [Fixes bug #324328]
4011
4012 2008-01-10  Geoff Norton  <gnorton@novell.com>
4013
4014         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
4015         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
4016         window manager.
4017
4018 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
4019
4020         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
4021         failing test.
4022
4023 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
4024
4025         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
4026         Linux doesn't care, having a minimum matches MS and keeps the window
4027         from becoming too small to use window decorations.
4028         [Fixes bug #338996]
4029
4030 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
4031
4032         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
4033         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
4034         control.  [Fixes bug #325419]
4035
4036 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
4037
4038         * ComboBox.cs: Guard against an NRE if the user open a new form from a
4039         SelectedIndexChanged event.  This closes the combobox dropdown, and we
4040         were trying to dispose it.  [Fixes bug #352830]
4041
4042 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
4043
4044         * Control.cs, Form.cs: Implement the necessary semantics for
4045         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
4046         to determine if a focus rectangle should be drawn.
4047         * PropertyGrid.cs: Fix property visibility to match override.
4048         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
4049
4050 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
4051
4052         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
4053         [Fixes bug #323552]
4054
4055 2008-01-09  Geoff Norton  <gnorton@novell.com>
4056         
4057         * XplatUICarbon.cs: Scroll windows in the correct direction.
4058
4059 2008-01-09  Geoff Norton  <gnorton@novell.com>
4060
4061         * XplatUICarbon.cs: Track all created utility windows so we can hide them
4062         when the app is deactivated or spaces is enabled.
4063
4064 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4065
4066         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
4067         extra separation pixel for the label rect origin if SmallImageList is
4068         null, and thus we don't need that separation between icon and label
4069         rects.
4070         Patch by Ernesto Carrea.
4071         Fixes # 340195.
4072
4073 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
4074
4075         * StatusStrip.cs: Invalidate after completing a layout.  The base
4076         OnLayout does this, but we don't call the base.
4077         * ToolStripItem.cs: Revert the previous change to invalidate after
4078         the item moves.
4079         [Fixes bug #351341 better.]
4080
4081 2008-01-07  Geoff Norton  <gnorton@novell.com>
4082
4083         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
4084         not a notification to exit the application.  Listen for WM_QUIT
4085         instead.
4086
4087 2008-01-07  Andreia Gaita <avidigal@novell.com>
4088
4089         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
4090
4091 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
4092
4093         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
4094         so it can repaint at the correct location.
4095         [Fixes bug #351341]
4096
4097 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4098
4099         * ListControl.cs: SelectedValue should return a null value if
4100         SelectedIndex is -1. Also, when setting it, it should throw an
4101         ArgumentNullException if the value is null, as well as taking
4102         into account the String.Empty value, instead of ignoring it (we have
4103         tests for that now).
4104         Fixes part of #324286.
4105
4106 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
4107
4108         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
4109         SelectionStart is updated after pressing enter.  Fixes bug #351918.
4110
4111 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4112
4113         * TextControl.cs: Revert a piece r92316 that prevented the fix
4114         from working when there were multiple tags in the text box.
4115         Fixes bug #351881.
4116
4117 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4118
4119         * TextControl.cs: Apply patch from Luke Page that prevents an
4120         NRE when determining the beginning of a paragraph.
4121         Fixes bug #351886.
4122
4123 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4124
4125         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
4126         caret gets moved with clicking away from a selected block of
4127         text.  Fixes bug #351885.
4128
4129 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4130
4131         * TextControl.cs: Apply patch from Luke Page that takes line
4132         alignment into account for mouse selection, so that center and
4133         right aligned text can be selected.
4134         Fixes bug #351881.
4135
4136 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4137
4138         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
4139         issues after loading an RTF file by using the correct line feeds.
4140         Fixes bug #351841.
4141
4142 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4143
4144         * TextControl.cs: When deleting multiple line selections, we need
4145         to invalidate every line beginning at the first line of the selection.
4146         Patch from Luke Page fixes bug #351791.
4147
4148 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4149
4150         * ListControl.cs: When getting a CurrencyManager.PositionChanged
4151         event, don't set SelectedIndex if the number of items is 1. This is
4152         because, for the first item, PositionChanged is fired _before_
4153         ItemChanged (the place where we actually populate the items), and
4154         leave us in a temporary invalid state (since items collection is
4155         empty).
4156         Fixes #349655.
4157
4158 2008-01-04  Geoff Norton  <gnorton@novell.com>
4159
4160         * XplatUICarbon.cs:  Create native toolwindows instead of
4161         the managed drawing ones.
4162
4163 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
4164
4165         * LineTag.cs: If the line doesn't have any characters, return
4166         0 for GetCharIndex.  Fixes an AOORE exception after certain
4167         caret movements.  Fixes bug #351683.  Patch by Luke Page.
4168
4169 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
4170
4171         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
4172         is hit when there is selected text, only the selected text gets
4173         deleted, not the character in front of the selection as well.
4174         Fixes bug #351578.
4175
4176 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4177
4178         * ComboBox.cs: When the values are displayed, calculate the
4179         ComboListBox scrollbar's LargeChange based on the visible area's
4180         height and  the actuall ItemHeight, instead of calculating it
4181         based on MaxDropItems value, since it's not used by our _current_ 
4182         2.0 profile.
4183         Fixes #332366.
4184
4185 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
4186
4187         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
4188         Patch from Luke Page that fixes issues with font colors and styles
4189         not showing up in a readonly RichTextBox.  Fixes bug #324354.
4190
4191 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
4192
4193         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
4194         from Luke Page.  This one fixes bug #349926.
4195
4196 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4197
4198         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
4199         an item in the IBindingList source changes with
4200         ListChangedType.ItemAdded. Ignore for now firing the event for other
4201         changes, since we want to have tests for those cases as well.
4202
4203 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
4204
4205         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
4206         created.
4207
4208 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
4209
4210         * TextBoxTextRenderer.cs: Implement a cache for measuring each
4211         character.  This is effective because the typical usage of a
4212         TextBox is with a limited amount of fonts and characters, and
4213         the current implementation of TextBox measures everything one
4214         character at a time.  Another second or two speedup for bug #347238.
4215
4216 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
4217
4218         * Control.cs: Rewrite the Font getter to only query the parent's
4219         Font property once instead of twice.  Since this operation is
4220         recursive, the queries were growing exponentially as the control
4221         tree got deeper.  Another second or two speedup for bug #347238.
4222
4223 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
4224
4225         * Control.cs: Avoid setting a parent (and more importantly, updating
4226         the zorder of all its children) if the parent is already correct in
4227         WmShowWindow.  Decreases the startup time of the test case on bug
4228         #347238 from 35 seconds to 11 seconds.
4229
4230 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4231
4232         * X11Dnd.cs: When the dnd operation has started and we are 
4233         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
4234         This is done to match .Net, which doesn't send those messages after
4235         dnd operation was completed/cancelled.
4236         Fixes #349922.
4237
4238 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
4239
4240         * ToolStrip.cs: Previous change should be != null, not == null.
4241         Thanks Gert!
4242
4243 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
4244
4245         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
4246         user may have moved the mouse off the current item during the event.
4247
4248 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4249
4250         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
4251         calling GetItemAt for every MouseMove event by also taking into
4252         account whether any mouse button is pressed (probably dragging); 
4253         if so, we can call GetItemAt, and if not, try to not call it 
4254         (GetItemAt can be quite expensive when used with a large number of items).
4255
4256 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4257
4258         * ListView.cs: Implement -finally- support for dnd, by calling
4259         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
4260         authors list ;-).
4261         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
4262         simple calculation of distances for all the items in the owner
4263         listview.
4264
4265 2007-12-21  Geoff Norton  <gnorton@novell.com>
4266
4267         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
4268         for windows that are originally created as invisible.  Fixes missing
4269         main window in paint-mono.
4270
4271 2007-12-21  Geoff Norton  <gnorton@novell.com>
4272
4273         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
4274         subclass handler for com.novell.mwfview subclassing HIView.  Implement
4275         Pasteboard and Dnd methods.
4276
4277 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4278
4279         * ListBox.cs: When we got focus, give focus to first item if there
4280         wasn't any pervious focused item. Also update navigation to depend on
4281         SelectedIndex rather than FocusedItem, just as .Net does.
4282         Fixes #349174.
4283
4284 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4285
4286         * ListBox.cs: Both FindString and FindStringExact methods must do an
4287         case insensitive search, should allow the last valid index to be
4288         passed in the overload taking an initial index, and should also
4289         continue searching from the top back to the specified index when it
4290         reaches the bottom.
4291
4292 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
4293
4294         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
4295         redraw issue, and allows RichTextBox to draw colored text even while
4296         disabled or readonly.
4297
4298 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
4299
4300         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
4301         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
4302         and doesn't grey text in a disabled RichTextBox.
4303
4304 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
4305
4306         * RichTextBox.cs: Apply patch from Luke Page that adds better support
4307         for many RTF commands: quad alignment, separate formatting for blocks
4308         inside groups, and ParDef support.  Makes the test case from bug #324589
4309         look much better.
4310
4311 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
4312
4313         * LineTag.cs: Fix an error in the new Draw method that caused
4314         a crash when rendering the document on bug #324589.
4315
4316 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
4317
4318         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
4319         TextControl.cs: Apply patch from Luke Page that adds support
4320         for URL links in RichTextBox.
4321         [Fixes enhancement #342516]
4322
4323 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
4324
4325         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
4326         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
4327
4328 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4329
4330         * ListBox.cs: When a key gets pressed, try to find a string
4331         if the key is a character or a digit.
4332         Fixes #343971.
4333
4334 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
4335
4336         * TableLayoutPanel.cs: Remove some unused variables.
4337
4338 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
4339
4340         * DateTimePicker.cs: Commit patch from Luke Page that ensures
4341         we don't end up at an invalid date when we click the up/down
4342         spinner to change the month or year.  Fixes bug #348682.
4343
4344 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
4345
4346         * Application.cs: Calling Exit in 2.0 should chain to the
4347         Exit (CancelEventArgs) version so it can be cancelled.
4348         * Form.cs: Create a flag to allow raising the Closing
4349         events to be skipped.  We raise them once in Application.Exit
4350         and don't want to raise them again when the Form is actually
4351         closed.  [Fixes bug #349073]
4352
4353 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
4354
4355         * ToolStripDropDown.cs: Guard against an NRE when there
4356         hasn't been a mainform set in the application context.
4357         [Fixes bug #349108]
4358
4359 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4360
4361         * ListBox.cs: When SetBoundsCore gets called, besides
4362         calling UpdateScrollBars, update the value of
4363         last_visible_index, since we could need to show more items
4364         than before, and we need to let the paint routines know that.
4365         Fixes #344445.
4366
4367 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4368
4369         * ListView.cs: Add DesignerSerializationVisibility attribute to
4370         InsertionMark property.
4371         * ListViewItem.cs: Add same attribute to Position property.
4372
4373 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4374
4375         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
4376         is 2.0 only.
4377
4378 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
4379
4380         * ThemeWin32Classic.cs: Don't draw the background on a
4381         flat button if there is a background image.
4382         [Fixes bug #348649]
4383
4384 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4385
4386         * ListBox.cs: If we remove the item currently selected,
4387         remove it not only from SelectedItems, but also
4388         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
4389         the items count decreased and focused_item has bigger value than that.
4390
4391 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
4392
4393         * Control.cs: Perform our layout after we resize ourselves
4394         if we had to adjust our AutoSize.  Missed commit for bug
4395         #346246.
4396
4397 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
4398
4399         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
4400         we can provide an implementation of AutoSize.
4401         [Fixes bug #346246]
4402
4403 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4404
4405         * ListBox.cs: Add the internal overload Sort (bool paint),
4406         to indicate whether we actually need a paint or we will
4407         call Refresh ourselves. This way we don't request a paint
4408         _before_ having an updated and valid layout.
4409         Fixes #347233.
4410
4411 2007-12-12  Andreia Gaita <avidigal@novell.com>
4412
4413         * XPlatUIX11.cs: Send paint messages when updating a systray icon
4414         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
4415         properly invalidated. 
4416         Fixes #324237
4417
4418 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4419
4420         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
4421         don't simply assign it to our internal group field, but instead 
4422         use our Group property, which should do all the neccessary work
4423         required to support groups. Fixes an issue reported to me (mail) by a 
4424         guy using this new feature.
4425
4426 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
4427
4428         * Control.cs: Use Scale instead of ScaleControl to ensure the
4429         whole hierarchy gets scaled.
4430         [Fixes bug #347282]
4431
4432 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
4433
4434         * DateTimePicker.cs: Don't set the internal MonthCalendar's
4435         Parent property.  Doing this causes the control to be hosted by
4436         the Form instead of being a popup window.
4437         [Fixes bug #347665]
4438
4439 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
4440
4441         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
4442         at an index higher than Count, just use Add instead of Insert.
4443         [Fixes bug #347669]
4444
4445 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
4446
4447         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
4448         DrawPictureBox, this is handled by Control.PaintBackground.
4449         [Fixes bug #347276]
4450
4451 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
4452
4453         * MenuAPI.cs: When process menu keys return true by default only if menu is
4454         active. Fixes bug #342892.
4455
4456 2007-12-09  Andreia Gaita <avidigal@novell.com>
4457
4458         * Control.cs: check if windows are actually mapped before
4459         trying to zorder. Fixes #342509, #346955
4460
4461 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4462
4463         * ListView.cs:
4464         * ListViewInsertionMark.cs:
4465         * ThemeWin32Classic.cs: Implement the drawing side of the
4466         new 2.0 ListView.InsertionMark property.
4467
4468 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
4469
4470         * CurrencyManager.cs: Silence some debug spew.
4471
4472 2007-12-07  Geoff Norton  <gnorton@novell.com>
4473         
4474         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
4475         masks for our children as well as siblings to avoid having to query
4476         Quartz for this information.
4477         * XplatUICarbon.cs: Implement a delegate based system to pass
4478         information to System.Drawing.  Implement Async methods.  Remove
4479         the hack for the resize thumb and imlpement a transparent Grow Box.
4480         Rework the messaging system to proplery create window's and messages,
4481         fixes TabControl.
4482
4483 2007-12-06  Andreia Gaita <avidigal@novell.com>
4484
4485         * X11Keyboard.cs: Use Xutf8LookupString to support international 
4486         characters under alternate codepages. Patch from #340878
4487
4488 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4489
4490         * ListView.cs: When doing layout computations, set position in the
4491         ListView instances (we cache the position just as .Net does).
4492         * ListViewItem.cs: New internal setter method for Position. Also set
4493         position field as also available in 1.1, since we are going to use it
4494         now in the common case.
4495
4496 2007-12-06  Andreia Gaita <avidigal@novell.com>
4497
4498         * Control.cs: When removing controls, get the actual container
4499         to notify about active control changes. Fixes 341314.
4500
4501 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4502
4503         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
4504
4505 2007-12-05  Andreia Gaita <avidigal@novell.com>
4506
4507         * Control.cs: When updating the zorder, ignore windows that are not
4508         mapped. Fixes #342509
4509
4510 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4511
4512         * ListViewItem.cs: Actually implement serialization on this class.
4513
4514 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
4515
4516         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
4517         LinkCollection. Spaces to tabs, and removed extra tabs.
4518
4519 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4520
4521         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
4522           tests to fail (hopefully).
4523
4524 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
4525
4526         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
4527         the image margin so custom renderers can correctly place it.
4528
4529 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
4530
4531         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
4532         so custom renderers can correctly place it.
4533
4534 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
4535
4536         * Application.cs: Let WM_CHAR messages flow through to controls
4537         hosted in Strips.  [Fixes bug #343972]
4538
4539 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
4540
4541         * ToolStripManager.cs: Guard against an NRE I ran into.
4542
4543 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
4544
4545         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
4546         a Link is manually added to the Links collection, we need to set
4547         its owner, so it can invalidate properly.
4548         [Fixes bug #344012]
4549
4550 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4551
4552         * ListView.cs: When changing ListViewItem.Position (which calls
4553         ListView.ChangeItemLocation), invalidate not only the area
4554         corresponding to the main item, but also to the area occupied
4555         by the items being moved.
4556
4557 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4558
4559         * ListView.cs: When changing the position of a given item,
4560         don't use item bounds, but item areas (which includes the item spacing
4561         between them). Also, use first/last position if the requested
4562         position is outside bounds (as .Net does). Invalidate the previous and
4563         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
4564         in a specific position, instead of directly accessing Items collection
4565         (this is done to get the right item - remember an Item can have a
4566         different position in the grid than in the Items collection).
4567
4568 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
4569
4570         * MessageBox.cs: Calculate text area instead of just top left, this rect 
4571         area will be used in DrawString. Fixes bug #343364.
4572
4573 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
4574
4575         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
4576         screen width. Partially fixes bug #343364.
4577
4578 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
4579
4580         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
4581         code inside recalculate, it makes code more simple.
4582
4583 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
4584
4585         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
4586         between update or add icon. Fixes bug #324344.
4587
4588 2007-11-21  Andreia Gaita <avidigal@novell.com>
4589
4590         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
4591         window manager, since that stretches the drawing area to include
4592         the window decorations, and they get hidden. Reverts r84444 and fixes
4593         #335849 and #342790 (mdi and pdn3 regression)
4594
4595 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4596
4597         * ListView.cs: When setting focused item, try to give focus to the
4598         previous one _only_ if the previous one remains valid. 
4599         Fixes #342504.
4600
4601 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
4602
4603         * Application.cs: Revert r89650, as it broke a common case to fix
4604         an obscure case.  Fixes bug #342606.
4605
4606 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
4607
4608         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
4609
4610 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
4611
4612         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
4613         alignment. [Fixes #324228]
4614
4615 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
4616
4617         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
4618         [Fixes bug #342123]
4619
4620 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
4621
4622         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
4623         it prevent problems when empty captions. [Fixes #342141]
4624
4625 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
4626
4627         * Label.cs: Use Size instead of None.  Fixes bug #342077.
4628
4629 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4630
4631         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
4632
4633 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
4634
4635         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
4636         but there isn't a MdiContainer.
4637         [Fixes bug #342358]
4638
4639 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
4640
4641         * TextControl.cs: Don't recalculate document if the recalc_start and
4642         recalc_end hasn't changed.
4643         [Fixes bug #342505]
4644
4645 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
4646
4647         * DataGridViewTextBoxCell.cs: Removed CWL.
4648
4649 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4650
4651         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
4652
4653 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
4654
4655         * TextControl.cs: Missed some code for bug 341534 to trigger a
4656         recalculation when the font changes.
4657
4658 2007-11-16  Andreia Gaita <avidigal@novell.com>
4659
4660         * Control.cs: When updating the zorder, check if the child to update is
4661         the same control that is set to always be on top (i.e., scrollbars), and 
4662         just put it on top directly. Fixes BadMatch error on pdn3
4663
4664 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4665
4666         * ListView.cs: Throw the needed exceptions for FindNearestItem.
4667
4668 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
4669
4670         * Control.cs: Don't perform a new layout when a label changes its text,
4671         cause label handles its own autosizing.
4672         [Fixes bug #342077]
4673
4674 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4675
4676         * ListView.cs: Implement 2.0 FindNearestItem methods.
4677
4678 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
4679
4680         * ToolStripPanel.cs: Make Join at least add the control to the panel,
4681         even if the rest of what Join does isn't supported.  Add some more
4682         support for vertical toolbars.
4683         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
4684         [Fixes the application breaking parts of bug #341998]
4685
4686 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
4687
4688         * ToolStripItem.cs: When determining if we have a check/image margin,
4689         we need to look at ShowCheckMargin as well as ShowImageMargin.
4690
4691 2007-11-15  Geoff Norton  <gnorton@novell.com>
4692
4693         * XplatUIOSX.cs: Rename to...
4694         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
4695         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
4696
4697 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
4698
4699         * KeysConverter.cs: The default values should be an array of Keys, not
4700         strings.  Also, the array has more values for 2.0.
4701         [Fixes bug #341851]
4702
4703 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
4704
4705         * Application.cs: Change ExecutablePath to use 
4706         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
4707         [Fixes bug #323552]
4708
4709 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
4710
4711         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
4712         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
4713         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
4714         be ignored.  Create a new GetLineEnding that can specify which types of
4715         line endings to look for.  On Insert, only create new lines for \n and \r\n.
4716         [Fixes bug #324274]
4717
4718 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
4719
4720         * TextBoxBase.cs: As we loop through each line changing the font, tell
4721         the document that the line needs to be recalculated.  Fixes bug #341534.
4722
4723 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
4724         [Another round of refactoring]
4725         * Line.cs: Add DeleteCharacters.
4726         * LineTag.cs: Add Delete.
4727         * TextBoxBase.cs: Update to use new methods.
4728         * TextControl.cs: Refactor the Delete* methods.
4729
4730 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
4731
4732         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
4733         the patch. [Fixes #324856]
4734
4735 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4736
4737         * ListView.cs:
4738         * ListViewItem.cs: Add an initial implementation of
4739         2.0 ListViewItem.Position getter.
4740
4741 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4742
4743         * ListView.cs: Add a reordered_items_indices array, to allow us
4744         to have a different sorting than that of Items (the sorting in Items
4745         could not match the actual sorting in screen). This is needed to
4746         implement a pair of 2.0 features.
4747         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
4748         actual position in the ListView grid, since it could have a position
4749         different than its Index (position in ListViewItemCollection). 
4750
4751 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
4752
4753         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
4754         not draw partial lines.
4755         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
4756         LineLimit flag from the base is preserved.
4757         Fixes the windows part of bug #338965.
4758
4759 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
4760
4761         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
4762         so that it can be canceled in KeyPress.
4763         Fixes bug #340078.
4764
4765 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4766
4767         * ListView.cs: In ItemControl, reset mouse-handling related
4768         fields even if we dont' have items (we still should reset them when
4769         we had items but then called Items.Clear). Partially based in a patch
4770         by George Giolfan.
4771         Fixes #338399.
4772
4773 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
4774
4775         * Application.cs: In ProductVersion first try AssemblyFileVersion
4776         before falling back to assembly version. Fixes bug #339787.
4777
4778 2007-11-08  Andreia Gaita <avidigal@novell.com>
4779
4780         * HtmlElement.cs: Implement InnerText setter.
4781         * WebBrowserBase.cs: Implement Navigated event support.
4782         Add flag to track when the browser "document" is ready to be retrieved.
4783         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
4784         Make sure browser document is ready before retrieving it.
4785         Clean up cached objects (document) when moving to a new page through
4786         any of the navigation methods.
4787         Use the new Mono.WebBrowser.INavigation interface to control navigation.
4788         Implement OnNavigated event.
4789
4790 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
4791
4792         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
4793         DrawLinkLabel, this is handled by OnPaintBackground.
4794         Fixes bug #339565, part II.
4795
4796 2007-11-07  Andreia Gaita <avidigal@novell.com>
4797
4798         * Control.cs: Revert r88915. Selecting text on a textbox depends on
4799         getting a Select call on click, so this call needs to be here for now.
4800         Unfixes #325809
4801
4802 2007-11-07  Geoff Norton  <gnorton@novell.com>
4803
4804         * OSXStructs.cs: Add the kEventClassApplication constants.
4805         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
4806         application is deactivated otherwise Menu overlays linger on top of
4807         other application windows.
4808
4809 2007-11-07  Geoff Norton  <gnorton@novell.com>
4810
4811         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
4812         dont support cursors yet anyways.  This allows Reflector to run.
4813
4814 2007-11-07  Geoff Norton  <gnorton@novell.com>
4815
4816         * XplatUIOSX.cs: Implement DragSize.
4817
4818 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4819
4820         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
4821         ItemControl, request the focus, as .Net does. This is needed after 
4822         Control does not request focus anymore when it receives a
4823         WM_LBUTTONDOWN.
4824
4825 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
4826
4827         * Label.cs: Make DrawImage internal so it can be called from Theme code.
4828         Remove the DrawImage call from OnPaint.
4829         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
4830         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
4831         but before we draw the text for DrawLabel and DrawLinkLabel.
4832         Fixes bug #339565.
4833
4834 2007-11-05  Andreia Gaita <avidigal@novell.com>
4835
4836         * Control.cs: Remove select call on click. Fixes #325809
4837
4838 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4839
4840         * ListViewItem.cs: Add 2.0 Position property getter.
4841
4842 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4843
4844         * ListView.cs: Add 2.0 BackgroundImageTiled property.
4845         Also, to make it work properly, change item's BackColor and
4846         BackgroundImageLayout as needed.
4847         * ThemeWin32Classic.cs: Don't fill any background rectangle 
4848         in ListView.ItemControl when drawing items; just let the Control
4849         base implementation fill it.
4850
4851 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4852
4853         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
4854         as well as adding a custom 'dummy' Converter, as .net does.
4855
4856 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4857
4858         * PropertyGridView.cs: When clicking drop-down button,
4859         select an index in the listbox only if our standard values collection 
4860         has one or more items.
4861
4862 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4863
4864         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
4865         property.
4866
4867 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
4868
4869         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
4870         the value is not changed. This ensure a pushed button remains in that
4871         state when clicked again. When switching the value of PropertySort
4872         between Categorized and CategorizedAlphabetical, do not update the
4873         grid items and do not fire a PropertyChangedEvent. When clicking the
4874         sorting buttons, do not modify the PropertySort value when switching
4875         between Categorized and CategorizedAlphabetical but only update the
4876         button state.
4877
4878 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
4879
4880         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
4881         formatting.
4882         * PropertyGrid.cs: Also put Categorized button in pushed state when
4883         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
4884         for help description label.
4885
4886 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4887
4888         * ListView.cs: When calculating the biggest item for a given column,
4889         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
4890         the item's width.
4891
4892 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
4893
4894         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
4895         value for PropertySort on 1.0 profile. PropertySortChanged event
4896         should only be fired on 2.0 profile. Fixed NullReferenceException
4897         in UpdateSortLayout when PropertyGrid contains no items.
4898
4899 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
4900
4901         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
4902         [Fixes bug #338554]
4903
4904 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4905
4906         * ListViewItem.cs: Implement 2.0 IndentCount property.
4907
4908 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4909
4910         * X11Dnd.cs: When sending status in a dnd operation, compare current
4911         effect with the 'allowed' field instead of 'drag_data.Allowed', since
4912         the later is only created when a Winforms application is both the
4913         source and the target, but not when we are the target only.
4914         Fixes part of #324251.
4915
4916 2007-11-01  Geoff Norton  <gnorton@novell.com>
4917
4918         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
4919         order of Z-Order.
4920         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
4921         children out of the drawing view on mac.
4922         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
4923         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
4924         
4925 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
4926
4927         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
4928         on the non-hosted-control part of it shouldn't do anything.
4929         Fixes part of bug #327498.
4930
4931 2007-11-01  Andreia Gaita <avidigal@novell.com>
4932
4933         * WebBrowserBase.cs: revert previous change, resize can be called anytime
4934
4935 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
4936
4937         * Application.cs: When a toolstrip has the keyboard input loop, let messages
4938         it does not use flow through to controls that are hosted in menus.
4939         Same with mouse clicks.
4940         * Form.cs: Don't close all menus on click if the click is on a
4941         control hosted in a menu.
4942         Fixes part of bug #327498, and part of bug #325969.
4943
4944 2007-10-31  Andreia Gaita <avidigal@novell.com>
4945
4946         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
4947
4948 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
4949
4950         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
4951         Addresses an issue raised in bug #336218.
4952
4953 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
4954
4955         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
4956         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
4957
4958 2007-10-30  Andreia Gaita <avidigal@novell.com>
4959
4960         * ContainerControl.cs: Check if the active control is a
4961         child of a removed control and update active_control accordingly.
4962         Fixes #329718
4963
4964 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
4965
4966         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
4967         or the MaxDate.  Fixed bug #337693.
4968
4969 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
4970
4971         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
4972         after calling SetWindowLong for a form, to force an immediate NC refresh.
4973         Fixes first part of bug #325150.
4974
4975 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
4976
4977         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
4978         simple.  Fixes the last part of bug #322668.
4979
4980 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
4981
4982         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
4983         needs to be TopMost as well, or else the MessageBox is under the form.
4984         Patch by George fixes bug #325300.
4985
4986 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4987
4988         * X11Dnd.cs: When starting a new drag operation, reset the static
4989         'dropped' field to false (previously the implementation didn't reset
4990         it and got confused after the first drag).
4991         Fixes #325071.
4992
4993 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4994
4995         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
4996         items instead of re-creating them all. For this purpose we now cache
4997         both CategoryGridEntry items and the GridEntries for the main object's
4998         properties.
4999         * GridItem.cs: Make SetParent method abstract.
5000         * GridEntry.cs: Override the SetParent method (already there, but now
5001         we override it).
5002         Fixes #324866.
5003
5004 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5005
5006         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
5007         depending on its depth (as .Net does). Update the needed values in
5008         MouseDown handler. Also draw the plus/minus rect after the label,
5009         so we don't draw on top of it.
5010
5011 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
5012
5013         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
5014         processed by forms or controls when menu is active. [Fixes #333548]
5015
5016 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
5017
5018         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
5019         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
5020         focus on mouse over.
5021
5022 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
5023
5024         * TextControl.cs: Code cleaning, simplifying.
5025
5026 2007-10-24  Geoff Norton  <gnorton@novell.com>
5027
5028         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
5029         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
5030
5031 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
5032
5033         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
5034         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
5035
5036 2007-10-24  Andreia Gaita <avidigal@novell.com>
5037
5038         * SendKeys.cs: apply jpobst's patch to bug #332409
5039
5040 2007-10-23  Andreia Gaita <avidigal@novell.com>
5041
5042         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
5043         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
5044         for some reason
5045
5046 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5047
5048         * PropertyGridView.cs: If a property has an UIEditor available,
5049         make the drop-down/editor button available only if the property
5050         is _not_ read only.
5051
5052 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5053
5054         * PropertyGridView.cs: Don't make the grid item textbox 
5055         editable when a drop-down control is available, but 
5056         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
5057         true. The same bur the color of the grid item value's label.
5058
5059 2007-10-22  Geoff Norton  <gnorton@novell.com>
5060
5061         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
5062         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
5063         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
5064         driver.  Padd the bottom of all real windows so the resize thumb doesn't
5065         obscure scroll/status bars.
5066
5067 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
5068
5069         * WindowsFormsSection.cs: Implement.
5070
5071 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
5072
5073         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
5074         closed see #325434 patch.
5075
5076 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
5077
5078         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
5079         see #325434 patch.
5080
5081 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5082
5083         * PropertyGridView.cs: When showing the textbox for a grid item,
5084         have two local variables to store the read-only and non-editable
5085         status of a grid item (we were previously using just one variable
5086         to do this, when actually they are slightly different).
5087         Fixes part of #325023.
5088
5089 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5090
5091         * PropertyGridView.cs: When showing a drop-down list, try to get the
5092         values using TypeConverter.ConvertTo (to convert to a string). Fixes
5093         part of #325023.
5094
5095 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5096
5097         * PropertyGrid.cs: When updating a property and populating sub grid
5098         items, remove the previous ones, and invalidate the specific area.
5099         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
5100         area behind a grid item.
5101         * GridItemCollection.cs: Add an internal Clear method, to allow us to
5102         clean the items if needed (specially for controls implementing 
5103         ICustomTypeDescriptor and returning a variable number of properties).
5104         Fixes #324865.
5105
5106 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
5107
5108         * TextControl.cs: Clean up and document the Insert function.
5109
5110 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
5111
5112         * TextControl.cs: Make sure we know our start point for updating the view
5113         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
5114         update the view.
5115
5116 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
5117
5118         * ListView: Couple of corcompare fixes.
5119
5120 2007-10-17  Geoff Norton  <gnorton@novell.com>
5121
5122         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
5123         the title caption of real window.
5124
5125 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
5126
5127         * ErrorProvider.cs: Add the error provider's internal window to a 
5128         containercontrol when the parent changes.  [Fixes bug #329714]
5129
5130 2007-10-17  Geoff Norton  <gnorton@novell.com>
5131
5132         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
5133         When we make a new window; restore the old active window - fixes dialogs.
5134
5135 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5136
5137         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
5138         when modifying a property, and if found then invalidate as
5139         requested.
5140         Fixes part of #324865.
5141
5142 2007-10-17  Geoff Norton  <gnorton@novell.com>
5143
5144         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
5145         highly experimental.  Fixed coordinate translation.  Fixed window locations.
5146         Initial support for clipping. Implemented NC areas and menus.  Support for
5147         launching from command line from Will Johansson (wjohansson@atacomm.com).
5148         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
5149         wjohansson@atacomm.com)
5150         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
5151         Hwnds now track the existence of all of their children for Mac clipping.
5152     * XplatUI.cs: Re-enabled the native driver on the Mac.
5153
5154 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
5155
5156         * Line.cs: Move the InsertString function to here.
5157         * TextControl.cs: Cleanup some duplicate code, move some InsertString
5158         functionality to Line.
5159
5160 2007-10-17  Geoff Norton  <gnorton@novell.com>
5161
5162         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
5163
5164 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
5165
5166         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
5167         always setting value to true.
5168         * Form.cs: When changing AcceptButton, notify new and original button.
5169
5170 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
5171
5172         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
5173         a custom control that implements IButtonControl instead of an actual
5174         button.  [Fixes bug #334244]
5175
5176 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
5177
5178         * Form.cs: Change SelectActiveControl to internal, we need to call it in
5179         MdiWindowManager.
5180         
5181         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
5182         active control when activate a new mdi window.
5183         
5184         [Fixes bug #330495]
5185
5186 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
5187
5188         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
5189         is already added.
5190         [Fixes bug #333617]
5191
5192 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
5193
5194         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
5195         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
5196         so we always recalculate the whole document instead of just the new part.
5197         [Fixes bug #325082]
5198
5199 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
5200
5201         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
5202         when the mouse was to the left of the first character in the line.
5203
5204 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
5205
5206         * TextBox.cs, TextBoxBase.cs: When setting the document's password
5207         character, use the property instead of the variable so that the
5208         UseSystemPasswordChar property is taken into account.
5209         [Fixes bug #333748]
5210
5211 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5212
5213         * FolderBrowserDialog.cs: When a node is right clicked and the "New
5214         folder" contex menu appears, actually add the new folder to it, even
5215         if the node is not currently selected. Still use SelectedNode in case 
5216         there wasn't found a node under the pointer.
5217         Fixes #325452.
5218
5219 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5220
5221         * ListViewItem.cs: When retrieving the focused state, the index check
5222         should be done only when ListView is in virtualmode, as it is an
5223         expensive check for normal mode.
5224
5225 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5226
5227         * ListViewItem.cs: Make the focus state information be stored
5228         in the ListView, not in the items. This is done to match the MS
5229         behaviour for items that are not yet part of a ListView control;
5230         besides that, since just one item can be focused at the same time,
5231         we save a little space in our items.
5232         Fixes part of #331643.
5233
5234 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
5235
5236         * ComboBox.cs: When focus is lost, deselect the text. When setting
5237         text of control, select all text. Do not hide selection when control
5238         does not have focus. Fixes bug #333663.
5239
5240 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
5241
5242         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
5243         instead of ArgumentException when SelectionLength is set to negative
5244         value. Added same check to SelectionStart. Code formatting.
5245
5246 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
5247
5248         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
5249         or SelectionStart. Code formatting.
5250
5251 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5252
5253         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
5254         indicating that there was not a previous drag-and-drop operation going
5255         on.
5256         Fixes part of #325071.
5257
5258 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5259
5260         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
5261         AllowedEffect, don't let the drop operation happen. 
5262         Fixes #32580.
5263
5264 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
5265
5266         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
5267
5268 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
5269
5270         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
5271         is called.
5272
5273 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
5274
5275         * Line.cs: Add a method that finds the tag that contains an x-coord.
5276         * LineTag.cs: Add a method that finds the character at an x-coord using
5277         a binary search, the old way was a linear search.
5278         * TextControl.cs: Change FindCursor to use the above new methods.
5279
5280 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5281
5282         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
5283         value different than AllowedEffect). This should be possible to
5284         indicate that dragging is not possible in some control/area.
5285
5286 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
5287
5288         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
5289         descent internally when font changes instead of outside code being responsible
5290         for setting it.
5291         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
5292         instead of accessing internal variables.
5293
5294 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
5295
5296         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
5297         remove special treatment for ArrangeIcons since it is already arranged.
5298
5299 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
5300
5301         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
5302         the Win32 backend uses Color.
5303         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
5304         Refactor to store a Color instead of a Brush for Color.
5305
5306 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
5307
5308         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
5309         away.  I didn't realize I needed this when I refactored these earlier.
5310
5311 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
5312
5313         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
5314         store a Color structure and use the ResPool for back color instead of
5315         holding onto brushes.
5316
5317 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
5318
5319         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
5320         [Fixes bug #325592]
5321
5322 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
5323
5324         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
5325         to recalculate its size.  Fixes a part of bug #331052.
5326
5327 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
5328
5329         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
5330         button.  Fixes a part of bug #331052.
5331
5332 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
5333
5334         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
5335         the CreateParams.
5336         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
5337         decorations.
5338         [Fixes bug #330986]
5339
5340 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
5341
5342         * TextBoxTextRenderer.cs: Don't make this a static class, as static
5343         doesn't exist in 1.1.  (Thanks jb!)
5344
5345 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
5346
5347         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
5348         class to allow us to use different backends on different platforms.
5349         Linux uses the current [Draw|Measure]String backend.  Windows uses
5350         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
5351         of GDI+.  This leads to better looking text and more accurate measurements
5352         on Windows, fixing many of the reported issues.
5353         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
5354
5355 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5356
5357         * FolderBrowserDialog.cs: When running on Windows,
5358         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
5359         since we must match both "C:" and "C:\" forms. A little hackish, but
5360         works.
5361         Fixes #325247.
5362
5363 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5364
5365         * ListView.cs: When calling EndEdit (after editing an item),
5366         create a new instance of LabelEditEventArgs to keep clean the fields
5367         in case we get a new call to BeginEdit; also do Application.DoEvents
5368         to have focus in synch. This is a fix similar to TreeView's #325244.
5369
5370 2007-10-07  Andreia Gaita <avidigal@novell.com>
5371
5372         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
5373         * WebBrowserBase.cs: Added dialog support, calling the
5374           WebBrowserDialogs classes for each specific dialog type.
5375
5376 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5377
5378         * ListView.cs: When the last item is focused and is removed,
5379         move the focus to the previous item (in Items order). This is what MS
5380         does.
5381         Fixes #330415.
5382
5383 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5384
5385         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
5386         instead of the opposite (RemoveAt call Remove). This is a better
5387         approach since we don't need to to a pair of traversals when using
5388         RemoveAt.
5389
5390 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5391
5392         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
5393         check that the node actually has nodes, and if not, move to the
5394         parent node instead. 
5395         Fixes #325265.
5396
5397 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5398
5399         * TreeView.cs: Move the previous change to the general case (to
5400         call Application.DoEvents in cases where the method was called by
5401         different places).
5402
5403 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5404
5405         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
5406         call Application.DoEvents. This is neccessary when we get a call to
5407         BeginEdit from an AfterLabelEdit handler, because the focus always
5408         goes to the TreeView, even if we try to give it to our
5409         LabelEditTextBox. The call do Application.DoEvents seems to
5410         synchronize the focus, basically.
5411         Fixes #325244.
5412
5413 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5414
5415         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
5416         should be false. This also removes some nasty recursive paths. Fixes
5417         part of #325244.
5418
5419 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
5420
5421         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
5422         state to normal. Also resize window when cascading. Fixes #325433. 
5423
5424 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
5425
5426         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
5427         DefaultForeColor, as drawing empty colored lines isn't very useful.
5428         [Fixes the not drawn lines part of bug #324358]
5429
5430 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
5431
5432         * TextControl.cs: Move Line and LineTag classes into separate files to
5433         make things easier to find.
5434         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
5435         * RichTextBox.cs: Capitalize LineTag.Length property access.
5436         - This is purely an organizational/formatting change, no logic changed. -
5437
5438 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
5439
5440         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
5441         text is empty.
5442
5443 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
5444
5445         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
5446         text is empty.
5447
5448 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
5449
5450         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
5451         prevent calling of OnBackColorChanged. Fixes #325321.
5452
5453 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
5454
5455         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
5456         because control can be disabled because owner is disabled.
5457
5458 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
5459
5460         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
5461         string.Empty, test failed from previous change.
5462
5463 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
5464
5465         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
5466         is null, not String.Empty.  See bug #323038.
5467
5468 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
5469
5470         * TextControl.cs: Change the margins to match MS a little better.
5471         Still not perfect for X11 due to some DrawString differences, but
5472         is still an improvement over the old stuff.
5473         Partially fixes #324467.
5474
5475 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5476
5477         * FolderBrowserDialog.cs: When using MyComputer as 
5478         RootFolder, let absolute paths be considered as valid ones. Also, use
5479         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
5480         for Windows compatibility.
5481         Partially fixes #325247.
5482
5483 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5484
5485         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
5486         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
5487         method, since it causes the dialog to not select folders directly
5488         under the root path (when setting SelectedPath property).
5489
5490 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5491
5492         * TreeNode.cs: When calling Expand/Collapse and need to call 
5493         ExpandBelow/CollapseBelow respectively, take into account
5494         partially visible nodes (previously Expanding/Collapsing
5495         a partially visible node in the bottom was not updating its +- sign).
5496
5497 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5498
5499         * TreeView.cs: When calling Expand on a TreeNode, and we need to
5500         expand nodes below (ExpandBelow), scroll the entire Viewport
5501         area if the node is above it and not visible (instead of scrolling
5502         the area from node's Bottom, which applies only when the node is
5503         visible).
5504         Fixes #325266.
5505
5506 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5507
5508         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
5509         node in the bottom area (as .Net does). This is done to preserve the
5510         scroll position when ExpandAll is called before handle is created for
5511         the 1.1 profile (bottom area, as opposed to top area in 2.0).
5512         Fixes #324103.
5513
5514 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5515
5516         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
5517         bottom area if we are in fact not using the vertical scroll bar.
5518         Fixes #324824.
5519
5520 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
5521
5522         * Control.cs: Comment out a double buffering optimization that doesn't
5523         take into account invalidates created in OnPaint, causing the control
5524         to never be redrawn.  It would take quite a bit of work to work around
5525         this, but I left it commented with an explanation for later possible
5526         optimization.
5527         [Fixes bug #328681]
5528
5529 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
5530
5531         * Control.cs: Ask parent to perform a layout if control is AutoSize and
5532         the text changes.
5533         * RadioButton.cs: Implement GetPreferredSizeCore.
5534         [Fixes bug #328672]
5535
5536 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
5537
5538         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
5539         corcompare stuffs.
5540
5541 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
5542
5543         * Application.cs: Move the sync context stuff to Run instead of RunLoop
5544         so that it doesn't get uninstalled on modal forms.
5545         * Control.cs: Install a sync context when a control is created.
5546         * WindowsFormsSyncronizationContext.cs: Create a private static control
5547         to invoke on.  This is easier than trying to find a created control we
5548         can use.
5549         [Fixes bug #327608]
5550
5551 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
5552
5553         * Application.cs: Install a WindowsFormsSynchronizationContext in the
5554         run loop, and uninstall it when done.
5555         * WindowsFormsSynchronizationContext.cs: Implement.
5556         [Fixes the common case in bug #327608]
5557
5558 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
5559
5560         * DataGridViewCellCollection.cs: Added argument checks for indexers.
5561         Use case-insensitive lookup of column name in indexer. Code
5562         formatting.
5563
5564 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5565
5566         * TreeNode.cs: When collapsing or expanding a node, check whether its
5567         change will affect the visible area (we were previously doing a
5568         IsVisible check, but that check is not enough since children nodes
5569         could be still visible). Fixes part of #325266.
5570
5571 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
5572
5573         * TreeView.cs: Always select the first node when the TreeView gets
5574         focus if there is no currently selected node.
5575         [Fixes bug #324279]
5576
5577 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
5578
5579         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
5580         node being selected is null.
5581         [Patch from Yves Bastide fixes bug #326858]
5582
5583 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5584
5585         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
5586         whether all the parent nodes are expanded.
5587         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
5588         call RecalculateVisibleOrder if all previous nodes are expanded.
5589         Before that we were doing a IsVisible check, but sometimes the node
5590         is not in the visible area, but _should_already be ready, because of
5591         all previous nodes are expanded. Fixes #325259.
5592
5593 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
5594
5595         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
5596         portion of the item is clicked.
5597
5598 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
5599
5600         * TextControl.cs: Do not tell the system to move the cursor if the
5601         textbox isn't focused.  Fixes part of bug #322668.
5602
5603 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
5604
5605         * ComboBox.cs: When there are no items, do not show the dropdown if
5606         the down arrow is clicked.  Fixes part of bug #322668.
5607
5608 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
5609
5610         * ToolStripComboBox.cs: Manually set the size of this control in the
5611         constructor, as it doesn't seem to be the same as DefaultSize.
5612         Fixes a failing monobuild test.
5613
5614 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
5615
5616         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
5617         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
5618
5619 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
5620
5621         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
5622         Desktop.  This lets it work for people who have moved their desktops
5623         from the default location on windows.  For people who have not, both
5624         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
5625
5626 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
5627
5628         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
5629         but when the base constructor sets this, the control is null.  Set it
5630         again in the constructor.  Fixes a failing monobuild test.
5631
5632 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
5633
5634         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
5635         get called.
5636         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
5637         called.
5638
5639 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
5640
5641         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
5642         will handle it themselves.
5643         * ToolStripItem.cs: When deciding what the text of a tooltip should
5644         be, use the Text property instead of the text field.
5645         * ToolStripTextBox.cs: Handle tooltips.
5646         [Fixes bugs #325417 and #325973]
5647
5648 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
5649
5650         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
5651         left click.  Fixes the easy part of bug #325969.
5652
5653 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
5654
5655         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
5656         bug #325406, but set a minimum for StatusStrip to 22 to keep
5657         bug #325390 fixed.  I think this minimum would have been figured
5658         up automatically if the grip was actually a ToolStripItem, but it
5659         currently is not.
5660
5661 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5662
5663         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
5664         as this is apparently the actual value used by .Net. Also apply
5665         ItemPadding in Details view only, and decrease the general width padding,
5666         to have only the needed. This should fix #324340 in Windows too.
5667
5668 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5669
5670         * ListViewItem.cs: Don't Invalidate item if parent is inside
5671         a BeginUpdate/EndUpdate block. This prevents to have differences
5672         between the ListView and items state, as well as avoid some exceptions
5673         there.
5674         * ListView.cs: Make 'updating' field internal.
5675
5676 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
5677
5678         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
5679         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
5680         size if appropriate.
5681         Fixes reopened bug #325414.
5682
5683 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
5684
5685         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
5686         * ToolStripItem.cs: Invalidate before and after our new autosize when
5687         text changes.
5688         Fixes reopened bug #325390.
5689
5690 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
5691
5692         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
5693         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
5694         #325044.
5695
5696 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
5697
5698         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
5699
5700 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5701
5702         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
5703         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
5704         #82734.
5705
5706 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
5707
5708         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
5709         item to select when the ToolStrip is selected.
5710         * ToolStripControlHost: Realign the control when the bounds or visibility
5711         change.
5712         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
5713         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
5714         preferred height.
5715         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
5716         base.OnPaint.  Was causing text not to be drawn.
5717
5718 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
5719
5720         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
5721
5722 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5723
5724         * TreeView.cs: When creating the label edit text box,
5725         set is initially to Visible = false. This is done to
5726         prevent a confusion in the layout which makes it to lose
5727         focus when shown the first time. Fixes part of #82592.
5728
5729 2007-09-13 Andreia Gaita <avidigal@novell.com>
5730
5731         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
5732
5733 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
5734
5735         * ToolStrip.cs: Take Margin into account when calculating preferred
5736         size.  Also, allow preferred size to get smaller than the explicit
5737         size.
5738         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
5739         First step towards fixing bug #82747.
5740
5741 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
5742
5743         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
5744         full row select background over the plus/minus glyph.  Also, turn
5745         off the focus rectangle for full row select since MS doesn't seem
5746         to ever paint it.  [Fixes bug #81839]
5747
5748 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
5749
5750         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
5751         This was causing keyboard opened dropdowns to lose focus.
5752         [Fixes bug #82803]
5753
5754 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
5755
5756         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
5757         ClientRectangle instead.  [Fixes bug #82838]
5758
5759 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
5760
5761         * SplitContainer.cs: We can't reset Visible on every layout because
5762         someone may have set Visible = false explicitly on a SplitterPanel.
5763         Make sure when we switch orientation the SplitterDistance does not
5764         change.  Fixes two failing tests.
5765
5766 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5767
5768         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
5769         TextRenderer, since the latter is only available in 2.0.
5770
5771 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
5772
5773         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
5774         * SplitContainer.cs: Implement FixedPanel layouting.
5775
5776 2007-09-12  Andreia Gaita  <avidigal@novell.com>
5777
5778         * WebBrowserBase.cs: setup shutdown routine
5779
5780 2007-09-12  Andreia Gaita  <avidigal@novell.com>
5781
5782         * Application.cs: Let keyboard events that are targetted 
5783                 to non-mwf windows hosted inside mwf (as in, webbrowser),
5784                 propagate properly. Fixes keyboard handling on the webbrowser.
5785
5786 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5787
5788         * ListView.cs: When handling MouseUp event and we are 
5789         highligting a node with the mouse right button, don't trigger
5790         Before/AfterSelecting event, since we are not actually selecting
5791         the node.
5792
5793 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5794
5795         * TreeView.cs: When editing a node, modify the edit text box
5796         depending on the text length (as you are typing), like MS does.
5797
5798 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
5799
5800         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
5801         Override GetPreferredSizeCore to perform calculations.  Remove custom
5802         autosize logic.  [Fixes bug #82739]
5803
5804 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
5805
5806         * TextBoxBase.cs: Modified should default to false.
5807
5808 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
5809
5810         * Control.cs: Update the anchoring distances even when layout is supspended.
5811         Patch provided by George fixes bug #82805.
5812
5813 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
5814
5815         * Control.cs: Provide a setter for ExplicitHeight.
5816         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
5817         remove the hacks in here for requested_height.
5818         [Fixes bug #82749]
5819
5820 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
5821
5822         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
5823         Maximum to lower that its current Value caused an ArgumentException by setting
5824         the Value to the new Maximum.
5825
5826 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
5827
5828         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
5829         handle moves to the closest tick when it is being dragged.
5830         [Fixes bug #82751]
5831
5832 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
5833
5834         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
5835         can't let them count as real items when calculating where to merge in the
5836         user's items.  [Fixed bug #82786]
5837
5838 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
5839
5840         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
5841         who want to add a menu item directly onto a toolstrip.
5842         [Fixes bug #82775, part II]
5843
5844 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
5845
5846         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
5847         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
5848         don't set it to available.
5849         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
5850         [Fixes bug #82727, part II]
5851
5852 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
5853
5854         * StatusStrip.cs: Change item placement to None if not visible.
5855         * ToolStripItem.cs: Invalidate when InternalVisible changes.
5856         These should have been committed to fix 82723, but I missed them.
5857
5858 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
5859
5860         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
5861         Click, and that it is only called once.
5862         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
5863         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
5864         dropped down.
5865         [Fixes bug #82775]
5866
5867 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5868
5869         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
5870         to match .Net.
5871         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
5872         instead of 8, just like above. Partially fixes #82734.
5873
5874 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5875
5876         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
5877         fixes #82734.
5878
5879         * ListView.cs: Remove extra space between rows in Details view (match
5880         .Net). 
5881         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
5882         the DefaultFont.
5883
5884 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
5885
5886         * Application.cs: Modified ProductVersion to return value of
5887         AssemblyInformationVersion if available, and fallback to assembly
5888         version. Fixes bug #82746. Code formatting.
5889         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
5890         instead.
5891
5892 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5893
5894         * Control.cs: When updating ZOrder for a child control,
5895         take into account the implicit ones (we need it in our controls
5896         using them). Fixes #82642.
5897
5898 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
5899
5900         * ToolStripItem.cs: Add support for animated images.
5901         [Fixes bug #82726]
5902
5903 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
5904
5905         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
5906         visible.  [Fixes bug #82727]
5907
5908 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
5909
5910         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
5911         so we repaint using the new size.  [Fixes bug #82723]
5912
5913 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
5914
5915         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
5916         option.  [Fixes bug #81779]
5917
5918 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
5919
5920         * TreeView.cs: Override HandleClick because the StandardClick style is
5921         set to false.  According to MSDN (and testing), the click events should
5922         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
5923
5924 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
5925
5926         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
5927         the border will disappear.  Fixes reopened #82653.
5928
5929 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
5930
5931         * Control.cs: If the control is autosize, and its preferred size changes
5932         when it lays out its children, tell its parent so it can be re-layed out.
5933         Fixing some of the fallout from r85433.
5934
5935 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
5936
5937         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
5938         and CheckBox share some code.
5939
5940 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
5941
5942         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
5943         the TrackBar, not every mouse move.  [Fixed bug #82718]
5944
5945 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
5946
5947         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
5948         under 2.0 rendering.  [Fixes bug #82657]
5949
5950 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
5951
5952         * TreeView.cs: If we found a TreeNode to display a context menu, but
5953         it doesn't have one to show, let the TreeView display its menu
5954         instead.  [Fixes bug #82680]
5955
5956 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
5957
5958         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
5959         OnPaintInternal instead.  Give the internal TextBox a Border property
5960         so it can draw itself more correctly.  [Fixes bug #82653]
5961
5962 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
5963
5964         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
5965
5966 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
5967
5968         * ComboBox.cs: Adjust combobox button state to reflect current state when
5969         back to enabled = true. Fixes first issue of #82654.
5970
5971 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
5972
5973         * Control.cs: Fix last patch regression, prevent forms to update zorder when
5974         setting visible property.
5975
5976 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
5977
5978         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
5979         fix zorder for controls initially created as non visible. Fixes #82667.
5980
5981 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
5982
5983         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
5984         mimic win32 look. Fixes #82656.
5985
5986 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
5987
5988         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
5989         Stubs for new net 3.5 classes.
5990
5991 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5992
5993         * ListViewItem.cs: In ListViewItemCollection operations calculate
5994         Layout for owner as well as invalidate it. Fixes part of #82642.
5995
5996 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
5997
5998         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
5999         when returning Enabled.  [Fixes bug #82651]
6000
6001 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
6002
6003         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
6004
6005 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6006
6007         * ListView.cs: Put item padding info in a single place
6008         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
6009         columns again.
6010         * ThemeWin32Classic.cs:
6011         * Theme.cs: Likewise.
6012
6013 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6014
6015         * ListView.cs: When a ListViewSubItem instance is invalidated,
6016         invoke Invalidate on parent ListViewItem, not parent ListView.
6017         Fixes #81570.
6018
6019 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
6020
6021         * ListView.cs, ListViewItem.cs: corcompare stuffs.
6022
6023 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
6024
6025         * BindingMemberInfo.cs: Implement == and != operators.
6026
6027 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
6028
6029         * HtmlElementEventArgs.cs: Implement properties.
6030
6031 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
6032
6033         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
6034
6035 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
6036
6037         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
6038         Add (string,string,string) to implement the imagekey.  It turns out, we
6039         use the requested imagekey whereas .Net does not.  So I broke ours to match
6040         theirs.  :(
6041
6042 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
6043
6044         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
6045
6046 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
6047
6048         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
6049
6050 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
6051
6052         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
6053         up-to-date. Fixes bug #82618.
6054
6055 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
6056
6057         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
6058         reflect document changes. Fixes #82367.
6059
6060 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6061
6062         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
6063         as well as add new ones. This should make work the BackgroundImage
6064         property for ListView again.
6065
6066 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
6067
6068         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
6069         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
6070         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
6071
6072 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
6073
6074         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
6075         IsKeyLocked.
6076
6077 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
6078
6079         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
6080         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
6081
6082 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
6083
6084         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
6085         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
6086
6087 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
6088
6089         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
6090
6091 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
6092
6093         * GridEntry.cs: Implement GetService.
6094
6095 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
6096
6097         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
6098         for label editting, make sure we focus back on the TreeView.
6099         [Fixes bug #82590]
6100
6101 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6102
6103         * ListView.cs: Add some 2.0 overrides.
6104
6105 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
6106
6107         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
6108         because getter dont returns right value before handle creation. Thanks 
6109         to George. Fixes #82569.  
6110
6111 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
6112
6113         * Theme.cs: Revert last patch, it causes error under win32. 
6114
6115 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
6116
6117         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
6118         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
6119         logical Desktop rather than the physical file system location. Fixes #82603. 
6120
6121 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
6122
6123         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
6124         for the patch. Fixes #82568.
6125
6126 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6127
6128         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
6129         methods.
6130
6131 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6132
6133         * ListViewInsertionMark.cs: New stubbed class.
6134
6135 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
6136
6137         * FolderBrowserDialog.cs: When adding folder, immediately create the
6138         directory with temporary name and rename the directory when editing
6139         finishes. This matches MS. Ensure the node for the new folder is 
6140         selected and LabelEdit is disabled, when editing is either finished
6141         or cancelled.
6142
6143 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
6144
6145         * TreeView.cs: When editing label of node, ensure node is visible.
6146
6147 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
6148
6149         * PropertyGridView.cs: Set the value only if it has changed.
6150
6151 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6152
6153         * ListView.cs: Some more code refactoring to add support sorting
6154         with groups (now for Details view). Remove unused code also.
6155
6156 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
6157
6158         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
6159         Not a big fan of reacting immediately to a field in an EventArg, but that's
6160         the way it's done.  (This is part of the previous commit that got left out.)
6161
6162 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
6163
6164         * FolderBrowserDialog.cs: Removed need for separate description field.
6165         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
6166         has focus when dialog box is displayed again, regardless of what
6167         button was pressed the previous time. Set RootFolder and SelectedPath
6168         each time dialog box is displayed. This ensures the treeview is
6169         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
6170         when it does not have focus. Added support for more special folders.
6171
6172 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
6173
6174         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
6175         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
6176         it resets the edit_args.
6177         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
6178         [Fixes bug #82577]
6179
6180 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
6181
6182         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
6183         button to match MS. Provide more meaningful exception message for
6184         invalid RootFolder value. Use zero-length string when SelectedPath
6185         is set to null. Allow non-rooted paths in SelectedPath, but ignore
6186         them in FolderBrowserTreeView. Allow folders to be created in
6187         RootFolder. Fixes bug #82576.
6188
6189 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6190
6191         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
6192         since we need to take into account the group headers and the margin
6193         between them.
6194         * ListViewGroup.cs: Add a rows field to store the number of rows per
6195         group.
6196
6197 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6198
6199         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
6200           Anyways, let's just follow the lead.
6201
6202 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
6203
6204         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
6205         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
6206         controls in GetPreferredSizeCore.
6207         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
6208         [Fixes bug #82488]
6209
6210 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
6211
6212         * PrintDialog.cs: Need to instantiate the form variable here too.
6213
6214 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6215
6216         * ListView.cs: Do some reorganization to support sorting in groups,
6217         by doing the layout sequentially in ListView.Items. Also add support
6218         for the Default Group, which should be available for items with no
6219         group assigned.
6220         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
6221         for storing layout info also.
6222         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
6223         collection, as well as providing internal members to do a traversal
6224         including the default group (needed when doing layout/drawing).
6225         * ThemeWin32Classic.cs: When drawing group headers use internal
6226         ListViewGroupCollection members to take into account the default
6227         group.
6228
6229 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
6230
6231         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
6232
6233 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
6234
6235         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
6236         been created.  If handle is created, we want arror keys.  If we are editing
6237         a node, we want things like enter, esc, home, end, page up, page down.
6238         Allows Esc to work for FolderBrowserDialog.
6239
6240 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
6241
6242         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
6243         they close when ESC is pressed.  Thanks Andy!
6244
6245 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
6246
6247         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
6248         This way we can tell if this is a CommonDialog provided with mono, or one
6249         that is being implemented outside by a developer.  If it is an external one,
6250         the developer is responsible for showing their own form.  We were showing
6251         our blank form after the developer showed his.
6252         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
6253         PageSetupDialog.cs: Instantiate form variable in our constructor.
6254         [Fixes bug #82531]
6255
6256 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
6257
6258         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
6259         and always return true.  [Fixes bug #81616]
6260
6261 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
6262
6263         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
6264         TextBox.  [Fixes bug #82549]
6265
6266 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
6267
6268         * FileDialog.cs: When Save/Open is clicked and no filename is selected
6269         or entered then do not close the dialog. Fixes bug #82539. Removed
6270         CWLs.
6271
6272 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
6273
6274         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
6275         code to this method. It is calling every time filter changes. This method
6276         will help to fix the bug #80887.
6277
6278 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
6279
6280         * CheckBox.cs: Implement AutoSize calculation.
6281
6282 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
6283
6284         * CheckBox.cs: Use new 2.0 rendering for 2.0.
6285         * Theme.cs: Method declarations for 2.0 rendering path.
6286         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
6287
6288 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6289
6290         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
6291
6292 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6293
6294         * ListViewGroupCollection.cs: Implement AddRange the right way, to
6295         only call Redraw on the parent one time.
6296
6297 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6298
6299         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
6300           GetClipboardContent.
6301         * DataGridViewCell.cs: Implemented GetClipboardContent,
6302           GetEditedFormattedValue, GetFormattedValue.
6303         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
6304
6305 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
6306
6307         * TableLayoutStyleCollection.cs: corcompare fix.
6308
6309 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6310
6311         * DataObject.cs: Implemented retrieval of convertible / not convertible
6312           objects.
6313
6314 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
6315
6316         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
6317         ourselves.  This ensures the entire old bounds are repainted, in case our new
6318         size is smaller.  [Fixes bug #82518]
6319
6320 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
6321
6322         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
6323         flag to make fast handle of mouse events, without this the mouse move is
6324         handled in some manner, whether it is a mouse move or not. Fixes #81588.
6325
6326 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6327
6328         * ListView.cs: When doing layout calculations don't use a ref
6329         param to keep the current item; instead use its Index value (this 
6330         is specially important when doing the layout with Groups
6331         and Items being sparse). Also don't take into account items added to
6332         the Group but not yet added to the main ListView.Items collection.
6333
6334 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6335
6336         * ListViewGroupCollection.cs: Forgot to mimic an issue
6337         in the indexer (don't assign the ListView owner for new values).
6338
6339 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6340
6341         * ListViewGroupCollection.cs: Make the string indexer use
6342         the int based indexer to re-use code, instead of duplicate the code.
6343         Also Redraw as needed and take into account null values.
6344
6345 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
6346
6347         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
6348         [Fixes bug #82481]
6349
6350 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
6351
6352         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
6353         when other buttons are clicked or navigated to.
6354
6355 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6356
6357         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
6358           it's XplatUIX11 that attaches them.
6359
6360 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6361
6362         * DataGridView.cs: If a column has been added, recreate the editing row.
6363           Fixes #82226.
6364
6365 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6366
6367         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
6368           of the tag to draw. Makes disappearing text show up again.
6369
6370 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6371
6372         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
6373           Contents. Fixes #82487.
6374
6375 2007-08-19  Andreia Gaita  <avidigal@novell.com>
6376
6377         * Added HtmlElement.cs, HtmlElementCollection.cs, 
6378           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
6379           
6380 2007-08-19  Andreia Gaita  <avidigal@novell.com>
6381
6382         * BindingSource.cs: Implement this, dispose and getenumerator.
6383         * DataGridViewRowCollection.cs: Move the InvalidOperationException
6384         out of AddInternal, throw it only on public Add calls. The 
6385         UsingWebBrowser sample was blowing up with this when setting the
6386         DataSource after adding DataBindings, so it's likely that .net
6387         only throws this exception when Add is called directly. 
6388         
6389         * ToolStripControlHost.cs: Return the hosted control's text
6390         property, and not the ToolStripItem one (it would always return
6391         the initial value).
6392         
6393         * HtmlDocument.cs: Implement GetElementById and All
6394         * WebBrowser.cs: Remove exception on set_DocumentStream.        
6395
6396 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
6397
6398         * Form.cs: Fix the max and min value for opacity (0~1).
6399
6400 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
6401
6402         [Fixes #80118]
6403         * DataGridTableStyle.cs: Default header font is now null, on getter it 
6404         returns datagrid font when is null. On setter permits null.
6405
6406         * DataGrid.cs:
6407         - When ResetHeaderFont set header font to null.
6408         - On EndInit set grid_style.DataGrid.
6409
6410 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
6411
6412         * TabControl.cs: Fix regression in default padding x.
6413
6414 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
6415
6416         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
6417
6418 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
6419
6420         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
6421         not 2. Fixes #82229.
6422
6423 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
6424
6425         * TabControl.cs: Fix tab size when image height is less than text height.
6426         Partially fixes #81837.
6427
6428 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
6429
6430         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
6431         "alt + tab". It works only for Win32, for X11 theres no way to remove window
6432         from taskbar and keep it on "alt_tab". Fixes #81722.
6433
6434 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
6435
6436         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
6437         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
6438         Fixes #80877 and #79418.
6439
6440 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
6441
6442         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
6443         between position and one of the screen borders. Fixes #82349.
6444
6445 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
6446
6447         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
6448         the MessageBox in the taskbar. Fixes #82457.
6449
6450 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
6451
6452         * MessageBox.cs: Fix form size when icon is set and text height is bigger
6453         than icon. Fixes #82468.
6454
6455 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6456
6457         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
6458         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
6459           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
6460           Refactored HandleNCCalcSize somewhat to avoid code duplication.
6461         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
6462           FormBorderStyle to decide if we're calculating a new size from the
6463           client size or not. CreateParams: Don't fake tool windows, only the X11
6464           backend manages toolwindows manually.
6465
6466 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
6467
6468         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
6469         ObjectDisposedException.
6470
6471 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
6472
6473         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
6474         in OnLoad should not have any effect.  [Fixes bug #82470]
6475
6476 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
6477
6478         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
6479         paint for controls that create their own ToolTipWindow instead of
6480         going through ToolTip.
6481
6482 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
6483
6484         * ToolTip.cs: Make Hide internal instead of public to match MS API.
6485
6486 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6487
6488         * ListViewGroupCollection.cs: Use generic List instead of an
6489         ArrayList, since this collection is 2.0 only.
6490
6491 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
6492
6493         * ToolTip.cs (Hide): Made public to make the build work (should
6494         this not be public?).
6495
6496 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
6497
6498         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
6499         ToolTipWindow.
6500         * ToolTip.cs: Add an internal Visible property to facilitate transition.
6501
6502 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
6503
6504         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
6505         PopupEventHandler.cs: Make these internal for 1.1.
6506         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
6507         use ToolTipWindow internals.
6508         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
6509         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
6510
6511 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6512
6513         * X11Dnd.cs: Add a null check.
6514
6515 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6516
6517         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
6518           nothing else succeeds. Fixes #82453.
6519
6520 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6521
6522         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
6523           rectangle if we're painting to another window than the one the paint
6524           message was generated on. Simplify the code somewhat, which makes
6525           PaintEventEnd also simpler.
6526
6527 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6528
6529         * Control.cs: When changing parent of a form, let the form decide whether
6530           XplatUI.SetParent should be called or not.
6531         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
6532           recreating the handle. If the new parent's handle isn't created, don't
6533           recreate our handle, just destroy it. CreateParams: Check if the
6534           parent's handle is created before fetching it.
6535
6536 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6537
6538         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
6539           Update calls to PaintEventStart/End to take a Message argument.
6540         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
6541           take a Message argument.
6542         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
6543           Message argument, and handle the case where we don't paint to the window
6544           for which the paint message was generated.
6545
6546 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6547
6548         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
6549           Marshal.GetLastWin32Error. Plug nasty memory leak in
6550           PaintEventStart/End, we were creating a DC we weren't releasing.
6551
6552 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6553
6554         * ListView.cs: Add Groups support in Details view. Also have a small
6555         method to do the layout of the group header. Don't use a separate
6556         method to do the groups calculation in Icons view, since our methods
6557         are now a little simpler.
6558         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
6559         `Bounds'.
6560         * ThemeWin32Classic.cs: Likewise.
6561
6562 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
6563
6564         * Application.cs: Add FilterMessage method and rework our message loop
6565         logic to use it.
6566
6567 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
6568
6569         * Application.cs: Add some methods and stub a few methods that are
6570         pretty much never used.
6571
6572 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
6573
6574         * TreeNode.cs: Add some serialization methods.
6575
6576 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6577
6578         * ListView.cs: In ListViewItemCollection have a 
6579         'is_main_collection' field to not modify ListViewItem.ListView
6580         when using it as ListViewGroup.Items (and not ListView.Items)
6581         and also don't modify selection state (.Net behaviour). 
6582         Instead, set group for items contained in a ListViewGroup.Items collection.
6583         * ListViewItem.cs: Simplify some code in Group setter.
6584         * ListViewGroup.cs: use the new .ctor to pass the current instance
6585         to the ItemsCollection.
6586         * ListViewGroup.cs: Set the ListView property for ListViewGroup
6587         instances when adding/removing. Also make Remove use RemoveAt, which
6588         should perform better.
6589
6590 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
6591
6592         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
6593         that crept into the 1.1 profile.
6594
6595 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
6596
6597         * ToolBarButton.cs: Implement ImageKey.
6598
6599 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
6600
6601         * ToolBar.cs: Implement ScaleControl/ScaleCore.
6602
6603 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6604
6605         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
6606           created, it might have gotten destroyed since we last checked. Fixes
6607           #82405.
6608
6609 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
6610
6611         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
6612         tooltip will hide when mouse is moved off the control.
6613         [Fixes bug #82407]
6614
6615 2007-08-11 Andreia Gaita <avidigal@novell.com>
6616
6617         * WebBrowserBase.cs, WebBrowser.cs: add implementation
6618         using Mono.Mozilla for loading and navigating webcontrol
6619         with xulrunner.
6620         The initial implementation was done on 
6621         /trunk/mozembed/tests/browser , and copied here.
6622
6623 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
6624
6625         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
6626         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
6627
6628 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6629
6630         * DataGridView.cs: Add support for an editing row. Fixes #82226.
6631           RowTemplateFull: throw an exception if a column doesn't have a template.
6632         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
6633           add the row just before it.
6634         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
6635           selected.
6636         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
6637           DataGridView field to be able to reach the grid's editing row.
6638
6639 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
6640
6641         * ToolTip.cs: If the control's handle hasn't been created when it has a
6642         tooltip set on it, don't check to see if we need to show the tooltip.  This
6643         check was causing the control's handle to be created.
6644         [Fixes bug #82399]
6645
6646 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
6647
6648         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
6649                                         1.1             2.0
6650         Handle Not Created      -1              0
6651         Handle Created          0               0
6652         [Fixes bug #82371]
6653
6654 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
6655
6656         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
6657         [Fixes bug #82348]
6658
6659 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
6660
6661         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
6662         * ToolTip.cs: Implement some properties and owner draw.
6663
6664 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6665
6666         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
6667           show them again, since setting visibility causes a paint, causing an
6668           endless loop (instead use a temporary and set it all when it's known if
6669           they should be shown or not). Fixes #79265.
6670
6671 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6672
6673         * DataGridView.cs: Only do a full column/row selection if a header was
6674           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
6675           isn't pressed, deselect everything before selecting something.
6676
6677 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6678
6679         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
6680           behaviour according to bug #81075 - they are returned in the order they
6681           are selected. Fix HitTest to check if the point is within any of the
6682           headers. Allow for row/column selection when in ColumnHeader or
6683           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
6684           the row and column to call when their selected state changes, and
6685           updated selected_[rows|columns] whenever SetSelected* is called.
6686         * DataGridViewBand.cs: Initialize isRow correctly. Call
6687           SetSelected[Row|Column]CoreInternal when the selected state changes, and
6688           add a SelectedInternal to avoid StackOverflows.
6689         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
6690           ReadOnly no matter what.
6691         * DataGridViewSelectedColumnCollection.cs,
6692           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
6693           the items in reverse order (just as MS does...)
6694
6695 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
6696
6697         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
6698         itself, not part of a mnemonic.  [Fixes bug #82378]
6699
6700 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6701
6702         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
6703         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
6704           the DGV, the column, the row, or the cell itself is readonly.
6705
6706 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
6707
6708         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
6709         OSVersion.Platform.
6710         * FileDialog.cs: Same.
6711         * TextRendered.cs: Same.
6712         * FolderBrowserDialog.cs: Same.
6713         * TextBoxBase.cs: Same.
6714         * Application.cs: Same.
6715         * Cursors.cs: Same.
6716         * ThemeClearLooks.cs: Same.
6717
6718 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
6719
6720         * XplatUI.cs: Added RunningOnUnix property to be used by controls
6721         instead of duplicating these checks everywhere.
6722         * FileDialog.cs: Use case-insensitive comparison for populating the
6723         DirComboBox when not running on unix. Fixes bug #82385.
6724         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
6725         "Look in".
6726
6727 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6728
6729         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
6730           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
6731           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
6732           cell and column selection with ctrl and shift pressed. Call the correct
6733           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
6734           the corresponding virtual method (PaintBackground to paint background,
6735           etc).
6736         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
6737           either the column, row or the cell itself is selected.
6738         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
6739           OnRowsAdded.
6740         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
6741           here. When the row is selected, don't select all cells. Each cell now
6742           queries the row to see if the row is selected.
6743
6744 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6745
6746         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
6747           SelectionMode.
6748
6749 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6750
6751         * ListView.cs: In ListViewItemsCollection check that owner is
6752         not null before trying to access it (this happens quite often
6753         using Groups). Also don't duplicate calls by calling CollectionChanged
6754         method.
6755
6756 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
6757
6758         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
6759         when we are dismissed to clear keyboard mnemonics.
6760         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
6761         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
6762         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
6763         was activated by keyboard or the OS tells us to always draw them.
6764         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
6765         [Fixes bugs #82376, #82377]
6766
6767 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
6768
6769         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
6770         shot at having it because Alt was pressed.
6771         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
6772         the first real menu item.
6773         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
6774         a mnemonic if Text is null.
6775         [Fixes bug #82374]
6776
6777 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6778
6779         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
6780         search do check whether the item is already contained in the
6781         collection or not; instead check if the owner of the item is the same
6782         as ours. Also, remove a redundant check in the same method. 
6783
6784 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
6785
6786         * Control.cs: Allow the clip region to be set back to null.
6787         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
6788         [Fixes button still showing up in bug #82370 when Show Through is turned off]
6789
6790 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6791
6792         * GridEntry.cs: Add a null check.
6793         * PropertyGrid.cs: When checking for existing grid entries, ignore category
6794           entries. Fixes #82297.
6795
6796 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
6797
6798         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
6799         for 2.0.
6800
6801 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
6802
6803         * ListBox.cs: Implement ScaleControl.
6804
6805 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6806
6807         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
6808           have a menu strip.
6809         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
6810           parent has a menu strip. Fixes #81689.
6811
6812 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6813
6814         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
6815           moments, so apply some fuzzy logic to determine if the mouse is still
6816           inside a control or not. Fixes #82288 (for the third time).
6817
6818 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6819
6820         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
6821           Don't create the child if it has been disposed already (may happen if
6822           the user closes the form the Load event).
6823
6824 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6825
6826         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
6827           #82288.
6828
6829 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6830
6831         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
6832           might call us after we've been destroyed, in which case our own private
6833           parent field is null. Fixes #82326.
6834
6835 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
6836
6837         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
6838         check for setting the dropdown's owner.
6839
6840 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
6841
6842         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
6843         before removing system menu items.
6844
6845 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
6846
6847         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
6848         folding.
6849         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
6850         folding.
6851         * ToolStrip.cs: Add a null check to mnemonics.
6852         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
6853         no ConnectedArea.
6854         [Fixes most of bug #81689]
6855
6856 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6857
6858         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
6859
6860 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6861
6862         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
6863
6864 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6865
6866         * DataGridViewCell.cs: EditType: returns
6867           DataGridViewTextBoxEditingControl always.
6868
6869 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
6870
6871         * TextRenderer.cs: Remove the LineLimit string format flag from the
6872         DrawString fallback method so that things like buttons that aren't
6873         tall enough to draw a full line will still draw part of the text.
6874         [Fixes part of bug #82272]
6875
6876 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6877
6878         * DataGridView.cs: Implemented AutoResizeColumn(s).
6879         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
6880           according to the Alignment.
6881         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
6882           Implement alignment and padding when painting.
6883         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
6884           exists.
6885         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
6886           way.
6887         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
6888           a column is added.
6889
6890 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
6891
6892         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
6893         which is internal.
6894
6895 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
6896
6897         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
6898         hide GetPreferredSize from public API.
6899         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
6900         * ToolStripItem.cs: Stub out drag and drop methods and events.
6901         * ToolStripManager.cs: Stub out Save/LoadSettings.
6902         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
6903         * ToolStripPanel.cs: Fix corcompare error.
6904         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
6905         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
6906         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
6907
6908 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
6909
6910         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
6911         bounds height instead of PreferredHeight.  Puts things back the way 
6912         they were for height while still fixing the width.  Fixes broken unit
6913         tests.
6914
6915 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6916
6917         * Binding.cs: Implement 2.0 constructors and add a null check.
6918
6919 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6920
6921         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
6922           and fix row index (off by one).
6923
6924 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6925
6926         * PropertyGridView.cs: Remove debug output.
6927
6928 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6929
6930         * Control.cs: We need to reset the is_created flags when the handle is
6931           destroyed. Fixes #82187.
6932         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
6933           client coordinates if the window doesn't have a parent.
6934           Win32GetParent returns the parent or the owner, and for top-level
6935           windows with no parent (but with an owner) we were calculating the
6936           location from the location of the owner.
6937         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
6938           form has been disposed.
6939         * MdiClient.cs: Add a null-check.
6940
6941 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
6942
6943         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
6944         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
6945         so we can provide an implementation that returns the current width
6946         and preferred height.  Allows anchor = right to work with TextBox 2.0.
6947         [Fixes bug #82233]
6948
6949 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6950
6951         * ListView.cs: Add support for navigating items in Groups mode, by
6952         creating a big matrix containing all rows and cols of all groups. When
6953         are in other mode than Details, pressing Up should have a similar
6954         behaviour as that one of Down (moving to the next available column if
6955         current one doesn't have an item in the requested row). Also, don't
6956         proceed to use groups if ShowGroups is false.
6957         * ListViewGroup.cs: Add an internal int field to store the starting
6958         row of the group (used by the big matrix used for navigating the
6959         ListView).
6960         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
6961         false.
6962
6963 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
6964
6965         * ToolStripDropDown.cs: When we do Show, start with the 
6966         DefaultDropDownDirection, but if our popup menu is going to off-screen,
6967         modify the direction to keep it on screen.  [Fixes bug #82210]
6968
6969 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
6970
6971         * FileDialog.cs: Accept any FilterIndex value, and store it
6972         unmodified. When FilterIndex is less than 1, or greater than number
6973         of filters, then default to first filter. Only add filter extension to
6974         file if user did not specifiy an extension. When type of dialog is
6975         OpenFileDialog and DefaultExt is set, then only use filter extension
6976         if: CheckFileExists is true and no file wih the default extension
6977         exists, or CheckFileExists is false, and user specified file does not
6978         exist. When CheckFileExists is true, then add first extension of 
6979         selected filter that matches existing file. Perform checks for
6980         existing file, overwrite and create after extension has been added to
6981         file name. When CheckFileExists is true and type is SaveFileDialog,
6982         then only consider first filter extension if DefaultExt is set.
6983         When CheckFileExists is true, then ignore DefaultExt if file with that
6984         extension does not exist. Also perform check for existing file when
6985         type is SaveFileDialog. Changed some field to constants.
6986
6987 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6988
6989         * ListView.cs: Take into account the region used by header
6990         control when doing the vertical scroll (this way we invalidate
6991         the precise area, and don't get any dirty one).
6992
6993 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
6994
6995         * FileDialog.cs: Check for valid filterIndex on button open/save. 
6996         Fixes #82184.
6997
6998 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6999
7000         * ListView.cs: Update some layout calculations in details view
7001         and clean the code in a pair of assignations.
7002
7003 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
7004
7005         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
7006         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
7007         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
7008         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
7009
7010 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
7011
7012         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
7013         performance of thread-safe Graphic methods.  (Thanks rolf!)
7014
7015 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7016
7017         * ListView.cs: When doing the layout calculations, don't calculate
7018         scroll bars before handle is created. This is unnecessary and also
7019         calculating them before handle creation item causes a number of random
7020         bugs (which begin to appear after Chris' big patch for handle creation
7021         fixes). 
7022
7023 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
7024
7025         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
7026         for things that don't have a Graphics object.  Currently, things just use
7027         the static Hwnd.bmp_g which is not thread safe.
7028
7029 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7030
7031         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
7032           dialog. Fixes #82187.
7033
7034 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7035
7036         * DataGridViewElement.cs: Initialize state.
7037         * DataGridView.cs: Forward a few Mouse events to cells. Add
7038           GetRowInternal and GetCellInternal that doesn't unshare rows.
7039           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
7040           don't use the index, but look it up. Add
7041           DataGridViewControlCollection.RemoveInternal to remove controls
7042           that Remove won't remove (scrollbars, edit control).
7043         * DataGridViewColumn.cs: Initialize State correctly.
7044         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
7045           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
7046           implementing this.
7047         * DataGridViewRowCollection.cs: Implemented shared rows.
7048         * DataGridViewRow.cs: Throw exceptions as MS do.
7049         * DataGridViewCell.cs: A few properties are implemented by a
7050           Get<Property> method, so move implementation there and remove the
7051           NIEX in the method. Add a bunch of OnXInternal that DataGridView
7052           calls when necessary.
7053         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
7054           complicates matters.
7055         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
7056           unshare any rows.
7057
7058 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
7059
7060         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
7061         the children controls.  Instead, we will just set up the proper docking for the
7062         children controls so we don't have to worry about it.  [Fixes bug #82188]
7063
7064 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
7065
7066         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
7067         canceling and correct Before/AfterLabelEdit properties as layed out in bug
7068         81847.  [Fixes bug #81847]
7069
7070 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
7071
7072         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
7073         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
7074         an explicit size based on the design-time size of the text.  Since our fonts
7075         may not match this explicit size, we tend to cut off the ends of people's labels.
7076
7077 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
7078
7079         * Menu.cs: Add some missing methods to MenuItemCollection.
7080
7081 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7082
7083         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
7084         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
7085         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
7086         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
7087         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
7088         * DataGridViewElement.cs: State defaults to Visible.
7089         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
7090         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
7091
7092 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7093
7094         * Control.cs: Minor 1.1 corcompare fix.
7095
7096 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
7097
7098         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
7099         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
7100
7101 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7102
7103         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
7104           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
7105           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
7106           DataGridViewSelectedColumnCollection.cs,
7107           DataGridViewSelectedRowCollection.cs: Corcompare work.
7108
7109 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
7110
7111         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
7112         it is autoset by VS2005 designer and the effect is barely noticeable.
7113
7114 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
7115
7116         * TreeView.cs: Implement HitTest.
7117
7118 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7119
7120         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
7121           manually adding and removing the control from the Controls
7122           collecftion.
7123         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
7124           EditingControlInternal property that tracks the editing control.
7125           Always keeping the scrollbars in the Controls collection, as MS
7126           testing confirms is the right behaviour.
7127
7128 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7129
7130         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
7131           according to MSDN and new test.
7132
7133 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
7134
7135         * TreeNode.cs: Implement ToolTipText.
7136         * TreeView.cs: Implement tooltips, NodeMouse* events.
7137
7138 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
7139
7140         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
7141
7142 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
7143
7144         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
7145         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
7146
7147 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
7148
7149         * Control.cs, Form.cs, ContainerControl.cs,
7150         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
7151         for misc properties.
7152
7153 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
7154
7155         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
7156         * TreeView.cs: Implement StateImageList.
7157
7158 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7159
7160         * Form.cs: Don't check if the current form is the active form before
7161           activating it. Fixes #81904.
7162
7163 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7164
7165         * Form.cs: Don't check if the current form is the active form before
7166           activating it. Fixes #81904.
7167
7168 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7169
7170         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
7171
7172 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7173
7174         * Form.cs: Don't try to position the form after loading if the form was
7175           disposed. Fixes #81969.
7176
7177 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7178
7179         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
7180           properties. Had to change ToolBar into ToolStrip, which required a
7181           few #ifs.
7182
7183 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7184
7185         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
7186           resized, fixes part of #79829 (vertical lines in toolbar).
7187           PropertyGrid: Refactored Populate* to something that's easier to
7188           follow at least for me, as well as splitting it up into several new
7189           methods, required to update only subitems when something has
7190           changed by a popup editor or listbox. Don't use events to check
7191           when any values are changed, since the events are unreliable (we're
7192           changing the objects the events are registered with, and if the
7193           event handling requires the objects to be immutable (objects stored
7194           in hashtables for instance), the events will never be raised).
7195         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
7196           everytime we change a value, since events are unreliable.
7197           DropDownButtonClicked: For the same reason don't compare objects to
7198           check if it has changed or not, it would require all objects to
7199           derive Equals. Fix dialog location on windows, MS is doing weird
7200           things when creating parented forms.
7201         * GridEntry.cs: Add a SelectedObject setter.
7202
7203 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
7204
7205         * TreeNode.cs: Add some corcompare attributes.
7206         * TreeNodeCollection.cs: Implement 2.0 stuffs.
7207         * TreeView.cs: Implement some 2.0 stuffs.
7208
7209 2007-07-18  Andreia Gaita  <avidigal@novell.com>
7210
7211         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
7212         for moma.
7213
7214 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
7215
7216         * ListBox.cs: Implement custom tab offsets.
7217
7218 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7219
7220         * ToolStripContentPanel.cs: Support System renderer.
7221         * ToolStripControlHost.cs: Set RightToLeft to default to No.
7222
7223 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7224
7225         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
7226
7227 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7228
7229         * CheckBox.cs: Chain TextAlign to base implementation instead of
7230         maintaining another one.
7231
7232 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7233
7234         * ButtonBase.cs: Fix an incorrect string constant.
7235
7236 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7237
7238         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
7239         of creating one for measuring strings.
7240
7241 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7242
7243         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
7244         Implement MaxItemSize.
7245
7246 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
7247
7248         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
7249         for DeviceContext.  Instead, use the static one available in Hwnd.
7250         Informal tests show this saves about 500k on formtest.exe.
7251
7252 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
7253
7254         * ContainerControl.cs: Implement 2.0 AutoScaling.
7255
7256 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7257
7258         * ComboBox.cs: Work around bug #82120 (bug in mcs).
7259
7260 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
7261
7262         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
7263         Darken the focus color.
7264
7265 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
7266
7267         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
7268         for the checkbox.
7269         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
7270         X, Y instead of a rect for drawing text.
7271         - For ControlPaint.DrawCheckBox, center the check a little better when the
7272         checkbox is odd width.  When drawing a flat checkbox, use a white background
7273         when state != inactive.
7274         [Fixes bugs #82097, 82100]
7275
7276 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
7277
7278         * ListControl.cs: When changing CurrencyManager, disconnect event
7279         handlers from previous one. Fixes bug #81771. Code formatting.
7280
7281 2007-07-15  Andreia Gaita <avidigal@novell.com>
7282
7283         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
7284         full preview invalidation from layout invalidation, and only invalidate
7285         the layout when setting zoom or other properties. Invalidation should
7286         always be done even when resetting properties with the same values as
7287         what is there. Fixes #81744 and #79830.
7288
7289 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7290
7291         * ListView.cs: Implement initial support for Groups. Split some of the
7292         LayoutIcons code to render a partial list of the items (needed by
7293         items contained in ListViewGroup instances). Let the
7294         ListViewItemsCollection.ListView property be modifiable (needed when
7295         using Groups, too).
7296         * ListViewGroup.cs: Use a Bounds property rather than a Location
7297         one. Also invalidate the bounds when they get changed.
7298         * ThemeWin32Classic.cs: When drawing items, also draw the group header
7299         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
7300         method as well.
7301
7302 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7303
7304         * ListView.cs: When space gets pressed and CheckBoxes is true, 
7305         don't invoke the Begin and EndUpdate methods. We are generating 
7306         a redraw of the entire control without need to do so.
7307
7308 2007-07-13  William Holmes <billholmes54@gmail.com> 
7309
7310         * Control.cs: Changing logic in FindFlatForward and 
7311           FindFlatBackward to handle multiple Controls with 
7312           the same TabIndex.  
7313           This fixes bug 81687.
7314
7315 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
7316
7317         * OSFeature.cs: Enable IsPresent.
7318
7319 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7320
7321         * Control.cs: Don't do anything in WmShowWindow if the control has been
7322           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
7323           control is created, put on a form, the control is disposed (the
7324           form is never shown), and then we get a MapNotify, triggering a
7325           WM_SHOWWINDOW.
7326         * Form.cs: Exclude the current form when sending Deactivate to all
7327           MdiChildren.
7328         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
7329           there was a race condition because assigning the handle raises
7330           events, we can get more messages, therefore trying to assign the
7331           handle again, which would fail if any of those event handlers
7332           closed/disposed the control.
7333
7334 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7335
7336         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
7337
7338 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
7339
7340         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
7341         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
7342
7343 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7344
7345         * DateTimePicker.cs: If there's no part format specifier, return an
7346           empty string.
7347
7348 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
7349
7350         * FlatButtonAppearance.cs: Throw NotSupportedException for a
7351         Transparent BorderColor.
7352
7353 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7354
7355         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
7356           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
7357           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
7358           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
7359           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
7360           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
7361           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
7362           Remove warnings.
7363         * X11Structs.cs: Remove warnings, add ToString implementations.
7364
7365 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7366
7367         * XplatUIX11.cs: Translate min/max size according to the actual min/max
7368           size, and not the current size. Fixes #81798.
7369
7370 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7371
7372         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
7373           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
7374           to the control yet).
7375
7376 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7377
7378         * PropertyGridTextBox.cs: Add a method that sends any forwarded
7379           mousedowns to the contained textbox.
7380         * X11Structs.cs: More ToString implementation.
7381         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
7382           #81791.
7383
7384 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7385
7386         * PropertyGridView.cs: Add a null-check, fixes a few tests.
7387
7388 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
7389
7390         * TableLayoutPanelCellPosition.cs: TypeConverter.
7391
7392 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7393
7394         [ Fixes #79761]
7395         
7396         * PropertyGridTextBox.cs: Propagate any color changes to all contained
7397           controls.
7398         * PropertyGridView.cs: A few color fixes.
7399
7400 2007-07-10  Jackson Harper  <jackson@ximian.com>
7401
7402         * TextControl.cs: Remove some old unused text formatting stuff.
7403
7404 2007-07-10  Jackson Harper  <jackson@ximian.com>
7405
7406         * TreeView.cs: Update full row select invalidation to match the
7407         newer DrawSelection... method.
7408         - Make sure to invalidate the entire width when selecting a new
7409         node, if we have full row selection enabled.
7410
7411 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7412
7413         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
7414           display of properties again.
7415
7416 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
7417
7418         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
7419         to existing collections.
7420
7421 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
7422
7423         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
7424         that changed between 1.1 and 2.0.
7425
7426 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
7427
7428         * PowerStatus.cs: Added.  This is just a data class, it is filled
7429         in by SystemInformation.
7430
7431 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
7432
7433         * Message.cs: Add op_Equality and op_Inequality.
7434
7435 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
7436
7437         * MenuStrip.cs: Finish corcompare work.
7438
7439 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
7440
7441         * LinkArea.cs: Add op_Equality and op_Inequality.
7442
7443 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
7444
7445         * Application.cs: Add MessageLoopCallback delegate.
7446
7447 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
7448
7449         * ListBox.cs: First set of 2.0 stuffs.
7450
7451 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
7452
7453         * Control.cs: Make an internal Height property we can override
7454         without messing up the public API.
7455         * ListBox.cs: Override HeightInternal to always return the size
7456         the user set.  [Fixes bug #80466]
7457
7458 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
7459
7460         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
7461         paint cell borders if we haven't calculated where they go yet.
7462         [Fixes bugs #82040 and #82041]
7463
7464 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7465
7466         * ListView.cs: In Details view, set the location of item_control
7467         in the (0,0) position (and the header_control is thus on the
7468         item_control). This way the Bounds of the Items are relative to the
7469         ListView control (before this, they had a Bounds value without the
7470         header_control offset, which wasn't matching .Net). Fixes #82004.
7471
7472 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7473
7474         * ListControl.cs: When DataSource is set to null, pass an empty
7475         array of object to SetItemsCore. This is done to clean the items
7476         in the ListContol children. Fixes #81788.
7477
7478 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
7479
7480         * ListControl.cs: Add 2.0 stuffs.
7481
7482 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
7483
7484         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
7485         Refresh is overkill for just about every repaint request.
7486
7487 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
7488
7489         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
7490         so remove my custom Get method and fix the property getter.
7491
7492 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
7493
7494         * Label.cs: DefaultMargin for 2.0.
7495
7496 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
7497
7498         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
7499         reported issue where other controls with mnemonics would steal strokes
7500         from a selected ComboBox.
7501
7502 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
7503
7504         * ScrollOrientation.cs: Make internal for 1.1.
7505         * ScrollEventArgs.cs: Add 2.0 stuffs.
7506
7507 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
7508
7509         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
7510         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
7511         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
7512
7513 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7514
7515         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
7516
7517 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7518
7519         * ListView.cs: Implement the so-incredibly broken 2.0 
7520         VirtualItemsSelectionRangeChanged event.
7521
7522 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7523
7524         * ListView.cs: When enter is pressed and selection is non empty,
7525         an OnItemActivate event must be fired.
7526
7527 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7528
7529         * ListView.cs: Store the FocusedItem information as an
7530         int instead of a ListViewItem (needed by VirtualMode).
7531         Update the calls to SetFocusedItem to pass an index instead of
7532         an item.
7533         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
7534         the Focused state from the owner ListView. 
7535
7536 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7537
7538         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
7539         property. Also, invalidate previous focused item in the mentioned
7540         property (match .Net).
7541
7542 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7543
7544         * ListView.cs: Implement 2.0 FocusedItem property setter.
7545
7546 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7547
7548         * ListView.cs: Implement 2.0 TopItem property setter.
7549
7550 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
7551
7552         * StatusStrip.cs: The default renderer is System.
7553         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
7554         if the user specifies it.
7555         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
7556         if we are ManagerRenderMode.
7557         * ToolStripMenuItem.cs: Calculate our text color better.
7558         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
7559         from Professional to the base class based off working with the System renderer.
7560         * ToolStripSystemRenderer.cs: Added.
7561
7562 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7563
7564         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
7565
7566 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
7567
7568         * ToolTip.cs: Implement 2.0 Tag property.
7569
7570 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7571
7572         * ListView.cs: Implement 2.0 HitTest methods.
7573
7574 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7575
7576         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
7577         item is under the pointer or not (sugar). Also remove the TODO
7578         regarding to the cursor changes in OneClick activation.
7579         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
7580         the subitems use the parent's HotFont if UseItemStyleForSubItems is
7581         true; otherwise don't show the underline style.
7582
7583 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7584
7585         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
7586         the code to retrieve the item at position only one time. Also
7587         change cursor when Activation is ItemActivation.OneClick as well
7588         as invalidate the item if HotTracking is true (to show/hide the
7589         underline style). Add an internal HotItemIndex property to retrieve
7590         the current hot item's index.
7591         * ListViewItem.cs: Add an internal HotFont property to cache the
7592         font used when HotTracking is true and the pointer moves within the
7593         item's borders.
7594         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
7595         HotFont depending on the hot state of the item.
7596
7597 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7598
7599         * ListView.cs: Implement 2.0 HotTracking property.
7600
7601 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
7602
7603         * ToolStripControlHost.cs: If our hosted control never got created,
7604         don't try to dispose it.  [Fixes bug #81909]
7605
7606 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
7607
7608         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
7609
7610 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
7611
7612         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
7613
7614 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7615
7616         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
7617         Details view.
7618         * DrawListViewColumnHeaderEventArgs.cs:
7619         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
7620         using the DrawText () methods.
7621
7622 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
7623
7624         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
7625         background which got erased in my changes yesterday.
7626
7627 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7628
7629         * ListViewItem.cs: Actually set bounds for subitems in Details view
7630         (2.0 feature).
7631         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
7632         can invoke from the owner draw routines if we need it. Also, add
7633         support for Owner draw in Details view.
7634
7635 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
7636
7637         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
7638         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
7639         ShowImageMargin setting, properly align text in a ToolStripLabel
7640         hosted on a ToolStripDropDown.
7641
7642 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
7643
7644         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
7645         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
7646
7647 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7648
7649         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
7650
7651 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
7652
7653         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
7654         location to match ToolStripMenuItems.
7655
7656 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7657
7658         * DrawListViewColumnHeaderEventArgs.cs:
7659         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
7660         column headers in ListView. 
7661
7662 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
7663
7664         * UserControl.cs: Implement AutoSize.
7665
7666 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7667
7668         * DrawListViewItemEventArgs.cs:
7669         * ListView.cs:
7670         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
7671         ListView.
7672
7673 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
7674
7675         * ToolStripDropDownItemAccessibleObject.cs: Added.
7676         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
7677         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
7678         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
7679         ToolStripTextBox.cs: corcompare work.
7680
7681 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
7682
7683         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
7684         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
7685         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
7686                 corcompare.
7687
7688 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
7689
7690         * OSFeature.cs: Add IsPresent.
7691         * PrintPreviewControl.cs: Add RightToLeft.
7692         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
7693         * SplitterPanel.cs: Add AutoSizeMode.
7694
7695 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
7696
7697         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
7698         * MdiClient.cs: Add 2.0 ScaleControl.
7699         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
7700         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
7701
7702 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
7703
7704         * Form.cs: Implement some scaling methods, stub some RTL methods,
7705         corcompare work.
7706
7707 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
7708
7709         * Control.cs: corcompare work.
7710         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
7711
7712 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
7713
7714         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
7715         ControlPaint 2.0 stuffs.
7716
7717 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
7718
7719         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
7720
7721 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
7722
7723         * UpDownBase.cs: Add 2.0 stuffs.
7724
7725 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
7726
7727         * NumericUpDown.cs: Add 2.0 stuffs.
7728
7729 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
7730
7731         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
7732
7733 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
7734
7735         * ErrorProvider.cs: Implement 2.0 stuffs.
7736
7737 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
7738
7739         * DomainUpDown.cs: Implement 2.0 stuffs.
7740
7741 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
7742
7743         * CheckedListBox.cs: Fix RefreshItems signature.
7744
7745 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
7746
7747         * PictureBox.cs: Implement 2.0 stuffs.
7748
7749 2007-06-12  Andreia Gaita  <avidigal@novell.com>
7750         
7751         * TabControl.cs: Check if there are tabpages before checking
7752         the selected index - fix #81802 (font changes raise a ResizeTabs
7753         call on controls.add, which blew up nicely with no tabpages)
7754
7755 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7756
7757         * ListView.cs:
7758         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
7759
7760 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7761
7762         * ListView.cs:
7763         * ListViewItem.cs: In VirtualMode the selection information
7764         resides in the ListView, rather than in the Items. Also, throw
7765         InvalidOperationExceptions when VirtualMode is being used and
7766         CheckedItemCollection is accessed.
7767
7768 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
7769
7770         * ComboBox.cs: Add ScaleControl.
7771
7772 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
7773
7774         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
7775
7776 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
7777
7778         * GroupBox.cs: Add 2.0 stuffs.
7779
7780 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
7781
7782         * Panel.cs: Add autosize properties/event.
7783
7784 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
7785
7786         * Control.cs:
7787         - When we remove a control, remove it from the collection before performing the layout.
7788         - Setup an internal property for explicit_bounds.
7789         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
7790         - Perform a layout when we set a new AutoSizeMode.
7791
7792 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
7793
7794         * ScrollableControl.cs: Add 2.0 stuffs.
7795
7796 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
7797
7798         * ScrollBar.cs: Add 2.0 stuffs.
7799
7800 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
7801
7802         * Splitter.cs: Add 2.0 stuffs.
7803
7804 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
7805
7806         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
7807         to have BindingContext simply use base implementation.
7808
7809 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
7810
7811         * ColumnHeader.cs: corcompare fix.
7812
7813 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
7814
7815         * Button.cs: corcompare fixes.
7816         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
7817
7818 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
7819
7820         * Button.cs: Override GetPreferredSizeCore.
7821         * ButtonBase.cs: PerformLayout after changing properties that can affect
7822         AutoSize.  Simplify some mouse/keyboard code.
7823         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
7824         * MouseEventArgs.cs: Make Location internal for 1.1.
7825         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
7826         * Theme.cs: Add CalculateButtonAutoSize.
7827         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
7828
7829 2007-06-05  Miguel de Icaza  <miguel@novell.com>
7830
7831         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
7832
7833 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7834
7835         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
7836         since we can get different item instances every time we retrieve it.
7837
7838 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7839
7840         * ListView.cs: Work around for #81602, since an unkown an pretty
7841         infrequent condition appears only in some systems (old linux boxes, it
7842         seems).
7843
7844 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
7845
7846         * Button.cs: Completely reformat and a little refactor to bring
7847         this closer to Mono circa 2007.
7848
7849 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
7850
7851         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
7852         to be ButtonBase.Invalidate.
7853
7854 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
7855
7856         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
7857
7858 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
7859
7860         * ButtonBase.cs: Completely reformat and a little refactor to bring
7861         this closer to Mono circa 2007.
7862
7863 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
7864
7865         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
7866         values for autosize. Fixes #80137.
7867
7868 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
7869
7870         * Control.cs: Don't perform layout when AutoSize changes.
7871         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
7872         directly when autosizing, use SetBounds with BoundsSpecified.None.
7873         Fixes unit tests my last commit broke.
7874
7875 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
7876
7877         * Control.cs: Perform layout when AutoSize changes.
7878         * Form.cs: Implement AutoSizing.
7879
7880 2007-06-01  Chris Toshok  <toshok@ximian.com>
7881
7882         * DataGrid.cs: remove the XXX'ed check at the top of
7883         ProcessGridKey.  fixes #80464.
7884
7885 2007-06-01  Chris Toshok  <toshok@ximian.com>
7886
7887         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
7888         adding idempotent (add/remove in Edit()), and also make sure we
7889         don't add it until after we set the text, so it's not tripped in
7890         Edit().  Fixes unit test regression.
7891
7892 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
7893
7894         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
7895         change is user explicit, not when the layout engine moves stuff.  Fixes
7896         anchoring to bottom and right.  [Fixes bug #81790]
7897
7898 2007-06-01  Andreia Gaita  <avidigal@novell.com>
7899
7900         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
7901
7902 2007-06-01  Andreia Gaita  <avidigal@novell.com>
7903
7904         * ContainerControl.cs: 
7905         Fire enter event for common ancestor if it is not a ContainerControl.
7906         Send focus to the active_control and not the 'value', the active 
7907         control might have been changed in one of the events fired.     
7908         Definitely fixes #80159.
7909
7910 2007-06-01  Andreia Gaita  <avidigal@novell.com>
7911
7912         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
7913
7914 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7915
7916         * PropertyGrid.cs: Anchor the help description to the bottom of the
7917           help panel and refactor SelectGridItem into a
7918           SelectGridItemInternal that can be set to null (and update it to
7919           clear the help texts when it is set to null). Set root item to null
7920           when there's no SelectedObject. Fixes #80438.
7921         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
7922           when we're recalculating after a resize (only).
7923
7924 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7925
7926         * ListView.cs: Implement 2.0 RedrawItems method.
7927
7928 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7929
7930         * ListControl.cs: Disconnect PositionChanged and ItemChanged
7931         handlers from previous data manager when DataSource is set to
7932         null. Fixes #81771.
7933
7934 2007-05-31  Jackson Harper  <jackson@ximian.com>
7935
7936         * TextBoxBase.cs: These seem to be the correct values.
7937
7938 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
7939
7940         * FileDialog.cs: When close dialog with ok set filterindex using combobox
7941         value. Fixes #81784.
7942
7943 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
7944
7945         * Control.cs: Implement 2.0 scaling methods.
7946
7947 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7948
7949         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
7950           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
7951           corcompare issues.
7952
7953 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7954
7955         * ProgressBar.cs: Implemented missing 2.0 members.
7956
7957 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7958
7959         * Control.cs: Corcompare issues.
7960         * MessageBox.cs: Implemented missing 2.0 functions.
7961
7962 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7963
7964         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
7965           Implemented more 2.0 members.
7966
7967 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7968
7969         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
7970           null (strange, but it seems to happen when running unit tests).
7971
7972 2007-05-30  Andreia Gaita  <avidigal@novell.com>
7973
7974         * ContainerControl.cs: Set active_control even earlier, before 
7975         firing any events, and undo it if validation returns false.
7976
7977 2007-05-30  Andreia Gaita  <avidigal@novell.com>
7978
7979         * ContainerControl.cs: Raise Validation and Enter/Leave events
7980         even if there is no Form and set active_control earlier, just
7981         before firing Enter events (toshok's patches). Fixes #80647.
7982
7983 2007-05-30  Jackson Harper  <jackson@ximian.com>
7984
7985         * TextControl.cs: Redid the pageup/pagedown a little to simplify
7986         things and fix bug #81311.
7987
7988 2007-05-30  Jackson Harper  <jackson@ximian.com>
7989
7990         * X11Dnd.cs: Now that we have our own event loop, we need to
7991         cancel when we get a mouseup but it won't be accepted.
7992
7993 2007-05-30  Chris Toshok  <toshok@ximian.com>
7994
7995         * DataGrid.cs (set_CurrentCell): guard against negative
7996         column/row.
7997
7998         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
7999         array index syntax instead of looping over the property names.
8000
8001         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
8002         and set IsInEditOrNavigateMode to false there.
8003
8004 2007-05-30  Jackson Harper  <jackson@ximian.com>
8005
8006         * TreeView.cs: Make sure we don't get a bad visible order when
8007         setting to the top node.  Fixes some misc crashing in
8008         ControlInspector.
8009
8010 2007-05-30  Andreia Gaita  <avidigal@novell.com>
8011
8012         * UserControl.cs: Add 2.0 AutoSizeMode
8013
8014 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
8015
8016         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
8017
8018 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
8019
8020         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
8021         lines. Fixes #80285. 
8022
8023 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
8024
8025         * DataGridColumnStyle.cs: Add char trimming column header text format. 
8026
8027 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
8028
8029         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
8030         Fixes #80147.
8031
8032 2007-05-29  Jackson Harper  <jackson@ximian.com>
8033
8034         * TreeNode.cs: Fix off by one on calculating whether or not a node
8035         is visible.
8036
8037 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
8038
8039         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
8040         * ScrollableControl.cs: Force an UpdateDistances when we move the
8041         scrollbars.
8042         [Fixes bug #80605]
8043
8044 2007-05-29  Andreia Gaita  <avidigal@novell.com>
8045
8046         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
8047         update the page setup screen.
8048
8049 2007-05-29  Andreia Gaita  <avidigal@novell.com>
8050
8051         * PageSetupDialog.cs: Fix landscape mode.
8052
8053 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8054
8055         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
8056         IconSizeHorizontalSpacing.
8057
8058 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8059
8060         * ListView.cs: The declaration of prev_tooltip_item should be inside
8061         a NET_2_0 conditional (avoid a warning).
8062
8063 2007-05-28  Andreia Gaita  <avidigal@novell.com>
8064
8065         * PageSetupDialog.cs: Implement PrintPreview control to display
8066         the preview thumbnail. Change unit conversion to use 
8067         PrinterUnitConvert methods.
8068         
8069         Note: there is a huge bug in ms.net where the default margins are 
8070         interpreted as centimeters (?), when in fact they are set in inches. When 
8071         loading the page setup dialog initially (ms.net), the default margins 
8072         are set to 1 inch, and the dialog shows them with value 10, when in fact 
8073         it should be 25 (properly converted). Our dialog doesn't have this bug.
8074         
8075         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
8076         RectangleF.
8077         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
8078
8079 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8080
8081         * ListView.cs:
8082         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
8083         items.
8084
8085 2007-05-28  Andreia Gaita  <avidigal@novell.com>
8086
8087         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
8088         an IntPtr on csc (it builds fine on mcs, could it be a compiler
8089         bug?), convert the ptr to Int32 first.
8090
8091 2007-05-28  Jackson Harper  <jackson@ximian.com>
8092
8093         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
8094         recieved, we will exit the dnd tracking loop.
8095
8096 2007-05-28  Jackson Harper  <jackson@ximian.com>
8097
8098         * X11Dnd.cs: Keep tracking until the xdnd finished event is
8099         recieved. TODO: I should probably stick a timer on the dropped
8100         event, and finish the drag if the XDND Finished event never shows
8101         (because some apps don't seem to send it).
8102
8103 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
8104
8105         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
8106         #81733.
8107
8108 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8109
8110         * MonthCalendar.cs: Only mark the keypresses we actually handle as
8111           handled.
8112
8113 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8114
8115         * MonthCalendar.cs: Set the size after initializing all the relevant
8116           variables. Fixes #81742.
8117
8118 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8119
8120         * KeyEventArgs.cs: Fix typo.
8121
8122 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
8123
8124         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
8125         to match MS. Fixed MinDate to only accept value less than or equal
8126         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
8127         Removed TODO's that are now verified by unit tests.
8128
8129 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
8130
8131         * TreeNodeCollection.cs: Minor corrections to exceptions to match
8132         MS.
8133
8134 2007-05-25  Jackson Harper  <jackson@ximian.com>
8135
8136         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
8137         it's own message loop.
8138         * XplatUIX11.cs: Remove some of the dnd hooks
8139
8140 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
8141
8142         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
8143         instead of MinimizedWindowSize.
8144
8145 2007-05-25  Jackson Harper  <jackson@ximian.com>
8146
8147         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
8148
8149 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8150
8151         * KeyEventArgs.cs: Added SuppressKeyPress.
8152         * Control.cs: Added support for SuppressKeyPress.
8153
8154 2007-05-24  Andreia Gaita  <avidigal@novell.com>
8155
8156         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
8157         problems with PieChart. suppress_validation should not be a counter,
8158         if there are several BeginInit calls, the first EndInit will 
8159         activate validation. Fix exceptions thrown by set_Value.
8160         * UpDownBase.cs: ValidateText only if it's the user editing it.
8161
8162 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8163
8164         * ListControl.cs: FilterItemOnProperty should return the filtered
8165         item proeprty even if DataSource is null. The same applies for
8166         GetItemText. Fixes #80427.
8167
8168 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
8169
8170         * Control.cs: If a control doesn't have a parent when it's Dock is
8171         set, but it has children, it needs to do a layout.  Fixes some nested
8172         controls issues.  [Fixes bug #81199]
8173
8174 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8175
8176         * ComboBox.cs: If there are few items in the drop down list, make it
8177           the exact size the items need, no bigger. Fixes #81612.
8178
8179 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
8180
8181         * Application.cs: When we have captured the keyboard for a menu,
8182         check for mouse down events in case we need to close the menu.
8183         * Control.cs, Form.cs: Remove mouse down checks for menus.
8184
8185 2007-05-24  Jackson Harper  <jackson@ximian.com>
8186
8187         * TextControl.cs: Handle tabs in non multiline mode a little
8188         differently.
8189
8190 2007-05-24  Jackson Harper  <jackson@ximian.com>
8191
8192         * TextControl.cs: We need to manually break apart tabbed text and
8193         move the tabs, since the system.drawing tabbing mechanism relies
8194         on tab stops.
8195         * TextBoxBase.cs: Move the caret properly when the user enters a
8196         tab.
8197
8198 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
8199
8200         * ContainerControl.cs: Don't check CanSelect before calling
8201         ProcessMnemonic.
8202         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
8203         release a KeyboardActive on click if it's not ours.
8204
8205 2007-05-23  Andreia Gaita  <avidigal@novell.com>
8206
8207         * ColumnHeader.cs: Add TypeConverter
8208
8209 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8210
8211         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
8212
8213 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8214
8215         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
8216
8217 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8218
8219         * LinkLabel.cs: Implement public Padding property.
8220
8221 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8222
8223         * LinkLabel.cs: Implement public FlatStyle.
8224
8225 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
8226
8227         * Control.cs: Apply patch from George to call parent.PerformLayout
8228         when Visible is changed.  [Fixes bugs #81118, 81718]
8229
8230 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8231
8232         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
8233
8234 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8235
8236         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
8237
8238 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8239
8240         * ContextMenu.cs: Implement Collapse.
8241
8242 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
8243
8244         * ToolBarButton.cs: Implement Name.
8245
8246 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
8247
8248         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
8249         use current_item, it prevents some NRE. Fixes #81675.  
8250
8251 2007-05-22  Andreia Gaita  <avidigal@novell.com>
8252
8253         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
8254         without updating the text.
8255
8256 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
8257
8258         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
8259         without calling DeleteObject.  [Should fix bug #81709]
8260
8261 2007-05-22  Jackson Harper  <jackson@ximian.com>
8262
8263         * RichTextBox.cs: Set the line endings correctly, when flushing
8264         RTF text.
8265
8266 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
8267
8268         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
8269          {Width=0,Height=0}.
8270
8271 2007-05-22  Jackson Harper  <jackson@ximian.com>
8272
8273         * TreeView.cs: Setting top with a null node should set to the very
8274         top.
8275
8276 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8277
8278         * Form.cs: ShowDialog: destroy the handle when message loop is
8279           finished, matches MS behaviour. Refactor parts of WmClose into
8280           RaiseCloseEvents, that only raises events if they haven't already
8281           been raised. Fixes #81688 and #81521.
8282         * Application.cs: Don't call close on the form when exiting a modal
8283           loop, it will raise all the (Form)Closed/Closing events again if
8284           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
8285           which doesn'r raise any events it they have been raised before.
8286
8287 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
8288
8289         * Control.cs: Add OnPrint.
8290         * ToolStrip.cs: Add GetChildAtPoint.
8291         * ToolStripContainer.cs: Add OnRightToLeftChanged.
8292         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
8293
8294 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
8295
8296         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
8297
8298 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8299
8300         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
8301           isn't visible anymore. Fixes #81651.
8302
8303 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8304
8305         * Control.cs: WmShowWindow: Update children's z-order after setting
8306           their parent. SetParent may show the window, thereby corrupting
8307           z-order, since the window will be shown on top.
8308         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
8309           multiple (and redundant) WM_SHOWWINDOW messages.
8310         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
8311           event has already been raised.
8312         * Form.cs: Change is_changing_visible_state to a counter, since
8313           SetVisibleCore can be called recursively. CreateHandle: when
8314           creating mdi children, send (De)Activated events.
8315         * MdiClient.cs: Update use of is_changing_visible_state.
8316         * Application.cs: OnThreadException: Surround exception handling with
8317           try/finally to ensure we always reset the error-handling state
8318           before leaving.
8319
8320 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8321
8322         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
8323           (#81704).
8324
8325 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8326
8327         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
8328         SmallIcon views, now that we have a standarized horizontal spacing.
8329
8330         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
8331         4, just like the other views (Match .Net).
8332
8333 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
8334
8335         * Control.cs: Delay calculating anchor distances until we actually layout.
8336         Always query the WM for the actual size and location it put us at instead of
8337         only when we send negative values.
8338         [Fixes bugs #81694, 81695]
8339
8340 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8341
8342         * Application.cs: Avoid a possible stack overflow when trying to exit
8343           the application.
8344
8345 2007-05-19  Marek Safar  <marek.safar@gmail.com>
8346
8347         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
8348         enum value.
8349
8350 2007-05-19  Andreia Gaita  <avidigal@novell.com>
8351
8352         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
8353         * NumericUpDownAcceleration.cs, 
8354           NumericUpDownAccelerationCollection.cs: Added 2.0
8355           implementation.
8356
8357 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
8358
8359         * RichTextBox.cs: Recalculate the document after the ScrollBars
8360         property is changed. Fixes bug #81681.
8361
8362 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
8363
8364         * DataObject.cs: Implement 2.0 methods.
8365
8366 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8367
8368         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
8369         in the center of the checkbox, not in the left-top corner. 
8370         Fixes #80037.
8371
8372 2007-05-18  Jackson Harper  <jackson@ximian.com>
8373
8374         * RichTextBox.cs: Recalculate the document after the scrollbars
8375         property is changed.
8376         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
8377         81486.
8378
8379 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8380
8381         * CreateParams.cs: Make HasWindowManager marginally faster.
8382         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
8383           into Hwnd so that other drivers can use it as well.
8384         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
8385           the default location from Hwnd. Fixes MDI client windows always
8386           showing up at (0,0) in Windows (Win32 won't set the default
8387           location since the window styles aren't correct).
8388
8389 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
8390
8391         * TreeView.cs: Modified DoubleBuffered to just use the base
8392         implementation.
8393
8394 2007-05-18  Jackson Harper  <jackson@ximian.com>
8395
8396         * TreeView.cs: Set the top node to the last child node when
8397         expanding all
8398         - When we get focus, if there is no selected node, use the top
8399         node.
8400
8401 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
8402
8403         * KeysConverter.cs: Add CanConvertTo.
8404         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
8405         * LinkConverter.cs: Added.
8406
8407 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
8408
8409         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
8410         it prevents error when file dont have write access. Fixes #81669 and #81667.  
8411
8412 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
8413
8414         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
8415         button text. Fixes #79640.  
8416
8417 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
8418
8419         * Control.cs: According to MSDN controls created in the designer theres 
8420         keyboard accelerators visible by default. So included check for design
8421         in ShowKeyboardCuesInternal.  
8422
8423 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
8424
8425         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
8426         text. Fixes #81621.  
8427
8428 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
8429
8430         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
8431         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
8432
8433 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
8434
8435         * Control.cs: Finish implementation of UI State using WmChangeUIState
8436         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
8437         in some controls to check for show_keyboard_cues to draw accell keys "_".  
8438
8439 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8440
8441         * ListBox.cs: When calculating the horizontal scrollbar
8442         in single column mode, don't use values less than 0 for
8443         Maximum. Fixes #81474.
8444
8445 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8446
8447         * ListBox.cs: Throw the some missing exceptions in
8448         ListBox.ObjectCollection methods.
8449
8450 2007-05-17  Jackson Harper  <jackson@ximian.com>
8451
8452         * TextBoxBase.cs: Recalculate the document when the word wrap
8453         value has changed. This fixes 81488.
8454
8455 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
8456
8457         * Clipboard.cs: Implement missing GetText overload.
8458
8459 2007-05-17  Chris Toshok  <toshok@ximian.com>
8460
8461         * Control.cs (CheckDataBindings): remove the binding_context arg
8462         to binding.Check.
8463
8464         * CurrencyManager.cs (OnItemChanged): fix this now that
8465         BindingManagerBase is fixed. also remove the comment telling where
8466         the fix should go.  We set transfering_data to true/false around
8467         the call to PushData to keep UpdateIsBinding from being called.
8468         (ListChangedHandler): remove the extra OnMetaDataChanged call for
8469         PropertyDescriptorAdded in the 1.1 case.  The extra call is
8470         actually generated by System.Data generating 2 metadata changed
8471         events of its own per column add.  The fix should go there.  Add a
8472         comment to that affect in our test's Assert.Ignore.
8473
8474         * BindingManagerBase.cs: Rework PullData and PushData slightly.
8475         we keep a boolean flag (transfering_data) that keeps us from
8476         calling UpdateIsBinding multiple times if we re-enter either of
8477         them.
8478
8479         * ControlBindingsCollection.cs (AddCore): remove the
8480         binding_context arg to binding.Check.
8481
8482         * Binding.cs (IsBinding): don't check if we're binding here, just
8483         return our cached value.  we update it in UpdateIsBinding.
8484         (Check): don't take the binding_context arg, we'll just use our
8485         control's.  Also, for some reason MS doesn't use the data member
8486         field when getting the bindingmanager for this binding.  it just
8487         uses the datasource.  Make this method callable multiple times,
8488         and only do the is_null_desc stuff if manager.Position != -1 (so
8489         we don't get an exception accessing manager.Current).
8490         (UpdateIsBinding): move the code from IsBinding here.
8491         (PositionChangedHandler): call Check here to we can initialize
8492         things that require a non- -1 position.
8493
8494 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
8495
8496         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
8497         control.
8498
8499 2007-05-17  Andreia Gaita  <avidigal@novell.com>
8500
8501         * TabControl.cs: Add 2.0 methods and events, including
8502         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
8503         * TabPage.cs: Add 2.0 methods
8504
8505 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
8506
8507         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
8508         keyboard_cues is properly handled by message method.  
8509
8510 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
8511
8512         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
8513
8514 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
8515
8516         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
8517
8518 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
8519
8520         * Control.cs: 
8521         - WmUpdateUIState added to handle state changes, it make call to
8522         OnChangeUICues event.
8523         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
8524         SystemInformation.
8525
8526 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
8527
8528         * ImageKeyConverter.cs: Added.
8529         * TreeViewImageKeyConverter.cs: Added.
8530
8531 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8532         
8533         * ToolTips.cs: Update Text if SetToolTip is called for a control
8534         already showing the tooltip, as well as restarting its timer; show
8535         tooltip if we are inside the control bounds by the time of calling
8536         SetToolTip. Inside ShowTooltip remove the check to not show the 
8537         tooltip again for the active control (it is allowed by .Net to 
8538         show the tooltip on the same control multiple times).
8539
8540 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8541
8542         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
8543
8544 2007-05-16  Andreia Gaita <avidigal@novell.com> 
8545
8546         * ContainerControl.cs: only process tab key if there are no 
8547         modifier keys present, otherwise the control does the 
8548         tab processing, if it needs to. Fixes #81622
8549         * TabControl.cs: Fixes calculation for which tab to select on
8550         shift+ctrl+tab.
8551
8552 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8553
8554         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
8555
8556 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
8557
8558         * Control.cs: Make IsInputCharInternal to allow controls to
8559         override it and still match MS API.
8560         * TextBoxBase.cs: Override IsInputCharInternal and always
8561         return true.
8562         [Fixes bug #81616]
8563
8564 2007-05-15  Jackson Harper  <jackson@ximian.com>
8565
8566         * TextBox.cs: Disable some of the menu options when using a
8567         readonly textbox.
8568
8569 2007-05-15  Jackson Harper  <jackson@ximian.com>
8570
8571         * TextBox.cs:
8572         * TextBoxBase.cs:
8573         * RichTextBox.cs: Some new 2.0 methods
8574
8575 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
8576
8577         * FileDialog.cs: On 1.0 profile, do not support multidotted 
8578         extensions.
8579
8580 2007-05-14  Jackson Harper  <jackson@ximian.com>
8581
8582         * TextBoxBase.cs: Implement some of the new 2.0 methods.
8583         * RichTextBox.cs: We need to override these methods on 2.0.
8584         * MaskedTextBox.cs: These are implemented now
8585         * TextControl.cs: This was off by one.
8586
8587 2007-05-14  Jackson Harper  <jackson@ximian.com>
8588
8589         * TextControl.cs: Because the line endings are including in the
8590         text, we don't need to add them in anymore.
8591
8592 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
8593
8594         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
8595         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
8596
8597 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
8598
8599         * ToolBar.cs: Adjust size to default size when button theres no text and
8600         image, it fixes remaining issues from #81524.
8601
8602 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
8603
8604         * ToolBar.cs: 
8605         - When not flat call redraw to recalculate sizes on creare handle to match
8606         win32 behavior.
8607         - Revert 77220 because it causes some regressions in toobar
8608         button.
8609
8610 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8611
8612         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
8613           now actually enters a usable state.
8614
8615 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
8616
8617         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
8618         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
8619         3 buttons.
8620
8621 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
8622
8623         * ToolBar.cs: Save default_size on create handle to use later for buttons
8624         without text, needed to mimic win32 behavior.
8625
8626 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
8627
8628         * ToolBar.cs: Fix button layour to best fit width or height according to
8629         vertical or not. Fixes #81524.
8630
8631 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
8632
8633         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
8634         toolbar size info because different styles theres different sizes.
8635         Fixes #81522.
8636
8637 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8638
8639         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
8640         if we are using checkboxes, checked is true, and we have less
8641         than two images in StateImageList; for the 1.1 in the same scenario
8642         draw the first image if we have at least one image in StateImageList.
8643         Fixes part of #81191.
8644
8645 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
8646
8647         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
8648         the owner's Items collection on merge.
8649
8650 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
8651
8652         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
8653         * ToolStripItemCollection.cs: Lots of fixes to when events get called
8654         and parent/owner gets changed based on gert's unit tests.
8655
8656 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8657
8658         * MaskedTextBox.cs: Started implementing parts of it.
8659
8660 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8661
8662         * ListView.cs: When clicking the checkbox on the items
8663         take into account the double clicks even if we have only
8664         one image in StateImageList (only for 1.0/1.1). Also 
8665         generate an extra change of checked state when we receive
8666         the second click on checkbox (match .Net behaviour). 
8667         Fixes part of #81191.
8668
8669 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
8670
8671         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
8672
8673 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
8674
8675         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
8676         even if OnLoad is overriden and base.OnLoad is not called.
8677         [Fixes bug #81582]
8678
8679 2007-05-10  Andreia Gaita  <avidigal@novell.com>
8680
8681         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
8682         shame. (I blame my ever-persisting and annoying cold)
8683
8684 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
8685
8686         * ListView.cs: Don't eat navigation keys.  Let them flow through to
8687         KeyDown/KeyPress routines.  [Fixes bug #81569]
8688
8689 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
8690
8691         * ListView.cs: When handling keys for selecting the item based off
8692         keyboard input, do not consider keys pressed with Alt or Control.  Also,
8693         correctly handle keys when the Shift key is down. [Fixes bug #81578]
8694
8695 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
8696
8697         * Control.cs: When using UseWaitCursor, we have to store the requested
8698         Cursor to use when UseWaitCursor is turned off.
8699
8700 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
8701
8702         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
8703         to false.
8704         * Application.cs: Use PreProcessControlMessage instead of
8705         PreProcessMessage.
8706         * PreProcessControlMessage.cs: Make internal for 1.1.
8707
8708 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8709
8710         * Control.cs: Add InternalContains focus property, which hast the same
8711         functionality of ContainsFocus, but also including implicit controls.
8712         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
8713         since we need to know if the focus is contained in our implicit
8714         ItemControl when calculating Layout. Fixes part of #80888.
8715
8716 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
8717
8718         * ToolTip.cs: Remove center form string alignment as it must be align to
8719         left.
8720
8721 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
8722
8723         * ToolStripItemCollection.cs: Set the new item's parent and owner
8724         in Insert like we do in Add.  [Fixes bug #81568]
8725
8726 2007-05-08  Jackson Harper  <jackson@ximian.com>
8727
8728         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
8729         - Off by one error in SetTop
8730         - Disable DoubeBuffering
8731         
8732 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8733
8734         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
8735           control as much as necessary in order to make it entirely visible,
8736           instead of centering the control in the container (matches MS
8737           behaviour). CalculateCanvasSize: we need to take the current scroll
8738           position into account when calculating the maximum canvas,
8739           otherwise the following scenario will fail: resize so that the
8740           scrollbars appear, use the scrollbars to scroll, resize again
8741           smaller, and now the canvas size is too small. Recalculate: when
8742           showing scrollbars make sure they start off at 0, and try to scroll
8743           the active control into view. Fixes #79540. HandleScrollBar: don't
8744           scroll anywhere if the scrollbar isn't visible.
8745
8746 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8747
8748         * ListView.cs: When focus changed, call Layout/Invalidate
8749         in the focused item to update the selected state (should show
8750         entire label when ListView is focused, and a part of it if is not).
8751         * ListViewItem.cs: When doing layout for LargeIcon, take into account
8752         for displaying the entire label not only the Focused state of the
8753         item, but also the Focused state of the ListView (match .Net
8754         behaviour).
8755
8756 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
8757
8758         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
8759         Implement UseWaitCursor. 
8760
8761 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
8762         Applying contributed patch from Sergey Volk.
8763
8764         * Clipboard.cs: Implement SetDataObject retry logic and new overload
8765         of SetDataObject.
8766         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
8767
8768 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
8769
8770         * Control.cs: Implement DrawToBitmap.
8771
8772 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
8773         Applying contributed patch from Stefan Noack.
8774         
8775         * Control.cs: Add [Get|Set]AutoSizeMode.
8776
8777 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
8778
8779         * MdiClient.cs: Unmerge menus when the last child is closed.
8780
8781 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
8782
8783         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
8784         * ToolStripManager.cs: Call Merge on DropDowns.
8785         [Fixes bug #81477]
8786
8787 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8788
8789         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
8790           uints.
8791         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
8792           visibility. We can't create forms visible, since we have to set the
8793           owner before making the form visible (otherwise Win32 will do
8794           strange things with task bar icons). The problem is that we set the
8795           internal is_visible to true before creating the control, so
8796           is_changing_visible_state is the only way of determining if we're
8797           in the process of creating the form due to setting Visible=true -
8798           this works because SetVisibleCore explicitly makes the form
8799           visibile afterwards anyways. Fixes #80775.
8800
8801 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8802
8803         * ThemeWin32Classic.cs: When drawing ListViewItems,
8804         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
8805         or LargeIcon _and_ item is not focused (match .Net behaviour).
8806
8807 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
8808
8809         * Control.cs, Form.cs: Fix some obsolete method warnings.
8810
8811 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
8812
8813         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
8814         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
8815
8816 2007-05-04  Andreia Gaita  <avidigal@novell.com>
8817
8818         * ContainerControl.cs: Fix active_control attribution when going
8819         up the parent chain so that the first parent container gets the control
8820         and the rest of the parent containers get the child containers (skips
8821         non-containers). Fixes #80729
8822
8823 2007-05-04  Randolph Chung  <tausq@debian.org>
8824
8825         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
8826         [Fixes bug #81499]
8827
8828 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8829
8830         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
8831           takes a size parameter, since the CreateParam's size isn't true for
8832           minimized forms. Fixes #81518,
8833
8834 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8835
8836         * Form.cs: Add OnDeactivateInternal.
8837         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
8838
8839 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8840
8841         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
8842           accessing the parent. Fixes #81508.
8843
8844 2007-05-03  Chris Toshok  <toshok@ximian.com>
8845
8846         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
8847         2.0 block, pass listposition + 1 to ChangeRecordState when a row
8848         was added before the current listposition.  Fixes the
8849         TestInsertRowBeforeCurrent unit test.
8850
8851 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
8852
8853         * Application.cs: Add RaiseIdle.
8854         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
8855         XplatUIX11.cs: Implement RaiseIdle.
8856
8857 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
8858         corcompare work: N - Z
8859         * NotifyIcon.cs
8860         * ProgressBar.cs
8861         * RadionButton.cs
8862         * ScrollableControl.cs
8863         * SplitContainer.cs
8864         * SplitterPanel.cs
8865         * StatusBar.cs
8866         * SystemInformation.cs
8867         * TabControl.cs
8868         * TableLayoutControlCollection.cs
8869         * TableLayoutPanel.cs
8870         * TabPage.cs
8871         * ToolBar.cs
8872         * ToolBarButton.cs
8873         * ToolStrip.cs
8874         * ToolStripComboBox.cs
8875         * ToolStripContainer.cs
8876         * ToolStripContentPanel.cs
8877         * ToolStripDropDown.cs
8878         * ToolStripDropDownItem.cs
8879         * ToolStripDropDownMenu.cs
8880         * ToolStripItem.cs
8881         * ToolStripItemCollection.cs
8882         * ToolStripMenuItem.cs
8883         * ToolStripPanel.cs
8884         * ToolStripSplitButton.cs
8885         * ToolTip.cs
8886         * TreeNode.cs
8887         * TreeNodeCollection.cs
8888         * TreeNodeMouseHoverEventArgs.cs
8889         * TreeView.cs
8890
8891 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
8892
8893         * ContextMenu.cs: Add public method Show with alignment property to 2.0
8894         stuff. Thanks aatdark for the patch. 
8895
8896 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
8897
8898         * GridItem.cs: Implement 2.0 Tag property.
8899
8900 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
8901
8902         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
8903         count instead of Nodes.Length.  [Fixes bug #81448]
8904
8905 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
8906
8907         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
8908         [Fixes bug #81506]
8909
8910 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
8911         corcompare work: A - M
8912         * BindingNavigator.cs
8913         * Button.cs
8914         * ButtonBase.cs
8915         * CheckBox.cs
8916         * Control.cs
8917         * FlowLayoutPanel.cs
8918         * Form.cs
8919         * Label.cs
8920         * LinkLabel.cs
8921         * ListView.cs
8922
8923 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
8924
8925         * Application.cs: Give toolstrips a chance to process mnemonics.
8926         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
8927         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
8928         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
8929
8930 2007-05-01  Jackson Harper  <jackson@ximian.com>
8931
8932         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
8933         wider area too.
8934         - Don't set the BoundsSpecified
8935
8936 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
8937
8938         * Application.cs: When using the toolstrip shortcut mechanism, allow the
8939         message to pass through to a regular control if it hosted by a toolstrip.
8940         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
8941         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
8942
8943 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
8944
8945         * TextRenderer.cs: Use the flags argument when using the MeasureString
8946         fallback algorithm.
8947
8948 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
8949
8950         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
8951         the MDI menu item.  [Fixes bug #81483]
8952
8953 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
8954
8955         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
8956         string. When setting Name to null, use zero-length string instead.
8957
8958 2007-04-29  Andreia Gaita  <avidigal@novell.com>
8959
8960         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
8961         DeselectTab). Implement missing 2.0 TabPageCollection methods
8962         (Add, ContainsKey, RemoveByKey, IndexOfKey)
8963
8964 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
8965
8966         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
8967
8968 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
8969
8970         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
8971         Fixes bug #81479. Include details of exception when LoadFile fails.
8972
8973 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
8974
8975         * DrawListViewSubItemEventArgs.cs: Added missing setter
8976
8977 2007-04-27  Andreia Gaita  <avidigal@novell.com>
8978
8979         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
8980         Hide methods (not complete). Implement missing 2.0 OnPopup event.
8981
8982 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8983
8984         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
8985         removed in ly last commit (it was breaking the Label edit feature).
8986
8987         * ThemeWin32Classic.cs: When drawing a ListViewItem use
8988         StringAlignment.Near for LineAlignment (match .Net).
8989
8990 2007-04-27  Andreia Gaita  <avidigal@novell.com>
8991
8992         * TabControl.cs: Change SetTab so it adds the tabpage to the list
8993         of controls if it isn't already there - was blowing up when doing
8994         tabcontrol.TabPages[i]=new TabPage(). 
8995         SetTab now does a replace by removing the page at the index. 
8996         Add a new InsertTab method that inserts a page in a given index 
8997         instead of replacing. 
8998         Implements TabPageCollection.Insert(int, TabPage).
8999
9000 2007-04-27  Chris Toshok  <toshok@ximian.com>
9001
9002         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
9003         internal handler that can be invoked from our subclasses.)  Also,
9004         add a comment to PushData about how we need to fix it.
9005
9006         * CurrencyManager.cs: tons of changes here.  trying to get things
9007         matching the behavior of .net wrt event orders (ItemChanged,
9008         CurrentChanged, PositionChanged.)  I've implemented a private .net
9009         symbol (ChangeRecordState) that appears in stack traces because
9010         it's actually easier to do this than to effective inline all its
9011         various behaviors at every call site.
9012
9013         * RelatedPropertyManager.cs: guard against an exception here by
9014         not using parent.Current if the position is set to -1 (if the
9015         parent datasource is cleared, for instance).
9016
9017         * Binding.cs: don't parse data in PushData (this might be wrong,
9018         but it jives with MS's behavior.)  Also, don't call PushData when
9019         we get a CurrentChanged event.
9020
9021 2007-04-27  Andreia Gaita  <avidigal@novell.com>
9022
9023         * WebBrowser.cs,
9024           WebBrowserBase.cs,
9025           WebBrowserSiteBase.cs,
9026           HtmlDocument.cs: Added stubbed out classes, no real implementations 
9027           yet.
9028
9029 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
9030
9031         * MainMenu.cs: In draw method without parameters call draw method with 
9032         PaintEvent, another one (just rect) adjust rectangle and we dont need it
9033         as Rect property is already adjusted. Fixes #80694.
9034
9035 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
9036
9037         * Application.cs: Need to handle keyboard menu deselection here.
9038         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
9039         navigation, allowing keyboard to work on X11.
9040         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
9041
9042 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
9043
9044         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
9045         menu bar. It fixes some drawing issues in menu bar.
9046
9047 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
9048
9049         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
9050         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
9051         when <alt> key is pressed.
9052
9053 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
9054
9055         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
9056         example just set visible to false and make this prevent from other problems.
9057         In SystrayAdd always remove pending expose. Fixes #81072.
9058
9059 2007-04-26  Marek Safar  <marek.safar@gmail.com>
9060
9061         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
9062         value is set.
9063
9064 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
9065
9066         * ListView.cs: Added three missing 2.0 events and corresponding
9067         EventHandlers. Added the OwnerDraw property.
9068         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
9069
9070 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
9071
9072         * DrawListViewItemEventArgs.cs
9073         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
9074
9075 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
9076
9077         * TextControl.cs: Fixed typo in constructor
9078
9079 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
9080
9081         * Application.cs: Create a shortcut path so that currently selected
9082         MenuStrips can intercept keyboard events without having focus.
9083         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
9084         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
9085         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
9086         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
9087         generate WM_SYSCOMMAND message in X11 for other platforms.
9088         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
9089         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
9090         * ToolStripSplitButton.cs: Add DefaultItem property.
9091         
9092 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
9093
9094         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
9095         fixes some menu draw problem on Windows with border diferent from default
9096         it also fixes #81403.
9097
9098 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9099
9100         * Form.cs: Refactor WndProc into separate methods, just like Control is
9101           doing it.
9102
9103 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9104
9105         * Control.cs: set_Text: move the call to the driver into a seperate
9106           virtual method so that Form can override it.
9107         * MaskedTextBox.cs: Corcompare fixes.
9108         * Form.cs: Override UpdateWindowText and only update the styles if the
9109           form has been shown (fixes #81405).
9110
9111 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
9112
9113         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
9114         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
9115         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
9116         the form lost focus or another control was clicked.
9117
9118 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
9119
9120         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
9121         fixed.
9122
9123 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9124
9125         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
9126           DrawListViewItemEventHandler.cs,
9127           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
9128           Added.
9129         * X11Structs.cs: More ToString implementation.
9130
9131 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
9132
9133         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
9134         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
9135
9136 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9137
9138         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
9139           handle.
9140         * FormCollection.cs: Don't add a form if it's already in the
9141           collection.
9142         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
9143           according to behaviour and MSDN. The ownerWin32 is the active
9144           window at the moment when we call ShowDialog, not the context's
9145           main form (the context's main form may open another form that opens
9146           a form with ShowDialog, the win32 owner is the second form). Add
9147           and remove forms to the Application.OpenForms in other places to
9148           better match MS behaviour. Add an IsActive property that raises
9149           On(de)Activated only if the active state has changed (we were
9150           raising OnDeactivated before OnActivated while creating forms).
9151         * Application.cs: Refactor Enabling/Disabling of windows for modal
9152           dialog loops out to separate methods, and restore the thread
9153           context when we quit the method. Fixes #81407.
9154
9155 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9156
9157         * ListView.cs: In ItemControl.HandleClicks, also fire 
9158         2.0 MouseClick or MouseDoubleClick events on the parent,
9159         not only the Click/DoubleClick events.
9160
9161 2007-04-24  Andreia Gaita  <avidigal@novell.com>
9162
9163         * TableLayoutSettings.cs: 
9164         - Added a GetControls method and a support structure to help the 
9165         TypeConverter to enumerate the controls for     serialization. 
9166         - Added a new serialization constructor. 
9167         - Added a isSerialized flag initialized to true on the 
9168         serialization constructor so that the TableLayoutPanel.LayoutSettings 
9169         setter does not throw the designed NotSupportedOperation exception
9170         when the object is built through deserialization.
9171         - Implemented GetObjectData
9172         
9173         * TableLayoutPanel.cs: Added check on LayoutSettings.
9174
9175 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9176
9177         * ListView.cs: Report Click and DoubleClick events to the parent
9178         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
9179         from breaking the click count state when using dialog forms (Control
9180         reports the clicks in a similar fashion). In the previous behaviour
9181         the last WM_LBUTTONUP message in a  double click was sent to the
9182         ListView's form, instead of the ListView, which was breaking the click
9183         count for it. Fixes #80387.
9184
9185 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
9186
9187         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
9188
9189 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
9190
9191         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
9192         us from created dropdowns for menu items that do not have subitems.
9193         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
9194         Check HasDropDownItems before calling DropDown so a dropdown will not be
9195         created if it isn't needed.
9196
9197 2007-04-24  Jackson Harper  <jackson@ximian.com>
9198
9199         * TreeView.cs: Set the first node to the selected node when we get
9200         focus if there is no selected node.
9201
9202 2007-04-24  Andreia Gaita  <avidigal@novell.com>
9203
9204         * MimeIcon.cs: remove using blocks so that image streams are
9205         not disposed of. Fixes #80151
9206
9207 2007-04-24  Jackson Harper  <jackson@ximian.com>
9208
9209         * TextBoxBase.cs: Fixup the height of textboxes when the control
9210         is created.
9211
9212 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
9213
9214         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
9215         for each ToolStripItem when the parent's RightToLeftChanged is called.
9216
9217 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9218
9219         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
9220           Fixes #80163.
9221         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
9222           property, so that the setter can be overriden too.
9223         * TextBox.cs: Change GetContextMenuInternal() to use
9224           ContextMenuInternal.
9225
9226 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9227
9228         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
9229           #81406.
9230
9231 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9232
9233         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
9234           #81406.
9235
9236 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9237
9238         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
9239           avoid duplicate work. Mostily skeleton code, it's not working at
9240           all yet.
9241
9242 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
9243
9244         * NotifyIcon.cs : stub for MouseClick event
9245         * Application.cs: stub for SetUnhandledExceptionMode
9246
9247 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
9248
9249         * BindingNavigator.cs : Initial (partial) implementation
9250
9251 2007-04-23  Jackson Harper  <jackson@ximian.com>
9252
9253         * TreeView.cs: Do not create the treeview's handle when setting
9254         the scroll position.
9255         - ExpandAll needs to compute the scrollbars so it knows which
9256         position to set the bar too.
9257         * TreeNode.cs: 
9258         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
9259
9260 2007-04-23  Jackson Harper  <jackson@ximian.com>
9261
9262         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
9263         key. Fixes #81408.
9264
9265 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
9266
9267         * ToolStripItem.cs: Make GetImageSize internal.
9268         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
9269         need to draw an item.  Fixes a reported issue where images on menus
9270         that were not 16x16 were drawing incorrectly.
9271
9272 2007-04-21  Miguel de Icaza  <miguel@novell.com>
9273
9274         * Padding.cs: Use the converter, fixes the resgen2 issue with
9275         XMLNotePad. 
9276
9277 2007-04-21  Jackson Harper  <jackson@ximian.com>
9278
9279         * TreeView.cs: Dont try to unhighlight the selected node if there
9280         isn't a selected node.
9281
9282 2007-04-21  Jackson Harper  <jackson@ximian.com>
9283
9284         * UpDownBase.cs:
9285         * TextBoxBase.cs:
9286         * ListView.cs:
9287         * ListBox.cs:
9288         * TreeView.cs: Use the InternalBorderStyle property to set the
9289         initial border style, this forces the client rectangle to be sized
9290         correctly.
9291
9292 2007-04-20  Jackson Harper  <jackson@ximian.com>
9293
9294         * TreeView.cs: Simplify scrolling to the last node after expanding
9295         all.
9296         - Fix some off by ones with setting the bottom.
9297
9298 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
9299
9300         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
9301         that.  We were incorrectly doing it the other way around.  Also,
9302         update ClientSize if we change the BorderStyle before the control
9303         is created.
9304
9305 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
9306
9307         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
9308         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
9309         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
9310         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
9311         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
9312         Caption to CaptionHeight.
9313         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
9314         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
9315         and FixedFrameBorderSize to return value from current XplatUI driver.
9316         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
9317         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
9318         and FixedFrameBorderSize using win32 API. Renamed Caption to
9319         CaptionHeight.
9320         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
9321         * SystemInformation.cs: Fixed typo in BorderSize.
9322
9323 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
9324
9325         * XplatUI.cs: Added MenuAccessKeysUnderlined.
9326         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
9327         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
9328         returning false.
9329         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
9330         value from XplatUI driver.
9331         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
9332         SystemParametersInfo.
9333         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
9334         override.
9335         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
9336         returning false.
9337
9338 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9339
9340         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
9341
9342 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9343
9344         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
9345
9346 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
9347
9348         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
9349         MenuStrips that contain ToolStripSeparators.
9350
9351 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9352
9353         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
9354           DefineStdCursorBitmap.
9355         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
9356           has been created off a standard cursor. This is used to get a
9357           bitmap of the standard cursor when Draw or DrawStretched is called
9358           in order to draw the cursor.
9359         * X11Structs.cs: Added XcursorImage and XcursorImages.
9360         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
9361           DefineStdCursorBitmap.
9362         * Cursors.cs: Update all relevant creations of Cursor to use the new
9363           internal constructor.
9364
9365 2007-04-19  Jackson Harper  <jackson@ximian.com>
9366
9367         * TextBox.cs: Move the has_been_focused into the base control, so
9368         some of the text adding methods can manipulate it (probably time
9369         for a better name for this flag too).
9370         - Call a new version of selectall that doesn't scroll
9371         * TextBoxBase.cs: When we append text, if the document is empty,
9372         don't scroll.  If the document has text already, we scroll to the
9373         end of the appended text.
9374         - When the text is changed, we reset the has_been_focused, so the
9375         next time the control gets focused, all the text is selected.
9376
9377 2007-04-19  Jackson Harper  <jackson@ximian.com>
9378
9379         * TextControl.cs: Move the margins to the document, add a method
9380         so the margin sizes can be updated.
9381         * TextBoxBase.cs: When the border style is changed, update the
9382         border sizes.
9383
9384 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
9385
9386         * Control.cs: Respect DefaultPadding.
9387         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
9388         padding into account.
9389         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
9390
9391 2007-04-19  Jackson Harper  <jackson@ximian.com>
9392
9393         * TextControl.cs: Oops, we need to use the ClientRect not the
9394         bounds here.
9395
9396 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9397
9398         * ListView.cs: In ItemControl.ItemsMouseDown, take into
9399         account the double clicks when CheckBoxes are used and
9400         the pointer is inside the checkbox. Fixes part of #81191.
9401
9402 2007-04-18  Jackson Harper  <jackson@ximian.com>
9403
9404         * TextControl.cs: Pressing the end key shouldn't move the caret
9405         past the line ending.
9406         * TextBoxBase.cs: We can still delete if we are in the line
9407         ending and the combine will just kill the existing line ending.
9408
9409 2007-04-18  Jackson Harper  <jackson@ximian.com>
9410
9411         * TextControl.cs: We can't move lines, then invalidate their
9412         bounds, we need to get the old bounds and combine that with the
9413         new bounds.
9414         * TextBoxBase.cs: Before combining two lines for a delete, we need
9415         to invalidate the area of the old line, since that will be moved
9416         in the combine operation.
9417
9418 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
9419
9420         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
9421         with transparent background. Fixes #80482.
9422
9423 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
9424
9425         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
9426         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
9427         [Fixes bug #81391]
9428
9429 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9430
9431         * CreateParams.cs: Add a couple of helper methods and do a less string
9432           concatenation in ToString.
9433         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
9434           overload that takes a Control parameter, since this method may be
9435           called before a control is assigned to the hwnd (from
9436           CreateWindow), and update CreateWindow to use the new overload. In
9437           GetMenuOrigin subtract the title bar from the y position if the
9438           form has a window manager (since we're painting it and not X).
9439         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
9440           CreateParams to calculate the origin (since border sizes may vary).
9441           In ScreenToMenu only subtract the title height if we actually have
9442           a title.
9443         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
9444           mdi children never have menus of themselves.
9445         * InternalWindowManager.cs: Implement menu handling like form does.
9446           Added GetMenuOrigin to calculate the menu origin, can't use the
9447           CreateParams from the form like normally since it's lying.
9448         * Hwnd.cs: Implement GetBorderSize better (in the sense more
9449           windows-like) and add Inflate and comparison operators to the
9450           Borders type. When calculating MenuOrigin and it's a form with a
9451           window manager, use the window manager to calculate it.
9452
9453 2007-04-17  Chris Toshok  <toshok@ximian.com>
9454
9455         * Control.cs (CreateControl): turns out in 2.0 we don't need this
9456         OnBindingContextChanged thing here.  It's only generated from
9457         ContainerControl.OnCreateControl.  Fixes a newly written unit test
9458         - BindingTest.BindingContextChangedTest4.
9459         
9460 2007-04-17  Jackson Harper  <jackson@ximian.com>
9461
9462         * ScrollBar.cs: When setting values, make sure the current
9463         position stays within the new values range.
9464
9465 2007-04-17  Chris Toshok  <toshok@ximian.com>
9466
9467         * Control.cs (CreateControl): talk about a bizarre corner case.
9468         Don't emit OnBindingContextChanged here if we're a parentless
9469         control (i.e. if we're a form.).  Fixes
9470         BindingTest.BindingContextChangedTest2.
9471
9472 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
9473
9474         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
9475         from win32. Fixes #81255.
9476
9477 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
9478
9479         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
9480         already present in CalculateButtonTextAndImageLayout.
9481
9482 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9483
9484         * XplatUIX11.cs: When setting min/max size for a window we need to
9485           translate the coordinates to x coordinates. Create an overload of
9486           SetWindowMinMax that takes a CreateParams handling this, and change
9487           SetWMStyles to call this function (can't use Control.FromHandle in
9488           the SetWindowMinMax to get the control/CreateParams from the handle
9489           because the handle might not have been assigned to the control
9490           yet). Fixes #81371.
9491
9492 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9493
9494         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
9495         if StateImageList is non-null and it has less than two items (match MS
9496         behaviour). Also, in HandleNavKeys handle the Space key, calling
9497         the new ToggleItemsCheckState method, which tries to change the
9498         checked state of the selected items. Fixes part of #81191.
9499
9500 2007-04-16  Jackson Harper  <jackson@ximian.com>
9501
9502         * RichTextBox.cs: namespace cleanup.
9503
9504 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
9505
9506         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
9507
9508 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
9509
9510         [Fixes #79447]
9511         * Control.cs: Call invalidate in set_Region.
9512
9513         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
9514         it dont works here.
9515
9516 2007-04-16  Jackson Harper  <jackson@ximian.com>
9517
9518         * TextBoxBase.cs: When enter is pressed, we need to update all
9519         lines below the current.
9520
9521 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
9522
9523         * MdiClient.cs: Implement implicit menu merging for MDI
9524         children.  When a child form is active, if it has a menustrip
9525         and the parent form has a MainMenuStrip, automatically merge
9526         the menus.
9527
9528 2007-04-15  Andreia Gaita  <avidigal@novell.com>
9529
9530         * TabControl.cs: Refactored sizing methods to not repeat
9531         code all over the place. Tab bounds are now calculated
9532         as if alignment is top and single line, and only when 
9533         setting the bounds are the positions adjusted according
9534         to alignment. Replaced hardcoded positions, spacings and
9535         paddings by getting the values the ThemeEngine. 
9536         Fixes #79619.
9537         
9538         * Theme.cs: Change TabControl properties and methods so
9539         that all start with TabControl*. Added more properties
9540         to help remove hardcoded values on tabcontrol.
9541         Add CPDrawBorder3D declaration so the Theming classes
9542         can access it.
9543         
9544         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
9545
9546         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
9547         on the Theming namespace, and call the appropriate methods here.
9548         Change CPDrawBorder3D to public.
9549
9550 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9551
9552         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
9553         the control after firing the OnMouseUp event, instead of sending
9554         the message before the mentioned event. This is so we can match the
9555         MS behaviour. Fixes part of #80385.
9556
9557 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
9558
9559         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
9560         RightToLeft property.
9561
9562 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
9563
9564         * ToolStrip.cs: Add properties and internal methods to support merging.
9565         * ToolStripItem.cs: Add MergeAction and MergeIndex.
9566         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
9567         not trigger reparenting or layouts.
9568         * ToolStripManager.cs: Add Merge and RevertMerge methods.
9569         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
9570         is hosting the overflow menu.
9571
9572 2007-04-13  Jackson Harper  <jackson@ximian.com>
9573
9574         * TextControl.cs: Set the line ending correctly for the first
9575         inserted line.
9576
9577 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
9578
9579         * Theme.cs: Update GetMethod to get the new definition for 
9580         KnownColors.Update (and fix theme color updates).
9581
9582 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
9583
9584         * MessageBox.cs: Fix some test and button position.
9585
9586 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9587
9588         * Form.cs: Consider the implicit controls in
9589         GetRealChildAtPoint. We need it since this method
9590         is called on Form when handling the some messages in
9591         WndProc, and need to consider those implicit ones too.
9592         Fixes #80385.
9593
9594 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
9595
9596         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
9597         if there are no ShortcutKeys set.
9598         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
9599         set, use it when painting.
9600
9601 2007-04-12  Jackson Harper  <jackson@ximian.com>
9602
9603         * TextControl.cs: Fix some off-by-one issues in line duplication
9604         and insertion in the undo manager. Also, overwrite the first tag
9605         of a line on insert, if it is just a zero lengthed tag. This
9606         prevents us from getting an extra stranded tag at the beginning of
9607         the first line.
9608
9609 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
9610
9611         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
9612         to calculated proper size including when handle was not created yet.
9613
9614 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9615
9616         * MdiWindowManager.cs: When moving a form, allow the form to be moved
9617           when the mouse is outside of it's parent's client rectangle. Fixes
9618           #79982 (take 3, part 2).
9619
9620 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9621
9622         * X11Structs.cs: Add a few ToString() overrides.
9623         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
9624           the window location in a window-manager independent way. Reworked
9625           FrameExtents, it now actually works. Reworked AddConfigureNotify
9626           and ReparentNotify handling to use GetTopLevelWindowLocation
9627           instead of the earlier, more hacky solution. Reworked SetWMStyles,
9628           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
9629           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
9630           for all other windows (fixes #81281 part 1), a toolwindow is hidden
9631           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
9632           and generally refactored to do as few calculations as possible
9633           inside the lock.
9634
9635 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
9636
9637         * Theme.cs: Change "reflective-contract" between MWF and SD to 
9638         minimize # of calls, avoid Color serialization and avoid updating 
9639         every "known colors" each time a single one is updated.
9640
9641 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
9642
9643         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
9644         when not readonly and the text is explicitly set. Code style updates.
9645         * DataGridTableStyle.cs: Removed extra line.
9646         * DataGrid.cs: Code style updates. Removed extra whitespace.
9647         * DataGridColumnStyle.cs: Code style updates. Removed extra 
9648         whitespace.
9649
9650 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9651
9652         * XplatUIX11.cs: Added comment that "fixes" #80021.
9653
9654 2007-04-09  Jackson Harper  <jackson@ximian.com>
9655
9656         * TextControl.cs: We don't need this -1 on the line count anymore.
9657
9658 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
9659
9660         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
9661         entered value to underlying type, and convert it back to a string to
9662         apply formatting. Modified GetFormattedValue to use TypeConverter
9663         if available.
9664
9665 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
9666
9667         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
9668         Use SubItems property when we want to ensure there's at least one
9669         subitem. Modified SubItems property to ensure there's always at least
9670         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
9671         the NRE's reported by MS.
9672
9673 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
9674
9675         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
9676         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
9677         Spaces to tabs. Removed extra tabs.
9678
9679 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
9680
9681         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
9682         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
9683
9684 2007-04-06  Jackson Harper  <jackson@ximian.com>
9685
9686         * TextBoxBase.cs: When a delete removes a line, recalculate all
9687         lines below that line (they need to get offsets setup correctly)
9688         and invalidate.
9689
9690 2007-04-05  Jackson Harper  <jackson@ximian.com>
9691
9692         * TextControl.cs: We need to invalidate across the width of the
9693         document when we are invalidating multiple lines.
9694         * TextBoxBase.cs: Don't delete into the line ending.
9695
9696 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9697
9698         * ListView.cs: Restore the check for the MouseHover event
9699         in ListView. It looks like the ListView fires more than one MouseHover
9700         event when HoverSelection is true  _only_ in weird-corner scenarios, but
9701         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
9702         event.
9703
9704 2007-04-05  Mike Kestner  <mkestner@novell.com>
9705
9706         * ListView.cs : raise MouseDown before updating selection.
9707         [Fixes #80373 tab 1&3]
9708
9709 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
9710
9711         * ToolStripRenderer.cs: Add static method to mirror image.
9712         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
9713         and RightToLeftAutoMirrorImage.
9714         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
9715
9716 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
9717
9718         * ToolStripSplitStackLayout.cs: Support Alignment property.
9719         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
9720
9721 2007-04-05  Jackson Harper  <jackson@ximian.com>
9722
9723         * TextControl.cs: Move around the line endings when crossing line
9724         boundaries.
9725         - When combining lines, strip the ending text off the first line.
9726
9727 2007-04-05  Jackson Harper  <jackson@ximian.com>
9728
9729         * TextControl.cs:
9730         * TextBoxBase.cs: Try to never move the cursor into the line
9731         ending.
9732         
9733 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
9734
9735         * ToolStripItem.cs: Make sure we aren't firing mouse events when
9736         the item is disabled.  Also add a few missing methods.
9737
9738 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9739
9740         * ListView.cs: We don't need the MouseEnter/MouseLeave check
9741         to fire just one MouseHover event when HoverSelection is true, since
9742         .Net does fire more than one MouseHover event in that scenario. Also,
9743         fix the selection in HoverSelection, by invoking UpdateMultiSelect
9744         if MultiSelect is true, instead of only setting ListViewItem.Selected.
9745         Finally, we need to reset the Hover logic in MouseMove, even when we
9746         don't have a selected item.
9747
9748 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
9749
9750         * ToolStrip.cs: Add several missing methods, properties, and events.
9751
9752 2007-04-04  Chris Toshok  <toshok@ximian.com>
9753
9754         * DataGridTextBoxColumn.cs: set the bounds of the text box to
9755         (0,0,0,0) in Commit, as MS does.
9756
9757         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
9758         make sure we set CurrentRow on a row header click *before* calling
9759         Select.  This moves the current cell (and the textbox) to the new
9760         row.  The call to Select then hides the textbox, giving us the
9761         correct behavior.  Fixes #80362.
9762
9763         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
9764         (ListChangedHandler): reorder the position/current changed events,
9765         and call UpdateIsBinding in the ItemAdded case.
9766
9767         * GridColumnStylesCollection.cs: add some columns events, one of
9768         which raises the CollectionChanged event.
9769
9770 2007-04-04  Jackson Harper  <jackson@ximian.com>
9771
9772         * TextControl.cs: When we delete multiple selection lines
9773         invalidate the selection area, don't need to do that for single
9774         lines because the final update view will handle it.
9775
9776 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
9777
9778         * Control.cs: When we CreateControl, we need to also create all of the
9779         control's children.  The child's OnLoad must also fire before the parent's
9780         OnLoad.  Fixes the toolbox size in PDN.
9781
9782 2007-04-04  Jackson Harper  <jackson@ximian.com>
9783
9784         * TextBoxBase.cs: When the user presses enter, insert a line
9785         ending into the text. (Maybe this would be a good spot for
9786         Environment.NewLine).
9787         * TextControl.cs: Remove undo manager hack, line endings get
9788         inserted properly now.
9789         
9790 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
9791
9792         * MenuAPI.cs: 
9793         - Remove unneeded parameters in UpdateCursor.
9794         - Fix UpdateCursor to check if menu is active.
9795         - Call UpdateCursor when menu deactivate my click.
9796         [Fixes remaining issues from #80410]
9797
9798 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
9799
9800         * Control.cs: GetRealChildAtPoint method added, it make an
9801         recursive child control search for the point. 
9802
9803         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
9804         menu.
9805
9806         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
9807
9808 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
9809
9810         * Form.cs: Fix mouse position when send back mouse event after closes
9811         menu.
9812
9813 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
9814
9815         * Form.cs: Simplify the BUTTONDOWN for active tracker.
9816
9817 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
9818
9819         * Control.cs: Fix an issue where if a user resized a control inside
9820         a sizing method like OnResize, we would overwrite their explicit
9821         value.  Also, only call DefaultSize once in the constructor instead
9822         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
9823         nothing actually changed.
9824
9825 2007-04-03  Jackson Harper  <jackson@ximian.com>
9826
9827         * TextControl.cs: Don't attempt to copy text for lines with no
9828         text in them (technically this shouldn't happen, but we aren't
9829         always inserting line endings when we should be).
9830
9831 2007-04-03  Jackson Harper  <jackson@ximian.com>
9832
9833         * TextBoxBase.cs: Calculate the scrollbars before calculating the
9834         document, because this sets some of the document size properties
9835         that are needed.
9836
9837 2007-04-03  Jackson Harper  <jackson@ximian.com>
9838
9839         * TextBoxBase.cs: We need to calculate maximums even if this is
9840         not a multiline control, because the maxs are used for scrolling.
9841         - Display the caret after doing a page up/down, we need to
9842         manually display it because a proper CaretMoved event isn't
9843         triggered (this is because of the way the math is done to
9844         determine how far to scroll).
9845
9846 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
9847
9848         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
9849         (ToolBar was relying on SetBoundsCore to default the values sent 
9850         base off of BoundsSpecified.)
9851
9852 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9853
9854         * DateTimePicker.cs: Change Text so that when a null value or empty
9855           string is assigned to the test we always raise ValueChanged and
9856           TextChanged (earlier implementation would only raise ValueChanged
9857           if the current date value was different from DateTime.Now).
9858
9859 2007-04-03  Andreia Gaita <avidigal@novell.com> 
9860
9861         * ButtonBase: Call update after invalidation, fixes #80194
9862
9863 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9864
9865         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
9866           #79335.
9867
9868 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9869
9870         * XplatUIX11.cs: SetWMStyles: If the control is a form with
9871           FormBorderStyle = None, don't give the window any decorations.
9872           Fixes #81276.
9873
9874 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9875
9876         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
9877         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
9878           to check for is a mix of several styles (such as WS_CAPTION for
9879           instance).
9880         * Control.cs: Don't paint an area bigger than the client area when
9881           painting the background colour. Add an internal GetCreateParams.
9882           Update calls to XplatUI.CalculateWindowRect due to API change.
9883         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
9884           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
9885           the size if it hasn't been handled by any windows. When creating
9886           and moving windows, X wants the location of the entire window, but
9887           the size of the client window, so add
9888           TranslateClientRectangleToXClientRectangle,
9889           TranslateWindowSizeToXWindowSIze and
9890           TranslatedXWindowSizeToWindowSize to cope with this, and call them
9891           before every window creation and move. Update CalculateWIndowRect
9892           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
9893           In AddConfigureNotify don't do anything if the hwnd is a zombie
9894           (fixes the BadWindow we were getting while running the tests),
9895           always calculate the offsets when it's a parentless window, not
9896           only when reparented, and translate the window size, since we're
9897           getting the client size of the whole window, excluding entire
9898           window.
9899         * Theme.cs: Added BorderSizableSize.
9900         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
9901           anymore. Update calls to XplatUI.CalculateWindowRect due to API
9902           chang
9903         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
9904           change. Fake the window styles here instead of in XplatUIWin32 so
9905           that all back-ends get the same window styles (and it's Form that's
9906           deciding when to use wm, not the Win32 backend anyways)
9907         * Hwnd.cs: Completely reworked GetWindowRectangle and
9908           GetClientRectangle - they are now passed a CreateParams and they
9909           only use Style and ExStyle to determine the rectangles (they should
9910           now work just like Win32AdjustWindowRectEx - though quite a few
9911           special cases are probably missing). They should also be 100%
9912           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
9913           == rect), and all numbers (borders, menu sizes) are taken from the
9914           current theme. Added a GetBorders helper function that will return
9915           the borders for any given CreateParams (including captions and
9916           menus), and GetBorderSize that returns the given border size only.
9917         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
9918           Hwnd.GetClientRectangle.
9919
9920 2007-04-02  Chris Toshok  <toshok@ximian.com>
9921
9922         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
9923         logic between the values we present to the user and the values
9924         which are stored in the column's property.  Also, don't call
9925         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
9926
9927 2007-04-02  Jackson Harper  <jackson@ximian.com>
9928
9929         * TextBoxBase.cs: Scroll faster!
9930
9931 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
9932
9933         * StatusStrip.cs: Layout fixes for PDN.
9934         * ToolStrip.cs: Set item's available to true, and placement to main when
9935         added.
9936         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
9937         changing in setter before doing any work, add InternalVisible.
9938         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
9939         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
9940         infinite loop.
9941
9942 2007-04-02  Jackson Harper  <jackson@ximian.com>
9943
9944         * TextBox.cs: LBUTTON does not make the textbox select all of it's
9945         text on focus.
9946
9947 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9948
9949         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
9950           Makes ToolStripComboBoxes show up again.
9951
9952 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9953
9954         * ListView.cs: Add a hover_pending field in ListView
9955         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
9956         cycle (we are resetting the MouseHover logic in XplatUI
9957         to handle HoverSelection). Fixes #80429.
9958
9959 2007-04-02  Jackson Harper  <jackson@ximian.com>
9960
9961         * TextControl.cs: Make sure the attributes get set on the last
9962         tag.
9963         - Still have to do the end tag if we have stepped all the ways to
9964         the end.
9965
9966 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
9967
9968         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
9969         on an internal libgdiplus call when the information is already 
9970         available via the public API.
9971
9972 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9973
9974         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
9975           control is removed from a control collecftion.
9976         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
9977           Fixes FormPropertyTest (failed on rare occasions).
9978         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
9979           of Win32SetParent (when changing from no parent to a parent it
9980           might add the new parent's location in screen coordinates to this
9981           window's location).
9982         * Form.cs: Rework ChangingParent once again, now the handle is
9983           recreated whenever a FormWindowManager is added or removed (that is
9984           whenever a normal form is parented or abandoned). Also change
9985           CreateParams so that all non-toplevel windows always get the
9986           specified sice (StartupPosition is never considered for
9987           non-TopLevel forms).
9988         * ContainerControl.cs: Add ChildControlRemoved, the container control
9989           needs to be notified when a control is removed from it's
9990           collection, in the case the removed control is the active control.
9991
9992 2007-04-02  Jackson Harper  <jackson@ximian.com>
9993
9994         * RichTextBox.cs: Use the new methods for setting the font and
9995         color, these methods set the specified attribute without
9996         overriding the other attributes.
9997
9998 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
9999
10000         * ToolStripPanel.cs: Fixes for better layouts in PDN.
10001
10002 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
10003
10004         * TextBox.cs: Added internal ChangeBackColor method to special-case
10005         Color.Empty. Added check for invalid ScrollBars value.
10006         * TextBoxBase.cs: Added internal ChangeBackColor method.
10007         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
10008         internal ChangeBackColor method to special-case Color.Empty. Added
10009         check for invalid ScrollBars value.
10010
10011 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
10012
10013         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
10014
10015 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
10016
10017         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
10018         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
10019         [Based on submitted patch from Olivier Duff.]
10020
10021 2007-03-30  Jackson Harper  <jackson@ximian.com>
10022
10023         * TextBox.cs: Only select all on initial focus if the user has not
10024         specified a selection area.
10025
10026 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
10027
10028         * UserControl.cs: Override CreateParams.
10029
10030 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10031
10032         [ Fixes #80995 ]
10033
10034         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
10035         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
10036           check for is a mix of several styles (such as WS_CAPTION for instance).
10037         * Control.cs: Don't paint an area bigger than the client area when painting
10038           the background colour. Add an internal GetCreateParams. Update calls to
10039           XplatUI.CalculateWindowRect due to API change.
10040         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
10041           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
10042           hasn't been handled by any windows. When creating and moving windows, X
10043           wants the location of the entire window, but the size of the client
10044           window, so add TranslateClientRectangleToXClientRectangle,
10045           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
10046           to cope with this, and call them before every window creation and move.
10047           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
10048           removing DeriveStyles). In AddConfigureNotify don't do anything if the
10049           hwnd is a zombie (fixes the BadWindow we were getting while running the
10050           tests), always calculate the offsets when it's a parentless window, not
10051           only when reparented, and translate the window size, since we're getting
10052           the client size of the whole window, excluding entire window.
10053         * Theme.cs: Added BorderSizableSize.
10054         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
10055           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
10056         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
10057           Fake the window styles here instead of in XplatUIWin32 so that all
10058           back-ends get the same window styles (and it's Form that's deciding when
10059           to use wm, not the Win32 backend anyways)
10060         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
10061           they are now passed a CreateParams and they only use Style and ExStyle
10062           to determine the rectangles (they should now work just like
10063           Win32AdjustWindowRectEx - though quite a few special cases are probably
10064           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
10065           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
10066           sizes) are taken from the current theme. Added a GetBorders helper
10067           function that will return the borders for any given CreateParams
10068           (including captions and menus), and GetBorderSize that returns the given
10069           border size only.
10070         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
10071           Hwnd.GetClientRectangle.
10072
10073 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10074
10075         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
10076           layout of the mdi children is handled by CreateParams. Fixes
10077           #79964,
10078
10079 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
10080
10081         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
10082         processed.
10083
10084         * Form.cs: When active tracker mouse down is not processed, send event 
10085         back to control inside mouse position. [Fixes #81227]
10086
10087 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
10088
10089         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
10090         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
10091         stealing focus from the active form on Windows.  (Control will be made
10092         visible in ShowWindow.)
10093
10094 2007-03-29  Mike Kestner  <mkestner@novell.com>
10095
10096         * ImageList.cs : add internal Changed event.
10097         * ListView.cs : hook up to StateImageList.Changed to perform
10098         invalidations when the the state icon list changes. [Fixes #81191]
10099
10100 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
10101
10102         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
10103         to prevent tooltips from stealing focus from the active form on Windows.
10104
10105 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
10106
10107         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
10108
10109         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
10110
10111 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
10112
10113         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
10114         balloons.
10115
10116 2007-03-29  Jackson Harper  <jackson@ximian.com>
10117
10118         * TextControl.cs: When deleting text from non multiline textboxes,
10119         we need to update the entire document, because line offsets will
10120         be shifting.
10121
10122 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
10123
10124         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
10125         added to theme, now we can create themes that uses diferent notify engines
10126         like notification-daemon from galago project or growl for Mac OS.
10127
10128 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
10129
10130         * NotifyIcon.cs: Prevent Balloon to show in task bar.
10131
10132 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
10133
10134         * XplatUIX11.cs: Prevent system to open more than one balloon.
10135
10136         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
10137         some compiler warning messages.
10138
10139 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
10140
10141         [Fixes #79149]
10142
10143         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
10144
10145         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
10146         implemented, this methods is used by NotifyIcon.BalloonWindow class.
10147
10148         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
10149         systems.
10150
10151 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10152
10153         * ListViewItem.cs: Forgot to make Invalidate internal.
10154
10155 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10156
10157         * ListView.cs: Add a InvalidateSelection method to
10158         invalidate methods which are currently selected, and call
10159         it when setting FullRowSelect and HideSelection, instead of
10160         calling Redraw.
10161
10162 2007-03-28  Chris Toshok  <toshok@ximian.com>
10163
10164         * XplatUIX11.cs (UnmapWindow): reindent this block.
10165
10166         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
10167         the selection_start if we're moving the selection (that is, not
10168         extending it). Fixes bug #80461.
10169
10170 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
10171
10172         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
10173         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
10174         create private ControlCollection.
10175
10176 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
10177
10178         * Control.cs: We need to call OnVisibleChanged for our implicit
10179         children as well as our normal children.  Fixes scrollbars in
10180         comboboxes not showing up.
10181
10182 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
10183
10184         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
10185         the check for IsHandleCreated first.  The check in CreateHandle is not
10186         good enough because CreateHandle can be overriden, and the override 
10187         should not be called if the handle is already created.
10188
10189 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
10190
10191         * ToolStrip.cs: Remove MonoTODO for tooltips.
10192         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
10193         * ToolStripContainer.cs: Add custom ControlCollection class.
10194         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
10195         * ToolStripDropDown.cs: Add some missing properties/methods.
10196         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
10197         * ToolStripItem.cs: Remove MonoTODO for tooltips.
10198         * ToolStripManager.cs: Add IsShortcutDefined.
10199         * ToolStripOverflow.cs: Override LayoutEngine.
10200         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
10201         * ToolStripSeparator.cs: Add ImageKey.
10202
10203 2007-03-28  Jackson Harper  <jackson@ximian.com>
10204
10205         * TextControl.cs: If a char delete removes a line ending, we need
10206         to update the ending style.
10207         - Make sure the line ending calcs get called.
10208
10209 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10210
10211         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
10212           it was making the new code not work. Fixed a typo in the new code
10213           as well. Fixes #79826.
10214
10215 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
10216
10217         * XplatUIWin32.cs:
10218         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
10219         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
10220         - SystrayBalloon method implemented.
10221         [Add support for notifyicon balloon on win32, #79149]
10222
10223 2007-03-27  Mike Kestner  <mkestner@novell.com>
10224
10225         * ThemeWin32Classic.cs : update StateImageList selection to mirror
10226         the ms behavior when only one image is added to the list.
10227         [Fixes #81191]
10228
10229 2007-03-27  Jackson Harper  <jackson@ximian.com>
10230
10231         * TextControl.cs: Improvements to non multiline line ending
10232         drawing/measuing.
10233
10234 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
10235
10236         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
10237
10238 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
10239
10240         * NotifyIcon.cs: 
10241         - Balloon message handling added.
10242         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
10243
10244         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
10245         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
10246         to SystrayBalloon to me like other Systray method, also a
10247         handle parameter added.
10248
10249 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10250
10251         * ListView.cs: Show scrollbars even when items.Count == 0
10252         but the columns Width is bigger than the ListView.Width.
10253         Also, when columns.Count == 0 set layout_wd and layout_ht
10254         to the ClientRectangle values, so we don't show any scrollbar
10255         in that case.
10256
10257 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
10258
10259         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
10260
10261 2007-03-27  Jackson Harper  <jackson@ximian.com>
10262
10263         * RichTextBox.cs: The RTF library decodes the text properly for us
10264         now.
10265
10266 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10267
10268         * ListView.cs: Display HeaderControl even when columns.Count == 0.
10269         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
10270         ListView header (HeaderControl), instead of Control.BackColor.
10271
10272 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
10273
10274         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
10275         Fixes tab control issues where controls would not show up because they
10276         never received their OnVisibleChanged call.
10277
10278 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
10279
10280         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
10281         BalloonTipShown).
10282
10283 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
10284
10285         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
10286         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
10287         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
10288         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
10289         the handle.  Fix WindowState by using the internal variable until we are 
10290         sure that we've been shown.
10291         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
10292         max or min.
10293         [Fixes bug #81198]
10294
10295 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10296
10297         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
10298           (at least borders). Fixes #79386 on Linux (with a small difference
10299           in behaviour: when trying to resize a caption-less window metacity
10300           shows the sysmenu. Resizing is still possible though).
10301         * XplatUIWin32.cs: When setting window styles send request an extra
10302           WM_NCCALCSIZE when it's a form without title (due to no text and no
10303           caption), since Win32 seems to calculate it wrong the first time we
10304           get the message, though the second time things work as they should.
10305         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
10306           newly reparented window might show up unparented. Update
10307           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
10308           there's no title text. Fixes #79386.
10309
10310 2007-03-27  Mike Kestner  <mkestner@novell.com>
10311
10312         * ListBox.cs : don't perform invalidations if the handle hasn't been
10313         created.  [Fixes #80753]
10314
10315 2007-03-27  Mike Kestner  <mkestner@novell.com>
10316
10317         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
10318         [Fixes #80428]
10319
10320 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
10321
10322         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
10323         needed to implement Balloon.
10324
10325 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10326
10327         * ListViewItem.cs: In the constructors that take
10328         an array of strings, don't use ListViewSubItemCollection.AddRange
10329         method to add items, since we need to have a different behaviour (in
10330         the constructors we add an item for each null string, opposed to
10331         the behaviour of AddRange, which adds nothing).
10332
10333 2007-03-26  Andreia Gaita  <avidigal@novell.com>
10334
10335         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
10336
10337 2007-03-26  Jackson Harper  <jackson@ximian.com>
10338
10339         * TextControl.cs: Draw and measure line endings when in non
10340         multiline mode.
10341         - When searching the text, count the end of the last line as a
10342         word boundary.
10343
10344 2007-03-26  Jackson Harper  <jackson@ximian.com>
10345
10346         * RichTextBox.cs: The selection_start and selection_end don't
10347         really track the correct tags for the selection. So we'll manually
10348         compute the correct tag here.
10349
10350 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10351
10352         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
10353           and Continuous styles. Fixes #79469.
10354
10355 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
10356
10357         * ToolStrip.cs: Implement Tooltips.
10358         * ToolStripItem.cs: Create internal method for determining tooltip.
10359
10360 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
10361
10362         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
10363
10364 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
10365
10366         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
10367         it prevents a problem thak keeps icon visible after application 
10368         closes on win32.
10369
10370 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
10371
10372         * NotifyIcon.cs: Balloon properties and methods created.
10373
10374         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
10375         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
10376
10377 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
10378
10379         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
10380
10381 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
10382
10383         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
10384         parameter indicates which aspects were explicit/user-set.
10385         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
10386
10387 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
10388
10389         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
10390         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
10391         SmallChange, and Value (2.0).
10392         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
10393
10394 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10395
10396         * ListView.cs: Always set item_control.Width in LayoutDetails
10397         if View is Details. Setting it later in CalculateScrollBars
10398         in a not-so-corner scenario (the sum of columns width is
10399         not bigger than the ListView width when handle is created, and then
10400         that sum gets bigger by increasing the width of the columns)
10401         causes a very weird recursion path (which shouldn't be happening,
10402         since header_control sets it in CalculateScrollBars too). This bug
10403         appeared after Chris' fixes for handle created issues, so probably
10404         it's related to some handle-creation time.
10405
10406 2007-03-23  Chris Toshok  <toshok@ximian.com>
10407
10408         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
10409         case where there's an add row, just so we don't end up in a case
10410         where it's not displayed (this happens when the row is partially
10411         obscured).  Fixes bug #79574.
10412
10413 2007-03-23  Jackson Harper  <jackson@ximian.com>
10414
10415         * TextControl.cs:
10416         * TextBoxBase.cs:
10417         * RichTextBox.cs: Preserve line endings in the lines text buffer,
10418         also added an enum that represents the line ending type. 
10419
10420 2007-03-23  Andreia Gaita  <avidigal@novell.com>
10421
10422         * NumericUpDown.cs: Fix logic so Text and Value properties are not
10423         messed with in every method call, but only from DownButton, 
10424         UpButton, UpdateEditText() and ValidateText. Fixes #80346
10425
10426 2007-03-23  Chris Toshok  <toshok@ximian.com>
10427
10428         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
10429         format objects if the format spec is "".  Fixes bug #80889.
10430
10431 2007-03-22  Miguel de Icaza  <miguel@novell.com>
10432
10433         * ToolStripPanel.cs (Join): added stubs to build PDN3
10434
10435         * Control.cs (AutoScrollOffset): Add.
10436
10437         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
10438         property, its only implemented for Win32, on X11 it defaults to
10439         some hardcoded value.
10440
10441         * ToolStripItem.cs (AllowDrop): Add property
10442
10443 2007-03-22  Mike Kestner  <mkestner@novell.com>
10444
10445         * ListView.cs : in FullRowSelect Details mode, only enable box
10446         selection if the user clicks over the "item" column outside of the
10447         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
10448
10449 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10450
10451         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
10452           handle is not created yet.
10453         * Form.cs: Select: Don't call CreateHandle if the handle is already
10454           created, avoids a stack overflow on Windows when we are recreating
10455           controls.
10456         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
10457           they are made visible, and override AfterTopMostControl to keep
10458           them on top when other controls are brought to front.
10459           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
10460           or force_*scroll_visible is true (old implementation always shows
10461           scrollbars when needed, no matter what auto_scroll was set to).
10462         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
10463           IsHandleCreated check.
10464
10465 2007-03-22  Andreia Gaita  <avidigal@novell.com>
10466
10467         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
10468         row or col separator.
10469         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
10470
10471 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
10472
10473         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
10474
10475 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
10476
10477         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
10478         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
10479         every time. Fixes #80410.
10480
10481 2007-03-22  Chris Toshok  <toshok@ximian.com>
10482
10483         * BindingSource.cs (AddNew): partially implement.
10484
10485         remove a couple of NotImplementedException's
10486         to get bug #81148 closed.
10487
10488 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
10489
10490         [Fixes #80380]
10491         
10492         * Control.cs:
10493         - UpdateCursor method added to update the screen cursor.
10494         - GetAvailableCursor method added to return cursor for enabled tree,
10495         it searches for cursor on control and it's parent's for enabled control.
10496         - Call UpdateCursor method on setter of Cursor property.
10497         - On setter of Enabled call UpdateCursor when it is false, we need to
10498         change cursor to normal (or to this parent cursor) because cursor 
10499         setting theres no effect to disabled controls.
10500         - Some minor source changes to follow the coding style guidelines.
10501
10502         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
10503         controls.
10504
10505 2007-03-22  Chris Toshok  <toshok@ximian.com>
10506
10507         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
10508         generates.
10509
10510 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10511
10512         * XplatUIX11.cs: Implement default locations for forms.
10513         * Form.cs: Completely rework startup location for forms. Fixes #79964.
10514         * Hwnd.cs: Add previous_child_startup_location (to track the current
10515           startup location for any child forms of the current form) and
10516           previous_main_startup_location (to track the startup location for
10517           the current toplevel form).
10518
10519 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
10520
10521         * Control.cs: Don't trigger a layout if an implicit control is added
10522         that isn't visible.  Also, don't notify the owner when an implicit control
10523         is added.  (Owners shouldn't even know about their implicit controls.)
10524
10525 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
10526
10527         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
10528         to save some re-layouts.
10529
10530 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
10531
10532         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
10533         [Fixes #81203]
10534
10535 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
10536
10537         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
10538         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
10539
10540 2007-03-21  Mike Kestner  <mkestner@novell.com>
10541
10542         * ListView.cs : disable selection update for non-left button clicks
10543         with mods and over selected items.  [Fixes #80524]
10544
10545 2007-03-20  Jackson Harper  <jackson@ximian.com>
10546
10547         * TextControl.cs:
10548         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
10549         \r\r\n, \n.
10550
10551 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10552
10553         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
10554           very probably a more complicated calculation there. Update the
10555           textbox' ForeColor and BackColor when the ComboBox' colors are
10556           changed. Change the border change in LayoutComboBox to only affect
10557           the textbox, not all the calculations there. Seems to fix most of
10558           #79436.
10559
10560 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10561
10562         * ComboBox.cs: Handle Home and End keys as well as all combinations of
10563           modifiers + navigation keys as input keys, enables advanced text
10564           selection in the combobox (like Shift+Left Arrow for instance).
10565           ComboTextBox now overrides Focused and returns whatever
10566           ComboBox.Focused returns, since it really should be focused
10567           whenever the ComboBox is. Fixes #80795. Also make the border around
10568           the text box one pixel bigger, as mentioned in #79436.
10569
10570 2007-03-20  Jackson Harper  <jackson@ximian.com>
10571
10572         * TreeView.cs: Don't offset the images, this was causing some
10573         artifacts when expanding/collapsing with images that were the
10574         exact height of the treenode.
10575
10576 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10577
10578         * TrackBar.cs: Query the theme for the correct value when the mouse
10579           moves and the thumb is pressed. 
10580         * Theme.cs: Added TrackBarValueFromMousePosition
10581         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
10582           implementation was updating the trackbar value when drawing, now
10583           the drawing methods only draw. Fixes #80900. Refactored the
10584           calculations out to TrackBarValueFromMousePosition and
10585           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
10586           according to the mouse position whenever it wants to. Changed the
10587           light coloured pen when drawing the thumb from ControlLight to
10588           ControlLightLight, because the ControlLight is the same colour as
10589           the background so the 3D effect is lost. 
10590
10591 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
10592
10593         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
10594         defined. Fixes #80784.
10595
10596 2007-03-20  Marek Habersack  <mhabersack@novell.com>
10597
10598         * ContextMenuStrip.cs: align with the change introduced in
10599         revision 74664.
10600
10601 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
10602
10603         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
10604         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
10605         in SetTopmost.
10606
10607 2007-03-19  Chris Toshok  <toshok@ximian.com>
10608
10609         * Control.cs (WmPaint): don't make use of the Handle property
10610         after an event is emitted, as the user could have closed the
10611         form/destroyed the control.  Store the Handle in a local variable
10612         and make use of that.  Fixes bug #80768.
10613
10614 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
10615
10616         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
10617         behavior in X11 environments.
10618
10619 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
10620
10621         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
10622         because on setter of topmost we dont call SetTopmost when handle is not
10623         created.
10624
10625 2007-03-20  Jackson Harper  <jackson@ximian.com>
10626
10627         * TextControl.cs: Need to use SelectionLength () not
10628         selection_length, since that var is reset to -1.
10629         - Draw the caret when we don't have focus.
10630         * TextBox.cs: The selectall actually doesn't occur until the first
10631         focus.
10632         * TextBoxBase.cs: Need to update the caret position after a
10633         selectall.
10634         
10635 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10636
10637         * ListView.cs: Enable scrolling when using Tile view.
10638
10639 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
10640
10641         [Fixes #80902]
10642
10643         * XplatUIDriver.cs: Abstract SetOwner method created.
10644
10645         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
10646         must be implemented and was masked as todo.
10647
10648         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
10649         GWL_HWNDPARENT.
10650
10651         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
10652         cheking for null owner to remove transient. The SetTopmost will be change
10653         on a decond step.
10654
10655         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
10656         SetTopmost. Now owned forms will work properly in win32 and X11.
10657
10658 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10659
10660         * MdiWindowManager.cs: Update function name.
10661         * Form.cs: After closing a form MdiParent is always null.
10662         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
10663           better what it should do: necessary book-keeping when the form is
10664           closed, it should not close the form itself.
10665
10666 2007-03-19  Andreia Gaita  <avidigal@novell.com>
10667
10668         * ListViewItem.cs: Fix back and fore color. The subitems only
10669         use their own colors if they are set, otherwise use the listview's
10670         colors. Don't set default colors on constructor for subitem.
10671         Fixes #79315.
10672
10673 2007-03-19  Mike Kestner  <mkestner@novell.com>
10674
10675         * ListView.cs : make box selection for Details views with 
10676         FullRowSelect conform to MS behavior when clicking in the "item" 
10677         column and clicking outside the defined columns.
10678         [Fixes case 5-6 of #80374]
10679
10680 2007-03-19  Chris Toshok  <toshok@ximian.com>
10681
10682         * ScrollableControl.cs: create the controls from within the ctor,
10683         but don't actually add them until our handle is created.  this
10684         fixes a NRE possibility jpobst found (if you override OnLayout in
10685         a subclass, it's called before your ctor).  Also, add a
10686         IsHandleCreated guard to UpdateSizeGripVisibility as well.
10687
10688 2007-03-19  Jackson Harper  <jackson@ximian.com>
10689
10690         * TextBox.cs: Reduce the amount of invalidation we do.
10691         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
10692         some of them are true by default on MS.
10693         - Add some functions to reduce the amount of invalidates we do.
10694         * TextControl.cs: Less invalidation.
10695
10696 2007-03-19  Chris Toshok  <toshok@ximian.com>
10697
10698         [ Fixes #81773, and *seems* to fix #81553 as well ]
10699
10700         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
10701         AccumulateDestroyedHandles.  We need to do it *after* we send
10702         WM_DESTROY, as the user's code can access Control.Handle in
10703         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
10704         move the WM_DESTROY/zombie handling to before the call to
10705         XDestroyWindow.  For some reason without this ordering
10706         FormTest.RecreateHandle hangs.  This ordering is semantically
10707         equivalent, however, as XDestroyWindow is async anyway.
10708
10709 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
10710
10711         * RichTextBox.cs: Reset backcolor_set after setting default.
10712
10713 2007-03-19  Chris Toshok  <toshok@ximian.com>
10714
10715         * ScrollableControl.cs: the scroll position should not effect the
10716         canvas size.  commit patch from georgegiolfan@yahoo.com, which
10717         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
10718         
10719 2007-03-19  Chris Toshok  <toshok@ximian.com>
10720
10721         * ScrollableControl.cs: clean this up a bit.  create the
10722         scrollbars in the ctor and just show/hide them as needed.  Also,
10723         make hscroll_visible/vscroll_visible internal to Recalculate, and
10724         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
10725         everywhere else.  This seems to fix the scrollbars appearing
10726         beneath the content for me (i have *no* idea why that is,
10727         however.)
10728
10729 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
10730
10731         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
10732         some redundacy for stuff in Anchor and Dock that base will take care of.
10733         [Fixes #80762]
10734
10735 2007-03-19  Mike Kestner  <mkestner@novell.com>
10736
10737         * ListView.cs : make box selection for Details views without 
10738         FullRowSelect dependent on the text bounds, not item bounds.
10739         * ListViewItem.cs : add an internal property to obtain the TextBounds
10740         in Details view.  [Fixes case 1-4 of #80374]
10741
10742 2007-03-19  Andreia Gaita  <avidigal@novell.com>
10743
10744         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
10745         we're < 2.0. #78448 && #80316
10746
10747 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
10748
10749         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
10750         have the same style available as the previously selected one.  Also,
10751         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
10752
10753 2007-03-19  Jackson Harper  <jackson@ximian.com>
10754
10755         * TextControl.cs: Add an alignment property that all new lines
10756         will be given.
10757         - Make sure to use the align shift when calculating the line's X
10758         position.
10759         * TextBox.cs: Set the alignment on the document as well as on all
10760         the document lines.
10761
10762 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10763
10764         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
10765           throw if setting the parent of an mdichild that already has an
10766           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
10767           AssemblyProductAttribute in the assembly, use the type's namespace (as
10768           MS seems to do). CreateControl: don't create the handle if the control
10769           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
10770           create handle if the control is not a form. Change FocusInternal to
10771           virtual so that it can be overriden by Form.
10772         * TextBox.cs: Update call to FocusInternal.
10773         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
10774           form is not a toplevel form when it's a mdi child, so update is_toplevel
10775           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
10776           hasn't been created. Show (IWin32Window): Don't allow this overload for
10777           toplevel windows. CenterToParent/CenterToScreen/Select: create the
10778           handle as MS does. SetVisibleCore: if called on a MdiChild and the
10779           parent isn't visible yet, save the visibility and restore it when the
10780           parent is made visible.
10781         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
10782           methods, since the visibility of the scrollbars can be changed from
10783           several places, not only from AutoScroll.
10784           [Fixes #81179]
10785
10786 2007-03-19  Jackson Harper  <jackson@ximian.com>
10787
10788         * RichTextBox.cs: Enable shortcuts by default.
10789         * TextBoxBase.cs: Add conditional shortcuts.  
10790
10791 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
10792
10793         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
10794
10795 2007-03-19  Chris Toshok  <toshok@ximian.com>
10796
10797         [ Fixes bug #80604]
10798         
10799         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
10800         swallow the message we're waiting on, instead of delivering it, as
10801         this is only used for the WM_SHOWWINDOW raised from
10802         MapWindow/UnmapWindow, and the message needs to be generated
10803         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
10804         before doing the Map/Unmap.  Also make sure that the Hwnd is still
10805         alive after the message has been handled.
10806
10807         *before* the window is shown.
10808
10809         * Control.cs (CreateControl): guard a few more things inside the
10810         if (!is_created) block, as we might end up being called again -
10811         yay .net.
10812         (WmShowWindow): call CreateControl if we're showing the control.
10813
10814 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10815
10816         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
10817           controls without a handle if they have any parent with a handle. In
10818           Dispose add a check whether the handle is created or not before
10819           calling BeginInvoke, this removes the need of the extra disposing
10820           parameter (which was bogus anyway since it didn't prevent the
10821           invoke from happening, it only skipped the check for an existing
10822           handle, meaning that the invoke would call on an inexistent
10823           handle).
10824
10825 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
10826
10827         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
10828         appears in taskbar.
10829
10830 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
10831
10832         * MessageBox.cs:
10833         - Fixed a problem that dont show help button for messages with 3 buttons.
10834         - Refactory button size and position calculations, now dont use fixed 
10835         values, also fixed button sizes (#80043) and form's border space.
10836         - AddButton method created, now all other AddButton methods call this one.
10837         - Some other source code cosmetic changes.
10838
10839 2007-03-18  Jackson Harper  <jackson@ximian.com>
10840
10841         * RichTextBox.cs: Don't do this all fonts must match check if
10842         there is only one char selected.
10843
10844 2007-03-18  Jackson Harper  <jackson@ximian.com>
10845
10846         * TreeView.cs: ScrollWindow works properly now, so we don't need
10847         to screw around with the scroll area.  This fixes some artifacts
10848         when expanding and collapsing.
10849
10850 2007-03-18  Jackson Harper  <jackson@ximian.com>
10851
10852         * TextBoxBase.cs: Allow updating the selection position when the
10853         cursor is outside the textarea, but we have a capture.
10854         * TextControl.cs: A special case for when the cursor is outside
10855         the bounds of the TB.
10856         
10857 2007-03-18  Jackson Harper  <jackson@ximian.com>
10858
10859         * TextBoxBase.cs: Remove image pasting code for now.  There is no
10860         way to get an image on the clipboard right now anyways.
10861         * TextControl.cs:
10862         * RichTextBox.cs: Use the new RTF Picture class for pictures.
10863
10864 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
10865
10866         * MessageBox.cs:
10867         - Set window properties in constructor intead of on CreateParams.
10868         - Remove topmost from Window ExStyle.
10869         - Set ShowInTaskbar to false.
10870         - Set form border to FixedDialog.
10871         - Some cosmetic changes and remove unneeded comments.
10872         - It fixes itens 2,3 and 4 of bug #80043.
10873
10874 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
10875
10876         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
10877         none was explicitly set. Fixes part of bug #79949.
10878
10879 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
10880
10881         * ToolStripComboBox.cs: Add AutoComplete*.
10882
10883 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
10884
10885         * ToolStripComboBox.cs: Add FlatStyle.
10886
10887 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
10888
10889         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
10890         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
10891
10892 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10893
10894         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
10895           CheckBox.cs, RadioButton.cs, BindingSource.cs,
10896           DataGridColumnStyle.cs: Remove warnings.
10897
10898 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10899
10900         * Menu.cs: MergeMenu: Check menu argument for null before looping over
10901           it.
10902         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
10903           visibility of mdi child forms. FormSizeChangedHandler: update the
10904           maximized size if size has changed while maximized.
10905         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
10906           creating the handle.
10907         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
10908           avoid creating the handle if not created.
10909         * XplatUI.cs: Update debug output.
10910         * XplatUIStructs.cs: Added ToString's for a couple of structs.
10911
10912 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
10913
10914         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
10915         ProcessCmdKey().
10916         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
10917         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
10918         Implement keyboard shortcuts.
10919
10920 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
10921
10922         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
10923         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
10924         ColorDialog and all derived classes.
10925
10926 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
10927
10928         [ Fixes bug #79828 ]
10929
10930         * ToolBar.cs:
10931         - Rename ToolBarButtonInfor to ToolBarItem.
10932         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
10933         - Maintain an array of ToolBarItem, used instead of ToolBarButton
10934         collection to be able add same button more than one time on a toolbar.
10935         - Refactory all properties and methods to use ToolBarItem. 
10936
10937         * ToolBarButton.cs: 
10938         - Remove all propeties and methods that is now in ToolBarItem.
10939         - Rectangle propery now gets the rectangle from first ToolBarItem to
10940         mimic win32 behavior.
10941         - Size calculation and layout methods also removed.
10942
10943         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
10944         ToolBarItem instead of ToolBarButton to right drawing buttons when
10945         same button/separator was added more than one time to ToolBar.
10946
10947         * ThemeNice.cs: Same as above. 
10948
10949 2007-03-15  Andreia Gaita  <avidigal@novell.com>
10950
10951         * XplatUIX11.cs: Fire extra MouseMove events right after
10952         MouseDown and MouseUp, emulating win32's <censored> behaviour
10953         for apps that rely on it.
10954
10955 2007-03-15  Jackson Harper  <jackson@ximian.com>
10956
10957         * TextControl.cs:
10958         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
10959         it is drawn on the controls client window and there is no NC
10960         area.
10961         - Set the background color to gray on 2.0 when we are readonly.
10962
10963 2007-03-15  Chris Toshok  <toshok@ximian.com>
10964
10965         [ Fixes bug #81144 ]
10966         
10967         * XplatUIX11.cs: implement VirtualScreen independently of
10968         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
10969         property.
10970
10971 2007-03-15  Chris Toshok  <toshok@ximian.com>
10972
10973         * Hwnd.cs: add an internal field for the cached_window_state.
10974
10975         * XplatUIX11.cs: cache the window state, invalidating the cache
10976         (and thus re-querying the X server) only when we see an update to
10977         the _NET_WM_STATE property.
10978
10979 2007-03-15  Chris Toshok  <toshok@ximian.com>
10980
10981         * BindingSource.cs: get a lot of the unit tests working.
10982
10983 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
10984
10985         * Control.cs: Modify UpdateStyles to store distances when bounds >=
10986         0 instead of just bounds > 0.  [Fixes bug #80912]
10987
10988 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
10989
10990         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
10991         and methods.
10992
10993 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
10994         
10995         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
10996         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
10997         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
10998         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
10999
11000 2007-03-15  Chris Toshok  <toshok@ximian.com>
11001
11002         [ Fixes #81101 ]
11003         
11004         * Control.cs: add Ivan's fix for 81101, with a slight modification
11005         - you can set control.Target to null.
11006
11007 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
11008
11009         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
11010         HideDropDown, use Hide instead to prevent an NRE.
11011         [Fixes bug #81147]
11012
11013 2007-03-14  Jackson Harper  <jackson@ximian.com>
11014
11015         * TextBoxBase.cs: Mess with the creation stuff a little. We need
11016         to calculate the document before the handle is created, in some
11017         cases. (Actually just one case).
11018
11019 2007-03-14  Jackson Harper  <jackson@ximian.com>
11020
11021         * TextBoxBase.cs: Need to display the caret after letting the base
11022         wndproc handle the focus methods, because the caret display
11023         methods check the focus state.
11024         - Try to display the caret after updating it's position with SelectWord.
11025         - Don't need to do an immediate update on this recalc, since there
11026         will be an invalidate anyways.
11027
11028 2007-03-14  Jackson Harper  <jackson@ximian.com>
11029
11030         * TreeView.cs: Some workarounds so that we can match event order a
11031         little better.
11032
11033 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
11034
11035         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
11036         #80803. Avoid NullReferenceException when Control does not have
11037         parent. Fixed different blinkstyle issues. Only subscribe to Tick
11038         event a single time. Only draw error icon when control is created and
11039         visible. Fixes failing unit tests.
11040
11041 2007-03-14  Andreia Gaita  <avidigal@novell.com>
11042
11043         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
11044         Selecting events. Fire Leave and Enter events when changing tabs.
11045
11046 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
11047
11048         * TreeView.cs: Add TreeViewNodeSorter.
11049         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
11050
11051 2007-03-14  Chris Toshok  <toshok@ximian.com>
11052
11053         * Form.cs: go ahead and remove the RecreateHandles that jpobst
11054         removed earlier and I had him add back it.  It turns out metacity
11055         *does* in fact handle the MOTIF_WM_HINTS property changing, it
11056         just doesn't redraw the window titlebar until you resize the
11057         window.  This also means we aren't recreating the entire window
11058         hierarchy on X when you change this property.  And it looks better
11059         on windows, too.
11060
11061 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11062
11063         * ListViewItem.cs:
11064         * ListView.cs: Collecting selection information
11065         is now done in SelectedIndexCollection rather than in
11066         SelectedListViewItemCollection. This is done so we can
11067         have the selection information code in one single place
11068         (virtual mode selection information entirely depends on
11069         SelectedIndexCollection).
11070
11071 2007-03-13  Miguel de Icaza  <miguel@novell.com>
11072
11073         * ErrorProvider.cs: Add stubs for ISupportInitialize
11074
11075 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11076
11077         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
11078         in the right order with the right values, from the Checked property, 
11079         just as MS does (instead of triggering them from ListView).
11080
11081         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
11082
11083 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11084
11085         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
11086         the correct handler in OnItemCheck method (ItemCheckEventHandler 
11087         instead of EventHandler). This used to throw an InvalidCastException.
11088
11089 2007-03-13  Jackson Harper  <jackson@ximian.com>
11090
11091         * TextBoxBase.cs: Calculate the document before the handle is
11092         created, so there isn't an extra invalidate called.
11093
11094 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
11095
11096         * Form.cs: Don't set owner in ShowDialog until we are sure
11097         that we aren't going to throw an exception.  [Fixes bug #80773]
11098
11099 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
11100
11101         * TreeView.cs: Make it compile.
11102
11103 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
11104
11105         * Control.cs: Another place we don't call SizeFromClientSize.
11106         * Form.cs: Another place we don't call SizeFromClientSize.
11107         [Fixes bug #81125]
11108
11109 2007-03-12  Jackson Harper  <jackson@ximian.com>
11110
11111         * TreeView.cs: Basically emulating some strangness here with
11112         exanding nodes and setting node positions when windows aren't
11113         created.
11114         - Also attempting to walk the node tree less than previously, and
11115         just use visible order calculations for determining offsets.
11116         - oops made scrolling backwards.
11117         * TreeNode.cs: We need to start nodes with a zero visible order,
11118         because the order calcs are based on the first nodes order.
11119
11120 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
11121
11122         * Form.cs: Don't exit the program if RecreateHandle is called on
11123         the main form.
11124
11125 2007-03-12  Chris Toshok  <toshok@ximian.com>
11126
11127         * XEventQueue.cs: remove the use of PostQuitState.
11128
11129         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
11130         WM_QUIT message in GetMessage, return false (and if we're in the
11131         nested WaitForHwndMessage, repost the WM_QUIT message).
11132
11133 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
11134
11135         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
11136         or the MaximizeBox properties.  [Part of bug #80640]
11137
11138 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
11139
11140         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
11141         no links.
11142
11143 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
11144
11145         * ToolStripItem.cs: Fix some tests I broke by checking Visible
11146         instead of visible.
11147
11148 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
11149
11150         * FileDialog.cs: Use text of File name combobox to determine what
11151         files the user selected. Added tokenizer to parse the file names.
11152         Fixes bug #81123.
11153
11154 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
11155
11156         * Control.cs: We can't call SizeFromClientSize in the constructor,
11157         but we still need to do the same work, so make an internal version.
11158         [Fixes bug #80621]
11159
11160 2007-03-12  Jackson Harper  <jackson@ximian.com>
11161
11162         * TreeView.cs:
11163         * TreeNode.cs:
11164         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
11165         IsExpanded.
11166
11167 2007-03-12  Jackson Harper  <jackson@ximian.com>
11168
11169         * TextBoxBase.cs: Now that the handles are being created a little
11170         later, we need to make sure that the document is recalculated when
11171         the handle is created.
11172
11173 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
11174
11175         * Theme.cs: GetLinkFont abstract method added.
11176         
11177         * LinkLabel.cs: 
11178         - Remove CalcTrimRectangle, no longer needed.
11179         - Factor also remove, position issues must be fixed in libgdiplus.
11180         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
11181         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
11182         care about font used to draw links.
11183         - Set TabStop to true when control is "Selectable", control is selectable
11184         when have one or more links. Fixes #80501 (test case is also added).
11185         - Set the LinkArea values after links change, LinkArea values must be
11186         based in first link position and size, a test case was created.
11187         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
11188         the attribute must be true LinkArea.Length > 0. The same was applied to
11189         TabStop.
11190         
11191         * ThemeWin32Classic.cs: 
11192         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
11193         in draw method.
11194         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
11195         color change.
11196         - Draw focus rectangle for every parts focused, including parts that 
11197         is on another line, its because regions returns various rectangles
11198         and not only one. Needed to mimic W32 look.
11199         - Uses Graphics.Clip to delimite region painted, it mean that now 
11200         complete text is passed to DrawString, with this we solve layout
11201         issues without create another text renderer.
11202         - Uses Region.Intersect to fix some flickers problems, now only needed
11203         parts will redrawed.
11204         - This changes fixes #79614 and some other unreported issues, on Linux 
11205         some layout problems still remain, the problem is under 
11206         MeasureCharacterRanges but it is an libgdiplus bug.
11207
11208 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
11209
11210         * TextBox.cs: Set for foreground color.
11211         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
11212         this is already done in Control.
11213
11214 2007-03-10  Jackson Harper  <jackson@ximian.com>
11215
11216         * TextBox.cs: Set the background color, but reset the
11217         backcolor_set flag which is just for the user setting the
11218         background color.
11219
11220 2007-03-09  Chris Toshok  <toshok@ximian.com>
11221
11222         * Control.cs: really remove the call to XplatUI.SetVisible from
11223         CreateHandle(), like I said I did when I merged the branch.
11224
11225         * BindingSource.cs: implement some more of this stuff.
11226
11227 2007-03-09  Jackson Harper  <jackson@ximian.com>
11228
11229         * TextBox.cs: Don't explicitly set our background colors.
11230         * TextControl.cs:
11231         * TextBoxBase.cs: Draw readonly text.
11232         - Need to invalidate when backcolor or readonly are changed.
11233         
11234 2007-03-09  Jackson Harper  <jackson@ximian.com>
11235
11236         * TextBoxBase.cs: Don't set the forecolor until the handle is
11237         created.
11238         - Do not raise OnPaint, and removed some old debug code.
11239
11240 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
11241
11242         * ScrollableControl.cs: Fix mouse wheel scrolling.
11243
11244 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
11245
11246         * Control.cs: Wire up MouseDoubleClick event.
11247
11248 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
11249
11250         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
11251         top or bottom.
11252         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
11253         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
11254         item is added.  This logic was moved to ToolStrip.OnItemAdded.
11255         [Fixes bug #81090]
11256
11257 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11258
11259         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
11260
11261 2007-03-08  Jackson Harper  <jackson@ximian.com>
11262
11263         * TreeView.cs: Show the correct image for selected node (this used
11264         to work, not sure how the code got deleted). Also implemented 2.0 feature
11265         SelectedImageKey.
11266
11267 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11268
11269         * ListView.cs:
11270         * ListViewItem.cs: Cache index in items when retrieving them
11271         in VirtualMode.
11272
11273 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
11274
11275         * ToolStripItem.cs: Don't return the explicit_size if we are using 
11276         AutoSize.  Fixes invalidation issue when user has explicitly set a
11277         size and has AutoSize = true.
11278
11279 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
11280
11281         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
11282
11283 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
11284
11285         * DataGridView.cs: Remove event handler from DataView when a
11286         DataTable is used as DataSource.
11287
11288 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
11289
11290         * Control.cs: Create internal setter for client_size to allow it to be
11291         set without triggering resizing code.
11292         * Form.cs: Calculate client_size in constructor, only change client_size
11293         in FormBorderStyle property if Handle has been created.
11294         [Fixes #80574, #80791]
11295
11296 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
11297
11298         * SystemInformation.cs: Add TerminalServerSession.
11299
11300 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
11301
11302         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
11303         TreeView code.
11304
11305 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
11306
11307         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
11308         Handle before we were supposed to.  Now checks ActivateOnShow property
11309         in Control.
11310         * Control.cs: Add internal ActivateOnShow property.
11311         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
11312         for ActivateOnShow.
11313         * Hwnd.cs Remove no longer needed no_activate field.
11314
11315 2007-03-07  Jackson Harper  <jackson@ximian.com>
11316
11317         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
11318         2.0 properties
11319         * DrawTreeNodeEventHandler.cs: Add
11320         * DrawTreeNodeEventArgs.cs: Correct default value.
11321         
11322 2007-03-07  Chris Toshok  <toshok@ximian.com>
11323
11324         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
11325         to be called before NativeWindow.WndProc.  Put the HwndCreating
11326         magic there to hook up our Hwnd's to handles.
11327
11328 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
11329
11330         * DataGridView.cs: Comment out debug code.
11331
11332 2007-03-07  Chris Toshok  <toshok@ximian.com>
11333
11334         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
11335         to make the rest of the world happy]
11336
11337         * Control.cs (CreateHandle): there's no need to call
11338         XplatUI.SetVisible here, it's effectively done by
11339         XplatUI.CreateWindow on X now, and always was on windows.
11340
11341         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
11342         shortcircuit out of the loop if we have a message loop running on
11343         this thread.
11344
11345         [Changelog from merge]
11346
11347         2007-03-05  Chris Toshok  <toshok@ximian.com>
11348
11349                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
11350                 causes handle creation.
11351
11352         2007-02-28  Chris Toshok  <toshok@ximian.com>
11353
11354                 * ApplicationContext.cs: Add a flag to make sure we only raise the
11355                 ThreadExit event once (ExitThreadCore can be indirectly called
11356                 from a few places.)  I don't like the additional flag, but it
11357                 makes the event ordering/count correct.
11358
11359                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
11360                 without locking the collection.  An enumerator doesn't give us any
11361                 protection from modification anyway.  Lock the thread hash and
11362                 replace the complicated enumerator loop with a foreach.
11363                 (Application.CloseForms): make internal so it can be called from
11364                 ApplicationContext.  This should probably be moved to MWFThread.
11365                 (Application.ExitThread): don't call MWFThread.Current.Exit()
11366                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
11367                 when the runloop exits (in response to WM_QUIT.)
11368                 (Application.RunLoop): add a comment (and check) for
11369                 context.MainForm being null after setting context.MainForm.Visible
11370                 = true.  This is because you're perfectly free to dispose of a
11371                 form in VisibilityChanged.  Chalk this up to another case where we
11372                 need to synchronously generate WM_ACTIVATE from Control.Show.
11373                 Also, add handling for WM_QUIT here so we'll exit the loop.
11374                 
11375                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
11376                 fact that we don't wait if we're only unmapping the whole_window
11377                 makes me a bit nervous, but it doesn't seem to cause any problems
11378                 yet.
11379
11380                 also, add a comment about the stupid, broken and wrong resetting
11381                 of PostQuitState to false in GetMessage().
11382
11383                 In PostQuitMessage, we need to add a WM_QUIT message to the
11384                 thread's queue.  We use the FosterParent to get the right
11385                 handle/hwnd/queue.
11386
11387                 Lastly, in SetVisible, we need to unmap both windows, since the
11388                 waiting only happens when we're unmapping the client window.  So
11389                 now, the *only* time we unmap just the whole_window is in the hack
11390                 for resizing a control to 0,0.
11391                 
11392         2007-02-21  Chris Toshok  <toshok@ximian.com>
11393
11394                 * Application.cs (CloseForms): rewrite this so that we don't
11395                 modify the list while we're traversing it.
11396
11397         2007-02-20  Chris Toshok  <toshok@ximian.com>
11398
11399                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
11400                 of OnHandleCreated.
11401                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
11402                 handle is created.  otherwise we'll create it here.
11403                 (VerticalScrollEvent): same here.
11404
11405                 * Application.cs (CloseForms): call Form.Dispose, don't post
11406                 WM_CLOSE_INTERNAL.
11407
11408                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
11409                 here. Application should Dispose() of the Form's.
11410
11411                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
11412                 WM_DESTROY as well.
11413                 (MapWindow,UnmapWindow): only actually do the waiting for
11414                 SHOWWINDOW if the control we're dealing with is a Form.
11415                 (CreateWindow): if the control isn't a form, SendMessage
11416                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
11417
11418                 * Control.cs (SetVisibleCore): always use is_visible here, not
11419                 value.  If we use value, we can end up re-setting something
11420                 visible if, for instance, you do Control.Hide() in a delegate
11421                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
11422
11423         2007-02-20  Chris Toshok  <toshok@ximian.com>
11424
11425                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
11426                 the message we need.  PeekMessage returning false should not be a
11427                 condition under which we exit the loop.
11428
11429         2007-02-15  Chris Toshok  <toshok@ximian.com>
11430
11431                 * Control.cs (Refresh): only refresh if we've got a handle and are
11432                 visible.
11433                 (CreateAccessibilityInstance): CreateControl() here.
11434                 (UpdateChildrenZOrder): complicate the code loop even more by
11435                 taking into account controls that haven't had their handle
11436                 created, and those that aren't visible.  But on the flip side,
11437                 simplify the code by splitting it into two loops.  one which
11438                 builds up the list of child controls we're interested in, and the
11439                 other that sets the z order of those children.
11440
11441         2007-02-14  Chris Toshok  <toshok@ximian.com>
11442
11443                 * Control.cs: Control.AccessibilityObject causes the control to be
11444                 created, not just the handle.
11445
11446         2007-02-14  Chris Toshok  <toshok@ximian.com>
11447
11448                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
11449                 problem on X where a window might have its handle created (and be
11450                 visible) while the window is unmapped.  calling XConfigureWindow
11451                 on an unmapped window is bad, and generates X errors.
11452
11453         2007-02-13  Chris Toshok  <toshok@ximian.com>
11454
11455                 * Control.cs (CreateHandle): don't loop over our children setting
11456                 their parent here.  do it when in WndProc when we're shown.
11457                 (UpdateChildrenZOrder): make this internal so we can call it from
11458                 ScrollableControl.
11459                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
11460                 creating its handle.  Also, remove the calls to PerformLayout from
11461                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
11462                 OnVisibleChanged only seems to be called directly here for the
11463                 toplevel control.  It's propagated down the window hierarchy by
11464                 calls to child.OnParentVisibleChanged.
11465                 (OnVisibleChanged): don't do layout here - it's done (oddly
11466                 enough, according to a glance at stack traces on ms.net..) in
11467                 ScrollableControl.
11468                 
11469                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
11470                 z order of our children before calling PerformLayout.
11471
11472         2007-02-12  Chris Toshok  <toshok@ximian.com>
11473
11474                 [big change, fixes #80020]
11475                 
11476                 * AccessibleObject.cs: we need to make owner internal again to fix
11477                 some of ControlAccessibleObject.
11478
11479                 * Control.cs: lots of changes here.  add support for WM_CREATE,
11480                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
11481                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
11482                 we create child controls.  leave the MonoTODO's for the
11483                 accessibility calls, but fix the exceptions so the tests pass.
11484
11485                 Add the InvalidOperationExceptions to Invoke methods, and remove a
11486                 couple of InvokeInternal methods we aren't using.
11487                 
11488                 Also, add a couple of CreateHandle calls in places where we know
11489                 the handles are being created but our code doesn't reference
11490                 .Handle.
11491
11492                 Make SetVisibleCore call OnVisibleChange if the handle isn't
11493                 created.  If the handle is created, we rely on XplatUI.SetVisible
11494                 generating the event synchronously.
11495                 
11496                 Lastly, make sure we don't use this.Handle inside CreateHandle,
11497                 because we can call back into client (and that code can dispose of
11498                 the control).
11499
11500                 * XplatUIStructs.cs: misc/cleanup.
11501
11502                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
11503                 although we don't populate the wParam properly.
11504                 (CreateWindow): generate WM_CREATE.
11505                 (MapWindow,UnmapWindow): make these calls synchronous, at great
11506                 performance expense (particularly in the unmap case), to match
11507                 win32 behavior.
11508
11509                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
11510                 to call it.
11511                 (set_MdiParent): don't recreate the handle unless it's been
11512                 created already.
11513                 
11514                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
11515                 it's created.
11516
11517                 * NativeWindow.cs: this is probably the weirdest part of the
11518                 patch.  We need a way to link up the window being created to the
11519                 WM_CREATE message.  Since we can only be creating one window at a
11520                 time on a given thread, we keep track of a per-thread reference so
11521                 we can dispatch it properly.  We also need to keep track of the
11522                 Hwnd currently being created so that the win32 backend doesn't
11523                 have problems.
11524                 
11525                 * XplatUIWin32.cs: a similar change to the one we made in
11526                 NativeWindow.cs.
11527
11528 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
11529
11530         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
11531         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
11532         to draw the menu shortcut string.
11533
11534 2007-03-07  Jackson Harper  <jackson@ximian.com>
11535
11536         * TreeNode.cs: Add the 2.0 collapse method.
11537
11538 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
11539
11540         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
11541
11542 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
11543
11544         * DataGridView.cs: Change DataSource will clear column and row
11545         lists. Call Invalidate() to reflect DataSource change.
11546
11547 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
11548
11549         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
11550         and a new row is added to it.
11551
11552 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
11553
11554         * DataGridView.cs: Add columns when DataSource is en empty list but
11555         is a System.Data.DataView (from a System.Data.DataTable).
11556
11557 2007-03-06  Andreia Gaita  <avidigal@novell.com>
11558
11559         * Label.cs: Implement AutoEllipsis (2.0)
11560
11561 2007-03-06  Jackson Harper  <jackson@ximian.com>
11562
11563         * TreeView.cs: Implement 2.0 TopNode setter property.
11564         - Use a local var instead of the skipped_nodes field for computing
11565         how many nodes to skip.  Otherwise we won't scroll because the
11566         valuechanged handler checks if skipped_nodes is equal to the new
11567         value.
11568         - Implement 2.0 Sort method.
11569         - Add useless 2.0 DoubleBuffer property
11570         - Implement 2.0 LineColors property.  Lets you change the color of
11571         the lines in the tree. Terribly useful for creating non cohesive
11572         desktops.
11573         - Implement 2.0 image key feature.
11574
11575 2007-03-06  Jackson Harper  <jackson@ximian.com>
11576
11577         * TreeView.cs: We can't get the bounds of the nodes before raising
11578         the AfterSelect event, because that event could change the node's
11579         bounds (scrolling, font change, etc).
11580
11581 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11582
11583         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
11584         * Form.cs: Don't recreate handle when creating FormWindowManager, just
11585           update window styles. In CreateParams us VisibleInternal instead of
11586           VIsible to get the actual visible flag set for this form.
11587         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
11588           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
11589           handle the case when the form is already maximized, in which case
11590           it should be restored. Fixes #81043.
11591
11592 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11593
11594         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
11595
11596 2007-03-05  Jackson Harper  <jackson@ximian.com>
11597
11598         * TreeViewHitTestInfo.cs: implement.
11599
11600 2007-03-05  Jackson Harper  <jackson@ximian.com>
11601
11602         * InternalWindowManager.cs: class status fix.
11603
11604 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11605
11606         * InternalWindowManager.cs: All windows that have a parent
11607         are confined to their parent when they're being moved.
11608         Fixes #80822.
11609
11610 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
11611
11612         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
11613         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
11614
11615 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11616
11617         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
11618           buttons invisible before deciding which ones should be visible
11619           (fixes minimize/maximize buttons showing up in toolwindows). Remove
11620           an unused variable.
11621         * InternalWindowManager.cs: Remove warning.
11622
11623 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11624
11625         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
11626         to throw an InvalidOperationException is virtual mode is being used.
11627
11628 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
11629
11630         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
11631         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
11632         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
11633         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
11634         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
11635         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
11636
11637 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11638
11639         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
11640           driver.KeyboardDelay from XplatUI.KeyboardDelay 
11641         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
11642           (patch by Sergey Volk)
11643
11644 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11645
11646         * ToolWindowManager.cs: Added, contains logic for
11647           tool windows.
11648         * CreateParams.cs: Add a few helper methods and an
11649           internal variable to know which control the CreateParams belongs
11650           to.
11651         * Control.cs: Call Form.ChangingParent when the
11652           parent is about to be changed.
11653         * XplatUIX11.cs: DeriveStyles (): Set
11654           caption_height for all windows that have captions and are children.
11655           Update to use ToolWindowManager instead of InternalWindowManager
11656           for ToolWindows.
11657         * XplatUIWin32.cs: Set fake window styles for all
11658           windows that have window managers.
11659         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
11660           now duplicated for mdi windows when they are
11661           maximized, first for the buttons the window itself has, then for
11662           the buttons that appear in the menu bar. Makes things a little
11663           easier). Updated UpdateWindowDecorations, SetWindowState and the
11664           mouse eventhandlers accordingly.
11665         * Form.cs: Add ChangingParent (), contains the
11666           logic of what should happen when the parent changes. In MdiParent
11667           don't set things that ChangingParent () is doing. When handling
11668           WM_CLOSE, we can close the form if there are any other modal forms
11669           and the current form is a descendent of the modal form.
11670         * InternalWindowManager.cs: A lot of refactoring,
11671           the title buttons are now extracted to a separate container class
11672           that takes care of all button code (clicks, tooltips, etc). Moved
11673           Iconic|Maximized|Normal Bounds properties to this class from
11674           MdiWindowManager, so that the window state logic can succeed for
11675           other than mdi wm's. Implemented general window state change logic.
11676           Moved CreateButtons to ThemeWin32Classic, since the theme might
11677           override which buttons are available when as well as the exact
11678           location.
11679         * FormWindowManager.cs: Added, contains logic for
11680           normal forms.
11681         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
11682           which buttons go where (and if they are at all visible). 
11683           Removed special handling of maximized windows, since they aren't special. 
11684           In DrawManagedWindowDecorations don't try to draw the text if it is
11685           empty.
11686         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
11687           use whatever the wm gives us.
11688
11689 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
11690
11691         * ButtonBase.cs: Add 2.0 properties.
11692         * Button.cs: Override Draw for 2.0.
11693         * Control.cs: Add Entered and Selected properties.
11694         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
11695         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
11696         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
11697         buttons.
11698         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
11699
11700 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
11701
11702         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
11703
11704 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
11705
11706         * XplatUIWin32.cs: Register a new class with Windows each time we get
11707         a new ClassStyle.  [Fixes bugs #79432, #80817]
11708         * Controls.cs: Set the correct ClassStyle in CreateParams.
11709         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
11710
11711 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
11712
11713         * ListView.cs: Add fireEvent argument to ReorderColumn since the
11714         ColumnReordered event must not be signaled when modifying DisplayIndex
11715         of a ColumnHeader. Added internal ReorderColumns method which takes
11716         care of drawing, and updating the internal DisplayIndex of the
11717         ColumnHeader. Added AddColumn method which is invoked from
11718         ColumnHeaderCollection when adding or inserting columns, and which
11719         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
11720         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
11721         Recalculated dispay indices after removing a ColumnHeader.
11722         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
11723         match MS. Allows last display index to be returned after ListView
11724         is disposed. Update actual location of ColumnHeader when DisplayIndex
11725         is modified.
11726
11727 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
11728
11729         * LinkLabel.cs: Improve CalcTrimRectangle.
11730         
11731         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
11732
11733 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
11734
11735         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
11736         get rectangle as a result value.
11737
11738 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
11739
11740         * LinkLabel.cs: Theres some diferences between rectangle return from 
11741         MeasureCharacterRanges and the area used for DrawString to fix this 
11742         CalcMeasurementFactor method was created, it calcules the diferences
11743         to be use later to adjust rectangle in draw operations. Fixes #80473.
11744         
11745         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
11746         to adjust draw rectangle.
11747
11748 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
11749
11750         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
11751         text and some other changes to reduce and optimize source code.
11752
11753 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
11754
11755         * RadioButton.cs: Implement 2.0 event.
11756         * RelatedImageListAttribute.cs: Implement new class.
11757
11758 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
11759
11760         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
11761
11762 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
11763
11764         * CheckBox.cs: Implement 2.0 functionality.
11765
11766 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11767
11768         * ListView.cs: Refactor Add and AddRange methods of
11769         ListViewItemCollection, to not update the ListView
11770         everytime an item is added in AddRange. Also move the update
11771         code to a new CollectionChanged method, and call it
11772         from other methods that need it as well (this should also fix some
11773         bugs when Sorting is used).
11774
11775 2007-02-27  Jackson Harper  <jackson@ximian.com>
11776
11777         * TextControl.cs: Try to never let the caret stay in a non-text
11778         tag.
11779         * TextBoxBase.cs: Update the caret.
11780
11781 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
11782
11783         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
11784         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
11785         delete POINT structure, duplicate of one in XplatUIStructs.
11786         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
11787
11788 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
11789
11790         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
11791         edit box since otherwise the Label would immediately be set (even if
11792         the user did not modify the label). In OnKeyDown set Handled to true
11793         if Return or Escape was pressed. In ColumnHeaderCollection unlink
11794         columns that are to be removed. In ListViewItemCollection unlink items
11795         that are to be removed.
11796
11797 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
11798
11799         * TextRenderer.cs: If we set a GDI clip region, we need to clear
11800         it when we are done.  [Fixes bug #80949]
11801
11802 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
11803
11804         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
11805
11806 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11807
11808         * ListView.cs: I forgot to commit the changes for ListView 
11809         in my previous patch.
11810
11811 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
11812
11813         * Clipboard.cs: Partially implement an overload of SetDataObject.
11814         * Form.cs: Implement ShowWithoutActivation.
11815         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
11816
11817 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11818
11819         This is a first set of changes to make the Virtual mode works,
11820         by avoiding the retrieval of ListViewItem instances until
11821         draw time.
11822
11823         * ListView.cs: Store item position in the ListView instead of the
11824         ListViewItem, this way we don't request the Bounds property of
11825         ListViewItem inside the ListView calculations, as well as cache the item
11826         size in item_size field. Store indexes instead of ListViewItem
11827         instances in the matrix used by icon view. Add a ItemMatrixLocation
11828         struct to hold the row and col info of the matrix info.
11829
11830         * ListViewItem.cs: Don't store the location anymore, and only cache
11831         the rectangles for GetBounds. Use the ListView.GetItemLocation
11832         method to retrieve the actual location.
11833
11834 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
11835
11836         * TextRenderer.cs: Add clipping support, thanks to George.
11837         [Fixes bug #80949]
11838
11839 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
11840
11841         * ListViewItem.cs: Cancel label edit when item is removed from 
11842         ListView.
11843         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
11844         event before the edit textbox is displayed.  Added CancelEdit method
11845         which is used end to editing while ignoring the value set by the
11846         user. In EndEdit, set focus to ListView to avoid losing focus to
11847         other controls. In ListViewItemCollection.Clear, cancel editing of
11848         any of the items.  In Remove, cancel editing of item being removed.
11849         Avoid udplicate code by modifing RemoveAt to invoke Remove.
11850
11851 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
11852
11853         * FileDialog.cs: Update FSEntry when move is successful. Fixes
11854         bug #80948.  
11855
11856 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
11857
11858         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
11859         compatible with non X11 systems. Fixes #80901.
11860
11861 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
11862
11863         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
11864         whether the item should be unselected and reselect. We do no want this
11865         when we're starting to edit the label. Do not fire the 
11866         SelectedIndexChanged event from ListView when its already been fired
11867         by modifying ListViewItem.Selected. Fixes bug #80943.
11868
11869 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
11870
11871         * TextRenderer.cs: Previos commit logic was backwards.
11872
11873 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
11874
11875         * TextRenderer.cs: Don't add padding on MeasureText if we were
11876         sent the NoPadding flag.
11877
11878 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
11879
11880         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
11881         after DrawButton. To prevent image overlaps button borders SetClip and 
11882         ResetClip added before and after draw image. Fixes #79129.
11883
11884 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
11885
11886         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
11887         window size, it fix problem when you run under win32 that theres
11888         Size diferent than ClientSize. Also fix controls size and positions
11889         to mimic Win32. Fixes #80837.
11890
11891 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
11892
11893         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
11894         menu area to fix some problems for non X11 systems. Fixes #80613.
11895
11896 2007-02-22  Jackson Harper  <jackson@ximian.com>
11897
11898         * TreeNode.cs: When a node is expanded, set its is_expanded flag
11899         even if it doesn't have any children.
11900
11901 2007-02-22  Jackson Harper  <jackson@ximian.com>
11902
11903         * TreeView.cs: Calculate the top node 'on the fly', this
11904         eliminates issues where you need to click on the tree before
11905         scrolling it to get the top node computed correctly.
11906         * TreeNodeCollection.cs: We don't need to mess with the top node
11907         anymore.
11908
11909 2007-02-22  Jackson Harper  <jackson@ximian.com>
11910
11911         * DataGridViewRow.cs: Fix typo so height can actually be set.
11912         Patch by Peter Grimm.
11913
11914 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
11915
11916         * FileDialog.cs: Fixed support for renaming files and directories.
11917         * ListView.cs: Do not lose focus when edit is canceled. Process
11918         Escape as regular key (to prevent closing of dialogs).
11919
11920 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
11921
11922         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
11923         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
11924
11925 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
11926
11927         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
11928         did not modify label.
11929         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
11930         modified the text. Reset Label when user presses Escape in edit mode.
11931         Move focus to ListView after having cancelled or finished editing the
11932         label.
11933
11934 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
11935
11936         * ComboBox.cs: Removed unnecessary initializations. Marked items field
11937         private. Clear textbox when Text is set to null and SelectedIndex is
11938         already -1.
11939         * FileDialog.cs: Removed unnecessary initializations. Removed 
11940         workarounds for ComboBox bugs that are now fixed. Modified
11941         DefaultExt, InitialDirectory and Title property to change null to
11942         zero-length string in getters. Avoid directly accessing fields.
11943
11944 2007-02-20  Jackson Harper  <jackson@ximian.com>
11945
11946         * TextControl.cs: Remove RecalAlignments call, that was some
11947         debugging leftovers.
11948         - Don't use the line indent when we shouldn't.
11949         * RichTextBox.cs: Add support for paragraph left indents.
11950
11951 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11952
11953         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
11954         Seems like the class status pages doesn't catch params differences.
11955
11956 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
11957
11958         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
11959
11960 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
11961
11962         * ComboBox.cs: Setting Text should have no effect if item text of
11963         selected item exactly matches value. First lookup text using
11964         case-sensitive comparison, and fallback to case-insensitive comparison.
11965         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
11966         allow startIndex to be last index. Changed ArgumentOutOfRangeException
11967         paramname to match MS. Restart from first item if string is not found
11968         after startIndex. Fixed paramname of ArgumentNullException that is
11969         thrown for null value in ObjectCollection.Contains.
11970
11971 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
11972
11973         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
11974
11975 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11976
11977         * ListControl.cs: In SelectedValue use value.Equals to compare for
11978         equality instead of ==, otherwise it will fail for strings.
11979         Fixes #80794.
11980
11981 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11982         
11983         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
11984         since the caret won't show up unless ShowSelection is true. 
11985         Fixes #80795.
11986
11987 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11988
11989         * Application.cs: When disabling all forms but the main form, do not
11990           disable any descendants of the main form (such as mdi children or
11991           other parented forms). Fixes #80822 on Windows.
11992         * Form.cs: If we have a parent, set the WS_CHILD style.
11993         * Control.cs: Update the window styles if the control whose parent has
11994           changed is a form (the WS_CHILD style has to be switched).
11995
11996 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
11997
11998         * XplatUIStructs.cs: MsgUIState structure added.
11999
12000 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
12001
12002         * FileDialog.cs: Removed need for separate fileName field. On 2.0
12003         profile, do not check filename(s) for illegal character if filename(s)
12004         were set non-interactively but always check on 1.0 profile. Fixed NRE
12005          in DefaultExt and only strip off first leading dot. Improve exception
12006         message when invalid Filter is set. Do not ignore InitialDirectory if
12007         it does no exist. Store specified Title, and if empty use default
12008         title (depending on type of dialog). Added an internal DialogTitle 
12009         property for retrieving dialog title. Fixed logic of displayed dir to
12010         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
12011         string as its buggy.
12012         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
12013         FileName is a zero-length string (it can never be null). Override 
12014         DialogTitle property to set default title of dialog box.
12015         * SaveFileDialog.cs: Override DialogTitle property to set default
12016         title of dialog box.
12017
12018 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
12019
12020         * FileDialog.cs: Modify default text of filename and filetype labels
12021         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
12022         after we've updated the SelectedIndex. Fixes part of bug #80887.
12023         * SaveFileDialog.cs: Set text of filetype label.
12024
12025 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12026
12027         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
12028         label field. Needed by latest Jackson's fixes for ListView.
12029
12030 2007-02-16  Andreia Gaita  <avidigal@novell.com>
12031
12032         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
12033         print preview images.
12034
12035 2007-02-16  Jackson Harper  <jackson@ximian.com>
12036
12037         * ListView.cs: Make AfterLabelEdit work correctly.
12038         * FileDialog.cs: After changing the name of the folder, we have to
12039         make sure that it is created, or that we pop up an error because
12040         it already exists.
12041
12042 2007-02-16  Jackson Harper  <jackson@ximian.com>
12043
12044         * X11Dnd.cs: Implement aliases on mime handlers, so things like
12045         System.String are mapped to text.
12046         - Handle dataobjects, getting all the possible formats out of them
12047         - We dont need the drag event args before we give feedback. This
12048         allows feedback cursors to be immediate before selections have
12049         been converted.
12050
12051 2007-02-16  Jackson Harper  <jackson@ximian.com>
12052
12053         * TextBoxBase.cs: Modified the method for inserting images to
12054         taking a line and position instead of tag and position.
12055         * RichTextBox.cs: Handle PngBlip data by inserting the png image
12056         into the RTF file.
12057         * TextControl.cs: Allow images to be inserted as the first tag of
12058         a line.
12059         - Fix some off by one issues when we assume the first tag is a
12060         text tag, not an image tag.
12061
12062 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12063
12064         * ListView.cs: Set focus to ListView when ItemControl gets a
12065         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
12066         Fixes part of #80467.
12067
12068 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12069
12070         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
12071           validate Text input (if null or empty string reset Value to default
12072           value). Fixes #80830.
12073
12074 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12075
12076         * ListView.cs: Set owner as null for columns and items when
12077         Dispose is invoked. Fixes #80607.
12078
12079 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
12080
12081         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
12082         showing DropDowns, don't show a Grip when doing Flow layout.
12083         [This fixes the toolbox in PDN 2.72.]
12084         * ToolStripItem.cs: Add Anchor property and some internal properties to
12085         reduces needed changes to FlowLayout.
12086         * ToolStripOverflow.cs: Remove unused variable.
12087         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
12088         use it in the layout calculations.
12089
12090 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
12091
12092         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
12093         reported in #79640.
12094         
12095         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
12096         size calculation.
12097
12098 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
12099
12100         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
12101         MeasureString format, it can make button very large in some cases, it is
12102         strange but is what win32 do.
12103
12104 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
12105
12106         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
12107         size calculation.
12108
12109         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
12110         rendering, the value is based on MenuAccessKeysUnderlined.
12111
12112 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
12113
12114         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
12115         for most themes.
12116         
12117         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
12118         
12119         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
12120         and use MenuAccessKeysUnderlined instead.
12121
12122 2007-02-13  Andreia Gaita  <avidigal@novell.com>
12123
12124         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
12125         A selected control would not get a Focus call if:
12126                 - the default active control of the container is the same as
12127                   the one that was selected
12128                 - we are switching from one container to another
12129         Under these conditions, the container being selected already has
12130         an active_control, which is the same as the one being activated, 
12131         so set_ActiveControl would always return and not send the Focus
12132         call. Fix to check if the currently active control of the container
12133         is actually focused.
12134
12135 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
12136
12137         * StatusStrip.cs: Implement the spring layout.
12138         * ToolStripControlHost.cs: Make sure the hosted control's visibility
12139         always matches the host.
12140         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
12141         and TextAfterImage.
12142
12143 2007-02-13  Andreia Gaita  <avidigal@novell.com>
12144
12145         * Control.cs: Code reorganization only.
12146           - Reorganize the WndProc cases so that each case has it's own handling method, 
12147           to help with the no-line-numbering stack traces.
12148           - Formatting changes (it's vstudio's fault, really :p)
12149
12150 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12151
12152         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
12153           Thread.CurrentUICulture to match DateTimePicker's (and MS)
12154           behaviour.
12155
12156 2007-02-12  Jackson Harper  <jackson@ximian.com>
12157
12158         * RichTextBox.cs:
12159         * TextBox.cs: By default we have a non multiline document
12160         - use the multiline property instead of the internal variable
12161         * TextBoxBase.cs: Treat multiline and non multiline the same in
12162         most places.
12163         - Use the documents multiline flag instead of tracking it ourself
12164         * TextControl.cs: Attempt at getting multiline to match MS
12165         behavior.  Lines now track an offset, which is either their X or Y
12166         offset depending on whether or not we are in multiline mode.
12167         - Update all the methods to understand that lines have an X value.
12168         - Fix crash in Undo::Duplicate when empty lines are deleted.
12169
12170 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
12171
12172         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
12173         code moved to properties PreferredHeight and PreferredWidth. It solve the
12174         all problems when preferred sizes must be recalculated. Fixes #80801.
12175
12176 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
12177
12178         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
12179         font height when compatible_text_rendering is false. Partially fix #80801.
12180
12181 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
12182
12183         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
12184
12185 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
12186
12187         * Form.cs: Improved exception messages in ShowDialog.
12188
12189 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
12190
12191         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
12192         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
12193         if not set. Fixes bug #80764. Avoid accessing current_settings field
12194         directly.
12195
12196 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
12197
12198         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
12199         false.
12200
12201         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
12202         public in 2.0 and for easy maintenance and dont break compatibility it is 
12203         internal in 1.1.
12204         
12205 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
12206
12207         * ToolStripItem.cs: Implement using images from ImageList.
12208
12209 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12210
12211         * DateTimePicker.cs: Change default date-formatting culture from
12212           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
12213           seems to be the way MS does it.
12214
12215 2007-02-08  Andreia Gaita  <avidigal@novell.com>
12216
12217         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
12218         (the 6 was cut off on the right side)
12219
12220 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
12221
12222         * Form.cs: Tell MenuStrips to close when the form is clicked.
12223         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
12224         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
12225         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
12226         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
12227         support for Overflow, where items that do not fit are automatically
12228         reparented to a drop down menu.
12229         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
12230         Also: fixes bug #80747.
12231
12232 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12233
12234         * ComboBox.cs: Remove warning (unused code).
12235         * ScrollableControl.cs: Remove warning for 1.1 profile.
12236
12237 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12238
12239         * Form.cs: Remove a warning.
12240
12241 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12242
12243         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
12244           'g' specifier, not documented anywhere, but seems to always show up
12245           as a single space (might have something to do with the DateTime 'g'
12246           specifier, which is the era format, but since DateTimePicker can't
12247           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
12248           won't crash if the format has an unmatched quote. Now shows
12249           single-character formats correctly. Fixes #80744.
12250
12251 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
12252
12253         * StatusStrip.cs: Stretch property needs to call base.Stretch,
12254         not this.Stretch to fix stack overflow. [Fixes bug #80760]
12255
12256 2007-02-07  Chris Toshok  <toshok@ximian.com>
12257
12258         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
12259         background color.  it overwrites the background image we've
12260         already painted.  Fixes #80599.
12261
12262 2007-02-07  Chris Toshok  <toshok@ximian.com>
12263
12264         * DataGrid.cs: return immediately from Edit() when there are no
12265         columns.  Fixes #80662.
12266
12267 2007-02-07  Chris Toshok  <toshok@ximian.com>
12268
12269         * MessageBox.cs: fix #80625.  don't always show the Help button in
12270         2.0.  use the displayHelpButton parameter to determine if we
12271         should show it. Also, make the internal show_help field private.
12272
12273 2007-02-07  Chris Toshok  <toshok@ximian.com>
12274
12275         * Control.cs (SetVisibleCore): check in the proposed patch for
12276         80604, and set is_visible before calling CreateControl.
12277
12278 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
12279
12280         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
12281         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
12282         on it.
12283
12284 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
12285
12286         * MenuAPI.cs: hotkey_active internal field added, it is required because
12287         we need to know when hotkeys must be draw, before this change a keystate
12288         Navigating was used but we can have menu in navigating state without
12289         hotkeys. Fixes #80694.
12290         
12291         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
12292
12293 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12294
12295         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
12296           corresponding events and methods to be internal for 1.1 profile and
12297           public for 2.0 profile (required by SizeGrip).
12298         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
12299           implicit control list). Don't set the size nor the location of the
12300           SizeGrip anymore as it's not needed.
12301         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
12302           draw directly on the captured control (fixes #80656). Removed
12303           ShowGrip (it wasn't used anywhere), redraw (always true), added
12304           GetDefaultSize and GetDefaultRectangle to calculate defaults.
12305         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
12306           be called from SizeGrip.
12307
12308 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12309
12310         * Timer.cs: Throw ArgumentException if Interval <= 0.
12311
12312 2007-02-05  Jackson Harper  <jackson@ximian.com>
12313
12314         * TreeView.cs: We need to check scrollbar visibility when window
12315         visibility is updated, because non visible trees don't ever add
12316         scrollbars.
12317         * Cursor.cs: We want the override cursor to be reset to NULL when
12318         we set current cursor to the default cursor.
12319
12320 2007-02-05  Jackson Harper  <jackson@ximian.com>
12321
12322         * TextControl.cs: Don't have crlfs when we are non multiline.
12323         - Consolidate the line position.
12324
12325 2007-02-05  Jackson Harper  <jackson@ximian.com>
12326
12327         * X11Keyboard.cs: BACK+CTRL gets a special char code.
12328
12329 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12330
12331         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
12332           handling LeaveNotify->NotifyUngrab in order to send
12333           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
12334           after calling XUngrabPointer, so we call WindowUngrabbed directly
12335           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
12336         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
12337           MouseCaptureChanged correctly. Also create handles if changing
12338           Capture (matches MS behaviour).
12339
12340 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12341
12342         * SizeGrip.cs: Make the last change 2.0 only.
12343
12344 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12345
12346         * SizeGrip.cs: If resizing and the capture is lost, revert any size
12347           changes to initial size (fixes #80597).
12348
12349 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12350
12351         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
12352
12353 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12354
12355         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
12356           background) and only allow dragging if enabled. This way the
12357           sizegrip can be used to fill the open square that otherwise would
12358           have been shown in the bottom right corner of ScrollableControl
12359           when ScrollableControl is not suppose to support sizing.
12360         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
12361           sizegrip is shown and enabled, and hook up with necessary events.
12362
12363 2007-02-01  Chris Toshok  <toshok@ximian.com>
12364
12365         * DataGridTextBoxColumn.cs: clean up the
12366         GetFormattedString/GetColumnValueAtRow combination of functions.
12367         Also fix UpdateUI, and the initial state of
12368         IsInEditOrNavigateMode.
12369
12370         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
12371         aren't supposed to scroll the textbox here, we're supposed to
12372         scroll the datagrid.
12373
12374 2007-02-01  Chris Toshok  <toshok@ximian.com>
12375
12376         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
12377         setting the position.
12378
12379 2007-02-01  Chris Toshok  <toshok@ximian.com>
12380
12381         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
12382         here, since the most recent focus fixes keep us from generating
12383         the Leave event when our textbox gets focus.
12384         (Edit): we should be passing null for the column style's
12385         instantText parameter.
12386         
12387 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
12388
12389         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
12390         raised.  Fixes menu text/icons not showing up in PDN.
12391
12392 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12393
12394         * Control.cs: Remove code in constructor that makes every
12395         control with WS_CHILD set have initial location -1, -1.
12396
12397 2007-01-31  Jackson Harper  <jackson@ximian.com>
12398
12399         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
12400         XplatUIX11.
12401         * XplatUIX11.cs: Give teh keyboard to teh dnd.
12402
12403 2007-01-31  Jackson Harper  <jackson@ximian.com>
12404
12405         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
12406         - Remove some debug code.
12407
12408 2007-01-31  Jackson Harper  <jackson@ximian.com>
12409
12410         * XplatUIX11.cs: If you set the override cursor during a grab, it
12411         should actually override the grab cursor.  This comes into play
12412         when you are setting custom cursors in a DND feedback method.
12413
12414 2007-01-31  Jackson Harper  <jackson@ximian.com>
12415
12416         * X11Dnd.cs: Add support for handling the QueryContinue and
12417         GiveFeedback events.
12418         - Cancel drag and drop actions when the escape key is clicked.
12419         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
12420         can handle the ESCAPE key.
12421         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
12422         done when dnd events are continued after the button is released.
12423         - Add a new helper method so that dnd can translate key events.
12424
12425 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
12426
12427         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
12428         make it more obvious what is happening.
12429
12430 2007-01-30  Jackson Harper  <jackson@ximian.com>
12431
12432         * XplatUIX11.cs: Don't break when handling button release in drag
12433         and drop operations. We need that BUTTONUP message to get through
12434         so capture is released.
12435         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
12436         this is handled automatically when the mouse is down.
12437
12438 2007-01-30  Jackson Harper  <jackson@ximian.com>
12439
12440         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
12441         is closed, so we need to make sure that we aren't changing the
12442         dialog result when the OK (Open or Save) button has been clicked
12443         and we are closing the window ourselves.  Note we don't need to
12444         worry about the cache being written in this case, because it was
12445         already done in the previous FilOk call.
12446
12447 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12448         
12449         * DateTimePicker.cs: Remove a warning.
12450         * ComboBox.cs: Remove a couple of warnings.
12451
12452 2007-01-29  Chris Toshok  <toshok@ximian.com>
12453
12454         * XplatUIX11.cs: don't crash, and remove the icon if the user has
12455         set one, if SetIcon is passed a null icon.
12456
12457 2007-01-29  Andreia Gaita  <avidigal@novell.com>
12458
12459         * TextBox.cs: Redraw when the password characters changes
12460         * TextControl.cs: Check if textbox has a password char and draw 
12461         a line of password chars instead of the text in the line. LineTag gets 
12462         an extra Draw() method which allows document.Draw to override the text 
12463         that will be drawn. Removes 1024 char limitation on length of passworded 
12464         lines.
12465
12466 2007-01-29  Jackson Harper  <jackson@ximian.com>
12467
12468         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
12469         single chars is not.
12470
12471 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
12472
12473         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
12474         one pixel.  Fix a StackOverflowException caused by an overload wrongly
12475         calling itself.
12476
12477 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
12478
12479         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
12480         also remove ProcessArrowKey and put the code inside ProcessKeys.
12481
12482 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
12483
12484         * PaddingConverter.cs: Added.
12485
12486 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12487         
12488         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
12489         ShowPanels is false (fixes #80600). Only draw up to 127 characters
12490         of text (fixes #80601). For panels clip the text to draw to the
12491         panel (fixes #80603).
12492
12493 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12494
12495         * ComboBox.cs: Fixed implementation of ResetText.
12496
12497 2007-01-25  Jackson Harper  <jackson@ximian.com>
12498
12499         * TextControl.cs: For the last char of a line we need to use the
12500         line size, not that chars width, since it won't actually be
12501         computed since the right side of a char is based on the start of
12502         the left side of the next char, and the next char does not exist.
12503
12504 2007-01-25  Chris Toshok  <toshok@ximian.com>
12505
12506         * Splitter.cs: fix the new unit tests, and reindent some switch
12507         statements.
12508
12509 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12510
12511         * ComboBox.cs: Implemented 2.0 methods and events.
12512         * TextBoxBase.cs: Added OnTextUpdate, so that
12513         ComboBox.ComboTextBox can inform ComboBox of it.
12514
12515 2007-01-25  Jackson Harper  <jackson@ximian.com>
12516
12517         * TextControl.cs: Respect ShowSelection when deciding whether or
12518         not to display the caret, this allows comboboxes to have carets
12519         when the combotextbox does not have focus.
12520
12521 2007-01-25  Jackson Harper  <jackson@ximian.com>
12522
12523         * TextControl.cs: Add a Suspend/Resume for updating, basically the
12524         same as the Suspend/Resume for recalc, except this will do actual
12525         Invalidates.
12526         - New Undo manager, works much like the MS version.
12527         - Implemented Redo
12528         * TextBoxBase.cs: The Cut operation is undoable.
12529
12530 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12531         
12532         * TextBoxBase.cs: Don't antialias text. Makes it look way better
12533         on Windows (no difference on Linux).    
12534
12535 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12536
12537         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
12538         we don't want to activate any windows. Fixes #79433.
12539
12540 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
12541
12542         - ButtonBase.cs: Fix capitalization of parameter: disposing.
12543         [Fixes bug #80609]
12544
12545 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
12546
12547         * FileDialog.cs:
12548         - Move to using System.ComponentModel.EventHandlerList
12549         - Replace Refresh with Invalidate
12550         - Clear the mime filecache on closing
12551         - Some other memory reducing work. After beeing closed FD now uses
12552           only about 300 KB for the fdo mime stuff plus the memory of the
12553           cached icons.
12554         * Mime.cs: Changed coding style and removed unnecessary commented
12555         code. Some more memory memory reducing work.
12556
12557 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12558
12559         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
12560         a few other missing 2.0 properties.
12561         * Theme.cs: Added DrawFlatStyleComboBox.
12562         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
12563
12564 2007-01-24  Chris Toshok  <toshok@ximian.com>
12565
12566         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
12567         wake_waiting flag, not just when there's data to be read.  if we
12568         don't, then future wakeup's won't reach us and we'll be doomed to
12569         wait for the entire 1 second timeout forever (unless there are X
12570         events to be had).
12571
12572 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
12573
12574         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
12575         until you pass Items.Count, not Items.Count - 1 like 1.1.
12576
12577 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
12578
12579         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
12580
12581 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
12582
12583         * ToolStripContainer.cs: The recent Dock fix exposed that I was
12584         adding the panels in the wrong order.
12585
12586 2007-01-24  Jackson Harper  <jackson@ximian.com>
12587
12588         * TextBoxBase.cs: When we move the caret we also need to move the
12589         selection, this fixes some random crashing after doing select
12590         text, unselect, delete a char, paste.
12591
12592 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12593
12594         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
12595
12596 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
12597
12598         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
12599         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
12600         * ToolBar.cs: Force redraw in BackgroundImageChanged.
12601
12602 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
12603
12604         * ToolBar.cs:
12605         - Implement support for vertical toolbars. Fixes #80539;
12606         - Call LayoutToolBar when resize, it fix some other problems in layout.
12607         - Rename requested_height to requested_size, as we can have width on it
12608         when toolbar is vertical.
12609         - Create a private property "Vertical" that uses Dock to verify when 
12610         toolbar is vertical or not.
12611         - Set ControlStyles when change Dock property.
12612         - Refactory in LayoutToolBar to have better variables names and to support
12613         vertical toolbars.
12614         - Fixes default value for ButtonSize when button count is equal zero, size
12615         must be (39, 36) test case writed.
12616
12617 2007-01-23  Chris Toshok  <toshok@ximian.com>
12618
12619         * Control.cs: fix the checks so that they work correctly for mdi
12620         parents/children.
12621
12622 2007-01-23  Chris Toshok  <toshok@ximian.com>
12623
12624         * Control.cs: ControlCollection seems to have super-secret
12625         abstraction breaking knowledge of Mdi containers.  allow MdiClient
12626         to add toplevel controls.
12627
12628 2007-01-23  Chris Toshok  <toshok@ximian.com>
12629
12630         * Control.cs: throw an ArgumentException if a toplevel control is
12631         added to our control collection from ControlCollection.Add, as
12632         well as from ControlCollection.IList.Add.  This fixes the
12633         ControlSetTopLevelTest.TestTopLevelAdd unit test.
12634
12635         Also, in ControlCollection.IList.Add, don't through an
12636         ArgumentNullException, throw an ArgumentException, when value ==
12637         null.  This matches MS.
12638
12639 2007-01-23  Chris Toshok  <toshok@ximian.com>
12640
12641         * BindingSource.cs: initial, incomplete, implementation of
12642         BindingSource.
12643
12644 2007-01-23  Jackson Harper  <jackson@ximian.com>
12645
12646         * TextControl.cs:
12647         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
12648         that I can fix a broken unit test (TextBoxTest::ClearUndo)
12649         
12650 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
12651
12652         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
12653
12654 2007-01-23  Andreia Gaita  <avidigal@novell.com>
12655
12656         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
12657         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
12658         IndexOfKey() for 2.0
12659
12660 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12661
12662         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
12663         to prevent it from changing z-order.
12664         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
12665         leave UI updates in MdiWindowManager.
12666         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
12667         1 sized (NC handling goes weird on Linux otherwise).
12668         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
12669         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
12670         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
12671         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
12672         and SetWindowState(s) to allow for changing the size of an activated child
12673         before activating it (reduces a lot of flicker).
12674
12675 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
12676
12677         * Form.cs: Changing FormBorderStyle has different semantics based
12678         on whether the Form is visible or not.  If not visible, don't change
12679         the Size.  But InvalidateNC needs to be called to force the window
12680         to pick up the changes and redraw itself.  [Fixes bug #80574]
12681
12682 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
12683
12684         [Moma work]
12685         * ContainerControl.cs: ProcessCmdKey.
12686         * ErrorProvider.cs: new constructor.
12687         * Form.cs: fix AutoValidateEvent compiler warning.
12688         * Label.cs: fix OnAutoSizeChanged compiler warning.
12689         * MenuStrip.cs: fix CanOverflow compiler warning.
12690         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
12691         * TextBox.cs: Dispose.
12692         * ToolStrip.cs: CanOverflow, re-enable double buffering.
12693         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
12694         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
12695         * ToolStripItem.cs: Overflow, RightToLeft properties.
12696
12697 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12698
12699         * Form.cs: Move the layout of the main form to MdiWindowManager.
12700         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
12701         do a layout of the main window to update MdiClient's client area to
12702         the right area. Fixes #80533. Remove the calculation of nc size, 
12703         it was just wrong and the correct one is the same as for 
12704         InternalWindowManager. 
12705
12706 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
12707
12708         * Control.cs: Setting Anchor or Dock needs to reset the other
12709         to its default.  [Fixes bug #80556]
12710
12711 2007-01-20  Chris Toshok  <toshok@ximian.com>
12712
12713         * CheckedListBox.cs: class status changes.
12714
12715         * ScrollableControl.cs: same.
12716
12717         * RichTextBox.cs: same.
12718
12719         * ContainerControl.cs: same.
12720
12721         * ListView.cs: same.
12722
12723         * NotifyIcon.cs: same.
12724
12725         * MenuStrip.cs: same.
12726
12727         * RadioButton.cs: same.
12728
12729         * CheckBox.cs: same.
12730
12731         * PrintPreviewDialog.cs: same.
12732
12733         * Form.cs: same.
12734
12735 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
12736
12737         * TreeNode.cs: Apply Alan's patch for Name property.
12738
12739 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12740         
12741         * Form.cs: Implemented SizeGripStyle.
12742         * SizeGrip.cs: Check for minimum and maximum size for the
12743         control being resized and only resize if size has actually
12744         changed.
12745
12746 2007-01-19  Chris Toshok  <toshok@ximian.com>
12747
12748         * DataGridColumnStyle.cs: stop setting _readonly in the
12749         PropertyDescriptor setter.  fixes a unit test failure.
12750
12751         also, rename ParentReadOnly to TableStyleReadOnly, and have it
12752         just consult our table style (if we have one).  We don't need to
12753         consult the datagrid readonly attribute because that's passed in
12754         as the _ro arg to Edit.  this simplifies things a little.
12755         
12756         * DataGrid.cs: use CurrentColumn instead of
12757         current_cell.ColumnNumber just to simplify some of the code.
12758
12759         switch the order of some things in the CurrentCell setter to keep
12760         the previous cell from getting a textbox again -
12761         EnsureCellVisibility causes scrolling to happen, which calls Edit.
12762         So we need to set the new cell before calling it.
12763         
12764         call Edit in OnEnter, as does Microsoft.
12765         
12766         also, make sure the current table style isn't the one we create
12767         initially when checking to see if it's different than the one
12768         we're setting it to in BindColumns (this fixes #80421).
12769
12770         * GridTableStylesCollection.cs: table styles can have "" for a
12771         mapping name.  part of the fix for #80421.
12772
12773         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
12774         Edit significantly.
12775
12776 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
12777
12778         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
12779         and less GDI object leaky-er.
12780
12781 2007-01-18  Andreia Gaita  <avidigal@novell.com>
12782
12783         * LinkLabel.cs: Add opaque control style
12784
12785 2007-01-18  Jackson Harper  <jackson@ximian.com>
12786
12787         * TextControl.cs: Calculate width properly.
12788         - Don't store the tag's X offset, this can be figured out very
12789         easily.
12790         - When getting the caret tag make sure to get the last empty tag.
12791
12792 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
12793
12794         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
12795         [Fixes bug #79959]
12796
12797         * Control.cs: Color.Empty shouldn't count for previous transparent
12798         redraw changes.
12799
12800 2007-01-18  Jackson Harper  <jackson@ximian.com>
12801
12802         * TextBox.cs:
12803         * RichTextBox.cs:
12804         * TextControl.cs: Starting to merge in some pieces of my older
12805         undo work.  Basically just some slight cleanup of the undo API.
12806
12807 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12808
12809         * TrackBar.cs: Fix signature of RightToLeftLayout.
12810         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
12811         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
12812         * Application.cs: Implemented UseWaitCursor.
12813
12814 2007-01-18  Jackson Harper  <jackson@ximian.com>
12815
12816         * TextControl.cs: We can't skip tags if any part of the tag is
12817         visible.
12818
12819 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
12820
12821         * ContainerControl.cs: Override OnLayout.
12822
12823 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
12824
12825         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
12826
12827         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
12828         everything else.
12829
12830 2007-01-18  Chris Toshok  <toshok@ximian.com>
12831
12832         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
12833         (leftover from the container_selected days, I'd wager).  fixes bug
12834         #80546.
12835
12836 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
12837
12838         * Control.cs: Apply patch from George to fix the new testcase on
12839         bug #80451.  We can't just check for Color.Transparent, we need 
12840         to check if the back color's alpha channel is < 255.
12841
12842 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
12843
12844         * Form.cs: Move setting show_icon = true to before the constructor
12845         so that the base constructor has that information when it calculates
12846         the form's size.  Was causing forms to be (6, 6) bigger than they
12847         were supposed to be.  Thanks for catching this Rolf!
12848
12849 2007-01-18  Jackson Harper  <jackson@ximian.com>
12850
12851         * TextControl.cs: When replacing a selection we need to invalidate
12852         from the initial selection start, because selection start is moved
12853         to the end of the replacement.
12854
12855 2007-01-18  Andreia Gaita  <avidigal@novell.com>
12856
12857         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
12858
12859 2007-01-18  Chris Toshok  <toshok@ximian.com>
12860
12861         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
12862         I just added.
12863
12864 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
12865
12866         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
12867         layout methods and properties from ToolBarButton must be available
12868         into ToolBarButtonInfo.
12869
12870 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
12871
12872         * Control.cs: If the control has a transparent background, we
12873         need to refresh it when it moves and when it's parent's background
12874         image changes.  [Fixes bug #80451]
12875
12876 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
12877
12878         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
12879
12880 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
12881
12882         * XplatUIWin32.cs: Implement proper double buffering for Windows.
12883         [Fixes bug #80447, and probably speeds up things as well]
12884
12885 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12886
12887         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
12888         * XplatUIWin32.cs: We need to recalculate NC size after changing 
12889         window style to toolwindow (otherwise the client rectangle will be
12890         3 pixels to small for some reason).
12891         * MdiWindowManager.cs: Revert NC size calculations to match how
12892         they are calculated only based on window styles (to match
12893         Win32AdjustWindowRectEx, since otherwise when setting size or 
12894         location, Control will call Win32AdjustWindowRectEx to update client 
12895         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
12896         calculate a different value of client size causing another paint 
12897         (and flickering))
12898         * InternalWindowManager.cs: When moving or resizing a window only
12899         update size or location if they actually changed.
12900         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
12901         (seems to match Windows behaviour better). Cleaned up 
12902         ManagedWindowDecorations to draw what's needed and nothing else
12903         (was drawing borders and lines where they shouldn't be)
12904         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
12905         (style = 0xFFFF) and takes into account caption height when 
12906         calculating window rectangle.   
12907
12908 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
12909
12910         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
12911         can be added to toolbar multiple times, we need to maintain a list of 
12912         button information for each positions.
12913
12914 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
12915
12916         * ToolBar.cs: Some small stetic changes.
12917
12918 2007-01-16  Jackson Harper  <jackson@ximian.com>
12919
12920         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
12921         that allow us to have nested recalc = false blocks.
12922         - Add paste support for images in the RichTextBox
12923         * RichTextBox.cs: flush the text after the color is changed, so
12924         the change takes effect.
12925         - Use SuspendRecalc
12926         - Some extra debugging info
12927         * TextControl.cs: Tags no longer track their length, it is just
12928         computed from the next tags length, this makes things a little
12929         simpler and reduces places that we have to track length changes.
12930         - Refactored the linetag class a little so we could make it
12931         a base class for different kinds of tags
12932         - Created a image tag, a tag that can have a single image inserted
12933         into it
12934         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
12935         that we can call suspend multiple times.
12936         - Add some debugging methods
12937
12938 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12939
12940         * MdiClient.cs: Add ActivatePreviousChild for 
12941         mdi child window navigation.
12942         * Form.cs: Use MdiClient.ActivateNextChild/
12943         ActivatePreviousChild instead of Form.SelectNextControl
12944         to select the next/previous child since 
12945         SelectNextControl doesn't do it in the same order
12946         as mdi children should do it.
12947
12948 2007-01-16  Chris Toshok  <toshok@ximian.com>
12949
12950         * Control.cs: remove container_selected field.
12951
12952 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12953
12954         * MdiClient.cs: Update main form's ActiveChild when
12955         updating keyboard focus for the mdi child.
12956
12957 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
12958
12959         * Control.cs: PreferredSize fix.
12960
12961         * Form.cs: Add several 2.0 events, properties, and methods.
12962
12963 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
12964
12965         * Form.cs: Provide meaningful message when MdiParent is assigned a
12966         Form that is not an MdiContainer.
12967
12968 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12969
12970         * MdiClient.cs: Update main form's ActiveChild when
12971         activating a mdi child.
12972
12973 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12974
12975         * MdiWindowManager.cs: Fix NRE when merging menus and main form
12976         doesn't have a menu.
12977
12978         * Form.cs: Request NCRecalc after creating a mdi child window.
12979         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
12980         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
12981         
12982         * MdiClient.cs: Add new method SendFocusToActiveChild that either
12983         sends keyboard focus to the active child, or to the MdiClient
12984         if there are no child forms.
12985         
12986 2007-01-15  Chris Toshok  <toshok@ximian.com>
12987
12988         * ListView.cs: drop the *Internal overrides, just do our work in
12989         ItemControl's WndProc instead.
12990
12991         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
12992         of the various controls, and forward the events properly (in the
12993         same manner as MS) from the textbox to the UpDown.  Also the
12994         ActiveControl of the UpDownBase gets set properly now.  Finally,
12995         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
12996
12997         * NumericUpDown.cs: set Text in the ctor.
12998
12999         * DomainUpDown.cs: call UpdateEditText in the ctor.
13000         
13001         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
13002         so even a Selectable = false textbox can be focused if you click
13003         in it.  Go figure.
13004
13005         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
13006         just add their handling in their respective WndProc's.  Also add
13007         an explicit FocusInternal method that doesn't consult CanFocus
13008         before calling Select(this).
13009
13010         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
13011         do our work in WndProc instead.
13012
13013         * TabControl.cs: same.
13014
13015         * ComboBox.cs: same.
13016
13017 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
13018
13019         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
13020         Fixes #80006.
13021
13022 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13023
13024         * ListViewItem.cs:
13025         * ThemeWin32Classic.cs: Don't draw the item text outside
13026         item bounds in Details view, as well as use trimming.
13027         Fixes bug #80376.
13028
13029 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
13030
13031         * Form.cs: Implement Form.ShowIcon.
13032         
13033         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
13034         null, which when combined with the DlgModalFrame window style removes
13035         the icon from the title bar.
13036
13037 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
13038
13039         * Control.cs: Call OnMouseClick after OnClick. (2.0)
13040
13041 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
13042
13043         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
13044         menu when mdi child windows theres a menu, uses insert to get icon
13045         at first position. Partially fix #80006.
13046
13047 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
13048
13049         * Clipboard.cs: Implement 2.0 methods.
13050
13051 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
13052
13053         * Menu.cs: Implement Insert method of MenuItemCollection class
13054         to fix MenuMerge.
13055
13056 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13057
13058         * ListView.cs: Implement 2.0 FindItemWithText method.
13059
13060 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
13061
13062         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
13063         to calculate menu bar size. Fixes #80290.
13064
13065 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
13066
13067         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
13068
13069 2007-01-11  Chris Toshok  <toshok@ximian.com>
13070
13071         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
13072         initial form.
13073
13074 2007-01-11  Chris Toshok  <toshok@ximian.com>
13075
13076         * LinkLabel.cs: make sure to call base.Select in our Select method
13077         if it turns out we're going to be selected (i.e. if we have a link
13078         that is going to receive focus).  That way our container's
13079         ActiveControl is updated properly.
13080
13081 2007-01-11  Chris Toshok  <toshok@ximian.com>
13082
13083         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
13084         they have 1 or more links.  this fixes the crash gert reported.
13085
13086 2007-01-11  Andreia Gaita  <avidigal@novell.com>
13087
13088         * ContainerControl.cs: Remove ContainerSelected flag, not needed
13089         anymore.
13090
13091         * Control.cs (Controls.Add): Check if control to be added to the collection
13092         is a top level control, and throw an ArgumentException if it is.
13093         Remove ContainerSelectedFlag, not needed anymore.
13094
13095         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
13096         top most control doesn't activate the form. This fixes a problem in the
13097         MessageBox, where the default button wouldn't get focus because the form
13098         was activated before being Loaded - when the Owner is set, SetTopMost is
13099         called, and it would activate it.
13100
13101 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
13102
13103         * Button.cs: When clicked and setting the parent form's DialogResult,
13104         use FindForm instead of Parent, since parent could be a container
13105         control and not the Form.  Fixes bug #80495.
13106
13107 2007-01-10  Chris Toshok  <toshok@ximian.com>
13108
13109         * Form.cs: move the call to SendControlFocus into the same
13110         is_loaded check.
13111
13112 2007-01-10  Chris Toshok  <toshok@ximian.com>
13113
13114         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
13115         It breaks in the face of the new ActiveControl stuff, and should
13116         be unnecessary.
13117
13118         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
13119         activecontrol's focus if it's not already set, after we set
13120         ActiveControl, but before we call OnActivated.  Re-fixes #79667
13121         after the previous focus/active control fixes regressed it.
13122
13123         * Control.cs: reindent some code.
13124         
13125 2007-01-10  Chris Toshok  <toshok@ximian.com>
13126
13127         * Splitter.cs: clearing some outstanding changes from my tree.
13128         Replace all accesses (not writes) to the internal dock_style field
13129         with the Dock property.
13130
13131 2007-01-10  Chris Toshok  <toshok@ximian.com>
13132
13133         * Control.cs: make FireEnter, FireLeave, FireValidating, and
13134         FireValidated virtual.
13135
13136         * Form.cs: override and don't chain up calls to FireEnter and
13137         FireLeave.
13138
13139 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13140
13141         * ListView.cs: Add more text padding space when using
13142         auto resize for columns (the previous value didn't work fine).
13143
13144         * ThemeWin32Classic.cs: Update text position inside columns,
13145         to match the appeareance of .Net.
13146
13147         * ColumnHeader.cs: When using auto resize, only the Width should
13148         depend on the sub items, not the Height. Also, set width after
13149         auto resizing (the value of Width should never remain as -1 or -2).
13150
13151 2007-01-10  Chris Toshok  <toshok@ximian.com>
13152
13153         * Application.cs: fix compilation errors when debug is enabled.
13154
13155 2007-01-10  Chris Toshok  <toshok@ximian.com>
13156
13157         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
13158         add some nice ascii art pictures and explanation of the process).
13159         (GetMostDeeplyNestedActiveControl): new utility function we need
13160         because our ActiveControl can refer to a child container with its
13161         own ActiveControl.
13162
13163         * Form.cs (OnActivated): remove the call to SelectActiveControl
13164         from here, since you can override this method and not chain up,
13165         and winforms still sets the active control.
13166         (OnCreateControl): also remove the unnecessary SelectActiveControl
13167         call from here.
13168         (WndProc): it's actually called from the WM_ACTIVATE block, just
13169         before calling OnActivated.
13170
13171         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
13172         inside the else.  the ActiveControl setter will end up setting
13173         focus on @control.  This keeps us from setting it again (and
13174         generating an extra LostFocus/GotFocus pair).
13175         (Select (bool, bool)): reindent.
13176
13177 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
13178
13179         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
13180         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
13181         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
13182         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13183         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
13184         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
13185         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
13186         ToolStripTextBox.cs: Another wave of corcompare work.
13187
13188 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13189
13190         * ColumnHeader.cs: Implement 2.0 AutoResize method using
13191         the Width property.
13192
13193         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
13194         methods by callling Column.AutoResize method on columns.
13195
13196 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
13197
13198         * Control.cs: Provide proper implementations of PreferredSize
13199         and GetPreferredSize (2.0).
13200
13201 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
13202
13203         * Form.cs: Remove one character (!) to make my previous OnClosing
13204         stuff work for modal windows like MessageBox.
13205
13206 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13207
13208         * ListView.cs:
13209         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
13210         ListView.Columns to get the last displayed column. Fixes #80452.
13211
13212 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
13213
13214         * Label.cs, LinkLabel.cs: Source code identation fixes.
13215
13216 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
13217
13218         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
13219         we dont need to invalidate only borders because when we invalidate four
13220         border lines the invalidate's generates a complete redraw of button, 
13221         because it now invalidate a complete rect some other redraws operations
13222         are fixed. Fixes #80196.
13223         
13224         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
13225         Remove ToolBarInvalidateEntireButton as it is not used.
13226
13227 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
13228         
13229         * Form.cs: Make sure that both OnClosing and OnFormClosing are
13230         called for 2.0 profile.
13231         * CloseReason.cs: Make class internal for 1.1.
13232
13233 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
13234
13235         * ToolStripManager.cs: Implement FindToolStrip functionality.
13236         * ToolStrip.cs: Register and unregister with ToolStripManager.
13237
13238 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
13239
13240         * Control.cs: This was messy.  2.0 moves much of ControlCollection
13241         to ArrangedElementCollection.  Implemented this with as few #if's as 
13242         possible (which is still too many).
13243
13244 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
13245
13246         * Control.cs: Implement SizeFromClientSize() [2.0].
13247
13248 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
13249
13250         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
13251         use Theme.BorderSize to calculate area instead of static value 1, 
13252         by the way use new BorderStaticSize instead     Border3DSize when 
13253         border_static is true. Fixes #79537.
13254         
13255         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
13256         
13257         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
13258         it is not needed.
13259
13260 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
13261
13262         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
13263
13264 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
13265
13266         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
13267         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
13268         
13269         * Hwnd.cs: 
13270         - border_static field added, it will used to define when a control 
13271         theres 3D border but it must be static (thin).
13272         - In GetWindowRectangle use Theme.BorderSize to calculate area 
13273         instead of static value 1, by the way use new BorderStaticSize instead
13274         Border3DSize when border_static is true.
13275
13276         * XplatUIX11.cs, XplatUIOSX.cs: 
13277         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
13278         
13279         * Theme.cs: BorderStaticSize field added.
13280
13281 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
13282
13283         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
13284
13285 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
13286
13287         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
13288         mimic same behavior than win32 that set border only in CreateParams,
13289         it fix problems under CreateParams overrides. Fix #79442 and partial
13290         fix #79537.
13291         
13292         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
13293         of thi control you must call recreate handle. 
13294         
13295         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
13296         need to do anything as RecreateHangle will take care about borders.
13297
13298 2007-01-05  Mike Kestner  <mkestner@novell.com>
13299
13300         * ListView.cs: hack to eliminate Lost/Got focus notifications on
13301         cycles between the ItemControl and parent.  Fixes #80388.
13302
13303 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
13304
13305         * Control.cs: Lazy init layout engine. Do not directly use 
13306         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
13307
13308 2007-01-05  Chris Toshok  <toshok@ximian.com>
13309
13310         * DataGrid.cs: don't forceably rebind columns in SetDataSource
13311         unless our list manager has changed (i.e. unless we have reason to
13312         believe our columns have changed).  Fixes #80422.
13313         
13314         also, disable the call do BindColumns in
13315         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
13316         1.1 the event isn't raised in response to a column addition on a
13317         table.)
13318
13319 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
13320
13321         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
13322         that inheritors can not call it if they choose.  Fixes bug #80456.
13323
13324 2007-01-05  Andreia Gaita  <avidigal@novell.com>
13325
13326         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
13327         doesn't blow up with a null exception on marshalling.
13328         
13329 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
13330
13331         * Control.cs: Implement several 2.0 protected properties and methods.
13332         Ensure that all necessary events are being called when properties
13333         are set.
13334
13335 2007-01-05  Mike Kestner  <mkestner@novell.com>
13336
13337         * ListView.cs: implement PgUp/PgDn for Details view.  Also
13338         fixes First/LastVisibleIndex to use the item_control.ClientRect 
13339         instead of the parent control.  Fixes #80378.
13340
13341 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
13342
13343         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
13344           determine whether to use yard-pound or not (bug #78399).
13345
13346 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
13347
13348         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
13349         problems. So it is time to bring back the old popupbutton colors.
13350
13351 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13352
13353         * ColumnHeader.cs:
13354         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
13355         property by using the internal information of the
13356         columns order in ListView.
13357
13358 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
13359
13360         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
13361         Add 2.0 Tag properties.
13362
13363         * LinkArea.cs: Add 2.0 ToString method.
13364
13365 2007-01-03  Chris Toshok  <toshok@ximian.com>
13366
13367         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
13368         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
13369         when we're editing, which fixes #80047.
13370
13371 2007-01-03  Chris Toshok  <toshok@ximian.com>
13372
13373         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
13374         #80404.
13375
13376 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
13377
13378         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
13379         property and implementation.
13380
13381         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
13382         for MdiWindowListItem property.
13383
13384         * ToolStripDropDown.cs: Don't consider hidden menu items while
13385         laying out the menu.
13386
13387 2007-01-03  Andreia Gaita  <avidigal@novell.com>
13388
13389         * SendKeys.cs: window handle is not needed in win32, so just
13390         get the active window for X after parsing keys and don't use
13391         it when building the message; it is passed by parameter to the 
13392         Xplat method and used there to build the message instead. Also,
13393         wait for events to be processed on SendWait, as opposed to Send,
13394         which doesn't wait :) Playing with threads and Send() completely 
13395         hangs on ms.net, only SendWait() works.
13396         
13397         XplatUIX11.cs
13398         X11Display.cs: Check for valid window handle.
13399
13400 2007-01-03  Jackson Harper  <jackson@ximian.com>
13401
13402         * TextControl.cs: Need to prevent wrap calculations when replacing
13403         text (this was there before i removed it accidently).
13404         - Don't update the cursor during the positioning, just set it to
13405         selection_start at the end of the operaion.
13406
13407 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13408
13409         * Control.cs:
13410         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
13411         
13412 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13413
13414         * MonthCalendar.cs: Added Click and DoubleClick events again,
13415         but this time they only hide Control's Click and DoubleClick.
13416         
13417 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
13418
13419         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
13420         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
13421
13422 2007-01-02  Jackson Harper  <jackson@ximian.com>
13423
13424         * TextBoxBase.cs: We move the caret with the split now, so we
13425         don't need to explicitly move the caret after splitting.  This
13426         fixes the caret bumping down an extra line on Enter.
13427
13428 2007-01-02  Miguel de Icaza  <miguel@novell.com>
13429
13430         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
13431         2.72). 
13432
13433         * ScrollableControl.cs: Add Scroll event.
13434
13435 2007-01-02  Mike Kestner  <mkestner@novell.com>
13436
13437         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
13438         to fix all hdr height padding codepaths.  Fixes #80207.
13439
13440 2007-01-02  Chris Toshok  <toshok@ximian.com>
13441
13442         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
13443         setting it to the Control defaults anyway, and it being after the
13444         Dock set was screwing up layout.
13445         (set_Dock): don't short circuit out of setting base.Dock.  Also,
13446         no need to call UpdateStatusBar here, as it'll be re-layed out if
13447         it needs to be.
13448
13449 2007-01-02  Mike Kestner  <mkestner@novell.com>
13450
13451         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
13452         to header height for width == -1. Fixes the rest of #80207.
13453
13454 2007-01-02  Mike Kestner  <mkestner@novell.com>
13455
13456         * ListView.cs: rework the mouse event forwarding everaldo added
13457         to translate the coordinates to the parent control not
13458         raise the parent events until after we've done our work. Hover
13459         needs more work, in the case where HoverSelection is on, because
13460         the item control receives more than one MouseHover per Enter
13461         event, so we need to ensure only the "first" hover gets forwarded.
13462         Opening a minor bug for that.
13463
13464 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
13465
13466         * CheckedListBox.cs: Fixed SelectionMode to match MS.
13467         * ListControl.cs: Implemented AllowSelection property. Removed extra
13468         tabs.
13469         * ListBox.cs: Implemented AllowSelection property.
13470
13471 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
13472
13473         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
13474         SelectedItem, it prevent for errors when you must disable item
13475         before perform click. Fixes #80409.
13476
13477 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
13478
13479         * MenuAPI.cs: Prevent second level and beyond submenus to close
13480         until first level when move out side of popup.
13481         
13482 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
13483
13484         * MenuAPI.cs:
13485         - Down submenu positin in three pixels.
13486         - Closes sub menu when mouse leaves from menu. Fixes #80402.
13487
13488 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
13489
13490         * ThemeWin32Classic.cs:
13491         - Fix popup menu size adding one pixel on the top.
13492         - Down menu item border from two to one to mimic Win32.
13493         - Some source identation fixes. 
13494
13495 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
13496
13497         * ThemeWin32Classic.cs: Use float numbers to calculate size and
13498         position of menu arrows, it fix wrong arrow size.
13499
13500 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
13501
13502         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
13503         instead of line, it simplify draw operation and fix it using 3D
13504         borders to mimic Win32.
13505
13506 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
13507
13508         * StatusStrip.cs: Add implementation of the sizing grip.
13509
13510         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
13511         StatusStrip rendering.
13512
13513 2006-12-31  Chris Toshok  <toshok@ximian.com>
13514
13515         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
13516         override the layout style (anchor/dock) of the control.  assign to
13517         Dock instead.  Fixes bug #80416.
13518
13519         * ToolStrip.cs: same.
13520
13521 2006-12-31  Andreia Gaita  <avidigal@novell.com>
13522
13523         * ContainerControl.cs: Use ContainerSelected flag to check if 
13524         a Container is directly selected, or if Select is called on a 
13525         non-container. If a container is directly selected, focus events 
13526         should not be raised.
13527         Apply #80411 patch to throw exception on set_ActiveControl if 
13528         control is the same as the current one.
13529         
13530         * Control.cs: Use ContainerSelected flag (see above).
13531         Add invalidation check to raise event but not invalidate if 
13532         dimensions are 0.       
13533         Apply #80411 patch.
13534         
13535
13536 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
13537
13538         * MenuAPI.cs: After click, dont close popup menu when menu is
13539         ContextMenu. Fixes #80399.
13540
13541 2006-12-30  Chris Toshok  <toshok@ximian.com>
13542
13543         * ContainerControl.cs: make sure we throw the exception if the
13544         container control doesn't contain the control we're setting
13545         ActiveControl to.
13546
13547 2006-12-30  Chris Toshok  <toshok@ximian.com>
13548
13549         * Control.cs (SetTopLevel): fix the exception raised by
13550         SetTopLevel for child controls.
13551         (set_Anchor): call UpdateDistances when setting the anchor type.
13552         This fixes bug #80336.
13553
13554 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
13555
13556         * Theme.cs: For now, revert back to 8pt font.
13557
13558 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
13559
13560         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
13561         Fixes #80395.
13562
13563 2006-12-29  Chris Toshok  <toshok@ximian.com>
13564
13565         * Control.cs: reorder the code in OnResize to give the same event
13566         ordering as MS.
13567
13568 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13569
13570         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
13571         TileHorizontally and TileVertically.
13572         
13573 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
13574
13575         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
13576         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
13577         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
13578         Corrected copyright and email adress.
13579
13580 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
13581
13582         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
13583         of Exception in FullPath property if no TreeView is associated with
13584         the TreeNode.
13585
13586 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
13587
13588         * Theme.cs: Marked default_font as private, and initialize it in ctor
13589         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
13590         on 2.0 profile.
13591         * ThemeGtk.cs: Removed default_font intialization.
13592         * ThemeWin32Classic.cs: Removed default_font initialization.
13593
13594 2006-12-28  Chris Toshok  <toshok@ximian.com>
13595
13596         * Control.cs: fix a couple of place where we were creating handles
13597         more aggressively than we should be.  Fixes ControlRefresh unit
13598         tests.
13599
13600 2006-12-28  Chris Toshok  <toshok@ximian.com>
13601
13602         * Control.cs: contrary to what the comment said, Control.Dock does
13603         not supercede Control.Anchor - the last one you assign to decides
13604         the layout behavior.  so we need to keep track of which was the
13605         last set.  Also, fix some of the affected property arguments in
13606         PerformLayout calls, and remove an redundant parent.PerformLayout
13607         call in OnResized.
13608
13609         Add a VisibleInternal property, which returns is_visible.  We
13610         can/should get rid of all the usage of this field elsewhere.
13611
13612 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13613         
13614         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
13615         control style, not DoubleBuffer. Added UseDoubleBuffering property
13616         that indicates whether doublebuffering is enabled and supported.
13617         (comment from and code based on Gert Driesen's patch in #80324).
13618         Fixes #80324.
13619
13620 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13621         
13622         * Control.cs: Fixed a NRE.
13623
13624 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13625
13626         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
13627         for 2.0.
13628
13629 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13630
13631         * Control.cs: Rewrote double buffering, now a seperate
13632         class handles all the buffering, no Graphics is disposed of
13633         until the painting is finished (earlier implementation 
13634         would crash if the control was resized in the OnPaint, 
13635         since it would cause the double buffer to be recreated
13636         and the old one disposed), a separate Graphics is 
13637         created for every paint (MS behaviour and anyways the state
13638         of the Graphics would have to be saved and restored otherwise)
13639         
13640         * XplatUIDriver.cs: 
13641         * XplatUIX11.cs:
13642         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
13643         so that we can get the graphics for the back buffer without
13644         having to create a new one and remove the offscreen_dc parameter
13645         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
13646         
13647 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13648
13649         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
13650         Also make virtual all the key-related methods.
13651
13652         * ListViewItem.cs: Make virtual the key related methods for
13653         ListViewSubItemCollection.
13654
13655 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13656
13657         * ListView.cs:
13658         * ListViewItem.cs:
13659         * ThemeWin32Classic.cs:
13660         * Theme.cs: Initial support for Tile view in ListView,
13661         as well as the implementation of the required bits for it (Item
13662         and Subitem).
13663
13664 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
13665
13666         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
13667         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
13668         Provide useful exception messages.
13669
13670 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13671
13672         * TrackBar.cs: Remove a warning.
13673         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
13674         when used by DateTimePicker, fixes #80287. This also requires that 
13675         MonthCalendar implements it's own drawing for the yearly updown control,
13676         otherwise the Capture tracking would be too complicated. Removed the Click 
13677         and DoubleClick events (according to comments they were hiding the base class
13678         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
13679         raise these events, not that they cannot be raised. It is possible to raise 
13680         them by calling OnClick and OnDoubleClick). Added two internal fields in 
13681         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
13682         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
13683         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
13684         event, no longer needed.
13685         
13686 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
13687
13688         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
13689         true if new value differs from current value.
13690
13691 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
13692
13693         * Control.cs: ControlCollection.Count must be public. Fixed build of
13694         unit tests.
13695
13696 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
13697
13698         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
13699
13700 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
13701
13702         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
13703
13704 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
13705
13706         * Control.cs: Invalidates control including when Width and Height is 
13707         equal zero or is not visible, only Paint event must be care about 
13708         this. Fixes #79913.
13709
13710 2006-12-26  Chris Toshok  <toshok@ximian.com>
13711
13712         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
13713         more corcompare work.
13714
13715         * DataGridView.cs: fix compiler warning.
13716
13717         * ColumnHeader.cs: some corcompare work, and also take the
13718         opportunity to make the internal fields private.
13719
13720         * ListView.cs: fix the fallout from the above field change.
13721
13722 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
13723
13724         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
13725         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
13726         ToolStripTextBox.cs: Fixes to events and corcompare.
13727
13728 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
13729
13730         * ListView.cs: Call owner.OnMousexx event to propagate events from
13731         item to ListView. Fixes #80367.
13732
13733 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
13734
13735         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
13736         if value is less than one. ItemHeight should not be set to a value
13737         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
13738         Removed extra tabs.
13739
13740 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
13741
13742         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
13743         * ToolStripStatusLabel.cs: Add Spring for Moma.
13744
13745 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
13746
13747         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
13748         Fixed code formatting. Removed debug code.
13749         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
13750
13751 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
13752
13753         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
13754         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
13755         ArgumentOutOfRangeException if ColumnCount is negative. In 
13756         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
13757         less than 4 or higher than 32768.
13758         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
13759         Fixed FormatProvider to return CurrentCulture unless explicitly set.
13760         Fixed IsFormatProviderDefault to return true if FormatProvider has
13761         not been explicitly set.
13762
13763 2006-12-25  Chris Toshok  <toshok@ximian.com>
13764
13765         * Application.cs: add a couple of 2.0 events.
13766
13767 2006-12-25  Chris Toshok  <toshok@ximian.com>
13768
13769         * Control.cs: fix compiler warning.
13770
13771         * AxHost.cs: corcompare fixes.
13772
13773         * ApplicationContext.cs: corcompare fixes.
13774
13775 2006-12-25  Chris Toshok  <toshok@ximian.com>
13776
13777         * Control.cs: only update dist_right/dist_bottom if the
13778         width/height is > 0.  this fixes anchored controls being resized
13779         smaller until they disappear and then resized larger again.
13780
13781 2006-12-25  Chris Toshok  <toshok@ximian.com>
13782
13783         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
13784         since they're nothing more than X/Left and Y/Top, respectively.
13785
13786         Also, move back to a per-control Bitmap/Graphics for
13787         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
13788         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
13789         Height.
13790
13791 2006-12-25  Miguel de Icaza  <miguel@novell.com>
13792
13793         * MessageBox.cs: Implemented overload that takes a new "bool
13794         displayHelpButton" by adding a new internal field "show_help".
13795         When clicked this will raise the HelpRequested on the owner or the
13796         main form. 
13797
13798         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
13799         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
13800
13801         * ListView.cs: Add support ColumnWidthChanged and
13802         ColumnWidthChanging. 
13803
13804         Add support for ColumnReordered event.
13805         (ReorderColumn): Add NET_2_0 specific support for cancelling the
13806         reorder.
13807
13808         Very nice codebase!
13809
13810         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
13811
13812         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
13813
13814 2006-12-24  Chris Toshok  <toshok@ximian.com>
13815
13816         * GridTablesFactory.cs: 2.0 corcompare work.
13817
13818         * ToolStripContainer.cs: add "override" to
13819         ContextMenuStripChanged, and remove the local event object.
13820
13821         * ToolStripDropDown.cs: same with a couple properties.
13822
13823         * ToolStripPanel.cs: same with AutoSizeChanged event.
13824
13825         * TextBoxBase.cs: add "override" to AutoSizeChanged.
13826
13827         * Form.cs: add the remaining 2.0 events, and do some corcompare
13828         attribute work.
13829
13830         * DateTimePicker.cs: add "new" to padding.
13831
13832         * ButtonBase.cs: use Control's use_compatible_text_rendering.
13833
13834         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
13835
13836         * DataGridView.cs: PaddingChanged is overridden.
13837
13838 2006-12-24  Chris Toshok  <toshok@ximian.com>
13839
13840         * Control.cs: corecompare work here too.
13841
13842         * DataGridViewElement.cs, DataGridView.cs,
13843         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
13844         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
13845         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
13846         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
13847         work.
13848
13849 2006-12-24  Miguel de Icaza  <miguel@novell.com>
13850
13851         * Control.cs: Switched the error message on the console for a
13852         todo.  A review of the code will have to cope with this anyways
13853         (since its a large feature, it is in our radar) and it was
13854         producing too much output when running PDN.
13855
13856         * ToolStripComboBox.cs: Set the text when the SelectedIndex
13857         changes.  Applications depend on this (PDN 2.72)
13858
13859 2006-12-23  Chris Toshok  <toshok@ximian.com>
13860
13861         * TableLayoutSettings.cs: finish up the corcompare work for this
13862         class.
13863
13864 2006-12-23  Chris Toshok  <toshok@ximian.com>
13865
13866         * Control.cs: make SetImplicitBounds internal, do some futzing
13867         with LayoutEngine so that it's available in 1.1, and remove the
13868         entire duplicated code mess from PerformLayout.  Use
13869         System.Windows.Forms.Layout.DefaultLayout instead.
13870
13871         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
13872
13873 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
13874
13875         * Form.cs: Add MainMenuStrip property.
13876
13877 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
13878
13879         * Control.cs: Add ContextMenuStrip property and implementation.
13880         Fix ContextMenu implementation to show menu centered on control when
13881         activated using the keyboard instead of showing at screen (0,0).
13882
13883         * ToolStripDropDown.cs: Fix needed overload of Show ().
13884
13885 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
13886
13887         * Menu.cs: Name property added for 2.0 profile.
13888         
13889 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
13890
13891         * Menu.cs: Update information about FindMenuItem, method to be
13892         implemented soon.
13893
13894 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
13895
13896         * MenuAPI.cs: When deselect items deselect also selected subitems.
13897         
13898 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
13899
13900         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
13901         FindSubItemByCoord to found itens that is not active, also an
13902         cheking added to FindSubItemByCoord to search for items only 
13903         in visible popup windows. Fixes #80274.
13904
13905 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
13906
13907         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
13908         internal property, it be care about change ExStyle. 
13909
13910 2006-12-22  Andreia Gaita  <avidigal@novell.com>
13911
13912         * ContainerControl.cs: set activeControl for parent forms up the 
13913         tree when the new activecontrol is a container.
13914         When validating the active control, if it is a container, also
13915         raise up the validation for it's active control. Fixes #80280
13916         
13917         * Control.cs: Add internal property flag and check to prevent
13918         Focus events from getting raised when Select() is called for
13919         a ContainerControl. There are still too many focus events being
13920         raised at the moment though.
13921         Cleaned up the code a bit.
13922
13923 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13924
13925         * Control.cs: Added all missing 2.0 events.and
13926         fixed a couple of corcompare issues.
13927         * TrackBar.cs: Implemented missing 2.0 bits.
13928         * MonthCalendar.cs, 
13929         * DateTimePicker.cs, 
13930         * MdiClient.cs: Fixed some corcompare issues.
13931
13932 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
13933
13934         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
13935         SplitterPanel.cs: corecompare work.
13936
13937 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
13938
13939         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
13940         Clean up warnings for BackgroundImageChanged and PaddingChanged
13941         events now that they are implemented in Control.cs.
13942
13943 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
13944
13945         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
13946         
13947         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
13948         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
13949         of TableLayoutPanel and supporting cast.
13950
13951 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13952
13953         * XplatUIWin32.cs: 
13954         - GrabWindow now confines the mouse pointer to the confine window.
13955         - Added Win32ClipCursor and Win32GetClipCursor.
13956
13957         * Control.cs: 
13958         - Added CaptureWithConfine to be able to capture and confine 
13959         mouse pointer.
13960         
13961         * InternalWindowManager.cs: 
13962         - Call CaptureWithConfine instead of Capture if we're an
13963         MdiChild (fixes #79982).
13964
13965 2006-12-21  Chris Toshok  <toshok@ximian.com>
13966
13967         * DataGrid.cs: guard against the initial state of selection, where
13968         selection_start == -1.  make sure we only select from index >= 0.
13969         Fixes bug #80291.
13970
13971 2006-12-21  Chris Toshok  <toshok@ximian.com>
13972
13973         * Control.cs: we don't need to be so draconian with
13974         UpdateDistances, and we thusly don't need to call it before
13975         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
13976
13977 2006-12-21  Daniel Nauck  <dna@mono-project.de>
13978
13979         * ComboBox.cs,
13980         TextBox.cs: Implemented AutoComplete properties.
13981
13982 2006-12-20  Chris Toshok  <toshok@ximian.com>
13983
13984         * DataGridView*.cs: some corecompare work.
13985
13986 2006-12-20  Jackson Harper  <jackson@ximian.com>
13987
13988         * XplatUIX11.cs: We need to hide the caret when deleting it,
13989         otherwise you get carets left lying around everywhere.
13990         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
13991         prevents getting some weird half drawn caret tracers when
13992         scrolling.
13993         * TextControl.cs: Attempt to reduce the number of times we need to
13994         recreate the caret.
13995
13996 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
13997
13998         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
13999
14000 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14001
14002         * DateTimePicker.cs:
14003         - Implemented missing 2.0 bits.
14004         - Changed some default values to match MS.
14005         
14006 2006-12-20  Jackson Harper  <jackson@ximian.com>
14007
14008         * TextBoxBase.cs: When changing the font across the document we
14009         can't recalculate after changing each line, since that will cahnge
14010         the line count.
14011         - PreferredHeight is a little different than i thought.
14012         - When backspacing, move the caret before we do the actual char
14013         delete, because when that delete crosses a wrap boundary the
14014         positional information will change.
14015
14016 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14017
14018         * Control.cs: Added some missing 2.0 bits: 
14019         BackgroundImageLayout, BackgroundImageLayoutChanged, 
14020         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
14021         add IBindableComponent and IDropTarget implementation.
14022         
14023         * MonthCalendar.cs: 
14024         - Added all missing 2.0 features:
14025         BackgroundImageLayout, RightToLeftLayout, 
14026         OnHandleDestroyed, RightToLeftLayoutChanged, 
14027         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
14028         PaddingChanged.
14029         - Rewrote all the BoldDate code, it was completely broken.
14030         - Fixed all the tests (the tests can now be re-enabled, the
14031         problems were not with the tests, but with the control, it was
14032         mostly broken).
14033         
14034         * DateTimePicker.cs: Changed the location where the 
14035         MonthCalendar is shown.
14036         
14037 2006-12-19  Chris Toshok  <toshok@ximian.com>
14038
14039         * DataGridView.cs: add IDropTarget implementation.
14040
14041         * ToolStripPanel.cs: add IDropTarget implementation.
14042
14043 2006-12-19  Jackson Harper  <jackson@ximian.com>
14044
14045         * TextControl.cs: soft now means something different than what it
14046         used to mean, we want to move the caret regardless of whether or
14047         not this break was soft (would we really have wanted the caret
14048         to not move with the break in the old context?)
14049         * TreeView.cs: Make sure we factor in the vert scrollbar when
14050         calculating the horizontal scrollbar's maximum.
14051
14052 2006-12-19  Andreia Gaita  <avidigal@novell.org>
14053
14054         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
14055         check for keywords in alternate casing, close bug #80049.
14056
14057 2006-12-19  Chris Toshok  <toshok@ximian.com>
14058
14059         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
14060         methods (which all do nothing).
14061
14062         * IDropTarget.cs: add the 4 missing methods.
14063
14064 2006-12-19  Chris Toshok  <toshok@ximian.com>
14065
14066         * TableLayoutRowStyleCollection.cs: corcompare work.
14067         
14068         * TableLayoutSettings.cs: same.
14069
14070         * TableLayoutStyle.cs: same.
14071
14072         * TableLayoutColumnStyleCollection.cs: same.
14073
14074 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
14075
14076         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
14077         TableLayoutPanel I've had in my local tree for way too long.
14078
14079 2006-12-19  Miguel de Icaza  <miguel@novell.com>
14080
14081         * TableLayoutSettings.cs: Finish the public API (still needs all
14082         the logic to update on changes). 
14083
14084         * TableLayoutPanelCellPosition.cs: new file.
14085         
14086         * TableLayoutRowStyleCollection.cs,
14087         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
14088         TableLayoutSettings.cs: Track the final 2.0 table api.
14089
14090 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14091
14092         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
14093         and Image List 2.0 members for ColummnHeader.
14094         * ListView.cs: Add key-related 2.0 methods for
14095         ColumnHeaderCollection.
14096
14097 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
14098
14099         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
14100         ArgumentNullException if items argument is null. Ignore null item in
14101         arrays. Removed extra tabs.
14102
14103 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
14104
14105         * MonthCalendar.cs: Fixed InvalidCastException.
14106
14107 2006-12-19  Jackson Harper  <jackson@ximian.com>
14108
14109         * TextControl.cs: Don't increment the position here.
14110         - When calculating char positions only add in the line break size
14111         for hard line breaks.
14112
14113 2006-12-19  Andreia Gaita  <avidigal@novell.org>
14114
14115         * SendKeys.cs: Changed some things to match ms.net behaviour
14116         when parsing shifted capital letters.
14117         
14118         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
14119         Add window handle as parameter to SendInput. X11 needs the 
14120         window handle, and the handle being passed      to it in the keys 
14121         queue is the active control handle (which windows needs), not 
14122         the window handle.
14123         
14124         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
14125         to support SendKeys on X.       
14126         
14127         * X11Keyboard: Implement helper method to lookup a linux keycode
14128         given the virtual keycode. Added table of keycode-2-virtualkey
14129         values to support this.
14130
14131 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14132
14133         * ListView.cs: Add support for SelectedIndexCollection
14134         and SelectedItemCollection 2.0 methods. Implement support
14135         for ImageKey too.
14136         * ListViewItem.cs: Add support for ListViewSubItemCollection
14137         2.0 methods. Also, fix an incorrect behavior of AddRange method
14138         (it shouldn't call Clear).
14139         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
14140
14141 2006-12-19  Jackson Harper  <jackson@ximian.com>
14142
14143         * RichTextBox.cs: 
14144         * TextBoxBase.cs: New args for FormatText
14145         * TextControl.cs: Rewrote the main drawing method, this version
14146         feels a little easier to understand and debug to me.  Hopefully it
14147         does to others also
14148         - Fix FormatText to OR in the new formating values.  Added
14149         FormatSpecified param, basically this works in the same way as
14150         BoundsSpecified in Control.
14151         - Set the caret properties when the caret is positioned.
14152         - When wrapping text make sure that we calculate the width of the
14153         last character
14154         - when calculating alignments we might have wrapped down to the
14155         next line, so don't search for an individual tag, search for the
14156         end of the line
14157         - We need to invalidate the selection area when we replace the
14158         selection.
14159         
14160 2006-12-19  Daniel Nauck  <dna@mono-project.de>
14161
14162         * Application.cs: add Restart () 2.0 support
14163
14164 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
14165
14166         * MenuItem.cs: Invalidate menu item rectangle after change Enable
14167         property. Fixes #80268.
14168         
14169 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
14170
14171         * MenuAPI.cs: Dont trigger select event when closes top menu
14172         item. Fixes #80270.
14173
14174 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
14175
14176         * MenuAPI.cs: When you click on menuitem only trigger onselect
14177         event for top menu itens. Fixes #80271.
14178         
14179 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14180
14181         * MdiWindowManager.cs: Make IconicBounds depend on
14182         the bottom of MdiClient, not the top (fixes #80267)
14183         
14184 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14185
14186         * MdiClient.cs: Added missing 2.0 attribute
14187
14188 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14189
14190         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
14191         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
14192
14193 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
14194
14195         * MenuAPI.cs: Fix click when menuitem is not popup,
14196         this regression was caused by last commit (#80272).
14197
14198 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
14199
14200         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
14201         fire click event or close menu. Fixes #80272.
14202
14203 2006-12-17  Daniel Nauck  <dna@mono-project.de>
14204
14205         * ListViewHitTestInfo.cs: add
14206
14207 2006-12-17  Daniel Nauck  <dna@mono-project.de>
14208
14209         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
14210         * FlatButtonAppearance.cs: add
14211         * DockingAttribute.cs: add
14212
14213 2006-12-17  Chris Toshok  <toshok@ximian.com>
14214
14215         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
14216         and rebind our columns when it does - this way, if you make
14217         changes to the DataTable (or set the Table attribute on a DataView
14218         after setting it as the DataGrid's DataSource, the changes are
14219         made visible.)  Fixes bug #80107.
14220
14221 2006-12-17  Daniel Nauck  <dna@mono-project.de>
14222
14223         * ListViewGroup.cs: add internal Location property for layouting.
14224         * Theme.cs: add abstract ListViewGroupHeight function.
14225         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
14226
14227 2006-12-16  Andreia Gaita  <avidigal@novell.com>
14228
14229         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
14230         Added reset of selected index to 0 when adding first tab page.
14231         Fixes #80264
14232         
14233         * NumericUpDown.cs: Fix NET_2_0 check
14234
14235 2006-12-16  Daniel Nauck  <dna@mono-project.de>
14236
14237         * ListViewGroup.cs: fixed DefaultValueAttribute value
14238
14239 2006-12-16  Daniel Nauck  <dna@mono-project.de>
14240
14241         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
14242
14243 2006-12-15  Miguel de Icaza  <miguel@novell.com>
14244
14245         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
14246         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
14247         ScrollableControl.cs: Add a handful of methods that are
14248         overwritten in 2.0 
14249
14250 2006-12-15  Chris Toshok  <toshok@ximian.com>
14251
14252         * XplatUIWin32.cs: initial implementation of the Reversible
14253         drawing functions.  there are some problems.  DrawReversibleFrame
14254         doesn't seem to work at all for Dashed FrameStyle, and in the
14255         Thick case there are drawing errors at the corners (we probably
14256         need to bind Rectangle instead of doing moveto/lineto's.)
14257
14258 2006-12-16  Andreia Gaita  <avidigal@novell.com>
14259         
14260         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
14261         to send blocks of key messages. Send accumulates keys to send with Flush, 
14262         while SendWait sends all keys immediately.
14263                 
14264         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
14265         XplatUIX11.cs,  XplatUIX11-new.cs:
14266         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
14267         to Win32 SendInput.
14268         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
14269         
14270         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
14271         testing for ms.net on this class is very tricky, as the tests run too fast 
14272         to allow the hook to release, essentially freezing the keyboard and the 
14273         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
14274         category :p
14275
14276 2006-12-16  Daniel Nauck  <dna@mono-project.de>
14277
14278         * Padding.cs: fixed serialization compability to MS ("_var" field names),
14279                         added missing attributes.
14280  
14281 2006-12-15  Daniel Nauck  <dna@mono-project.de>
14282
14283         * ListViewGroup.cs: Added missing attributes.
14284         * ListViewGroupCollection.cs: Added missing attributes.
14285
14286 2006-12-15  Daniel Nauck  <dna@mono-project.de>
14287
14288         * ListViewItem.cs: fixed ListViewSubItem text property.
14289
14290 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14291         
14292         * Control.cs: Added missing 2.0 attributes
14293         
14294 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14295         
14296         * MdiClient.cs: Added missing 2.0 attribute.
14297         * MonthCalendar.cs: Added some missing 2.0 attributes 
14298         and properties.
14299         
14300 2006-12-15  Daniel Nauck  <dna@mono-project.de>
14301
14302         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
14303
14304 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
14305
14306         * MainMenu.cs: Add the new 2.0 constructor to help out people
14307         using the MainMenu in VS2005.
14308
14309 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14310         
14311         * MdiChildContext.cs: Removed it, no longer used.
14312         * MdiClient.cs: Added missing 2.0 attributes.
14313         
14314 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14315         
14316         * InternalWindowManager.cs: Fix a NullRef with previous 
14317         changes for toolwindows.
14318         
14319 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14320
14321         * Control.cs: 
14322         - Added AfterTopMostControl to allow for certain controls 
14323         to always stay on top when normal controls are brought to 
14324         front.
14325         
14326         * XplatUIWin32.cs: 
14327         - (DrawInversibleRectangle): Get window rectangle from Win32 
14328         in stead of from control, since Win32 doesn't calculate
14329         screen coords correctly from control's Location if it 
14330         have docked siblings.
14331         
14332         * MdiWindowManager.cs:
14333         - Correct the control menu popup location when clicked on
14334         the maximized form icon. (fixes #80223.1)
14335         - Don't show moving rectangle if mouse hasn't moved from
14336         the original clicked point.
14337         - Removed FormGotFocus handler (not used).
14338         - Calculate the control buttons location from the main
14339         window's size and not client size (fixes #79770).
14340         - Form is now closed when the form icon is double-clicked
14341         (fixes #79775). 
14342         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
14343         
14344         * InternalWindowManager.cs:
14345         - Moved some MDI-only methods to MdiWindowManager.
14346         - Removed unused properties and methods.
14347         - Unified method naming for methods handling wm messages.
14348         - Moved all message handling to seperate methods for
14349         each message.
14350         
14351         * ThemeWin32Classic.cs:
14352         - DrawManagedWindowDecorations now draws the title bar 
14353         with a gradient brush.
14354         - Add a CPDrawButtonInternal that allows us to specify
14355         light, normal and dark colors for the buttons (control 
14356         buttons for MDI children were drawn with the same light
14357         color as the background, therefore loosing the 3D effect).
14358         
14359         * SizeGrip.cs:
14360         - Add a CapturedControl property that is used to 
14361         determine the control to resize (defaults to parent). 
14362         Needed for MdiClient, since its SizeGrip's parent is
14363         MdiClient, but the control to resize is the main form.
14364         
14365         * MdiClient.cs:
14366         - Set SizeGrip's CapturedControl to the main form in order
14367         to resize the main form and not the MdiClient.
14368         - Override AfterTopMostControl to leave the scrollbars 
14369         always on top.
14370
14371 2006-12-15  Daniel Nauck  <dna@mono-project.de>
14372
14373         * ListView.cs: fixed ListViewItemCollection AddRange and
14374                         implemented ListViewItemCollection AddRange 2.0 support.
14375
14376 2006-12-15  Daniel Nauck  <dna@mono-project.de>
14377
14378         * ListViewGroup.cs: Add.
14379         * ListViewGroupCollection.cs: Add
14380         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
14381         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
14382                                 stub for ImageKey 2.0 support.
14383
14384 2006-12-14  Mike Kestner  <mkestner@novell.com>
14385
14386         * ListView.cs: add text padding to the autocalculation for columns
14387         of width -2.  Fixes #80207.
14388  
14389 2006-12-14  Mike Kestner  <mkestner@novell.com>
14390
14391         * ListView.cs: add some index guarding for partial row navigation 
14392         logic.  Fixes #80250.
14393
14394 2006-12-14  Mike Kestner  <mkestner@novell.com>
14395
14396         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
14397         are added or inserted to the collection.  Fixes #81099.
14398
14399 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
14400
14401         * MenuAPI.cs: Closes menu when right click out side of popup
14402         it fix problem in ContextMenu and MainMenu. Fixes #80252.
14403
14404 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14405
14406         * ListViewItem.cs: Fix dumb error.
14407
14408         * ListView.cs: Add Find and ContainsKey methods in 
14409         ListViewItemCollection, and also return true for IsReadOnly
14410         and IsFixedSize (changes for 2.0). 
14411
14412 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
14413
14414         * Control.cs: Allow Region to be set to null.
14415
14416 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14417
14418         * MdiWindowManager.cs: Remove unused (commented out) code.
14419         * Form.cs: When the MdiChild is maximized, the form needs 
14420         WM_NCMOUSELEAVE, so request it.
14421         * InternalWindowManager.cs: 
14422         - Added tooltips to control buttons.
14423         - Removed duplicated control button handling code.
14424         - Removed unused (commented out) code.
14425         
14426 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
14427
14428         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
14429         was used because we must set cursor without trigger ChangeCursor event
14430         and without change Cursor control property. Fixes #79963.
14431
14432 2006-12-12  Andreia Gaita  <avidigal@novell.com>
14433         
14434         * Control.cs: Check if Region setter value is null, and ignore
14435
14436 2006-12-12  Jackson Harper  <jackson@ximian.com>
14437
14438         * TextControl.cs: We were almost always drawing one more line then
14439         needed, since the GetLineByPixel will return the last line found
14440         at that pixel. In most cases though, we were invalidating up to
14441         the junction between two lines.
14442         - Improve debug code.
14443
14444 2006-12-12  Chris Toshok  <toshok@ximian.com>
14445
14446         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
14447         and FillReversibleRectangle.
14448
14449         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
14450         and FillReversibleRectangle.
14451
14452         * XplatUIWin32.cs: add stubs which do nothing for
14453         DrawReversibleFrame, DrawReversibleLine, and
14454         FillReversibleRectangle.
14455
14456         * XplatUIOSX.cs: add stubs which raise NIE for
14457         DrawReversibleFrame, DrawReversibleLine, and
14458         FillReversibleRectangle.
14459
14460         * XplatUIX11.cs: add working implementation for
14461         DrawReversibleFrame, DrawReversibleLine, and
14462         FillReversibleRectangle.
14463         
14464         * ControlPaint.cs: implement DrawReversibleFrame,
14465         DrawReversibleLine, and FillReversibleRectangle, by calling into
14466         the appropriate XplatUI method.
14467
14468 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14469
14470         * Form.cs: Make MdiClient have the focus even if it's
14471         not selectable, since it should receive WM_KEY* and WM_MOUSE 
14472         messages. Fixes #79907.
14473         
14474 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14475
14476         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
14477         queried after the window is created.
14478         
14479         * XplatUIX11.cs: Added SendParentNotify to implement 
14480         WM_PARENTNOTIFY logic. Fixes #79965.
14481         
14482         * Control.cs: Added MakeParam.
14483         
14484 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14485
14486         * MdiClient.cs: Resume Layout before setting window
14487         states (fixes #80201).
14488
14489 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14490
14491         * MenuAPI.cs: Deselect a menu item after performing
14492         the click (fixes #80197).
14493
14494 2006-12-11  Jackson Harper  <jackson@ximian.com>
14495
14496         * TextBoxBase.cs: We need to cap this value, since Maximum -
14497         ViewPortHeight can be less than zero.
14498         - Only do selection with the left mouse button.
14499         * TextBox.cs: Don't tell the world that we have a context menu.
14500         * Control.cs: New method so that we can control whether or not the
14501         context menu is visible outside MWF.
14502
14503 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
14504
14505         * ToolBarButton.cs: Fix text positon. 
14506
14507 2006-12-11  Miguel de Icaza  <miguel@novell.com>
14508
14509         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
14510
14511         * Control.cs (DoubleBuffered): Add implementation.
14512
14513         * Application.cs (OpenForms): Add.
14514
14515 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
14516
14517         * Form.cs: Use opacity instead of Opactiy to determine if we need
14518         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
14519
14520 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
14521
14522         * Control.cs: Fix NRE if Control.Site was set to null.
14523
14524 2006-12-11  Chris Toshok  <toshok@ximian.com>
14525
14526         * Control.cs: ControlCollection.Remove should return if the arg is
14527         null, and ControlCollection.SetChildIndex should raise a ANE.
14528
14529 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
14530
14531         * Control.cs: Verify value set for Dock property. Code formatting
14532         updates.
14533
14534 2006-12-11  Jackson Harper  <jackson@ximian.com>
14535
14536         * TextControl.cs: Draw the caret and the selection when a flag is
14537         set on the owner.
14538         * TextBoxBase.cs: We want to draw the caret and the selection for
14539         TextBox but not for TextBoxBase.
14540         - If the window is resized and scrolling is no longer needed (the
14541         whole doc is visible) set the scroll position to zero.
14542         - The default SelectWord (the one TextBox uses) should move the
14543         caret to the end of the word.
14544         - SelectAll moves the caret to the end of the selection.
14545         * TextBox.cs: We don't selectall on focus, we just do it when the
14546         control is created.
14547         
14548 2006-12-11  Mike Kestner  <mkestner@novell.com>
14549
14550         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
14551
14552 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14553
14554         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
14555         2.0 support.
14556         * ListViewItem.cs: Add Name 2.0 property.
14557
14558 2006-12-11  Andreia Gaita  <avidigal@novell.com>
14559
14560         * TabControl.cs: Set visibility on selected or default tab 
14561         when tabcontrol handle is created, so that it's contents
14562         actually show up (duh). Fixes #80193
14563         Don't redraw the control if there is no handle created, as
14564         the selected index might be completely invalid. Added some tests
14565         to check for this.
14566
14567 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
14568
14569         * ToolBar.cs: Uses maximun width and height of all buttons as 
14570         button rectangle when ButtonSize specified, it looks strange but
14571         is what happens in Win32. Fixes #80189.
14572
14573 2006-12-11  Jackson Harper  <jackson@ximian.com>
14574
14575         * TextControl.cs: Need to track undo levels ourself, since
14576         compound actions will mess them up.
14577
14578 2006-12-10  Andreia Gaita  <avidigal@novell.com>
14579
14580         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
14581         SelectedIndex value is changed (even if it's not valid).
14582         Reset SelectedIndex to 0 when the handle is created and if
14583         the current index is invalid.
14584         Fixes SelectdeIndex unit tests and #80128
14585
14586 2006-12-08  Chris Toshok  <toshok@ximian.com>
14587
14588         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
14589         calls EndEdit, it needs to be called before we set current_cell to
14590         its new value.  Otherwise, we end up committing the value in the
14591         textbox to the new cell as well.  Fixes bug #80160.
14592
14593 2006-12-08  Chris Toshok  <toshok@ximian.com>
14594
14595         * Form.cs (set_CancelButton): if the button's DialogResult is
14596         None, set it to Cancel.  Fixes bug 80180.
14597
14598 2006-12-08  Jackson Harper  <jackson@ximian.com>
14599
14600         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
14601         to watch ourselves when setting the canvas size and setting the
14602         scrollbar values.
14603
14604 2006-12-08  Chris Toshok  <toshok@ximian.com>
14605
14606         * DataGrid.cs: comment out the two MakeTransparent calls for the
14607         time being so people using trunk (and not 1.2.2) on windows can
14608         actually use the datagrid.  This deals with bug #80151.
14609
14610 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
14611
14612         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
14613         Graphics.DrawImage (image, int, int, int, int) overload instead
14614         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
14615         the dpi difference and was blurring images it drew.
14616         [Fixes bug #79960]
14617
14618 2006-12-08  Chris Toshok  <toshok@ximian.com>
14619
14620         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
14621         rowcnt is 0 (such as with an empty datasource), and make sure we
14622         initialize not_usedarea.Y to cells.Y, so we don't draw over the
14623         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
14624
14625 2006-12-08  Chris Toshok  <toshok@ximian.com>
14626
14627         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
14628         grid.
14629
14630 2006-12-08  Chris Toshok  <toshok@ximian.com>
14631
14632         [ Fixes bug #80167 ]
14633         
14634         * ThemeWin32Classic.cs: don't draw the image if the button's flat
14635         style is FlatStyle.System.
14636
14637         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
14638         ButtonBase.flat_style private, and switch uses of it to the public
14639         property.
14640         
14641 2006-12-08  Chris Toshok  <toshok@ximian.com>
14642
14643         [ Fixes bug #80121 ]
14644         
14645         * ThemeWin32Classic.cs: center the caption text in the datagrid
14646         when we draw it.
14647
14648         * DataGrid.cs: lessen the amount we add to the caption height from
14649         6 to 2.  6 was making it huge.
14650
14651 2006-12-08  Andreia Gaita  <avidigal@novell.com>
14652
14653         * UpDownBase: Handle MouseWheel call directly instead of capturing
14654         the inner textbox's OnMouseWheel. Fixes #80166
14655
14656 2006-12-08  Jackson Harper  <jackson@ximian.com>
14657
14658         * TextControl.cs: We need to invalidate the textbox when we empty
14659         it (how had this not been discovered before?)
14660
14661 2006-12-08  Jackson Harper  <jackson@ximian.com>
14662
14663         * TextBoxBase.cs: Reworked the mouse down code so I could get it
14664         to behave like MS, we now ignore the eventargs.Click and just
14665         track state ourself, which we were already doing anyways.
14666         - Constrain the double click handler to the double click size.
14667         
14668 2006-12-08  Chris Toshok  <toshok@ximian.com>
14669
14670         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
14671         direction if that scrollbar isn't shown.  fixes bug #80158.
14672
14673 2006-12-08  Andreia Gaita  <avidigal@novell.com>
14674
14675         * NumericUpDown.cs: Update value on getter. Fixes #79950
14676
14677 2006-12-08  Chris Toshok  <toshok@ximian.com>
14678
14679         * MenuItem.cs: add back in the event cloning code.  I didn't know
14680         how to do it in the face of the EventHandlerList work i'd done
14681         last week.  Fixes bug #80183.
14682
14683 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
14684
14685         * Control.cs: Add an invalidate to the BackgroundImage setter.
14686         [Fixes 80184]
14687
14688 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
14689
14690         * ToolStrip*: Add some small properties reported by MoMA, fix event
14691         firing and default properties based off of unit tests, and add some
14692         attributes based off of the class status page.
14693
14694 2006-12-07  Jackson Harper  <jackson@ximian.com>
14695
14696         * TextBoxBase.cs: Take HideSelection into account when determining
14697         whether or not to show the selection.
14698         * RichTextBox.cs: After inserting the RTF into the document move
14699         the cursor to the beginning of the document.
14700
14701 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
14702
14703         * Control.cs: Remove static ArrayList "controls" which maintained
14704         a reference to every control created.
14705         * Application.cs: Create a static FormCollection to maintain a reference
14706         to every form created.  Use it in places that formerly enumerated through
14707         the controls one looking for forms.
14708         * Form.cs: Add and remove self from above FormCollection.
14709
14710 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
14711
14712         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
14713           not libgdk (though it makes me wonder why I didn't have any
14714           problems)
14715
14716 2006-12-07  Chris Toshok  <toshok@ximian.com>
14717
14718         [ you had to know this was coming after that last commit...]
14719         
14720         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
14721         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
14722         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
14723         XCopyArea).
14724
14725 2006-12-07  Chris Toshok  <toshok@ximian.com>
14726
14727         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
14728         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
14729         all the behavior we need for double buffering.
14730
14731         * XplatUIDriver.cs: implement the 3 double buffer methods using a
14732         client side Bitmap, just like the old Control-based double buffer
14733         code did.  The methods are virtual, so each XplatUI driver
14734         subclass can replace the implementation to use a faster, platform
14735         specific approach.
14736
14737         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
14738         double buffer code, and clean things up a bit in the process.
14739
14740 2006-12-06  Chris Toshok  <toshok@ximian.com>
14741
14742         * Control.cs: reindent WndProc.
14743
14744 2006-12-06  Chris Toshok  <toshok@ximian.com>
14745
14746         [ I wanna be like BenM when I grow up ]
14747         
14748         * Hwnd.cs: create a single static Graphics object on the static
14749         Bitmap we create.  use this for our text measurements.
14750
14751         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
14752         This was causing us to allocate a backbuffer for every control,
14753         even when it wasn't flagged as double buffered.  Instead use the
14754         single graphics instance.  This might have implications for
14755         multithreaded applications.  If we run into problems we can switch
14756         to creating 1 Graphics per control, on the static Hwnd bitmap.
14757
14758         this change nets us a 7M savings in private dirty mappings when
14759         running FormsTest.exe.
14760
14761 2006-12-06  Chris Toshok  <toshok@ximian.com>
14762
14763         * ListView.cs: the BackgroundImage override is just to set
14764         attributes.  chain up to base.BackgroundImage.
14765
14766         * RichTextBox.cs: same.
14767
14768         * ToolBar.cs: same, but we need to also redraw the toolbar when it
14769         changes, so instead a handler for BackgroundImageChanged.
14770         
14771         * Control.cs: make background_image private.
14772
14773 2006-12-06  Chris Toshok  <toshok@ximian.com>
14774
14775         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
14776         sure we even need this assignment, but roll with it for now.
14777
14778         * Control.cs: make the cursor field private.
14779
14780 2006-12-06  Chris Toshok  <toshok@ximian.com>
14781
14782         * Form.cs: we don't need to explicitly set ImeMode to
14783         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
14784         behavior in the face of ImeMode.Inherit.
14785
14786         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
14787         change the ctor's assignment to use ImeMode instead of ime_mode.
14788
14789         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
14790         ImeModeInherit.  Only check for the parent's imemode (and return
14791         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
14792         This fixes the button unit test, which sets both ImeMode and
14793         DefaultImeMode to ImeMode.Disable.
14794
14795         also make the ime_mode field private.
14796
14797 2006-12-06  Chris Toshok  <toshok@ximian.com>
14798
14799         * Control.cs: make control_style private.
14800
14801         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
14802         setting the styles to true, then setting them to false instead of
14803         reverting to their previous values.
14804
14805         also, call SetStyle on the scrollbars instead of using
14806         control_style directly.
14807
14808 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
14809
14810         * FormCollection.cs: Implement. [2.0]
14811
14812 2006-12-06  Chris Toshok  <toshok@ximian.com>
14813
14814         * Control.cs: make tab_stop private.
14815
14816         * Label.cs: set TabStop, not tab_stop.  reformat some event
14817         add/remove methods to make them more compact.
14818
14819 2006-12-06  Chris Toshok  <toshok@ximian.com>
14820
14821         * RadioButton.cs: fix TabStop handling.
14822
14823 2006-12-06  Chris Toshok  <toshok@ximian.com>
14824
14825         * TextBox.cs: remove the explicit assignments to has_focus.
14826         Control does that.
14827
14828         * ButtonBase.cs: remove the assignment to has_focus.  Control will
14829         manage that.
14830         
14831 2006-12-06  Chris Toshok  <toshok@ximian.com>
14832
14833         * ButtonBase.cs: remove all uses of is_enabled from this code.
14834         it's always true when any of the code containing the checks is
14835         executed.
14836
14837 2006-12-06  Chris Toshok  <toshok@ximian.com>
14838
14839         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
14840         with different semantics (some are present in both 1.1 and 2.0
14841         profiles) so that we match MS's behavior in our unit tests.
14842
14843 2006-12-06  Jackson Harper  <jackson@ximian.com>
14844
14845         * TextControl.cs: Make this operation undoable.
14846         * TextBoxBase.cs: Factor the border width into the preferred
14847         height.
14848         - implement Modified as per the spec.
14849
14850 2006-12-06  Chris Toshok  <toshok@ximian.com>
14851
14852         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
14853
14854 2006-12-06  Chris Toshok  <toshok@ximian.com>
14855
14856         * Control.cs: make right_to_left and context_menu fields private.
14857
14858 2006-12-06  Chris Toshok  <toshok@ximian.com>
14859
14860         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
14861         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
14862         Control.child_controls private.  switch all uses over to
14863         Control.Controls.
14864
14865 2006-12-06  Chris Toshok  <toshok@ximian.com>
14866
14867         * System.Windows.Forms/GroupBox.cs,
14868         System.Windows.Forms/AccessibleObject.cs,
14869         System.Windows.Forms/ErrorProvider.cs,
14870         System.Windows.Forms/Control.cs,
14871         System.Windows.Forms/UpDownBase.cs,
14872         System.Windows.Forms/ScrollBar.cs,
14873         System.Windows.Forms/DateTimePicker.cs,
14874         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
14875         System.Windows.Forms/ToolTip.cs,
14876         System.Windows.Forms/RadioButton.cs,
14877         System.Windows.Forms/LinkLabel.cs,
14878         System.Windows.Forms/Splitter.cs,
14879         System.Windows.Forms/TextBoxBase.cs,
14880         System.Windows.Forms/ToolStripTextBox.cs,
14881         System.Windows.Forms/ContainerControl.cs,
14882         System.Windows.Forms/ThemeWin32Classic.cs,
14883         System.Windows.Forms/SizeGrip.cs,
14884         System.Windows.Forms/ToolStripDropDown.cs,
14885         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
14886         private.  switch all uses over to Control.Parent.
14887
14888 2006-12-06  Chris Toshok  <toshok@ximian.com>
14889
14890         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
14891         Control does this before calling emitting these events.
14892
14893         * TabControl.cs: same.
14894
14895         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
14896         Control.client_rect.
14897
14898         * ButtonBase.cs: use the ClientSize property instead of the
14899         client_size field.
14900
14901         * ScrollableControl.cs: same.
14902
14903         * Control.cs: another pass at making properties private.  also,
14904         move the initialization of tab_stop to the ctor.
14905
14906 2006-12-05  Andreia Gaita <avidigal@novell.com>
14907
14908         * TabControl.cs: Let the selected index be set freely if the 
14909         control handle is not yet created.
14910
14911 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
14912
14913         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
14914         internal until I can rewrite DefaultLayout.
14915         * ToolStrip.cs: Fix build error and some general cleaning.
14916         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
14917         Fix build errors caused by making some of Control's fields private.
14918
14919 2006-12-05  Jackson Harper  <jackson@ximian.com>
14920
14921         * TextControl.cs: Redo Insert a little so that it use IndexOf
14922         instead of Split, this prevents it from messing up on things like
14923         \n\n\n. Also more effecient since the split array doesn't need to
14924         be created.
14925         * TextBoxBase.cs: AppendText doesnt handle multiline and non
14926         multiline text differently, this is the first of many fixes that
14927         will make multiline/non-multiline the same thing as far as the
14928         TextBoxBase is concerned.
14929         - Don't split the text and insert lines, this can lose some line
14930         endings (like is the last line a soft or hard break). Instead use
14931         the new Insert.
14932         - Fix an off by one when combining all the lines in the Text
14933         getter.
14934         - Remove separate multiline handling from the Text getter/setter.
14935
14936 2006-12-05  Chris Toshok  <toshok@ximian.com>
14937
14938         * ButtonBase.cs: a few changes:
14939
14940         - don't reinitialize internal Control fields in the ctor when they
14941         have the same values as Control sets them.
14942
14943         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
14944         this before calling those methods.
14945
14946         - we don't need to call Refresh for anything.  use Invalidate
14947         instead.
14948
14949         - OnEnabledChanged doesn't need to redraw at all - Control.cs
14950         calls Refresh in its OnEnabledChanged.
14951         
14952         - several of the events we were registered for in the ctor to
14953         redraw ourselves already include calls to Invalidate in the
14954         property setters that raise the events.  remove the extra
14955         invalidation.
14956
14957         - reformat a switch statement that was 83274658 columns wide.
14958         
14959 2006-12-05  Mike Kestner  <mkestner@novell.com>
14960
14961         * ComboBox.cs: fix a unit test regression from a TextBox
14962         SelectionLength return of -1 when there's no selection.  
14963
14964 2006-12-05  Chris Toshok  <toshok@ximian.com>
14965
14966         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
14967         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
14968         cleaning up some of the internal Control fields being used by
14969         subclasses.
14970
14971 2006-12-05  Mike Kestner  <mkestner@novell.com>
14972
14973         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
14974         listbox after AddImplicit calls since it defaults to hidden. Add a 
14975         hack to preserve requested heights across DropDownStyle changes.
14976
14977 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
14978
14979         * PropertyGrid.cs: Hide FindFirstItem method from public API.
14980
14981 2006-12-05  Chris Toshok  <toshok@ximian.com>
14982
14983         * DataGridView.cs: fix compiler warnings.
14984
14985         * PrintControllerWithStatusDialog.cs: same.
14986
14987         * ToolBar.cs: same.
14988
14989         * FolderBrowserDialog.cs: same.
14990
14991         * Splitter.cs: same.
14992
14993         * DataGridViewComboBoxCell.cs: same.
14994
14995         * XplatUIWin32.cs: same.
14996
14997         * PictureBox.cs: same.
14998
14999         * Win32DnD.cs: same.
15000
15001         * PageSetupDialog.cs: same.
15002
15003         * FileDialog.cs: same.
15004
15005         * PrintDialog.cs: same.
15006
15007         * DataGridTextBoxColumn.cs: same.
15008
15009         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
15010
15011 2006-12-05  Chris Toshok  <toshok@ximian.com>
15012
15013         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
15014         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
15015         System.ComponentModel.EventHandlerList work.
15016
15017 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
15018
15019         * DrawTreeNodeEventArgs.cs: Added.
15020
15021 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15022         
15023         * InternalWindowManager.cs: Remove an unused field.
15024         
15025 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15026
15027         * InternalWindowManager.cs:
15028         - Save the point where the title bar is clicked.
15029         
15030         * MdiWindowManager.cs:
15031         - Only allow moving of the window as long as the 
15032         clicked point on the title bar does not get out of
15033         MdiClient's rectangle. Fixes #79982.
15034         
15035         * MdiClient.cs:
15036         - Added Horizontal/VerticalScrollbarVisible.
15037         - Simplified the scrollbar sizing algorithm.
15038         - Cache the difference in scrolled value in
15039         H/VBarValueChanged and move the calculation out
15040         of the for loop.
15041
15042 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15043
15044         * Control.cs: Make the Console.WriteLine in WndProc 
15045         write more info.
15046
15047 2006-12-05  Chris Toshok  <toshok@ximian.com>
15048
15049         * ToolStripManager.cs, ToolStripButton.cs,
15050         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
15051         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
15052         ToolStripSplitButton.cs, ToolStripSeparator.cs,
15053         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
15054         ToolStripProgressBar.cs, ToolStripContainer.cs,
15055         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
15056         to using System.ComponentModel.EventHandlerList.
15057
15058 2006-12-04  Chris Toshok  <toshok@ximian.com>
15059
15060         * LinkLabel.cs: fix up compiler warnings.
15061
15062         * TableLayoutSettings.cs: same.
15063
15064         * TreeView.cs: same.
15065
15066         * ToolBar.cs: same.
15067
15068         * TabControl.cs: same.
15069
15070         * RichTextBox.cs: same.
15071
15072         * ListViewItem.cs: same.
15073
15074         * PropertyGrid.cs: same.
15075
15076         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
15077
15078         * ToolTip.cs same.
15079
15080         * TextRenderer.cs: fix up compiler warnings.
15081
15082         * Label.cs: same.
15083
15084         * Form.cs: corcompare fixes.
15085
15086         * PictureBox.cs: fix up compiler warnings.
15087
15088         * ImageListStreamer.cs: same.
15089
15090         * TrackBar.cs: corcompare fix.
15091
15092         * Control.cs: fix up compiler warnings.
15093
15094         * SplitterPanel.cs: same.
15095
15096         * NumericTextBox.cs: same.
15097
15098         * ImageList.cs: same.
15099
15100         * StatusStrip.cs: same.
15101
15102         * ProgressBar.cs: corcompare fix.
15103
15104         * ToolStripButton.cs: fix up compiler warnings.
15105
15106         * ToolStripStatusLabel.cs: same.
15107
15108         * ToolStripSplitButton.cs: same.
15109
15110         * ToolStripSeparator.cs: same.
15111
15112         * ToolStripProgressBar.cs: same.
15113
15114         * ToolStripDropDownMenu.cs: same
15115
15116         * ToolStripDropDown.cs: same.
15117
15118         * ToolStripDropDownButton.cs: same.
15119
15120         * ToolStrip.cs: same.
15121
15122         * ToolStripControlHost.cs: same.
15123
15124         * ToolStripContentPanel.cs: same.
15125
15126         * ToolStripDropDown.cs: same.
15127
15128         * ToolStripContainer.cs: same.
15129
15130         * ToolStripPanel.cs: same, and add "new" where we need it to work
15131         with the new ArrangedElementCollection.
15132
15133         * ToolStripItemCollection.cs: add "new" where we need it to work
15134         with the new ArrangedElementCollection.
15135
15136 2006-12-04  Andreia Gaita <avidigal@novell.com>
15137
15138         * TabControl.cs: Fix default tab selection to after TabControl
15139         gets focus and not before. Fixes #80128
15140
15141 2006-12-04  Chris Toshok  <toshok@ximian.com>
15142
15143         * DataGridTableStyle.cs: remove the gross calling of
15144         datagrid.Refresh from here.  It's a broken idea and it doesn't
15145         work anyway.
15146
15147         * DataGrid.cs: instead, just register/unregister from the
15148         DataGridTableStyle events in CurrentTableStyle.  we play it
15149         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
15150         even though some would most likely not require it.  Fixes bug
15151         #80115 (and one portion of #80117 as a side effect).
15152
15153 2006-12-04  Chris Toshok  <toshok@ximian.com>
15154
15155         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
15156         so the textbox (if any) goes away.  Fixes bug #80117.
15157
15158 2006-12-04  Chris Toshok  <toshok@ximian.com>
15159
15160         * DataGridColumnStyle.cs: set the column's readonly property
15161         initially based on the property descriptor's IsReadOnly.  Fixes
15162         bug #80044.
15163
15164 2006-12-04  Chris Toshok  <toshok@ximian.com>
15165
15166         * ComboBox.cs: wrap the dropdown style changing work in
15167         SuspendLayout/ResumeLayout.  Fixes bug #79968.
15168
15169 2006-12-04  Jackson Harper  <jackson@ximian.com>
15170
15171         * TextBoxBase.cs: Fix off by one, since these are one-based.
15172         * TextBox.cs: Select all the text when we get focus.  The TextBox
15173         does this but the RTB does not.
15174
15175 2006-12-04  Chris Toshok  <toshok@ximian.com>
15176
15177         * DataGridTextBoxColumn.cs: remove some spew.
15178
15179         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
15180         but some part of me is saying "it shouldn't be here.."  At any
15181         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
15182         setting the value.
15183
15184 2006-12-04  Chris Toshok  <toshok@ximian.com>
15185
15186         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
15187         to reassign the propertydescriptor.
15188
15189 2006-12-04  Jackson Harper  <jackson@ximian.com>
15190
15191         * TextBoxBase.cs:
15192         * TextControl.cs: Remove some unused variables.  Maybe this will
15193         patch things up between mike and I.
15194         - don't split lines less then one char wide, if the viewport is
15195         that small text won't be visible anyways.
15196         
15197 2006-12-04  Jackson Harper  <jackson@ximian.com>
15198
15199         * TextBoxBase.cs: Default selection length is -1, need to do some
15200         more testing on windows to see when this is used for the property.
15201         - Redid the Lines [] property to that we properly remove soft line
15202         breaks
15203         - added support for preserving carriage returns
15204         -  CanUndo is not a variable like 'is undo enabled' it just returns
15205         true if there is undo operations available.
15206         - AppendText doesn't need to grab the last tag itself anymore,
15207         this happens automatically when we move the cursor.
15208         * TextControl.cs: Add CompoundActions to the undo class. This
15209         allows combining the other operations into one big option.  ie a
15210         paste will combine { delete old, insert new, move cursor }
15211         - Add InsertString undo operation
15212         - New method for deleting multiline text
15213         - Add carriage returns to lines. So we can preserve carriage
15214         returns when text is 'roundtripped'
15215
15216 2006-12-04  Chris Toshok  <toshok@ximian.com>
15217
15218         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
15219         minimum 0.  Fixes the scrollbar exception in bug #80136.
15220
15221 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15222
15223         * MdiClient.cs: 
15224         * MdiWindowManager: Removed unused fields and methods.
15225         
15226 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15227         
15228         * StatusBar.cs: Update all panels when a AutoSize=Contents
15229         panel needs updating.
15230         
15231         * StatusBarPanel.cs: Remove twidth and only use initialize.
15232         Fixes #80031.
15233                 
15234 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15235
15236         * Form.cs: When a form's MdiParent is set add it directly
15237         on top of the z-order in stead of relying on MdiClient's
15238         ActivateChild to do it. Fixes #80135.
15239         
15240         * MdiClient.cs: 
15241         - Remove original_order, mdi_child_list is already doing
15242         the same thing.
15243         - Create mdi_child_list on construction in
15244         stead of first use (avoids a few null checks).
15245
15246         * MenuItem.cs: Use an already existing list of mdi children
15247         to get the correct order of children and remove the other
15248         redundant list.
15249
15250 2006-12-04  Chris Toshok  <toshok@ximian.com>
15251
15252         * PropertyGridView.cs: cached_splitter_location is only used in
15253         !DOUBLEBUFFER code.
15254
15255         * PropertyGrid.cs: implement the ComComponentNameChanged event
15256         using Events, hoping that would fix the warning.  Looks like a
15257         compiler bug instead (#80144).
15258
15259         * PropertyManager.cs: remove unused method.
15260
15261 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
15262
15263         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
15264         include parentesis to fix expression evaluation. Fixes #79634.
15265
15266 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
15267         
15268         * MenuAPI.cs:
15269         - Changes to fix behavior in Menu control, some reported in #80097
15270         and other detected during behavior refactory like a select event
15271         problems.
15272         - Remove unneded "if's" conditions.
15273         - Created an internal to flag when popup is active in control, we need 
15274         it because in .NET you can have menu active but without popup active
15275         when you active menu using popup without visible items.
15276         - Mimic win32 behavior for Select and Popup events.  
15277         - Dont open popup menu when you dont have visible subitems.
15278         - Do nothing when click on disabled menu item.
15279         - Some small changes to follow the coding style guidelines.
15280         - Unselect menu only when another control gives focus. Fixes #80097.
15281         - Remove unused code.
15282         
15283         * MenuItem.cs: internal VisibleItems method to check if menu
15284         theres visible subitems, it will be usefull to fix some 
15285         behavior in Menu control.
15286         
15287 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
15288         
15289         * Timer.cs: Tag property for 2.0 profile.
15290         
15291 2006-12-01  Chris Toshok  <toshok@ximian.com>
15292
15293         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
15294         
15295         * Win32DnD.cs: comment out some unused fields.
15296
15297         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
15298         some unused properties/methods.
15299
15300         * XplatUIX11.cs: fix MousePosition so we override the base class's
15301         property instead of conflicting with it.
15302
15303         * PictureBox.cs: comment out some unused fields
15304
15305         * OSXStructs.cs: make some struct fields public.
15306
15307         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
15308         MousePosition so we override the base class's property instead of
15309         conflicting with it.
15310
15311         * X11Dnd.cs: comment out some unused fields
15312
15313         * X11DesktopColors.cs: fix some struct field visibility to quiet
15314         the compiler.
15315
15316         * X11Dnd.cs: remove some debug code.
15317
15318         * ThemeClearlooks.cs: comment out unused field.
15319
15320         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
15321
15322         * ThemeGtk.cs: comment out some unused pinvokes.
15323
15324         * Timer.cs: remove some unused fields.
15325
15326         * ThemeClearlooks.cs: comment out unused field.
15327
15328         * UpDownBase.cs: comment out unused field.
15329
15330         * DataObject.cs: comment out unused field.
15331
15332         * DataGridBoolColumn.cs: reomve unused field.
15333
15334         * DataGrid.cs: remove unused field.
15335
15336         * Cursor.cs: remove old ToBitmap code.
15337
15338         * ControlPaint.cs: remove unused method.
15339
15340         * ScrollBar.cs: remove unused fields.
15341
15342         * ComboBox.cs: remove unused field, and chain up to
15343         AccessibleObject ctor.
15344
15345         * ListBox.cs: remove unused field.
15346
15347         * ButtonBase.cs: wrap a couple fields in NET_2_0.
15348
15349         * GridEntry.cs: remove unused fields.
15350
15351         * Binding.cs: remove unused fields.
15352
15353         * AxHost.cs: remove unused method.
15354
15355         * ContainerControl.cs: remove unused field.
15356
15357         * ScrollableControl.cs: remove unused fields.
15358
15359 2006-12-01  Chris Toshok  <toshok@ximian.com>
15360
15361         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
15362         the Where/WhereString stuff.  it's easy enough to CWL
15363         Environment.StackTrace.
15364
15365         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
15366         unused private fields.
15367
15368 2006-12-01  Jackson Harper  <jackson@ximian.com>
15369
15370         * TextControl.cs: Do not update the view while inserting multiline
15371         text. If we update the view we might wrap lines, before entering
15372         the new lines, which causes the new line insertion calculations to
15373         be totally fubared.
15374         - Remove an old TODO
15375         - Make debug output a little nicer
15376         
15377 2006-12-01  Chris Toshok  <toshok@ximian.com>
15378
15379         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
15380
15381 2006-12-01  Chris Toshok  <toshok@ximian.com>
15382
15383         [ fix the majority of the CS0108 warnings we've been suppressing ]
15384         
15385         * TreeView.cs: mark BackgroundImageChanged as 'new'.
15386
15387         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
15388         to "LayoutToolBar" to quiet mcs.
15389         
15390         * TabControl.cs: mark our ControlCollection class as 'new'.
15391
15392         * TextBoxBase.cs: mark some events as 'new'.
15393
15394         * Splitter.cs: TabStop is 'new'.
15395
15396         * ControlBindingsCollection.cs: mark a few methods as new since
15397         they change the visibility from protected to public.
15398
15399         * RadioButton.cs: DoubleClick -> base class, and remove unused
15400         HaveDoubleClick.
15401
15402         * MonthCalendar.cs: ImeMode property -> base class, and mark many
15403         events as new.
15404
15405         * NumericUpDown.cs: TextChanged -> base class.
15406
15407         * CheckedListBox.cs: mark our ObjectCollection class as new to
15408         quiet mcs.
15409
15410         * FolderBrowserDialog.cs: make HelpRequest event new and have it
15411         muck with the base class.
15412
15413         * StatusBar.cs: fix some mcs warnings about Update being the same
15414         name as a base class method.
15415
15416         * RichTextBox.cs: mark some events as new, and make them do things
15417         to the base class impl.
15418
15419         * UserControl.cs: mark TextChanged as new, and have it manipulate
15420         base.TextChanged.
15421
15422         * UpDownBase.cs: mark some things new.
15423
15424         * CheckBox.cs: mark DoubleClick "new", and add some text about
15425         what we need to look at.
15426
15427         * Panel.cs: make the events "new", and manipulate the base
15428         version.  these are just here for attributes.
15429
15430         * AccessibleObject.cs: make owner private.
15431
15432         * Control.cs: deal with AccessibleObject.owner being private.
15433         cache our own copy if we need it.
15434
15435         * Button.cs: add "new" to the DoubleClickEvent.
15436
15437         * ListBox.cs: no need to track our own has_focus here.  let
15438         Control.has_focus do it for us.  Also some other work to clear up
15439         warnings about not overriding base class methods of the same name.
15440         
15441         * ComboBox.cs: clear up some warnings about not override base
15442         class methods of the same name.
15443
15444 2006-12-01  Chris Toshok  <toshok@ximian.com>
15445
15446         * Form.cs: flag a few things as "new" to quiet some of the mcs
15447         warnings.
15448
15449         * AxHost.cs: same.
15450
15451         * PrintPreviewDialog.cs: same.
15452
15453         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
15454         now DGV isn't so horrible on the class status page.  also, move
15455         all events to using System.ComponentModel.EventHandlerList.  my
15456         wrists hurt.
15457
15458 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15459
15460         * MdiWindowManager.cs:
15461         - Set form to active mdi child if shown,
15462         and update the active mdi child to the next 
15463         remaining child in the z-order if the form is hidden.
15464
15465         * Form.cs: 
15466         - Track if the form has been visible and if its 
15467         visibility is beeing changed, so that the MdiClient
15468         can properly decide the ActiveMdiChild. The MdiClient 
15469         cannot track this since the form can change visibility 
15470         before MdiClient is created.
15471
15472         * MdiClient.cs:
15473         - Don't activate anything of the parent form is changing
15474         its visibility.
15475         - Rework ActiveMdiChild to only return visible mdi 
15476         children and take into account several other corner 
15477         cases.
15478
15479 2006-12-01  Chris Toshok  <toshok@ximian.com>
15480
15481         * IBindableComponent.cs: new 2.0 interface.
15482
15483 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
15484
15485         * DataGrid.cs: Font for caption area is bold by default.
15486
15487 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
15488
15489         * Menu.cs: Tag property for 2.0.
15490         
15491 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
15492
15493         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
15494         
15495 2006-12-01  Chris Toshok  <toshok@ximian.com>
15496
15497         * TreeView.cs: doh, the Begin* events should be
15498         TreeViewCancelEventHandler.
15499
15500 2006-12-01  Chris Toshok  <toshok@ximian.com>
15501
15502         * Form.cs: Form.ControlCollection already stores off the
15503         form_owner field.  don't access the base class's internal "owner"
15504         field.
15505
15506         * Control.cs: make all the fields in Control.ControlCollection
15507         private.  there's no need for any internal fields here.
15508
15509 2006-12-01  Chris Toshok  <toshok@ximian.com>
15510
15511         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
15512         OnHandleCreated.  Fixes bug #80109.
15513
15514 2006-12-01  Chris Toshok  <toshok@ximian.com>
15515
15516         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
15517         SplitContainer.cs, Control.cs, StatusStrip.cs,
15518         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
15519         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
15520         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
15521         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
15522         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
15523         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
15524         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
15525         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
15526         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
15527         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
15528
15529         do most of the work to convert our code over to use
15530         System.ComponentModel.Component.Events for
15531         adding/removing/dispatching events.
15532
15533
15534 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
15535
15536         * DataGridView.cs: Fix an ArgumentNullException reported 
15537         twice today in IRC.
15538
15539 2006-11-30  Mike Kestner  <mkestner@novell.com>
15540
15541         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
15542         grabbed listbox.  Fixes #80036 and #80101.
15543
15544 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
15545
15546         * Message.cs: Changed ToString() to match MS.
15547         
15548 2006-11-30  Jackson Harper  <jackson@ximian.com>
15549
15550         * TextBoxBase.cs: You can still change the selected text on a read
15551         only textbox.
15552         * TextControl.cs: Lower magic number for wrap calculations. This
15553         lets text get closer to the right (far) edge.
15554
15555 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
15556
15557         * Control.cs: Tweak 2.0 layout properties.
15558         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
15559         * TextRenderer.cs: Add a new overload.
15560         * ToolStrip*: Huge amount of changes and new features.
15561
15562 2006-11-30  Mike Kestner  <mkestner@novell.com>
15563
15564         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
15565         scroll range correct.  Fixes #79994.
15566
15567 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
15568
15569         * MdiWindowManager.cs: Update main form's text when
15570         a form is closed. (fixes #80038)
15571         
15572 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
15573
15574         * ToolBar.cs:
15575         - Fix an regression in ButtonSize.
15576         - Get ImeMode default value change to "Disable".
15577         - Get ShowTooltips default value change to true, default value is 
15578         "false" but after make a test in .NET we get "true" result as default.
15579         
15580 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
15581
15582         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
15583
15584 2006-11-29  Chris Toshok  <toshok@ximian.com>
15585
15586         * XplatUIWin32.cs (GetWindowTransparency): check return value of
15587         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
15588         SetWindowTransparency hasn't been called.
15589
15590 2006-11-29  Chris Toshok  <toshok@ximian.com>
15591
15592         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
15593         if it's supported.
15594         (set_AllowTransparency): reorder things a little so that the
15595         WS_EX_LAYERED style is removed properly.
15596
15597 2006-11-29  Chris Toshok  <toshok@ximian.com>
15598
15599         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
15600         
15601         * Form.cs: only call the XplatUI transparency method (get/set) if
15602         SupportsTransparency says it's supported. Otherwise fallback to
15603         doing nothing (in the set case) or returning the instance field we
15604         cache (in the get case).
15605
15606         * XplatUIStructs.cs: add TransparencySupport flag enum.
15607         
15608         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
15609         change to SupportsTransparency.
15610
15611         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
15612         TransparencySupport.None from SupportsTransparency.
15613
15614         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
15615         TransparencySupport.Set from SupportsTransparency.
15616
15617         * XplatUIWin32.cs: implement GetWindowTransparency calling
15618         GetLayeredWindowAttributes, and implement SupportsTransparency by
15619         checking whether or not both
15620         GetWindowTransparency/SetWindowTransparency are available
15621         entrypoints.  We need to do this since SetWindowTransparency is
15622         available as of win2k, but GetWindowTransparency requires winxp.
15623         yay win32 api.
15624
15625         * XplatUI.cs: Add GetWindowTransparency, and change
15626         SupportsTransparency to allow for either/both Get/Set.
15627
15628 2006-11-29  Chris Toshok  <toshok@ximian.com>
15629
15630         * DataGrid.cs: keep from going into an infinite loop redrawing a
15631         datagrid that has no datasource.  Fixes bug #80033.
15632
15633 2006-11-29  Chris Toshok  <toshok@ximian.com>
15634
15635         * MenuItem.cs: fix the NRE when we assign text (and therefore call
15636         Invalidate) before the mainmenu has been assigned to a control.
15637
15638 2006-11-29  Chris Toshok  <toshok@ximian.com>
15639
15640         * DataGrid.cs: detect when we should be double the double click
15641         row/column autosize stuff, although that codepath has yet to be
15642         written.  part of the work for bug #79891.
15643
15644 2006-11-29  Chris Toshok  <toshok@ximian.com>
15645
15646         * Binding.cs (SetControl): fix unit test.
15647
15648 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15649
15650         * PageSetupDialog.cs: Validate the margins and set them in
15651         PageSettings. 
15652         * NumericTextBox.cs: New class to mimic the behavior of the
15653         textboxes used in the printing dialogs.
15654
15655 2006-11-29  Andreia Gaita  <avidigal@novell.com>
15656         
15657         * Form.cs: Revert previous change (remove call UpdateBounds
15658         from form constructor), because it messes with the handle creation
15659         order, and that one needs lots and lots of love.
15660         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
15661         for valid printer and throw InvalidPrinterException if document
15662         is set but printer not valid), adding a MonoTODO. Once 
15663         handle creation is done properly, we can put this back in.
15664
15665 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
15666
15667         * MenuItem.cs: Create a invalidate method for menu item, to be
15668         calling from set text, it make text changes to imadiate update
15669         on screen. Fixes #80013. 
15670         
15671 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
15672
15673         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
15674         fixes bug #80070 and some other problem on toolbar buttons
15675         layout.
15676
15677 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
15678
15679         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
15680         with dotted brush.      Fixes #79564
15681         
15682 2006-11-28  Andreia Gaita  <avidigal@novell.com>
15683
15684         * Form.cs: Removed call to UpdateBounds on Form
15685         constructor, it was causing a call to CreateHandle
15686         before it was supposed to.
15687         * PrintControllerWithStatusDialog: Applied patch
15688         by Chris Toshok to hide controller when there are
15689         no printers available.
15690         PrintDialog.cs: initialize printer settings to 
15691         null - correct DefaultValues test #5
15692         * PrintPreviewControl.cs: Move PrintController
15693         initialization to GeneratePreview
15694         * PrintPreviewDialog.cs: 
15695         - Remove Preview generation     from Document_set(). It is 
15696         called on OnPaint
15697         - Throw InvalidPrinterException on CreateHandle if
15698         a Document is set but there are no printers or 
15699         printer is not valid.
15700         * ThemeWin32Classic: don't paint PrintPreviewControl
15701         if there is nothing to paint    
15702
15703 2006-11-28  Miguel de Icaza  <miguel@novell.com>
15704
15705         * Form.cs: Add another popular method.
15706
15707         * TabPage.cs: ditto.
15708
15709 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15710
15711         * MenuItem.cs: Fixed a warning.
15712         * InternalWindowManager: Fixed a warning.
15713
15714 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15715
15716         * MenuItem.cs:
15717         - When cloning a menu also clone MdiList and clone the 
15718           window menu items properly (as the forms and menuitems
15719           are kept in an internal hashtable, these need updating 
15720           as well)
15721         - Rewrote the window menu code, menu items are added in the
15722           order the forms were added to their parent, and they are
15723           updated every time the window menu is shown (before the
15724           list was only generated once, in the current order of the
15725           forms, and would never be updated). A checkmark is shown
15726           next to the item corresponding to the active mdi child.
15727
15728 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15729
15730         * XplatUIStructs.cs: 
15731         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
15732         
15733         * XplatUIWin32.cs: 
15734         - Added TME_NONCLIENT to TMEFlags.
15735         - Handles WM_NCMOUSEMOVE in GetMessage to 
15736           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
15737
15738         * MdiWindowManager:
15739         - Now merges mdi child menu to parent menu when maximized.
15740         - Recalculate NC areas of both mdi child and mdi parent. 
15741           Fixes #79757 (4).
15742           on window state and size changes.Fixes #79844 (3).
15743         - Handle WM_NCCALCSIZE to properly calculate borders.
15744
15745         * Form.cs:
15746         - Add/remove to the mdi containers list of mdi children 
15747           in the order they are added.
15748         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
15749           to the maximized mdi child.
15750         
15751         * InternalWindowManager.cs:
15752         - Only execute a click on the control buttons on the mouse up,
15753           not on the mouse down. Show the state of the button 
15754           (was only showing Normal state, never Pressed state). The
15755           pressed button now follows the mouse (if you click the Close 
15756           button and move the mouse over the Maximize button, the 
15757           Maximize button will be shown as pressed). Since Win32 does
15758           not generate WM_NCLBUTTONUP if you release the button outside
15759           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
15760           it as a mouse up.
15761         
15762         * ThemeWin32Classic.cs:
15763         - Draw a missing border around mdi child forms. Fixes #79844 (2).
15764
15765         * MdiClient.cs:
15766         - Added a list of forms which contains the order the forms are
15767           added to the mdi parent.
15768         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
15769         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
15770         - If the active form changes set the scrollbars to the top
15771           of the Z order, otherwise the form could hide them.
15772         - Scrollbars are now sized according to ClientSize, not 
15773           to Size, and they take into account the other scrollbar
15774           to determine maximum.
15775         
15776 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
15777         
15778         * XplatUI.cs:
15779         * XplatUIDriver.cs:
15780         * XplatUIX11.cs:
15781         * XplatUIWin32.cs:
15782         * XplatUIOSX.cs:
15783         - Added RequestAdditionalWM_NCMessages for windows to 
15784           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
15785           Currently only implemented in XplatUIWin32.
15786
15787 2006-11-27  Chris Toshok  <toshok@ximian.com>
15788
15789         * Hwnd.cs: only add the hwnd to the windows hash in
15790         set_WholeWindow and set_ClientWindow if whole_window/client_window
15791         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
15792
15793 2006-11-27  Mike Kestner  <mkestner@novell.com>
15794
15795         * ComboBox.cs: remove redundant OnDropDown call.  It is called
15796         from the ComboListBox.ShowWindow code. Fixes #79969.
15797
15798 2006-11-27  Chris Toshok  <toshok@ximian.com>
15799
15800         * Hwnd.cs: remove the setters for ExposePending and
15801         NCExposePending - noone uses them.
15802
15803 2006-11-27  Jackson Harper  <jackson@ximian.com>
15804
15805         * TextControl.cs: new param for ReplaceSelection which determines
15806         whether we select the new selection, or set the cursor to the end
15807         of the new selection.
15808         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
15809         pasting, select the new text.
15810         * RichTextBox.cs: Use new param for ReplaceSelection.
15811
15812 2006-11-27  Jackson Harper  <jackson@ximian.com>
15813
15814         * TextBoxBase.cs: Set the selection to the caret after the caret
15815         is moved, otherwise they get out of sync.
15816
15817 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
15818
15819         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
15820         it fixes #80015
15821
15822 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
15823
15824         * ThemeWin32Classic.cs: 
15825         - Fix toolbar drop down arrow position.
15826         - Fix drop down appearance when ToolBar.Appearance is normal,
15827         it fixes #80018.
15828         
15829 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
15830
15831         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
15832         * Control.cs: Same.
15833         * UpDownBase.cs: Same.
15834         * ButtonBase.cs: Same.
15835         * ScrollBar.cs: Same.
15836         * TrackBar.cs: Same.
15837         * PictureBox.cs: Same.
15838         * UserControl.cs: Same.
15839         * Label.cs: Same.
15840         * ListControl.cs: Same.
15841         * TextBoxBase.cs: Same.
15842         * ListView.cs: Same.
15843         * RichTextBox.cs: Same.
15844         * TreeView.cs: Same.
15845
15846 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
15847
15848         * PrintDialog.cs:
15849         - Text label for where 
15850         - Text label comment was not shown
15851
15852 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
15853
15854         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
15855
15856 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
15857
15858         * InternalWindowManager.cs: 
15859         - Handle WM_PARENTNOTIFY to activate the form
15860         if any child control is clicked.
15861         - The form is only sizable if not minimized.
15862
15863         * MdiWindowManager.cs:
15864         - Save the IconicBounds if the form is moved.
15865         - Rework SetWindowState, now the window bounds 
15866         are stored only if the old window state is Normal.
15867         
15868         * MdiClient.cs:
15869         - In SetWindowStates store the old window state if 
15870         the window is maximized and restore window state if
15871         the window looses focus.
15872         - Don't handle any scrollbar value changes if 
15873         initializing the scroll bars. Fixes #79771.
15874         - Reworked ArrangeIconicWindows. Current algorithm
15875         tests bounds agains all other minimized windows, if
15876         any intersections create new bounds (going left to 
15877         right, bottom to top) and then test again. When 
15878         successful the bounds are saved and never computed
15879         again. Fixes #79774.
15880
15881 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
15882
15883         * InternalWindowManager.cs: Added HandleTitleBarUp.
15884
15885 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
15886
15887         * NumericUpDown.cs: In .NET 1.1, user entered text is still
15888         hexadecimal in ParseUserEdit.
15889
15890         
15891 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
15892
15893         * MdiWindowManager.cs: 
15894         - Handle a click on the form's icon to show the 
15895         system menu (when maximized). Fixes #79775.
15896         - Change the existing click handler for the form's
15897         icon when not maximized to show on MouseUp.
15898         Fixes #79776.
15899
15900         * Form.cs: In OnResize only layout the mdi child's
15901         parent if it actually has a parent. Might not if
15902         the window is closing.
15903
15904
15905 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
15906
15907         * MdiClient.cs: Ignore active MDI client for text of parent, if
15908         child has no text set.
15909
15910 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
15911
15912         * ToolBar.cs: Fixed ToString to match MS.
15913
15914 2006-11-22  Andreia Gaita  <avidigal@novell.com>
15915
15916         * NumericUpDown: 
15917         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
15918         update inner values on set. Fixes #79966.
15919         - Override OnLostFocus to update value on NET 2. Fixes #79950.
15920         - Fix hexadecimal parsing.
15921         
15922         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
15923         parent. Fixes #79957
15924
15925 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15926
15927         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
15928         the actual size has to be queried, since if height /
15929         width is negative Win32 changes it to 0. 
15930         Fixes #79999 on Windows.
15931         
15932         * XplatUIX11.cs: Set height / width to 0 if negative
15933         in SetWindowPos. Fixes #79999 on Linux.
15934         
15935 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
15936
15937         * ThemeWin32Classic.cs: Fix text redenring when button is
15938         pressed.
15939
15940 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
15941
15942         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
15943         and later navigate by mouse. Fixes #79528.
15944
15945 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
15946
15947         * ToolBar.cs: Set default value for TabStop to false in
15948         constructor, it fixes remaining behavior of bug #79863.
15949
15950 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15951
15952         * MdiWindowManager.cs:
15953         * InternalWindowManager.cs:
15954         - Moved a few methods specific to Mdi from 
15955         InternalWindowManager to MdiWindowManager.
15956         Fixes #79996.
15957         
15958 2006-11-21  Chris Toshok  <toshok@ximian.com>
15959
15960         * XplatUIOSX.cs: stub out InvalidateNC.
15961
15962         * XplatUIWin32.cs: implement InvalidateNC using the call I found
15963         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
15964
15965         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
15966
15967         * XplatUIDriver.cs: add InvalidateNC abstract method.
15968
15969         * XplatUI.cs: add InvalidateNC.
15970
15971 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
15972
15973         * ToolBar.cs: Invalidate complete button area when pressed status 
15974         was changed.
15975         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
15976         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
15977         by 1 when button is pressed.
15978
15979 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
15980
15981         * ToolButton.cs: Invalidate middle of DropDown button when
15982         ToolBar theres DropDownArrows.
15983         * ThemeWin32Classic.cs: Change position of DropDown arrow and
15984         fix DropDown drawing operations.
15985
15986 2006-11-20  Chris Toshok  <toshok@ximian.com>
15987
15988         * NativeWindow.cs: fix the formatting of functions ('{' on the
15989         following line), and enable the thread exception dialog.
15990
15991         * Application.cs: remove the duplicate exception catching from
15992         here.
15993
15994 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
15995
15996         * Toolbar.cs: Triggers button click event when click on icon
15997         of dropdown ToolBarButton. Fixes #79912.
15998         
15999 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16000
16001         * Theme.cs:
16002         * ThemeWin32Classic.cs:
16003         - Added a property WindowBorderFont to enable themeing
16004           of mdi child windows' Text.
16005           
16006 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16007
16008         * InternalWindowManager.cs:
16009         * Form.cs:
16010         * MdiClient.cs:
16011         * MdiWindowManager.cs: 
16012         - If mdi child is maximized, set mdi parent's
16013           text to "Parent - [Child]". Fixes #79770.
16014         - If there is any maximized mdi child windows, only the active 
16015           window (and any new windows) is maximized, the rest are normal.
16016         - On a WindowState change only save mdi child's window bounds 
16017           if the old window state was normal. Fixes #79774.
16018         - The scroll bars are now calculated on hopefully all
16019           necessary events. Fixed #79771 / #79844->6 / #79906.
16020         - MdiClient.SizeScrollBars() now takes into account docked 
16021           controls in the parent when calculating available space.
16022         - InternalWindowManager now always repaints the entire title
16023           area. Fixes #79844->1/4/5.
16024         - Added RequestNCRecalc on mdi child windowstate changes.
16025           Fixes #79772.
16026
16027 2006-11-20  Mike Kestner  <mkestner@novell.com>
16028
16029         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
16030         in the MouseUp handler of the listbox and move the return handling
16031         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
16032
16033 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
16034
16035         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
16036
16037 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
16038
16039         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
16040           working in 1.2.x anymore. So, updated.
16041
16042 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
16043
16044         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
16045         NumberGroupSeparator of current culture instead of assuming en-US.
16046         Fixed bug #79967.
16047
16048 2006-11-17  Mike Kestner  <mkestner@novell.com>
16049
16050         * Control.cs: Add the concept of implicit bounds setting so that
16051         dock/undock round trips preserve explicitly set size/locations.
16052         Fixes #79313.
16053
16054 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
16055
16056         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
16057           can't handle those filters. (Fixes bug #79961)
16058
16059 2006-11-17  Chris Toshok  <toshok@ximian.com>
16060
16061         [ fixes the exit/crashes associated with #79835.  it's clearly
16062         suboptimal though, we need to figure out a better way to solve
16063         this. ]
16064         
16065         * PrintPreviewControl.cs: deal with the new invalid printer
16066         exceptions.
16067
16068         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
16069         and return false (so CommonDialog.ShowDialog doesn't actually show
16070         the form.)
16071
16072         * PrintDialog.cs: enable/disable the Ok button depending on
16073         whether or not the printer is valid.
16074
16075         * CommonDialog.cs (ShowDialog): only actually show the form if
16076         RunDialog returns true.
16077
16078 2006-11-17  Jackson Harper  <jackson@ximian.com>
16079
16080         * TextControl.cs: When soft splitting a line, mark it as a soft
16081         split line. Also carry over the current line break to the next
16082         line.
16083
16084 2006-11-17  Chris Toshok  <toshok@ximian.com>
16085
16086         * XplatUIX11.cs: when scrolling a window with an invalid area, we
16087         only want to shift the part of the invalid area that overlaps the
16088         area we're scrolling.  we also don't want to clear the invalid
16089         area unless the invalid area was entirely contained within the
16090         scrolling area.
16091
16092 2006-11-16  Chris Toshok  <toshok@ximian.com>
16093
16094         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
16095         also make sure to free the memory returned by XGetWindowProperty
16096         in GetText().
16097
16098         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
16099
16100 2006-11-16  Chris Toshok  <toshok@ximian.com>
16101
16102         * XplatUI.cs: add a new super secret way to get at the totally
16103         unsupported X11 backend.
16104
16105 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
16106
16107         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
16108
16109 2006-11-16  Jackson Harper  <jackson@ximian.com>
16110
16111         * TreeView.cs: Allow more explicit setting of top node position
16112         for scrollbars. Slower algo, but more accurate.
16113         - CollapseAll should maintain the current top node.
16114         * TextBoxBase.cs: When positioning the caret, use the line, pos
16115         method, since the x, y method does not grab the correct tag, and
16116         the caret height never gets set correctly. (Maybe I should just do
16117         away with the caret having its own height, and always use the
16118         carets current tag for height).
16119
16120 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
16121
16122         [Fixes 79778, 79923]
16123
16124         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
16125         Parent to the FosterParent instead.
16126
16127 2006-11-16  Jackson Harper  <jackson@ximian.com>
16128
16129         * TreeView.cs: Need to recalc the topnode when we expand or
16130         collapse. The scrolling methods can't handle this on their own,
16131         since they use differences between the last scroll position, and
16132         those difference get completely messed up since we are expanding
16133         nodes.  This problem should probably be fixed in the scrolling
16134         methods, so they can figure out exactly where they are, but this
16135         will slow things down a little.
16136         * ThemeWin32Classic.cs: Special case for groupboxes with empty
16137         strings, makes nunit-gui look a lot nicer.
16138
16139 2006-11-16  Chris Toshok  <toshok@ximian.com>
16140
16141         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
16142         the broken multithreaded event handling we have in here.  File
16143         this entry under "Why we should move to the new X11 backend".
16144
16145         Any thread can make it into UpdateMessageQueue, which gets events
16146         from the X socket - some of which could belong to hwnds being
16147         managed by a different thread.  We can also have multiple threads
16148         in UpdateMessageQueue at the same time, with each one reading from
16149         the X socket.  This leads to many problems, with the following
16150         solutions:
16151
16152         We can't use hwnd.Queue.Enqueue anywhere in here and must use
16153         EnqueueLocked.
16154
16155         The MotionNotify compression we do can't work across threads
16156         (without locking the entire queue, perhaps) since we call
16157         hwnd.Queue.Peek, so we just punt and don't compress motion events
16158         unless the owning thread is the one which got the X event.
16159
16160         ConfigureNotify is another fun one, since it modifies the hwnd's
16161         bounds and then enqueues the event.  We add a lock to Hwnd which
16162         is held when setting configure_pending to true (and enqueuing the
16163         event).
16164
16165         There is a race wrt the wake socket.  we need to make sure that
16166         only 1 thread is waiting on that socket, or else a thread could
16167         sleep waiting for data that never comes.  It's difficult (but not
16168         impossible) to make happen, because it seems to require something
16169         like the following:
16170
16171             1. Thread 1 polls on wake_receive
16172         
16173             2. poll returns saying there's data to be read on
16174                wake_receive.
16175         
16176             3. Thread 2 polls on wake_receive and immediately returns
16177                saying there's data to be read.
16178
16179             4. Thread 2 reads the wakeup byte from wake_receive
16180
16181             5. Thread 1 attempts to read the wakeup byte from
16182                wake_receive.
16183
16184             6. Thread 2 exits (due to a form closing, perhaps).
16185
16186             7. Thread 1 blocks forever.
16187         
16188         Fun, eh?
16189
16190         Fixing the Expose handling isn't done yet, and the races inherent
16191         in that piece of code are responsible for the drawing mistakes you
16192         see when generating expose events in a MT app (like NPlot).  This
16193         one is the likely to be the hardest to bandaid, and it doesn't
16194         appear to cause anything but drawing problems.  The other issues
16195         caused apps to exit or hang.
16196
16197         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
16198         called from a different thread than the one that should be calling
16199         these functions.
16200
16201         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
16202
16203 2006-11-15  Chris Toshok  <toshok@ximian.com>
16204
16205         * Application.cs: null out the context's MainForm when we exit
16206         RunLoop.  Fixes a newly checked in unit test as well as the last
16207         ODE from bug #79933.
16208
16209 2006-11-15  Chris Toshok  <toshok@ximian.com>
16210
16211         * Form.cs (set_Owner): allow a null value so we can clear the
16212         form's owner.
16213         (Dispose): set all our owned_form's Owner properties to null, and
16214         clear the owned_forms collection.
16215         (WM_CLOSE): clean up this a little bit.. still not right though.
16216
16217         * ApplicationContext.cs: OnMainFormClosed should only call
16218         ExitThreadCore if the main form isn't recreating.  Fixes unit
16219         test.
16220
16221 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
16222
16223         [Fixes 78346]
16224
16225         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
16226
16227 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
16228
16229         [Fixes 79433]
16230
16231         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
16232         keep popup window types from stealing focus from the main form
16233         on Windows.
16234
16235         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
16236
16237         * MenuAPI.cs: Set above flag to true.
16238
16239 2006-11-15  Chris Toshok  <toshok@ximian.com>
16240
16241         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
16242         the button being released is not in wParam.
16243
16244 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
16245
16246         * Form.cs: Add the released button to MouseEventArgs.Button
16247         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
16248         on Win32.
16249
16250 2006-11-15  Chris Toshok  <toshok@ximian.com>
16251
16252         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
16253         GetText().  untested because it's unused in our implementation.
16254         Control.Text always caches the text, even if
16255         ControlStyles.CacheText is not set.
16256
16257         fixes bug #79939.
16258
16259 2006-11-15  Chris Toshok  <toshok@ximian.com>
16260
16261         [ fixes #79933 ]
16262         
16263         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
16264         message.  no hiding, no disposing.
16265
16266         in the WM_CLOSE handler, hide the form if it's modal.
16267
16268 2006-11-15  Chris Toshok  <toshok@ximian.com>
16269
16270         * XplatUIX11.cs: use AddExpose instead of sending a message.
16271         fixes textbox border drawing.
16272
16273 2006-11-15  Chris Toshok  <toshok@ximian.com>
16274
16275         * PropertyGridView.cs: keep from crashing on mouse move/down when
16276         the property grid is empty.
16277
16278 2006-11-14  Jackson Harper  <jackson@ximian.com>
16279
16280         * TextControl.cs: Make PageUp and PageDown more like the MS
16281         versions.
16282         * TextBoxBase.cs: When we set the text property position the
16283         cursor at the beginning of the document.
16284
16285 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16286
16287         * Form.cs: if a mdi child's WindowState has changed
16288         before it's creation, it would display wrong control
16289         buttons.
16290         
16291 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
16292
16293         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
16294           (Fixes bug #79927)
16295
16296 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16297
16298         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
16299         the window gets to paint its borders even if the window is
16300         getting smaller.
16301         
16302         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
16303         otherwise the old control buttons would still be painted 
16304         if the window gets bigger.
16305         
16306         * PaintEventArgs.cs: add an internal method so that the clip 
16307         rectangle can be changed.
16308         
16309 2006-11-13  Chris Toshok  <toshok@ximian.com>
16310
16311         [ fixes bug #79745 ]
16312         
16313         * NotifyIcon.cs: lots of cleanup.
16314
16315         * X11Structs.cs: add an enum for XEMBED messages.
16316
16317         * XplatUIX11.cs: reindent one of the giant switch statements, it
16318         was taking up an additional tab stop, and this file is already way
16319         too wide for my laptop's screen.
16320
16321         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
16322         we get it, resize the hwnd to the WMNormalHints max_width/height.
16323
16324 2006-11-13  Jackson Harper  <jackson@ximian.com>
16325
16326         * TextBoxBase.cs: Compute the value changes for the mouse wheel
16327         teh simple way.
16328
16329 2006-11-13  Chris Toshok  <toshok@ximian.com>
16330
16331         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
16332         #79898.  force a reference to the Region to stick around so the
16333         unmanaged object isn't collected (rendering our handle in the MSG
16334         stale).
16335
16336 2006-11-13  Chris Toshok  <toshok@ximian.com>
16337
16338         * XplatUIX11.cs: fix #79917 for window managers which support
16339
16340         using XStoreName on the raw utf8, and we need to convert to
16341         COMPOUND_TEXT if it's non-latin1.
16342
16343 2006-11-13  Chris Toshok  <toshok@ximian.com>
16344
16345         * Form.cs (set_DialogResult): we need to set closing to false if
16346         we're setting our result to None.  fixes bug #79908.
16347
16348 2006-11-13  Jackson Harper  <jackson@ximian.com>
16349
16350         * TextControl.cs: When formatting text, compute the adjusted tag
16351         lengths correctly, using FindTag for the end tag instead of trying
16352         to figure it out outselves.
16353         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
16354         the item, ItemHeight doesn't work, because trees with large
16355         imagelists use those for their height
16356         * TreeView.cs: ActualItemHeight factors in the image height
16357         - compute left edge of checkboxes correctly
16358         - when expanding/collapsing move the bottom down one pixel, so we
16359         aren't moving part of the node
16360
16361 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16362
16363         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
16364         stack in PaintEventStart so that it won't get disposed by the gc
16365         before reaching PaintEventEnd.
16366
16367 2006-11-13  Jackson Harper  <jackson@ximian.com>
16368
16369         * TextBoxBase.cs: Don't select the word if we are on a line with
16370         no text.
16371         - We don't need to position the caret on mouse up, since the mouse
16372         move handler should be doing this
16373         - When double clicking a blank line, the caret is advanced to the
16374         next line.
16375
16376 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
16377
16378         * TreeNodeCollection.cs: Avoid duplicating indexer code.
16379
16380 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
16381
16382         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
16383         Fixes part of bug #79910.
16384
16385 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
16386
16387         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
16388           (bug #79903). Some minor string updates to match ms.
16389
16390 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
16391
16392         * FileDialog.cs: Don't add an extension if the filename
16393           already ends with that extension.
16394
16395 2006-11-10  Jackson Harper  <jackson@ximian.com>
16396
16397         * TreeView.cs: Use the currently highlighted node for the
16398         BeforeSelect event.
16399         * TextBoxBase.cs: There is no need to expand selection on
16400         MouseMove.
16401         - CanUndo means 'is there any undo operations', not 'is undo
16402         allowed on this textcontrol. Fixed ClearUndo unit test.
16403
16404 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
16405
16406         * Button.cs: only perform click when button is Selectable (so as 
16407         not to activate default buttons when they're disabled)
16408         
16409         * Control.cs: Rewrite of the SelectNextControl and related 
16410         methods. HandleClick now selects next control if the current one
16411         is being disabled.
16412         
16413         * Form.cs: OnActivated selects next active control only if Load 
16414         has already occurred. If Load hasn't run, there's no point in 
16415         selecting here, Load might change the state of controls.
16416         
16417         * FocusTest.cs: Tests marked as working again for these fixes
16418
16419 2006-11-10  Chris Toshok  <toshok@ximian.com>
16420
16421         * XplatUIX11.cs: a couple of fixes.
16422
16423         - use XInternAtoms with almost all the atoms we need to register,
16424         instead of many, many calls to XInternAtom.  should help a bit on
16425         startup time, at the expense of making the code look a little
16426         worse.
16427
16428         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
16429         isn't reparented (which seems to be a clue that we're running fon
16430         compiz) and they have an Owner form.  This fixes the tool windows
16431         in paint.net when running under compiz.
16432
16433         - when setting the opacity of a window, support both the case
16434         where the window has been reparented and also when it hasn't been.
16435         Since compiz/beryl doesn't seem to reparent windows, and these are
16436         the only window managers which support translucency, I'm not sure
16437         why we need the hwnd.reparented case at all.. but leave it in.
16438         now we get translucent windows in paint.net under compiz/beryl.
16439
16440 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
16441
16442         * FileDialog.cs: Always return the value for FilterIndex that
16443           was set. Internally convert it to values that make sense.
16444
16445 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
16446         
16447         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
16448
16449 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
16450
16451         * Toolbar.cs: Change default value of DropDownArrows to true, the 
16452         signature still using false to make it compatible with MS but the 
16453         initial value is true. Fixes #79855.
16454
16455 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
16456
16457         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
16458           only available on Linux.
16459
16460 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
16461
16462         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
16463         reduce number of calls to redraw method during toolbar creation.
16464
16465 2006-11-09  Mike Kestner  <mkestner@novell.com>
16466
16467         * ListView.cs : raise SelectedIndexChanged when an item is selected
16468         programmatically via the Item.Selected property.  Gert's nice 
16469         ListViewSelectedIndexChanged test fixture now runs clean.
16470
16471 2006-11-09  Mike Kestner  <mkestner@novell.com>
16472
16473         * ListView.cs : raise SelectedIndexChanged when a selected item is
16474         removed from the item collection using Remove or RemoveAt.
16475
16476 2006-11-09  Mike Kestner  <mkestner@novell.com>
16477
16478         * ListView.cs : raise SelectedIndexChanged once per selected item
16479         for compat with MS.  Fixes #79849+.
16480
16481 2006-11-09  Chris Toshok  <toshok@ximian.com>
16482
16483         * TabControl.cs: initialize row_count to 0, and set it to 1 when
16484         we need to (if we have any tab pages).  Fixes unit test.
16485
16486 2006-11-09  Chris Toshok  <toshok@ximian.com>
16487
16488         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
16489         width is 0, not 3.  Fixes a unit test.
16490
16491 2006-11-09  Mike Kestner  <mkestner@novell.com>
16492
16493         * ListView.cs : use Implicit scrollbars so that focus isn't 
16494         stolen from the listview when they are clicked. Fixes #79850.
16495
16496 2006-11-09  Chris Toshok  <toshok@ximian.com>
16497
16498         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
16499         have a root item.  Fixes #79879.
16500
16501 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
16502
16503         * FileDialog.cs:
16504           - Fix ToString ()
16505           - An ArgumentException is now thrown if a wrong filter
16506             is applied (matches ms). The previous filter doesn't change
16507             anymore if an exception is thrown.
16508           - Changing the FileName property also affects FileNames
16509         * ColorDialog.cs: The length of the CustomColors array is always
16510           16. It doesn't matter if we use a smaller array or null to update
16511           or change the custom colors property.
16512         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
16513           for RootFolder if we get a undefined value.
16514
16515 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16516
16517         * StatusBarPanel.cs: 
16518         - Width is set to MinWidth if Width is smaller than
16519         MinWidth. Fixes #79842.
16520         - MinWidth now always overrides Width (MSDN says MinWidth
16521         is set to Width when AutoSize = None, but they do not 
16522         behave like that).
16523         - Style has now the the correct default value.
16524         
16525 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16526  
16527         * TrackBar.cs: 
16528         - The control is completely invalidated on 
16529         Got/LostFocus to draw the focus rectangle correctly.
16530         - When AutoSize then height is always 45 (width for 
16531         vertical controls).
16532         
16533         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
16534         on the mouse when moved and it doesn't move when grabbed
16535         until the mouse moves as well. Also fixed some wrong 
16536         calculations when clicking on the thumb (control thought
16537         click was outside of thumb and didn't grab it).
16538         Fixes some of the issues in #79718.
16539
16540 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
16541
16542         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
16543
16544 2006-11-08  Chris Toshok  <toshok@ximian.com>
16545
16546         * PropertyGridView.cs: only call ToggleValue if the item is not
16547         readonly.
16548
16549 2006-11-08  Jackson Harper  <jackson@ximian.com>
16550
16551         * TextBoxBase.cs: The RichTextBox and textbox have very different
16552         word selection methods.  Implement the textbox's simple word
16553         selection here, and let the RichTextBox override and provide it's
16554         own.
16555         - Don't do extra selection on mouseup
16556         * RichTextBox.cs: Use the documents word selection algorithm, I
16557         think ideally, this function will be pulled into the
16558         RichTextBox.cs code someday.
16559
16560 2006-11-08  Chris Toshok  <toshok@ximian.com>
16561
16562         * RootGridEntry.cs: new class to represent GridItemType.Root.
16563
16564         * CategoryGridEntry.cs: reformat, and add boilerplate.
16565         
16566         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
16567         returns the UI parent anyway, and we need special handling to
16568         implement the GetTarget method in the face of it.  Also, implement
16569         Select().
16570
16571         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
16572         a root grid item, and use that instead of PropertyGrid.grid_items.
16573         Also, make use of TypeConverters (and add limitted support for
16574         ICustomTypeDescriptors) when initially populating the grid.
16575         Arrays now show up more or less properly.
16576
16577 2006-11-08  Chris Toshok  <toshok@ximian.com>
16578
16579         * Application.cs: set the modal dialog to non modal after we close
16580         it.  Fixes bug #79866.
16581
16582 2006-11-08  Jackson Harper  <jackson@ximian.com>
16583
16584         * TextControl.cs: When combining lines carry over the line end
16585         style from the end line.
16586         - Invalidate the selected area when setting it, if it is visible.
16587         * TextBoxBase.cs: Only rich text box can do full line selects.
16588         - Make sure to set the cursor position when there is a click,
16589         otherwise two clicks in separate areas could cause a large chunk
16590         to be selected.
16591
16592 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
16593
16594         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
16595         Fixes #79863.
16596
16597 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
16598
16599         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
16600         time. Remove tooltips when ToolButton click events.  Fixes #79856.
16601
16602 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
16603
16604         * MenuAPI.cs: Ignore right click for menu actions and fixes
16605         menu border when clicked.  Fixes #79846.
16606
16607 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
16608
16609         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
16610         MouseState after create wParam for message, this fixes mouse button 
16611         equal none in mouse up events.
16612         
16613 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
16614
16615         * Control.cs : Focus() now calls Select to set the Container's
16616         Active Control and to give it focus. To avoid infinite recursion
16617         (because ActiveControl also calls Focus at one point), a check 
16618         is made in Focus with the help of a new internal variable
16619         is_focusing.
16620
16621 2006-11-07  Mike Kestner  <mkestner@novell.com>
16622
16623         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
16624         if there's a selection.  Fixes #79849.
16625
16626 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
16627
16628         * PropertyGrid.cs: Avoid fixed height of help description label.
16629         Fixes part of bug #79829.
16630
16631 2006-11-07  Chris Toshok  <toshok@ximian.com>
16632
16633         * XplatUIX11.cs: fix #79790 again, by using the
16634         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
16635
16636 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
16637
16638         * ToolBar.cs: Fix left click checking.
16639
16640 2006-11-07  Chris Toshok  <toshok@ximian.com>
16641
16642         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
16643
16644 2006-11-07  Chris Toshok  <toshok@ximian.com>
16645
16646         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
16647         PropertyManager unit tests.
16648
16649         * PropertyManager.cs: make property_name internal.
16650
16651 2006-11-07  Chris Toshok  <toshok@ximian.com>
16652
16653         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
16654         pass a unit test.  Also, don't set image_index to anything in
16655         response to setting the ImageList property.
16656
16657 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
16658
16659         * ToolBar.cs: Ignore click events when mouse button is not a
16660         left button, only accepts other button for dropdown menus.  
16661         Fixes #79854.
16662
16663 2006-11-07  Chris Toshok  <toshok@ximian.com>
16664
16665         * DataGrid.cs: make the back and parent row buttons a little less
16666         ugly.
16667
16668 2006-11-07  Jackson Harper  <jackson@ximian.com>
16669
16670         * TextBoxBase.cs: When converting to Text don't put line breaks in
16671         for soft line breaks.
16672         * TextControl.cs: There is an initial "fake" line in the document,
16673         this is now a soft break line, so that an extra line feed doesn't
16674         get added to the end of documents.
16675
16676 2006-11-07  Chris Toshok  <toshok@ximian.com>
16677
16678         [ fix bug #79778 ]
16679         
16680         * CurrencyManager.cs: if the list is readonly, don't bother
16681         checking if IBindingList.AllowNew is true.
16682
16683         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
16684         for non-DataRowView datasources..  or rather, make it not crash.
16685         (DataGridPaintRelationRow): make sure we limit the row painting to
16686         the area not covered by the row header, and make our cell width at
16687         least large enough to cover the relation area.  This allows grids
16688         that have relations but no rows to render correctly.
16689         (DataGridPaintRowContents): same type of changes here.
16690         (SetDataSource): move back to always calling
16691         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
16692         navigating back through relations.
16693         (HitTest): handle the case where we have no cells but have
16694         relations.  Right now we generate a hit in cell 0 of whatever the
16695         row is, not sure if this is strictly correct, but it works for our
16696         purposes.
16697         
16698         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
16699         bother doing anything.
16700
16701 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
16702
16703         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
16704         early version of StatusStrip.  Not responsible for eaten
16705         application or firstborn children.
16706
16707 2006-11-06  Chris Toshok  <toshok@ximian.com>
16708
16709         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
16710         call GetTabRect with a -1 index.  Fixes #79847.
16711
16712 2006-11-06  Jackson Harper  <jackson@ximian.com>
16713
16714         * TreeNodeCollection.cs: Update scrollbars after clearing.
16715
16716 2006-11-06  Chris Toshok  <toshok@ximian.com>
16717
16718         * NumericUpDown.cs: fix the ToString method for some unit test
16719         love.
16720
16721 2006-11-06  Chris Toshok  <toshok@ximian.com>
16722
16723         * PropertyGrid.cs:
16724         - set the initial SelectedGridItem if we can.
16725
16726         - Exclude non-mergable properties only if we're merging > 1
16727         object.  Merging 1 object isn't really merging, obviously.
16728
16729         - Handle PropertySort.NoSort just like Alphabetical, which is
16730         wrong of course, but at least gets things on the screen.
16731         
16732         * PropertyGridView.cs:
16733         - Add method "FindFirstItem" which finds the first property grid
16734         item, so we can select it by default.
16735
16736         - make use of GridEntry.CanResetValue.
16737
16738         - Don't call RedrawBelowItemOnExpansion here anymore, the
16739         individual GridEntry's will do that.
16740
16741         - Remove the ITypeDescriptorContextImpl internal class.
16742         
16743         * GridEntry.cs:
16744         - this class needs to implement ITypeDescriptorContext, as it's
16745         what MS's PropertyDescriptorGridEntry does, which means we can
16746         remove the ITypeDescriptorContextImpl internal class from
16747         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
16748
16749         - keep a reference to our PropertyGridView, and move the call to
16750         RedrawBelowItemOnExpansion here from PGV.  This means
16751         programmaticly setting Expanded actually does something visible.
16752
16753         - add a CanResetValue() function which takes into account our
16754         possibly multiple "selected_objects" in the merged case.  Shifting
16755         PropertyGridView to use this method fixes another unreported
16756         crasher found running the test for #79829.
16757
16758         - when Top or Bounds is updated, make sure the PropertyGridTextBox
16759         is updated to reflect this.
16760
16761         * CategoryGridEntry.cs: the ctor takes the PGV now.
16762         
16763 2006-11-06  Jackson Harper  <jackson@ximian.com>
16764
16765         * TextControl.cs: These are 1 based.
16766         * TextBoxBase.cs: When setting the selected text, don't change the
16767         selected text tags, this is done by ReplaceText, just position the
16768         cursor at the end of the new text.
16769
16770 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
16771
16772         * ListView.cs: Allow label edit only when, when LabelEdit is
16773           set to true.
16774
16775 2006-11-06  Jackson Harper  <jackson@ximian.com>
16776
16777         * TextControl.cs: If a suitable wrapping position isn't found,
16778         just wrap right in the middle of a word.
16779
16780 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
16781
16782         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
16783           bug #79820.
16784
16785 2006-11-06  Jackson Harper  <jackson@ximian.com>
16786
16787         * TreeView.cs: Can't use the VisibleCount property when setting
16788         scrollbar heights, because this doesn't take into account whether
16789         or not the horz scrollbar just came visible.
16790
16791 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
16792
16793         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
16794         activated.  Fixes #79369, #79832.
16795
16796 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
16797
16798         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
16799           had to remove support for links that point to a directory. FileInfo
16800           returns no usefull information (means, the directory they point to)
16801           for such links. Replaced some empty string ("") with String.Empty.
16802
16803 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
16804
16805         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
16806         NullReferenceException when attempting to remove node that is not in
16807         collection. Throw NullReferenceException when null is passed to 
16808         Remove. Allow first element of the collection to be removed. Fixes
16809         bug #79831.  In GetEnumerator ().Current return null if positioned 
16810         before the first element of the collection. In GetEnumerator ().Reset,
16811         position before first element of the collection.
16812
16813 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
16814
16815         * PropertyGrid.cs: To match MS, remove default title and description
16816         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
16817         buttons.
16818
16819 2006-11-04  Chris Toshok  <toshok@ximian.com>
16820
16821         * Theme.cs: add a Clamp method, just for kicks.
16822
16823         * ThemeWin32Classic.cs: clamp all color components to [0..255].
16824
16825 2006-11-04  Chris Toshok  <toshok@ximian.com>
16826
16827         * Form.cs: if the form isn't visible, Close() does nothing.
16828
16829 2006-11-03  Chris Toshok  <toshok@ximian.com>
16830
16831         * Form.cs (Close): if the form is modal, don't Dispose of it, only
16832         Hide it.
16833         (WndProc): don't Dispose after handling the WM_CLOSE message.
16834
16835         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
16836         them as such, instead of using casts from Control to Form.  Also,
16837         don't Dispose of the modal dialog when we fall out of the loop -
16838         Close() it instead.
16839
16840         fixes bug #79813.
16841
16842 2006-11-03  Chris Toshok  <toshok@ximian.com>
16843
16844         * Control.cs (Dispose): only go through the dispose thing if we're
16845         @disposing, and we haven't already been disposed.  Fixes bug
16846         #79814.
16847
16848         * Form.cs: no reason to call "base.Dispose()" here instead of
16849         "Dispose()".
16850
16851 2006-11-03  Mike Kestner  <mkestner@novell.com>
16852
16853         * ComboBox.cs : use ToString instead of casts in AddItem for
16854         sorting functionality.  Fixes #79812.
16855
16856 2006-11-03  Chris Toshok  <toshok@ximian.com>
16857
16858         * Application.cs: pave the way for actually using the thread
16859         exception dialog.  it's ifdefed out at the moment.
16860
16861 2006-11-03  Chris Toshok  <toshok@ximian.com>
16862
16863         * ThreadExceptionDialog.cs: until we get a better layout, actually
16864         hide the details textbox and label when we shouldn't see them.
16865
16866 2006-11-03  Jackson Harper  <jackson@ximian.com>
16867
16868         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
16869         multiline textboxes anymore.  This method also determines the
16870         width/height of a textboxes canvas area.
16871         - Sorta a revert of the last patch.  For multiline just position
16872         the controls, then bail.  This way the scrollbar width won't be
16873         altered.
16874
16875 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
16876
16877         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
16878         it dont need.  Fixes #79537.
16879
16880 2006-11-02  Jackson Harper  <jackson@ximian.com>
16881
16882         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
16883         send the status after firing the DndOver event.
16884
16885 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16886
16887         * TrackBar.cs: Now orientation only switches height / width if
16888         the control's handle is created (Win32 does it like this). Also 
16889         fixed a typo in ToString() for a test to pass, changed the 
16890         exception thrown in set_LargeChange and set_SmallChange to 
16891         match Win32 behaviour, and added TrackBar tests to the unit 
16892         tests.
16893
16894 2006-11-02  Chris Toshok  <toshok@ximian.com>
16895
16896         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
16897         not _NET_WM_STATE_NO_TASKBAR.
16898
16899 2006-11-02  Jackson Harper  <jackson@ximian.com>
16900
16901         * TextControl.cs: Increment count by one, since in the update view
16902         count - 1 is used.
16903
16904 2006-11-02  Jackson Harper  <jackson@ximian.com>
16905
16906         * TextBoxBase.cs: Use client rectangle not bounds for checking if
16907         the mouse is in the client rectangle (duh).
16908
16909 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16910         
16911         * TrackBar.cs: Fixed trackbar jumping around when clicking
16912         on it - the trackbar was not detecting correctly at which
16913         side of the thumb the click was done. (fixes #79718)
16914
16915 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
16916
16917         * ListBox.cs: scroll visible area when change SelectedIndex to
16918         a non visible area.  Fixes #79481.
16919
16920 2006-11-01  Jackson Harper  <jackson@ximian.com>
16921
16922         * TextControl.cs: When replacing the selection move the selection
16923         start/end/anchor to the end of the new text.
16924
16925 2006-11-01  Jackson Harper  <jackson@ximian.com>
16926
16927         * XplatUIWin32.cs: When setting the parent change the controls
16928         visibility to it's visibility flag, not to it's old parents
16929         visibility (.Visible walks the parent chain).
16930
16931 2006-11-01  Chris Toshok  <toshok@ximian.com>
16932
16933         * XplatUIX11.cs: revert the #79790 fix, as the simple.
16934         XSetTransientForHint fix breaks paint .net's tool windows.  more
16935         work needed for that one.
16936
16937 2006-11-01  Chris Toshok  <toshok@ximian.com>
16938
16939         * ScrollBar.cs: throw ArgumentException instead of Exception in
16940         LargeChange/SmallChange setters.  fixes unit tests.
16941
16942 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
16943
16944         * ContainerControl.cs: reverted rev.67183 (which was itself
16945         a reversion of rev.66853... eh).
16946         
16947         * Control.cs: Fixes Reflector hang by changing Focus() call
16948         to what it was before rev.66643 (calling Select() here sets 
16949         ActiveControl, which in some situations calls back Focus and 
16950         eventually does a stack overflow). Temp fix.    
16951         Changes to GetNextControl() to not look for children to select when
16952         parent cannot be selectable (so it looks for siblings instead)  
16953         
16954 2006-10-31  Mike Kestner  <mkestner@novell.com>
16955
16956         * CheckedListBox.cs : off by one error in returned index from
16957         ObjectCollection.Add.  Fixes #79758.
16958
16959 2006-10-31  Chris Toshok  <toshok@ximian.com>
16960
16961         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
16962         calls for the textbox/spinner, to keep from recursing to the point
16963         where we crash.  Fixes #79760.
16964
16965 2006-10-31  Chris Toshok  <toshok@ximian.com>
16966
16967         * ListControl.cs (set_SelectedValue): don't throw exceptions on
16968         null/"" value, just return.  matches ms's behavior and fixes some
16969         failing tests.
16970
16971 2006-10-31  Chris Toshok  <toshok@ximian.com>
16972
16973         * Control.cs (set_Capture): make a logic a little easier to
16974         follow.
16975
16976         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
16977         if it's being destroyed.  A necessary fix surely, but a bandaid
16978         also, to fix the stuck capture problem in bug #78413.
16979
16980 2006-10-31  Chris Toshok  <toshok@ximian.com>
16981
16982         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
16983         convention of clearing hwnd.ClientRect when we set the
16984         width/height (so it'll be recalculated by Hwnd).
16985
16986 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
16987
16988         * ContainerControl.cs: reversed Contains check from
16989         ActiveControl due to hanging problems. This fix
16990         partly regresses #79667 (button does not have
16991         initial focus), so this might be a symptom for 
16992         a larger parenting problem (set_ActiveControl
16993         is being called but the child control does
16994         not have the parent set yet?)   
16995         
16996 2006-10-31  Mike Kestner  <mkestner@novell.com>
16997
16998         * MenuAPI.cs : fix keynav when menu is click activated.
16999
17000 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
17001
17002         * ToolStrip*: Version 0.2.
17003
17004         * MenuStrip.cs: Version 0.1.
17005
17006         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
17007
17008 2006-10-30  Chris Toshok  <toshok@ximian.com>
17009
17010         [ fixes the oversized notify icon issue in bug #79745 ]
17011         
17012         * NotifyIcon.cs: scale the icon down to the size we're given by
17013         the XplatUI layer (this would be faster if we did it once instead
17014         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
17015         since it's never invoked.
17016
17017         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
17018         pixels high by default, so let's hardcode our systray icon to that
17019         size.  The SYSTEM_TRAY protocol should really have a way for
17020         client apps to query for the correct icon size.. but oh well.  A
17021         couple of patches to deal with the screwy client_window ==
17022         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
17023         instance, and also make sure we don't XSelectInput twice).
17024
17025 2006-10-30  Chris Toshok  <toshok@ximian.com>
17026
17027         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
17028         recreating forms.  Control recreation is the bane of my existence.
17029         Fix it in a way that keeps everyone happy.
17030
17031 2006-10-30  Chris Toshok  <toshok@ximian.com>
17032
17033         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
17034         just non-CHILD ones.  otherwise sometimes scrollbars end up with
17035         client_windows not being resized to the proper size (ReportBuilder
17036         shows this extremely well).
17037
17038 2006-10-30  Chris Toshok  <toshok@ximian.com>
17039
17040         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
17041         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
17042         showing up in the gnome taskbar.  Fixes bug #79790.
17043
17044 2006-10-30  Chris Toshok  <toshok@ximian.com>
17045
17046         * ApplicationContext.cs: guard against a NRE.
17047
17048         * Application.cs: null out the old MainForm for the context, so we
17049         don't try to use it again once it's disposed.  Fixes bug #79783.
17050
17051 2006-10-30  Chris Toshok  <toshok@ximian.com>
17052
17053         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
17054         BindingContext, set the data source directly, otherwise do the
17055         lazy approach - the actual ListManager will be created when we get
17056         a BindingContext. Fixes bug #79700.
17057
17058 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
17059
17060         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
17061           XplatUIX11.cs: Remove old 2 parameter SetVisible.
17062
17063         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
17064
17065 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
17066
17067         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
17068         of SetVisible that allows a window to be shown, but not activated.
17069         This is needed on Windows for MenuStrip, and can probably be used
17070         with MainMenu and ComboBox to fix the focus stealing issues on
17071         Windows.
17072
17073         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
17074
17075 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
17076
17077         * PictureBox.cs: Fix the output of the ToString method.
17078
17079 2006-10-29  Chris Toshok  <toshok@ximian.com>
17080
17081         * Control.cs (get_TopLevelControl): fix bug #79781.
17082
17083 2006-10-29  Chris Toshok  <toshok@ximian.com>
17084
17085         * ListControl.cs (set_DataSource): throw Exception here, not
17086         ArgumentException, to match MS behavior.
17087
17088 2006-10-29  Chris Toshok  <toshok@ximian.com>
17089
17090         * Form.cs: remove the try-catch's around calls to GetWindowState.
17091         We can just check the return value.
17092
17093         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
17094         Instead return -1.
17095
17096         * XplatUI.cs: Add note about additional return value for
17097         GetWindowState.
17098
17099 2006-10-29  Chris Toshok  <toshok@ximian.com>
17100
17101         * Control.cs (CreateHandle): when we create our handle, we also
17102         create the handles of our child controls.  Fixes one of the
17103         Control unit tests (CH11).
17104
17105 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
17106
17107         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
17108
17109 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
17110
17111         * ThemeClearlooks.cs: A little speedup.
17112
17113 2006-10-27  Chris Toshok  <toshok@ximian.com>
17114
17115         * Control.cs: implement Control.FromChildHandle in a way that
17116         matches the docs (and fixes the failed test.)
17117
17118 2006-10-27  Chris Toshok  <toshok@ximian.com>
17119
17120         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
17121         comments).
17122
17123         * DataGrid.cs: implement ResetForeColor such that the tests
17124         succeed.
17125         
17126 2006-10-27  Chris Toshok  <toshok@ximian.com>
17127
17128         * ToolBarButton.cs: setting text/tooltiptext to null results in it
17129         being set to "".  Fixes bug #79759.
17130
17131 2006-10-27  Jackson Harper  <jackson@ximian.com>
17132
17133         * TextControl.cs: We need to clear the entire selection area when
17134         setting the start, otherwise multiline selections are still
17135         visible.
17136
17137 2006-10-26  Chris Toshok  <toshok@ximian.com>
17138
17139         * PropertyGridView.cs: 
17140
17141         - ifdef all the code specific to the double
17142         buffer case, and provide some alternatives in the non-doublebuffer
17143         code, which makes heavy use of XplatUI.ScrollWindow to move things
17144         around without having to invalidate (and cause flicker).  There
17145         are still some drawing problems in the non-doublebuffered case, so
17146         DOUBLEBUFFER is defined by default.
17147
17148         - Fix the way dropdowns are handled.  now we explicitly watch for
17149         the events which might cause the dropdown to close, and break out
17150         of the nested event loop there.  This gets rid of all Capture
17151         code, at the expense of the Msg special casing.  Seems to work,
17152         though, and fixes bug #79743.
17153
17154 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
17155         * Control.cs: SetIsRecreating now recreates implicitly added
17156         child controls as well. Finally fixes #79629. The flag passed to 
17157         SetIsRecreating has also been removed since it wasn't used.
17158         
17159 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17160
17161         * PageSetupDialog.cs: Clean some code, fix some bits, 
17162         add some checks, and add a printer sub-dialog.
17163
17164 2006-10-26  Chris Toshok  <toshok@ximian.com>
17165
17166         * PropertyGrid.cs: make set_SelectedObject call
17167         set_SelectedObjects, and move the duplicate logic to the
17168         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
17169
17170         * PropertyGridView.cs: hide the textbox when we get a
17171         SelectedObjectsChanged event.
17172
17173         Fixes bug #79748.
17174
17175 2006-10-26  Chris Toshok  <toshok@ximian.com>
17176
17177         * PropertyGridView.cs: deal with the type converter not supporting
17178         GetStandardValues() or GetStandardValues() returning null, which
17179         is does in the default case.  Fixes #79742.
17180
17181 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
17182
17183         * CheckedListBox.cs: nunit no longer crashes when selecting 
17184         Project/Edit menu option
17185         
17186 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
17187
17188         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
17189         is no menu selected. fixes #79739
17190
17191 2006-10-25  Chris Toshok  <toshok@ximian.com>
17192
17193         * PropertyGridView.cs: factor out the splitter invalidation code
17194         into the SplitterPercent setter, and for kicks implement the
17195         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
17196         amount in either direction.
17197
17198 2006-10-25  Chris Toshok  <toshok@ximian.com>
17199
17200         * PropertyGridView.cs: do some cleanup of the brush used to draw
17201         text - read only fields should be grayed out.  not sure how to do
17202         this with the textbox, though.  but the textbox's should also be
17203         readonly now at least.  Also, hide/show the textbox when resizing
17204         the control.
17205         
17206         * CursorConverter.cs: use System.Reflection when getting the
17207         properties of Cursors, as TypeDescriptor.GetProperties isn't
17208         returning static properties.
17209
17210 2006-10-25  Chris Toshok  <toshok@ximian.com>
17211
17212         * PropertyGridView.cs: factor out the up/down handling, and reuse
17213         it for page up/down.  also add End/Home support.
17214
17215 2006-10-25  Chris Toshok  <toshok@ximian.com>
17216
17217         * PropertyGridView.cs:
17218
17219         - ensure the selected grid item is visible in the scrolled area,
17220         fixes bug #79572.
17221
17222         - fix Keys.Down handling when you're on the last item in the
17223         propertygrid.
17224
17225 2006-10-25  Mike Kestner  <mkestner@novell.com>
17226
17227         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
17228         clicks too.  Fixes #79725.
17229
17230 2006-10-24  Chris Toshok  <toshok@ximian.com>
17231
17232         * PropertyGrid.cs: use property.Converter instead of
17233         TypeDescriptor.GetConverter(property.PropertyType), so we catch
17234         TypeConverters declared on the property as well as on the
17235         PropertyType.  Fixes bug #79678.
17236
17237 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
17238
17239         * MimeIcon.cs, Mime.cs:
17240           Fallback to the default platform handler if no shared mime info
17241           stuff exists (fixes #79693).
17242
17243 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
17244         * ContainerControl.cs: Incorrect contains check in ActiveControl 
17245         from previous fix (duh).
17246
17247 2006-10-20  Chris Toshok  <toshok@ximian.com>
17248
17249         * PropertyGridView.cs: the dropdown should be MIN(number of items
17250         in list, 15).  Fixes #79551.
17251
17252 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
17253         Fixes #79384, #79394, #79652, #79667
17254         * Application.cs: 
17255         
17256         - Modal windows are now destroyed in the proper order for windows
17257         
17258         * ContainerControl.cs:
17259         
17260         - ActiveControl setter has more conditions on when to return:
17261                 - if we're reselecting the active control, but it actually
17262                 didn't have focus (window hidden or some such), it runs
17263                 - if the active control being selected doesn't actually 
17264                 exist in the container, it returns
17265         
17266         * Form.cs
17267         
17268         - The ShowDialog now gets the current form as the owner when
17269         invoking without parameters, and correctly activates the owner 
17270         when returning
17271         
17272         * MessageBox.cs
17273         
17274         - MessageBox now catches the Escape key to exit
17275
17276 2006-10-20  Chris Toshok  <toshok@ximian.com>
17277
17278         * PropertyGridView.cs: fix a number of issues (bug #78565, and
17279         most of bug #79676):
17280
17281         - you can navigate around the property grid with the arrow keys.
17282
17283         - the dropdown is sized properly when the pg has a vertical
17284         scrollbar.
17285
17286         - fix the indentation for subentries, and properly select the
17287         entire label rect.
17288
17289         - fix the gray bar's drawing (only draw it to the last element,
17290         not for the height of the control.  Also make sure we draw that
17291         last horizontal grid line.
17292
17293         - use the same mechanism the datagrid uses wrt the editing textbox
17294         when scrolling/resizing/etc.  Namely, we hide it first, do the
17295         operation, then show it again (if it's still visible).
17296         
17297         - aggressively remove a lot of unnecessary refreshes (and also
17298         calls to Invalidate(). call more limited variants, and only redraw
17299         what we need.)
17300         
17301         * PropertyGrid.cs:
17302
17303         - when we're populating the merged collection, fill in the UI
17304         parent with either the passed in item, or the category item we
17305         create.
17306
17307         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
17308
17309         * GridItem.cs: drop some fully qualified names.
17310         
17311         * GridEntry.cs: add a "UIParent", which is basically the parent
17312         treenode.
17313
17314         * GridItemCollection.cs: add an IndexOf method.
17315
17316 2006-10-20  Mike Kestner  <mkestner@novell.com>
17317
17318         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
17319         a working win32 NC invalidation mechanism, we can't invalidate
17320         menus.  [Fixes #79705]
17321
17322 2006-10-20  Mike Kestner  <mkestner@novell.com>
17323
17324         * ListBox.cs : don't update the VScrollbar if the list is empty,
17325         just hide it.  [Fixes #79692]
17326
17327 2006-10-20  Jackson Harper  <jackson@ximian.com>
17328
17329         * RichTextBox.cs: Handle some special chars better, and don't skip
17330         the entire group when we encounter a special char that we don't
17331         handle correctly.
17332
17333 2006-10-18  Chris Toshok  <toshok@ximian.com>
17334
17335         * PropertyGridView.cs: address a number of issues from bug #79676,
17336         mostly of the cosmetic variety.
17337
17338         - The highlight rectangle for indented items not extends all the
17339         way to the left.
17340
17341         - Indented items aren't indented so much.
17342
17343         - the dropdown is properly sized width-wise if the pg has a
17344         vertical scrollbar.
17345
17346 2006-10-18  Chris Toshok  <toshok@ximian.com>
17347
17348         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
17349         systray stuff is rather convoluted to begin with.
17350
17351         systray icons are a single window for some reason (that I haven't
17352         figured out yet), and for them, client_window == whole_window.
17353         Given the way the tests are structured elsewhere to determine
17354         which paints are pending (client vs. nc), that situation will
17355         always yield PAINT, not NCPAINT.  So, if we have a pending
17356         nc_expose and no pending expose, remove the hwnd from the paint
17357         queue, and also set nc_expose_pending to false, to keep us from
17358         blocking further expose's adding the hwnd to the paint queue.
17359
17360         phew.  like i said, a rather convoluted change.  Fixes the
17361         notifyicon repaint issues in bug #79645.
17362
17363 2006-10-18  Chris Toshok  <toshok@ximian.com>
17364
17365         * Form.cs: when getting the backcolor of the form, don't get
17366         base.BackColor, as this allows parents to influence the background
17367         color.  This breaks mdi forms.  Instead, if the background_color
17368         is empty, return the default.
17369
17370 2006-10-18  Chris Toshok  <toshok@ximian.com>
17371
17372         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
17373         to being private instead of internal static.
17374
17375         * Control.cs: remove all the stupid ParentWaitingOnRecreation
17376         crap, it wasn't working for more deeply nested controls anyway,
17377         and we already have the is_recreating flag - use that instead.
17378         Before calling DestroyHandle in RecreateHandle, recurse through
17379         the control tree setting it to true.  this returns the recreate
17380         code to much of its original simplicity, while now guaranteeing we
17381         actually recreate everything we're supposed to.  This change gets
17382         fyireporting actually showing mdi children.
17383
17384 2006-10-17  Chris Toshok  <toshok@ximian.com>
17385
17386         * Form.cs: remove some debug spew, and collapse some duplicate
17387         code at the end of SetClientSizeCore.
17388
17389         * XplatUIX11.cs: 
17390         - add some more debug spew here too wrt Destroy handling.
17391         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
17392         in Control's handling of WM_DESTROY.
17393         - Remove the handling of zombie window DestroyNotifies from the
17394         event loop - we don't need it.  Now the only DestroyNotifies we
17395         actually handle are ones generated by X.
17396         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
17397         match gtk's (functioning) handling of this. This keep metacity
17398         from leaving droppings in the form of wm borders with no window
17399         contents all over the place.
17400
17401         * Control.cs:
17402         - add a bunch of debug spew wrt control recreation.
17403         - fix a bug where we weren't tracking Visible properly on
17404         recreated hwnds.
17405         - fixed the WM_PAINT double buffer handling to support re-entrant
17406         calls (yes, i know it's gross, but it's happening to us).
17407
17408 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
17409         * ThemeWin32Classic.cs: changed drawing of selected days
17410         to make them look better.
17411
17412 2006-10-16  Chris Toshok  <toshok@ximian.com>
17413
17414         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
17415         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
17416
17417         * XplatUIX11.cs: move away from using hwnd.client_dc and
17418         hwnd.non_client_dc and on to a stack of dc's (and in window's
17419         case, PAINTSTRUCT's), so we can deal with nested Paint calls
17420         without puking or not disposing of Graphics objects.
17421
17422         * XplatUIOSX.cs: same.
17423
17424         * XplatUIWin32.cs: same.
17425
17426 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
17427
17428         * FileDialog.cs: Don't call on_directory_changed inside
17429           OnSelectedIndexChanged (it changes the SelectedIndex too).
17430           Instead move it to OnSelectionChangeCommitted.
17431
17432 2006-10-13  Chris Toshok  <toshok@ximian.com>
17433
17434         * XplatUIX11.cs: more Destroy work.  the current code does the
17435         following things, in order:
17436
17437         1. Enumerates all handles of all controls at or below the one
17438         being destroyed, in pre-order.  As it is doing this, it marks the
17439         handles as zombie and clears all references to them.
17440         
17441         2. calls XDestroyWindow on the window passed in.
17442
17443         3. SendMessage's WM_DESTROY to all he handles in the accumulated
17444         list.
17445
17446 2006-10-13  Chris Toshok  <toshok@ximian.com>
17447
17448         * XplatUIX11.cs: set hwnd.zombie to true before calling
17449         SendMessage (WM_DESTROY).  this keeps us from marking the new
17450         window a zombie, and also keeps us from calling sendmessage at
17451         all.
17452
17453 2006-10-13  Jackson Harper  <jackson@ximian.com>
17454
17455         * TextControl.cs: Do not show the caret and selection at the same
17456         time.  Reduces ugliness by 35%.
17457
17458 2006-10-13  Chris Toshok  <toshok@ximian.com>
17459
17460         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
17461         zombie after we do the recursive call, so we actually do call
17462         SendMessage on the children controls.
17463         (GetMessage): if we find a pending paint event for a zombie hwnd,
17464         remove the hwnd from the paint queue, or else it will always be
17465         there (and we'll effectively loop infinitely)
17466
17467 2006-10-13  Mike Kestner  <mkestner@novell.com>
17468
17469         * MenuItem.cs : add Selected format under keynav too.
17470         Fixes #79528.
17471
17472 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
17473
17474         * PropertyGrid.cs: Fixed some NRE's and small difference between our
17475         implementation and that of MS.
17476
17477 2006-10-13  Chris Toshok  <toshok@ximian.com>
17478
17479         * Control.cs (OnInvalidated) only futz with the invalid_region if
17480         the control is double buffered.  this fixes the apparent hang in
17481         the ListView unit tests.  Someone needs to make the
17482         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
17483
17484 2006-10-13  Chris Toshok  <toshok@ximian.com>
17485
17486         * PropertyGridView.cs:
17487
17488         - do a little refactoring so that only one place calls
17489         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
17490         else call that.  Also make it Refresh, since there are redraw bugs
17491         otherwise (we should take a look at that...)
17492
17493         - do a little more refactoring work to share the body of code
17494         involved with the drop down.  it was duplicated in the code
17495         dealing with the listbox handling and in the code dealing with the
17496         UITypeEditors.
17497
17498         - add a Capture to the dropdown form's control once it's
17499         displayed, and add a MouseDown handler that checks to make sure
17500         the position is inside the control.  If it's not, close the
17501         dropdown.  This fixes #78190.
17502
17503         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
17504         if the value is different than the initial value.
17505         
17506 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
17507
17508         * Control.cs: see #78650
17509         - Fixed GetNextControl for several cases:
17510                 - Changed FindFlatForward to return 
17511                 correct sibling control when more than one
17512                 control has same TabIndex as the currently 
17513                 focused one.
17514                 - Changed FindFlatBackward to loop children
17515                 from last to first and apply same logic as in
17516                 FindFlatForward
17517                 - Changed FindControlForward to search for
17518                 children when control is not a container
17519                 but has children, or search for siblings if
17520                 control is a container...
17521                 - Changed FindControlBackward   to continue
17522                 searching for child controls when hitting 
17523                 Panel-like parents
17524                 
17525         - Fixed Focus method to update ActiveControl
17526         (FocusTest.FocusSetsActive failure)
17527         
17528         * TabControl.cs:
17529         - Focus rectangle now refreshes when gaining
17530         or losing focus
17531         - Removed grab for Tab key on IsInputKey that 
17532         was keeping tab navigation from working (#78650)
17533
17534 2006-10-13  Chris Toshok  <toshok@ximian.com>
17535
17536         * PropertyGridView.cs:
17537         - Rewrite SetPropertyValue to loop over SelectedGridItem's
17538         SelectedObjects.
17539
17540         - Deal with GridItem.Value == null a few places.
17541
17542         * PropertyGrid.cs: 
17543         - replace the PopulateGridItemCollection with a pair of methods
17544         which compute the intersection of all the properties in the
17545         SelectedObjects array.  Fixes #79615.
17546
17547         - Throw ArgumentException from set_SelectedObjects if there's a
17548         null in the array.
17549
17550         - Add GetTarget method which can be used to traverse up the
17551         GridItem.Parent chain.  It depends on the assumption that
17552         selected_objects for different GridEntries are always in the same
17553         order (a safe assumption).  Use this method and loop over all the
17554         selected objects in the entry when calling RemoveValueChanged and
17555         AddValueChanged.
17556         
17557         * GridEntry.cs: Make this handle multiple selected objects.
17558         .Value returns null if not all the selected objects share the same
17559         value.
17560
17561 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
17562         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
17563           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
17564           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
17565           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
17566           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
17567         add additional functionality.
17568
17569 2006-10-12  Mike Kestner  <mkestner@novell.com>
17570
17571         * ErrorProvider.cs : new ToolTipWindow ctor sig.
17572         * HelpProvider.cs : new ToolTipWindow ctor sig.
17573         * ToolTip.cs : remove ToolTip param from Window sig since it is
17574         not used.
17575         * ToolBar.cs : add tooltip support.  Fixes #79565.
17576
17577 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
17578
17579         * ComboBox.cs: move the events in set_SelectedIndex to 
17580         after the call to HighlightIndex in order to avoid 
17581         possible recursion and subsequent problems with the call
17582         to HighlightIndex and include a range check in 
17583         set_HighlightIndex. Fixes #79588
17584         
17585 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
17586
17587         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
17588         to ui thread's settings instead of sunday. 
17589         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
17590
17591 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
17592
17593         * DateTimePicker.cs
17594         * MonthCalendar.cs
17595         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
17596         and implement missing functionality (selecting different parts 
17597         of the date and edit them individually with the keyboard).
17598         
17599 2006-10-11  Chris Toshok  <toshok@ximian.com>
17600
17601         * Control.cs (OnInvalidated): fix NRE relating to last change.
17602
17603 2006-10-11  Chris Toshok  <toshok@ximian.com>
17604
17605         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
17606         atoms in _NET_WM_STATE here if the window is maximized.  We need
17607         to do this because we're *replacing* the existing _NET_WM_STATE
17608         property, so those atoms will be lost otherwise, and any further
17609         call to GetWindowState will return Normal for a window which is
17610         actually maximized.  Fixes #79338.
17611
17612 2006-10-11  Jackson Harper  <jackson@ximian.com>
17613
17614         * TextControl.cs: Special case for setting selection end to
17615         selection start, we basically kill the anchor.
17616         - some todo comments.
17617
17618 2006-10-11  Chris Toshok  <toshok@ximian.com>
17619
17620         * Control.cs: switch to using an "invalid_region" to track which
17621         parts of the image buffer need updating.  This is more code than
17622         the simple fix from r66532.  That version just attempted to always
17623         fill the entire buffer on redraw, which turns out to be
17624         inefficient when invalidating small rectangles.  This version
17625         simply adds the invalid rectangle to the invalid region.  When we
17626         get any WM_PAINT message we see if it can be filled using the
17627         image buffer, and if it can't (if the paint event's clip rectangle
17628         is visible in the invalid region) we first fill the image buffer.
17629         So, the image buffer is still a cache, we just fill it lazily.
17630
17631         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
17632         need it any longer.
17633
17634 2006-10-11  Chris Toshok  <toshok@ximian.com>
17635
17636         * XplatUIX11.cs (SetWindowPos): we need to update both position as
17637         well as size after calling XMoveResizeWindow.  This keeps us from
17638         ignoring future SetWindowPos calls.  Fixes the disappearing
17639         DateTimePicker in the ToolBarDockExample from bug #72499.
17640
17641 2006-10-11  Chris Toshok  <toshok@ximian.com>
17642
17643         * TextBoxBase.cs: reorder things a bit when it comes to
17644         resizing-causing-recalculation.  we were recalculating the
17645         document when our position was changed, which shouldn't happen.
17646         We only care about size changes.  Clear up some more redundant
17647         recalculation calls while I'm at it.  This makes the toolbar dock
17648         example snappy when you're just dragging toolbars around (since it
17649         causes a relayout whenever you move one.)
17650
17651 2006-10-11  Chris Toshok  <toshok@ximian.com>
17652
17653         * ToolBarButton.cs (get_Rectangle): this only returns
17654         Rectangle.Empty if Visible == false, or Parent == null.
17655         Parent.Visible doesn't matter.
17656
17657 2006-10-10  Chris Toshok  <toshok@ximian.com>
17658
17659         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
17660         by .net 1.1, so switch to an internal method instead.
17661
17662 2006-10-10  Chris Toshok  <toshok@ximian.com>
17663
17664         * Control.cs (WM_PAINT): when a control is double buffered we draw
17665         initially to the ImageBuffer and then copy from there.  But when a
17666         parent control which has child controls is double buffered, the
17667         initial drawing doesn't encompass the entire ClientRectangle of
17668         the parent control, so we end up with uninitialized bits (this is
17669         easily seen by dragging the top toolbar in
17670         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
17671         manually set the ClipRectangle of the paint_event (only the one we
17672         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
17673         of the nastiness in bug #72499.
17674
17675         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
17676         which we use in Control.cs's WM_PAINT handling.
17677
17678 2006-10-10  Jackson Harper  <jackson@ximian.com>
17679
17680         * TextBoxBase.cs: Finish off the autoscrolling stuff.
17681
17682 2006-10-10  Chris Toshok  <toshok@ximian.com>
17683
17684         * Cursor.cs: Apply a slightly different patch to the one suggested
17685         in #79609.
17686
17687 2006-10-10  Jackson Harper  <jackson@ximian.com>
17688
17689         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
17690         not the parent form.
17691         * TextControl.cs: use difference in old line count vs new count to
17692         calculate how many lines were added, this takes into account soft
17693         line breaks properly.
17694
17695 2006-10-10  Chris Toshok  <toshok@ximian.com>
17696
17697         * LinkLabel.cs: don't call MeasureCharacterRanges against a
17698         rectangle located at 0,0 and the size of the text.  Use
17699         ClientRectangle instead.  This fixes rendering of non-left aligned
17700         link labels.
17701
17702 2006-10-10  Jackson Harper  <jackson@ximian.com>
17703
17704         * TextBoxBase.cs: When we set the selection start position the
17705         caret.
17706         * TextControl.cs: Need to update the caret when we decrement it to
17707         zero.
17708         - Make sure that the selection_visible flag gets reset to false if
17709         the selection isn't visible.  Before this you could get it set to
17710         visible by changing the selection start, then changing the end to
17711         equal the start.
17712
17713 2006-10-09  Jackson Harper  <jackson@ximian.com>
17714
17715         * TreeView.cs: Don't update scrollbars when we aren't visible.
17716         * TreeNodeCollection.cs: Only need to update scrollbars if being
17717         added to an expanded visible node or the root node.
17718
17719 2006-10-09  Chris Toshok  <toshok@ximian.com>
17720
17721         * XplatUIX11.cs (SendMessage): fix NRE.
17722
17723 2006-10-09  Jackson Harper  <jackson@ximian.com>
17724
17725         * TextBoxBase.cs: Implement horizontal autoscrolling.
17726         * TextControl.cs: Add a movement types that allows moving forward
17727         and backwards without wrapping.
17728
17729 2006-10-09  Mike Kestner  <mkestner@novell.com>
17730
17731         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
17732         with focus "expansion" of labels.  Fixes #79532 and then some.
17733         * ThemeWin32Classic.cs : add LineLimit to ListView label format
17734         when wrapping.
17735
17736 2006-10-09  Jackson Harper  <jackson@ximian.com>
17737
17738         * TextBoxBase.cs: Set the default max values to MaxValue since
17739         we use the scrollbar for autoscrolling and the default value is
17740         100.  If we don't do this the caret won't keep up with typing
17741         after about 18 characters.
17742         * TextControl.cs: Make sure the selection is offset by the
17743         viewport x.  This fixes selection when using auto scrolling.
17744
17745 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
17746         
17747         * Form.cs: The active control should be selected after the 
17748         OnLoad so that any child control initialization that affects
17749         the selection is done. Fixes #79406
17750
17751 2006-10-06  Chris Toshok  <toshok@ximian.com>
17752
17753         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
17754         to have no evil effects.
17755
17756         - Stop selecting StructureNotifyMask on non-toplevel windows.
17757
17758           The only way children should be resized is by using the SWF api,
17759           and we already send WM_WINDOWPOSCHANGED messages in those cases.
17760           Toplevel windows can be interacted with via the window manager,
17761           and so we keep the input mask there.
17762
17763           The other event StructureNotifyMask gives us (that we care
17764           about) is DestroyNotify.  The code is already structured such
17765           that it assumes we won't be getting a DestroyNotify event for
17766           the window we pass to XDestroyWindow (which is what
17767           StructureNotifyMask is supposed to guarantee.)  So, that code
17768           shouldn't be affected by this either.
17769
17770         - Stop selecting VisibilityChangeMask altogether.
17771
17772           We weren't doing anything with the resulting events anyway.
17773         
17774         This vastly reduces the number of X requests and events we see
17775         when resizing/laying out a large ui.
17776
17777 2006-10-06  Chris Toshok  <toshok@ximian.com>
17778
17779         * ScrollableControl.cs (DisplayRectangle): we need to take into
17780         account the DockPadding regardless of whether or not auto_scroll
17781         == true.  rework this slightly to this effect, and fix bug #79606,
17782         and part of #72499 (you can now see the drag handles and drag
17783         toolbars around).
17784
17785 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
17786
17787         * ListViewItem.cs: Collections of selected and checked items are now
17788         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
17789         we mark the collection "dirty".
17790         * ListView.cs: Marked collections readonly. Modified UpdateSelection
17791         to only clear SelectedItems when a new item is selected and MultiSelect
17792         is enabled. CheckedItems and SelectedItems now subscribe to Changed
17793         event of ListViewItemCollection, and mark its list dirty whenever
17794         that event is fire. This allows us to return selected/checked items 
17795         in the same order as they are in the Items collection. This matches
17796         the MS behavior.
17797
17798 2006-10-06  Chris Toshok  <toshok@ximian.com>
17799
17800         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
17801         right mouse clicks.  Fixes bug #79593.
17802
17803 2006-10-06  Chris Toshok  <toshok@ximian.com>
17804
17805         * Splitter.cs: doh, fix splitters that don't want to cancel the
17806         movement when you drag them.  Also, impose the limits on the
17807         values we send to the SplitterMovingEvent.  Fixes #79598.
17808
17809 2006-10-06  Jackson Harper  <jackson@ximian.com>
17810
17811         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
17812         since we use this for auto scrolling also.
17813
17814 2006-10-05  Chris Toshok  <toshok@ximian.com>
17815
17816         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
17817         beginning to think that most datagrid column types don't need this
17818         method.  Fixes bug #79392.
17819
17820 2006-10-05  Chris Toshok  <toshok@ximian.com>
17821
17822         * DataGrid.cs: move back to a more lazy scheme for creating the
17823         CurrencyManager, so we aren't updating it every time you set
17824         either DataSource or DataMember.  Also, don't call
17825         RecreateDataGridRows if the currency manager hasn't changed.
17826
17827 2006-10-05  Chris Toshok  <toshok@ximian.com>
17828
17829         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
17830         emitted, SelectedIndex should already be updated.  Fixes bug
17831         #78929.
17832
17833 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
17834
17835         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
17836           ToolStripTextBox.cs: Initial commit.
17837         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
17838
17839 2006-10-05  Jackson Harper  <jackson@ximian.com>
17840
17841         * TabControl.cs: We need to invalidate the tab control area when
17842         new ones are added (duh).
17843
17844 2006-10-03  Chris Toshok  <toshok@ximian.com>
17845
17846         * Form.cs (ProcessDialogKey): if the focused control is in this
17847         form and is a button, call its PerformClick method here.  Fixes
17848         #79534.
17849
17850 2006-10-04  Jackson Harper  <jackson@ximian.com>
17851
17852         * TabPage.cs: Ignore setting of Visible, and add an internal
17853         method for setting the controls visibility.  TabPage's Visible
17854         property is a little strange on MS, this seems to make us
17855         compatible, and fixes cases where people set all the tab pages to
17856         visible.
17857         * TabControl.cs: Use the new internal setting on tab pages
17858         visibility.
17859
17860 2006-10-03  Mike Kestner  <mkestner@novell.com>
17861
17862         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
17863
17864 2006-10-03  Mike Kestner  <mkestner@novell.com>
17865
17866         * ListView.cs : use is_visible instead of Visible to check if 
17867         scrollbars should be placed/sized.  Also some max_wrap_width
17868         love for LargeIcon view.  [Fixes #79533]
17869
17870 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
17871
17872         * TextControl.cs :
17873           Make set_TextAlign() do actually update the align. Fixed #78403.
17874
17875 2006-10-03  Chris Toshok  <toshok@ximian.com>
17876
17877         * DataGrid.cs: fix a crash when switching datasources if the
17878         vertical scrollbar is at someplace other than Value = 0.  Also,
17879         reduce the number of recalculation passes we do in SetDataSource
17880         from 2 to 1.
17881
17882 2006-10-03  Jackson Harper  <jackson@ximian.com>
17883
17884         * TextBoxBase.cs: Move the if value the same bail check up, we
17885         don't want to empty the document if it is already empty, this
17886         seems to severly mess up the caret.  TODO: I should probably fix
17887         the empty statement to update teh caret somehow.
17888
17889 2006-10-03  Chris Toshok  <toshok@ximian.com>
17890
17891         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
17892         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
17893         reflection, an internal row type, properties on said type, etc.)
17894         will work with our datagrid.  Fixes #79531.
17895
17896 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
17897
17898         * FileDialog.cs: Don't crash if a path is not accessible
17899           (System.UnauthorizedAccessException). Fixes #79569.
17900         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
17901           a ':' too. Return unknown icon for those paths/files.
17902
17903 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
17904
17905         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
17906         GetContainerControl returns null.
17907
17908 2006-10-02  Chris Toshok  <toshok@ximian.com>
17909
17910         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
17911         call to XGetWindowAttributes instead of "handle".  fixes an X
17912         error using notifyicon after the NotifyIconWindow to Form base
17913         class switch.
17914
17915 2006-10-02  Chris Toshok  <toshok@ximian.com>
17916
17917         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
17918         server grab and looping we need to do to get down to the most
17919         deeply nested child window.
17920         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
17921         QueryPointer again after the WarpPointer so we can generate a
17922         proper (fake) MotionNotify event to be enqueued in the destination
17923         window's queue.
17924         (GetCursorPos): call QueryPointer.
17925
17926         Fixes #79556.
17927
17928 2006-10-02  Jackson Harper  <jackson@ximian.com>
17929
17930         * NotifyIcon.cs: Derive the notify icon from a form, so things
17931         like FindForm work on it.
17932         - Swallow the WM_CONTEXTMENU message, since that is generated on
17933         mouse down, and context menu is a mouse up kinda guy.  I believe
17934         the correct fix here is probably to make the notify icon entirely
17935         NC area, but this seems to work fine for anyone not manipulating
17936         WndProc.
17937
17938 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
17939
17940         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
17941           ToolStripItemCollection.cs, ToolStripLabel.cs,
17942           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
17943           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
17944           Initial implementation.
17945         * TextRenderer.cs: Provide padding to MeasureText.
17946
17947 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
17948
17949         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
17950         of ButtonBaseAccessibleObject. Fix bug #79552.
17951
17952 2006-10-02  Jackson Harper  <jackson@ximian.com>
17953
17954         * MdiWindowManager.cs: When maximizing use the containers client
17955         rect, not it's bounds, so nc area is accounted correctly.
17956         - Use the parent form's size for the menu position, since the
17957         client isn't always the full form size.
17958
17959 2006-10-01  Chris Toshok  <toshok@ximian.com>
17960
17961         * ScrollableControl.cs: make sure neither right_edge or
17962         bottom_edge are < 0, since they're used as LargeChange for the
17963         horiz/vert scrollbars respectively.  Fixes #79539.
17964
17965 2006-10-01  Chris Toshok  <toshok@ximian.com>
17966
17967         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
17968         the xplatuix11 code can cause us to destroy/recreate our handle.
17969
17970         * XplatUIX11.cs
17971         (SystrayAdd):
17972         - this code can be invoked many times for the same Hwnd.  Make
17973           sure we only destroy the client window once (the first time this
17974           method is called).  This fixes bug #79544.
17975         - Remove the call to the improperly bound XSync.  why we had two
17976           bindings to this, I will never know, but this call resulted in
17977           events being discarded from the queue(!).
17978         - correct a misunderstanding of _XEMBED_INFO - the second atom is
17979           not our current state but the state we wish to be in.  So, 0 if
17980           we don't want to be mapped.  Change it to 1.
17981         (SystrayRemove): The XEMBED spec makes mention of the fact that
17982         gtk doesn't support the reparent of client windows away from the
17983         embedder.  Looking at gtksocket-x11.c seems to agree with this.
17984         The only avenue we have for removing systray icons is to destroy
17985         them.  We don't want the handle to go away for good, though, so
17986         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
17987         #79545.
17988         
17989 2006-10-01  Chris Toshok  <toshok@ximian.com>
17990
17991         * Form.cs (WndProc): inline the native_enabled variable usage into
17992         the cases in which it's used.  Fixes #79536.
17993
17994 2006-09-29  Mike Kestner  <mkestner@novell.com>
17995
17996         * ListView.cs : toggle the selection state for ctrl clicks in 
17997         multiselect mode. [Fixes #79417]
17998
17999 2006-09-29  Mike Kestner  <mkestner@novell.com>
18000
18001         * ListView.cs : kill CanMultiSelect and refactor the selection
18002         code to support multiselection in the absence of mod keys. Steal
18003         arrow/home/end keys by overriding InternalPreProcessMessage to
18004         restore regressed keynav behavior.
18005         [Fixes #79416]
18006
18007 2006-09-29  Jackson Harper  <jackson@ximian.com>
18008
18009         * MdiClient.cs: Repaint the titlebars when the active window is
18010         changed.
18011
18012 2006-09-29  Chris Toshok  <toshok@ximian.com>
18013
18014         * Application.cs: when entering a runloop with a modal, make sure
18015         the hwnd is enabled.  Fixes #79480.
18016
18017 2006-09-29  Chris Toshok  <toshok@ximian.com>
18018
18019         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
18020         when ListManager.CanAddRows == false, bump us back one.
18021
18022         * DataGridColumnStyle.cs (ParentReadOnly): remove the
18023         listmanager.CanAddRows check.  This makes ArrayLists uneditable
18024         using a datagrid, which is not right.
18025         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
18026         is an IEditable, but call property_descriptor.SetValue regardless.
18027         fixes #79435.
18028
18029 2006-09-29  Chris Toshok  <toshok@ximian.com>
18030
18031         * DataGridBoolColumn.cs: we need to test equality in the face of
18032         possible null values (as is the case with the default NullValue).
18033         This patch keeps us from crashing in that case.
18034
18035 2006-09-29  Jackson Harper  <jackson@ximian.com>
18036
18037         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
18038         here, since it will get called for every node collection in the
18039         tree. This is now done in the treeview once the sorting is
18040         finished.
18041         * TreeView.cs: Recalculate the visible order, and update the
18042         scrollbars after sorting, set the top nope to the root so that the
18043         recalc actually works.
18044
18045 2006-09-29  Chris Toshok  <toshok@ximian.com>
18046
18047         * LinkLabel.cs: more handling of the default link collection in
18048         the face of LinkArea manipulation.  The default link collection
18049         contains 1 element (start=0,length=-1).  If the user sets LinkArea
18050         to anything and the links collection is the default, clear it.
18051         Then only add the link if its nonempty.  Fixes #79518.
18052
18053 2006-09-29  Chris Toshok  <toshok@ximian.com>
18054
18055         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
18056         piece correctly when we hit a '\n'.  Fixes #79517.
18057
18058 2006-09-29  Chris Toshok  <toshok@ximian.com>
18059
18060         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
18061         change the binding of gdk_init_check to take two IntPtr's, and
18062         pass IntPtr.Zero for both of them.  Fixes #79520.
18063
18064 2006-09-29  Mike Kestner  <mkestner@novell.com>
18065
18066         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
18067         [Fixes #78779]
18068
18069 2006-09-28  Jackson Harper  <jackson@ximian.com>
18070
18071         * XplatUIX11.cs: When translating NC messages make sure we go from
18072         whole window to screen, not client window to screen.
18073         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
18074         method doesn't exist
18075         - Skip over controls that aren't forms when arranging.
18076
18077 2006-09-28  Jackson Harper  <jackson@ximian.com>
18078
18079         * XplatUIWin32.cs: Clip the rect to the parent window.
18080         * XplatUIStructs.cs: Add clipping modes struct.
18081         * InternalWindowManager.cs: New private method that factors title
18082         bar heights in when calculating the pos of an NC mouse message.
18083         - Use SendMessage to force a paint when the form's size is changed
18084         instead of painting the decorations immediately.
18085         - Don't let the NC button click messages get to DefWndProc,
18086         because they will attempt to handle windowing themself, and this
18087         messes up z-order (it will put them in front of the scrollbars).
18088         * XplatUIX11.cs: Make sure that we don't reset window managers if
18089         we already have one (ie the window is an MDI window).
18090
18091 2006-09-28  Chris Toshok  <toshok@ximian.com>
18092
18093         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
18094         menu code really needs going over.
18095
18096 2006-09-27  Chris Toshok  <toshok@ximian.com>
18097
18098         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
18099         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
18100         window is maximizable.  So, we need to make sure that even if we
18101         clear the border/wm frame of those functions, they're still
18102         available (basically, we remove the decoration without removing
18103         the function).  Half the fix for #79338.
18104
18105 2006-09-27  Chris Toshok  <toshok@ximian.com>
18106
18107         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
18108         Fixes bug #79515.
18109
18110 2006-09-27  Chris Toshok  <toshok@ximian.com>
18111
18112         * Splitter.cs: reorder things a bit so that we don't actually
18113         draw/move the splitter until after calling OnSplitterMoving.  This
18114         lets users cancel/disallow the movement by explicitly setting
18115         event.SplitX/SplitY.  Fixes #79372.
18116
18117 2006-09-27  Jackson Harper  <jackson@ximian.com>
18118
18119         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
18120         because it is most likely on a window being destroyed, and that
18121         will give us an X11 error.
18122
18123 2006-09-27  Chris Toshok  <toshok@ximian.com>
18124
18125         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
18126         the dropdown button now toggles between showing and hiding the
18127         dropdown.  Also, get rid of dropdown_form_showing and just use
18128         dropdown_form.Visible.  We still don't do a grab, but I'll leave
18129         that part to someone who has handled Capture-fu before.
18130
18131 2006-09-27  Chris Toshok  <toshok@ximian.com>
18132
18133         * DataGrid.cs: return false if alt isn't pressed when '0' is
18134         pressed.  this keeps the '0' key from being swallowed, and fixes
18135         bug #79350.
18136
18137 2006-09-27  Chris Toshok  <toshok@ximian.com>
18138
18139         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
18140         Calling Refresh (in response to a scrollbar event) screws up the
18141         scrollbar painting.  Fixes bug #78923.
18142
18143 2006-09-27  Chris Toshok  <toshok@ximian.com>
18144
18145         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
18146         then insert into hashtable" blocks threadsafe.
18147
18148 2006-09-27  Chris Toshok  <toshok@ximian.com>
18149
18150         * MessageBox.cs (CreateParams): the styles should be |'ed with our
18151         baseclass's, since otherwise the
18152         ControlBox/MinimizeBox/MaximizeBox assignments above have no
18153         effect.  This gets the close button back in messageboxes.
18154
18155 2006-09-27  Chris Toshok  <toshok@ximian.com>
18156
18157         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
18158         flag, not just != 0.  this makes flags that are actually multiple
18159         bits (like WS_CAPTION) work.  fixes bug #79508.
18160
18161 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
18162
18163         * PageSetupDialog.cs: add support for getting and settings the 
18164         paper size, source and orientation.
18165
18166 2006-09-26  Chris Toshok  <toshok@ximian.com>
18167
18168         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
18169         and caption == "", we need to remove the resize handles as well as
18170         the title bar.
18171
18172         * Control.cs (set_Text): turns out that setting Text on a form
18173         should change the WM styles on the window, since if ControlBox ==
18174         false, the only way to get a window border is to have a non-""
18175         Text property.  check winforms/forms/text.cs for an example.  so,
18176         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
18177         update both window styles and title.  This fixes a lot of dialogs
18178         (including the preferences dialog in MonoCalendar.)
18179
18180 2006-09-26  Chris Toshok  <toshok@ximian.com>
18181
18182         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
18183         control isn't a Form), call Win32ShowWindow to hide the window,
18184         but don't update the control Visible property.  When we reparent
18185         back to a parent control, call SetVisible in order for the
18186         window's visibility to be reinstated.
18187
18188         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
18189         the FosterParent.
18190
18191         * Control.cs (ControlCollection.Remove): remove that value.Hide()
18192         call for good, since it breaks MonoCalendar (and other things I'm
18193         sure.) Also, set all_controls to null *after* the owner calls,
18194         which end up regenerating it.
18195         (ChangeParent): allow new_parent to be == null, passing
18196         IntPtr.Zero down to XplatUI.
18197
18198         this fixes #79294 the right way.
18199
18200 2006-09-26  Mike Kestner  <mkestner@novell.com>
18201
18202         * GridEntry.cs : internal SetParent method.
18203         * PropertyGrid.cs : attach to property changed on the proper
18204         target if we have a hierarchical grid with subobjects. Setup
18205         GridItem.Parent for hierarchical items.
18206         * PropertyGridView.cs : Set value on the correct target for
18207         hierarchical grids. [Fixes #78903]
18208
18209 2006-09-26  Chris Toshok  <toshok@ximian.com>
18210
18211         * Control.cs (ChildNeedsRecreating): this should return true if
18212         either we're being recreated and the child is in our list, or our
18213         parent is waiting for our recreation.
18214
18215 2006-09-26  Chris Toshok  <toshok@ximian.com>
18216
18217         * Control.cs (ControlCollection.Remove): reinstate the
18218         value.Hide() call as suggested in bug #79294.
18219
18220 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
18221
18222         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
18223         coordinates (versus a relative move).
18224
18225 2006-09-26  Chris Toshok  <toshok@ximian.com>
18226
18227         * Control.cs: rework child recreation a little bit.  It turns out
18228         that we race between the DestroyNotify the WM_DESTROY message.  If
18229         the parent gets its DestroyNotify before the child gets the
18230         WM_DESTROY message, the child ends up not recreating (since the
18231         parent finishes its recreation on DestroyNotify, and the child
18232         checks ParentIsRecreating.)
18233
18234         So, instead we store off a list of all the child controls which
18235         need to be recreated when the parent control starts to recreate
18236         itself.  Then, when child controls get their WM_DESTROY message we
18237         check to see if they're in the parent's pending recreation list,
18238         and if so, we recreate.  This removes all dependency on ordering
18239         from the code and fixes the initial MonoCalendar upgrade dialog.
18240         
18241 2006-09-26  Jackson Harper  <jackson@ximian.com>
18242
18243         * TextControl.cs: Use the Line to get the length of the line,
18244         since soft line breaks can change the end line.
18245
18246 2006-09-26  Chris Toshok  <toshok@ximian.com>
18247
18248         * Control.cs (ControlCollection.AddImplicit): don't add the
18249         control again if it's already in one of our lists.  This keeps us
18250         from adding controls over and over again for comboboxes when their
18251         handle gets recreated (as the combobox adds implicit controls in
18252         OnHandleCreated).  Fixes the X11 errors in bug #79480.
18253
18254 2006-09-26  Jackson Harper  <jackson@ximian.com>
18255
18256         * TextControl.cs: When deleting characters make sure that any
18257         orphaned zero lengthed tags get deleted.
18258         - Fix ToString for zero lengthed tags.
18259
18260 2006-09-25  Jackson Harper  <jackson@ximian.com>
18261
18262         * TextControl.cs: When getting a tag at the location there can be
18263         multiple tags at the same spot, these are 0-lengthed tags that
18264         appear when extra formatting has been stuck in a location.  We
18265         need to pull out the last of these 0 lengthed tags.
18266
18267 2006-09-25  Jackson Harper  <jackson@ximian.com>
18268
18269         * TextControl.cs: Fix print out in debug method.
18270         * TextBoxBase.cs: When text is set bail if we are setting to the
18271         previous value.
18272         
18273 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
18274
18275         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
18276           It is now possible to change the selected index in a FontXXXListBox
18277           with the up and down arrow keys from the FontXXXTextBoxes.
18278           Also, send the FontXXXTextBox mouse wheel event to the corresponding
18279           FontXXXListBoxes to match ms.
18280
18281 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
18282
18283         * SystemInformation.cs: Return a clone of the theme's MenuFont because
18284         anyone can dispose it, anytime. All other properties returns enums, 
18285         structs or basic types so they don't need such tricks.
18286
18287 2006-09-22  Jackson Harper  <jackson@ximian.com>
18288
18289         * XplatUI.cs:
18290         * XplatUIWin32.cs:
18291         * Clipboard.cs:
18292         * DataFormats.cs:
18293         * XplatUIOSX.cs:
18294         * XplatUIDriver.cs: Update interface to add a primary selection
18295         flag, so the driver can use the primary selection buffer if
18296         needed.
18297         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
18298
18299         * RichTextBox.cs: We need to supply the data object to paste now
18300         (so we can choose to supply CLIPBOARD or PRIMARY).
18301         * TextBoxBase.cs: Supply data object to paste (see above).
18302         - Middle click uses the primary selection data object.
18303         
18304 2006-09-21  Chris Toshok  <toshok@ximian.com>
18305
18306         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
18307         of SetWMStyles.  It's still a rat's nest and is largely
18308         order-dependent which I dislike immensely.  This also fixes the X
18309         button disappearing from toplevel forms.
18310
18311 2006-09-21  Mike Kestner <mkestner@novell.com>
18312
18313         * ListBox.cs: move Jordi's click/dblclick raising code to the
18314         mouse up handler.
18315
18316 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
18317
18318         * ListBox.cs: Fixes 79450
18319
18320 2006-09-21  Mike Kestner <mkestner@novell.com>
18321
18322         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
18323         to deal with people updating the TreeNodeCollection after the tree
18324         is disposed.  "Fixes" 79330.
18325
18326 2006-09-20  Jackson Harper <jackson@ximian.com>
18327
18328         * TextControl.cs: Push the cursor record onto the undo stack
18329         before the delete action. This fixes 78651.
18330
18331 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
18332
18333         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
18334         CreateParams. Fixes 79329.
18335
18336 2006-09-19  Chris Toshok  <toshok@ximian.com>
18337
18338         * XplatUIX11.cs: a couple of blanket code massage passes to clean
18339         things up a bit.  First, get rid of the NetAtoms array (and the NA
18340         enum), and just embed the atoms as static fields.  Also, add a
18341         couple of functions (StyleSet and ExStyleSet) to clean up all the
18342         bitmask testing of styles.
18343
18344         * X11Structs.cs: remove the NA enum, not needed anymore.
18345         
18346 2006-09-19  Chris Toshok  <toshok@ximian.com>
18347
18348         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
18349         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
18350         added cleanup to get MessageBox titles appearing again, which were
18351         broken by my earlier fix for caption-less/ControlBox-less windows.
18352
18353 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
18354
18355         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
18356           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
18357           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
18358           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
18359           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
18360           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
18361           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
18362           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
18363           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
18364           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
18365           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
18366             Inital import.
18367         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
18368           ToolStripButton.cs: Stubs needed for above.
18369         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
18370
18371 2006-09-15  Chris Toshok  <toshok@ximian.com>
18372
18373         * XplatUIX11.cs:
18374         - make the MessageQueues hashtable Synchronized.
18375         
18376         - SendMessage: if the Hwnd is owned by a different thread, use the
18377         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
18378         thread.  Fixes bug #79201.
18379
18380 2006-09-15  Chris Toshok  <toshok@ximian.com>
18381
18382         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
18383         ControlBox == false, we disallow maximize/minimize/close.  If the
18384         form Caption is "" we also disallow move (and get rid of the Title
18385         decoration).  Unfortunately, regardless of how things are set,
18386         we're stuck with the Title and WM menu.
18387
18388 2006-09-15  Chris Toshok  <toshok@ximian.com>
18389
18390         * Application.cs: add locking around the static message_filters
18391         ArrayList, part of #79196.
18392
18393 2006-09-15  Chris Toshok  <toshok@ximian.com>
18394
18395         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
18396         Form.ControlBox == false, the window has no titlebar nor resize
18397         handles.  fixes bug #79368.
18398
18399 2006-09-15  Chris Toshok  <toshok@ximian.com>
18400
18401         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
18402         >= 0.  Fixes bug #79370.
18403
18404 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
18405         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
18406         * Control.cs:
18407             Add properties: LayoutEngine, Margin, DefaultMargin.
18408             Add method: GetPreferredSize.
18409             Move layout logic from PerformLayout to layout engines. 
18410
18411 2006-09-13  Chris Toshok  <toshok@ximian.com>
18412
18413         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
18414         fix for #79326 broke #78718, so this change addresses that.
18415
18416         - in SendWMDestroyMessages remove the call to
18417         CleanupCachedWindows, since we might be recreating the control and
18418         need to maintain the references to right Hwnd handles.  Also, set
18419         the zombie flag to true for each of the children in the hierarchy
18420         instead of calling hwnd.Dispose.  This will cause GetMessage to
18421         ignore all events for the window except for DestroyNotify.
18422
18423         - In GetMessage, ignore messages except for DestroyNotify for
18424         zombie hwnds.
18425         
18426         * Control.cs: revert the is_recreating fix from the last
18427         ChangeLog.  It's definitely "right", but it breaks switching from
18428         an MDI form to a non-MDI form.  Will need to revisit that.
18429
18430         * Hwnd.cs: add a zombie flag, which means "the
18431         client_window/whole_window handles are invalid, but we're waiting
18432         for the DestroyNotify event to come in for them".  Set the flag to
18433         false explicitly if setting WholeWindow/ClientWindow, and also
18434         when Disposing.
18435         
18436 2006-09-13  Chris Toshok  <toshok@ximian.com>
18437
18438         * XplatUIX11.cs: rework window destruction slightly.
18439
18440         - when destroying the windows associated with a control, we don't
18441         need 2 separate XDestroyWindow calls.  Just the one for the
18442         whole_window (or for client_window if whole_window is somehow
18443         IntPtr.Zero -- can this happen?) is enough.
18444
18445         - reworked SendWMDestroyMessages slightly, so we always dispose
18446         the child control hwnd's after sending the messages.
18447         
18448         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
18449         the two places it was used (one was even using hwnd.Handle and the
18450         other hwnd.client_window.  ugh), adding another call in
18451         SendWMDestroyMessages.  We need this new call because now the
18452         DestroyNotify events in the queue will be ignored for the child
18453         controls (as their hwnd's were disposed, and the window id's
18454         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
18455
18456         - this fixes bug #79326.
18457
18458 2006-09-13  Chris Toshok  <toshok@ximian.com>
18459
18460         * Control.cs: don't always set is_recreating to false at the end
18461         of RecreateHandle, since sometimes we're not done (and won't be
18462         until WndProc handles the WM_DESTROY message).  Also, set
18463         is_recreating to false in the WM_DESTROY handling code.  Part of
18464         the fix for bug #79326.
18465
18466 2006-09-13  Miguel de Icaza  <miguel@novell.com>
18467
18468         * X11DesktopColors.cs: Start the droppage of debugging messages.
18469
18470         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
18471
18472 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
18473
18474         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
18475
18476 2006-09-12  Chris Toshok  <toshok@ximian.com>
18477
18478         * DataGrid.cs (get_ListManager): if the list_manager is null, try
18479         to create it using SetDataSource.  Fixes bug #79151.
18480
18481 2006-09-11  Chris Toshok  <toshok@ximian.com>
18482
18483         * XEventQueue.cs: add a DispatchIdle property.
18484
18485         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
18486         either the queue is null, or the queue has DispatchIdle set to
18487         true.
18488         (DoEvents): set queue.DispatchIdle to false around the
18489         peek/translate/dispatch message loop in this method.  This keeps
18490         Application.Doevents from emitting idle events.  Part of the fix
18491         for #78823.
18492
18493 2006-09-11  Chris Toshok  <toshok@ximian.com>
18494
18495         * DataGrid.cs (set_DataSource): make this work for both the
18496         winforms/datagrid test and ReportBuilder.  It seems as though when
18497         we've created a ListManager (or maybe it's if we have a
18498         BindingContext?), when we set the DataSource it clears the
18499         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
18500         #79333.
18501
18502 2006-09-11  Chris Toshok  <toshok@ximian.com>
18503
18504         * XplatUIX11.cs: deal with queue being null, which happens in all
18505         the Clipboard functions.  Fixes one of the two problems mentioned
18506         in #78612.
18507
18508 2006-09-11  Chris Toshok  <toshok@ximian.com>
18509
18510         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
18511         button on various spots (including outside the menu) works closer
18512         to MS, and doesn't crash.  Fixes #79343.
18513
18514 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
18515
18516         * ListView.cs: Do not initialize item_sorter in init. To match MS,
18517         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
18518         and the internal comparer is set. When a new ListViewItemSorter is set,
18519         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
18520         was specified. No further processing is necessary if SortOrder is set
18521         to it's current value. If Sorting is modified to None, and View is
18522         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
18523         (either custom or our internal ItemComparer) to null, on 1.0 profile
18524         only set item_sorter to null if its our internal IComparer. If Sorting
18525         is modified to Ascending or Descending, then use our internal IComparer
18526         if none is set, and if the current IComparer is our internal one then:
18527         on 2.0 profile always replace it with one for new Sorting, and on 1.0
18528         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
18529         Enum.IsDefined to verify whether a valid View value is specified in
18530         its setter. Automatically sort listview items when listview is
18531         created. In Sort, do nothing if ListView is not yet created, or if
18532         no item_sorter is set (no Sorting was set, Sorting was explicitly set
18533         to None or ListViewItemSorter was set to null). Added Sort overload
18534         taking a bool to indicate whether the ListView should be redrawn when
18535         items are sorted (we use this in ListViewItemCollection to avoid double
18536         redraws). Modified our internal IComparer to take the sort order into
18537         account. In Add and AddRange methods of ListViewItemCollection, also
18538         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
18539         view), but use overload with noredraw option to avoid double redraw.
18540         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
18541         true when View is Tile, and do the same when attempting to set View to
18542         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
18543         for selected/checked indices, as it involves overhead when sorting is
18544         done while these collections are not used all that often. Instead
18545         we'll build the indices on demand. Modified IList implementation of
18546         CheckedIndexCollection to use public methods if object is int.
18547         Modified CheckedListViewItemCollection to hide checked items if
18548         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
18549         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
18550         IList implementation in SelectedIndexCollection to use public methods
18551         if object is int. Modified SelectedListViewItemCollection to hide
18552         selected items if listview is not yet created.
18553         * ListViewItem.cs: CheckedIndices list no longer needs to be
18554         maintained separately (see ListView changes). Also clone font, fixes
18555         test failure.
18556
18557 2006-09-11  Mike Kestner  <mkestner@novell.com>
18558
18559         * ComboBox.cs: if we are updating the contents of the currently
18560         selected index, refresh the control or the textbox selection.
18561         [Fixes #79066]
18562
18563 2006-09-11  Mike Kestner  <mkestner@novell.com>
18564
18565         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
18566         the 'specified' logic has been moved there.  This seems like a bug 
18567         in Control.cs, since our current SetBoundsCore completely ignores 
18568         the specified parameter.  Peter's commit seems to indicate that is 
18569         the way the MS control implementation works.  [Fixes #79325]
18570
18571 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
18572
18573         * XplatUI.cs: Set default_class_name to be composed
18574         of current domain id. This allows MWF to be loaded in multiple
18575         domains on Win32.
18576
18577 2006-09-09  Miguel de Icaza  <miguel@novell.com>
18578
18579         * X11Keyboard.cs: If we are unable to obtain the input method, do
18580         not call CreateXic to create the input context.   Should fix
18581         #78944/79276.
18582
18583 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
18584
18585         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
18586           Simplified gnome support by adding more pinvokes to get the
18587           icon for a file or mime type.
18588
18589 2006-09-08  Jackson Harper  <jackson@ximian.com>
18590
18591         * MenuAPI.cs: Deslect popup context menu items before closing the
18592         window, so that you don't see the previously selected item
18593         selected when you reopen the menu.
18594         * TextControl.cs: Update the cursor position even if we don't have
18595         focus.  This fixes typing in things like the ComboBox.  I'm not
18596         totally sure we should always set the visibility if we don't have
18597         focus, but couldn't find any corner cases where the cursor showed
18598         up when it shouldn't.
18599
18600 2006-09-08  Chris Toshok  <toshok@ximian.com>
18601
18602         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
18603         our arrays are length 256.  & 0xff before indexing.  Fixes the
18604         crash in bug #78077.
18605         
18606 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18607
18608         * ThemeWin32Classic.cs: 
18609         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
18610         is true. Handle that check box too.
18611
18612 2006-09-07  Chris Toshok  <toshok@ximian.com>
18613
18614         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
18615         79244.
18616
18617 2006-09-07  Chris Toshok  <toshok@ximian.com>
18618
18619         * Control.cs: in set_BackColor only do the work if
18620         background_color != value.
18621
18622         * XplatUIX11.cs: move the clearing of invalid areas (both client
18623         and nc) to the same block of code where we set (nc_)expose_pending
18624         to false.  That is, move it from PaintEventEnd to PaintEventStart,
18625         so things that cause invalidates from within OnPaint will trigger
18626         another call to OnPaint.  Fixes bug #79262.
18627
18628 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
18629
18630         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
18631         * FileDialog.cs: Fix typo
18632
18633 2006-09-07  Jackson Harper  <jackson@ximian.com>
18634
18635         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
18636         for tab pages if they have any.
18637
18638 2006-09-06  Mike Kestner  <mkestner@novell.com>
18639
18640         * Splitter.cs: use the "current" rect when finishing drag handle
18641         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
18642
18643 2006-09-06  Mike Kestner  <mkestner@novell.com>
18644
18645         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
18646         support offset splitters. [Fixes #79298]
18647
18648 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
18649
18650         * Mime.cs: Fixed a bug that could override the global mime type
18651           result.
18652
18653 2006-09-05  Jackson Harper  <jackson@ximian.com>
18654
18655         * TabControl.cs: Better calculation method for setting the slider
18656         pos. Prevents crashes on really wide tabs.
18657         - Draw Image on tab pages if an image list is used.
18658
18659 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18660
18661         * MonthCalendar.cs: When Font changes, the Size should be
18662         updated to fit the new font's space requirements.
18663
18664 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
18665
18666         * ListBox.cs: If the items are cleared with Items.Clear set
18667           top_index to 0.
18668
18669 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18670
18671         * MonthCalendar.cs: Handle arrow keys as input keys. Also
18672         fire DateChanged event instead of DateSelected event when
18673         the date was changed by keyboard interaction.
18674
18675 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18676
18677         * DateTimePicker.cs: Handle DateChanged for the associated
18678         month_calendar control, and set month_calendar.Font from 
18679         OnFontChanged method, as well as resize the height of the
18680         control when needed. Make PreferredHeight proportional.
18681
18682 2006-09-01  Chris Toshok  <toshok@ximian.com>
18683
18684         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
18685         properties.
18686
18687         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
18688
18689 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
18690
18691         * FileDialog.cs: Set ClientSize instead of window size, to allow space
18692           for decorations (Fixes #79219)
18693
18694 2006-09-01  Mike Kestner  <mkestner@novell.com>
18695
18696         * ComboBox.cs: first stab at sorting plus some selection handling
18697         fixes to bring us more in line with MS behavior.  Also switches back
18698         to index based selection.  Alternative patches for index-based 
18699         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
18700         and latency@gmx.de on bug 78848.  I assume they were similar to this
18701         code I've had simmering in my tree forever.
18702         [Fixes #78848]
18703
18704 2006-09-01  Chris Toshok  <toshok@ximian.com>
18705
18706         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
18707         when setting list position guard against ending up with a -1 index
18708         (the other part of the fix for #78812).  Should probably make sure
18709         we don't need the analogous fix in the ItemDeleted case.
18710
18711         * DataGrid.cs:
18712         - in SetDataSource, work around the fact that the way
18713         OnBindingContextChanged is invoked will cause us to re-enter this
18714         method.  I'll remove the hack once I investigate
18715         OnBindingContextChanged.
18716
18717         - fix the logic in set_DataSource and set_DataMember (basically
18718         what to do if the other of the two is null.)
18719         
18720         - in OnListManagerItemChanged, we need to take into account the
18721         edit row when deciding whether or not to call RecreateDataGridRows
18722         (part of the fix for #78812).
18723
18724 2006-09-01  Jackson Harper  <jackson@ximian.com>
18725
18726         * Splitter.cs: Don't do anything if there is no control to affect
18727         (prevents us from crashing in weird tet cases).
18728         * TreeView.cs: Bounding box for the mouse movement reverting
18729         focus/selection back to previously selected node.  This matches
18730         MS, and makes the tree a lot more useable.
18731         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
18732         use clipping so they are not drawn.  This fixes when the control
18733         is set to have a transparent background, or if it was over an
18734         image.
18735
18736 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
18737
18738         * MimeIcon.cs: Improved handling for reading default icons when
18739           using gnome (2.16 made it necessary). Check and read svg icons
18740           first, then 48x48 and then 32x32 icons.
18741
18742 2006-08-31  Chris Toshok  <toshok@ximian.com>
18743
18744         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
18745         visible.
18746
18747         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
18748         ProcessKeyPreview.  Fixes part of #77806.
18749
18750         * DataGrid.cs: big patch.
18751
18752         - revert the queueing up of DataSource/DataMember if inside
18753         BeginInit/EndInit calls.  That's not the way the datagrid achieves
18754         its delayed databinding.  Instead, call SetDataSource in
18755         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
18756         #78811.
18757
18758         - Also, it wasn't mentioned in #78811, but the test case exhibits
18759         behavior that was lacking in our datagrid implementation - Columns
18760         that have mapping names that don't exist in the datasource's
18761         properties aren't shown.  Yuck.  To fix this I added the bound
18762         field to the column style, and basically any calculation to figure
18763         out anything about columns uses a loop to find the bound columns.
18764         still need to investigate if I can cache an array of the bound
18765         columns or if the indices must be the same.
18766
18767         - When setting CurrentCell, we no longer abort if the cell being
18768         edited was in the add row.  This fixes the other part of #77806.
18769
18770         - The new code also fixes #78807.
18771         
18772         * ThemeWin32Classic.cs: perpetrate the same disgusting
18773         column.bound field hack, and only render bound fields.
18774
18775 2006-08-31  Chris Toshok  <toshok@ximian.com>
18776
18777         * DataGridColumnStyle.cs: add bound field.  this field is true if
18778         the datasource has a property corresponding to the mapping name.
18779
18780         * DataGridTableStyle.cs: set the bound field on the column styles
18781         depending on whether or not we have a column for that property.
18782
18783 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
18784
18785         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
18786           splitter control (fixes #79228)
18787
18788 2006-08-31  Chris Toshok  <toshok@ximian.com>
18789
18790         * DataGridColumnStyle.cs: we need to delay the assignment of
18791         property descriptor until the last possible moment due to the lazy
18792         databinding stuff in the datagrid.  Also, fix the exceptions
18793         thrown by CheckValidDataSource to match MS.
18794
18795 2006-08-31  Jackson Harper  <jackson@ximian.com>
18796
18797         * Form.cs: When activated select the active control, if there is
18798         no active control, we select the first control.
18799         * XplatUIX11.cs: If there is no focus control when we get a
18800         FocusIn event, find the toplevel form and activate it.  This
18801         occurs when you popup a window, it becomes the focus window, then
18802         you close that window, giving focus back to the main window.
18803
18804 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18805
18806         * MonthCalendar.cs: 
18807         * ThemeWin32Classic.cs: Cache Font in bold style, as well
18808         as StringFormat with Center alignments in MonthCalendar,
18809         instead of creating new ones when drawing the control. 
18810         Also, draw the month name in bold style.
18811
18812 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
18813
18814         * Control.cs:
18815           - PerformLayout(): It would seem MS performs the fill even if the 
18816             control is not visible (part of #79218 fix)
18817           - ResetBackColor(): Use the setter to reset the color, to allow
18818             overriders to catch the change.
18819         * Form.cs:
18820           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
18821           - CreateHandle(): dito (part of $79218 fix)
18822           - Don't set an icon if we have a dialog
18823         * ScrollableControl.cs:
18824           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
18825           - ScrollIntoView(): No need to scroll if control is already visible
18826             (resolves fixme and fixes #79218)
18827
18828 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18829
18830         * MonthCalendar.cs: Change proportions in SingleMonthSize
18831         to match the aspect of the original control.
18832
18833 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
18834
18835         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
18836           get updated when they get maximized.
18837
18838 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
18839
18840         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
18841
18842 2006-08-29  Chris Toshok  <toshok@ximian.com>
18843
18844         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
18845
18846 2006-08-29  Jackson Harper  <jackson@ximian.com>
18847
18848         * TreeView.cs: Need to track selected node and highlighted node,
18849         they aren't always the same thing, when the mouse is down on a
18850         node it is hilighted, but not selected yet.
18851         - Do the HideSelection stuff right
18852         - Need to focus on rbutton mouse down. And redraw selection when
18853         right click is mouse upped.
18854
18855 2006-08-29  Mike Kestner  <mkestner@novell.com>
18856
18857         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
18858         when SubItems.Count < Columns.Count.  [Fixes #79167]
18859
18860 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
18861
18862         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
18863
18864 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
18865
18866         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
18867           from X. Only send based on ConfigureNotify if we don't have the
18868           correct location in hwnd (if the window manager moved us)
18869
18870 2006-08-28  Mike Kestner  <mkestner@novell.com>
18871
18872         * ListView.cs: remove a TODO. 
18873         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
18874         [Fixes ListView part of #79166]
18875
18876 2006-08-28  Mike Kestner  <mkestner@novell.com>
18877
18878         * ListView.cs: move wheel handler to parent since it is focused
18879         instead of the item_control now.  [Fixes #79177]
18880
18881 2006-08-28  Mike Kestner  <mkestner@novell.com>
18882
18883         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
18884         when the control is focused. [Fixes #79171]
18885
18886 2006-08-28  Mike Kestner  <mkestner@novell.com>
18887
18888         * ListView.cs: size the item and header controls for empty and
18889         unscrollable views.
18890         * ThemeWin32Classic.cs: draw disabled backgrounds.
18891         [Fixes #79187]
18892
18893 2006-08-28  Chris Toshok  <toshok@ximian.com>
18894
18895         * Form.cs: remove unused "active_form" static field.
18896
18897         * Hwnd.cs: lock around accesses to static windows collection.
18898
18899         * Application.cs: lock threads in Exit ().
18900
18901 2006-08-28  Chris Toshok  <toshok@ximian.com>
18902
18903         * NativeWindow.cs: lock around accesses to window_collection.
18904         
18905 2006-08-28  Chris Toshok  <toshok@ximian.com>
18906
18907         * Control.cs: err, fix this the right way, by locking on controls
18908         when using it.  not by making it synchronized.
18909
18910 2006-08-28  Chris Toshok  <toshok@ximian.com>
18911
18912         * Control.cs: make the static "controls" field synchronized, as it
18913         gets updated from multiple threads.
18914
18915 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
18916
18917         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
18918           Prevent other threads from exiting when calling thread sets quit state.
18919         * XEventQueue.cs: Added PostQuitState property
18920
18921 2006-08-27  Chris Toshok  <toshok@ximian.com>
18922
18923         * AsyncMethodData.cs: add a slot for the window handle.
18924
18925         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
18926         window (the destination control's window, not the foster window).
18927
18928         * Control.cs (BeginInvokeInternal): store the window's handle in
18929         the AsyncMethodData.
18930         
18931
18932 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
18933
18934         * XplatUIX11.cs:
18935           - PostQuitMessage: Removed resetting S.D display handle, we might have
18936             another loop started after calling PostQuitMessage (Fixes #79119)
18937           - Created destructor to reset S.D handle
18938
18939 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
18940
18941         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
18942
18943 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
18944
18945         * TextControl.cs (Insert): Update the caret position even if we don't
18946           have a handle yet, just don't call the driver in that case.
18947         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
18948           to the end of the new selection text (Fixes #79184)
18949
18950 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
18951
18952         * Form.cs (Activate): Only activate if the handle is created)
18953         * Control.c:
18954           - Mark window as invisible when it's disposed
18955           - Check if window handle is created when setting window visible, 
18956             instead of relying just on the is_created variable
18957           - Check if object is disposed when creating the control (Fixes #79155)
18958
18959 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
18960
18961         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
18962           when allowing layout again. Otherwise we re-generate the anchoring 
18963           distance to the border again and actually alter what the user wanted
18964           This is ugly, it'd be better if we used DisplayRectangle instead of
18965           ClientRectangle for Control.UpdateDistances, but that causes us to
18966           have other problems (initial anchoring positons would be wrong)
18967           (Fixes #78835)
18968
18969 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
18970
18971         * Control.cs:
18972           - The size and location setters shouldn't go directly to 
18973             SetBoundsCore, but to SetBounds, which triggers layout on the
18974             parent, then calls SetBoundsCore. (Related to fix for #78835)
18975           - SetBounds: Moved actual location update code into this function
18976             from SetBoundsCore, to match MS. Added call to PerformLayout if
18977             we have a parent (to trigger resizing of anchored parents if the 
18978             child size has changed (see testcase for #78835) 
18979         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
18980           new control code
18981         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
18982
18983 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
18984
18985         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
18986           System.Drawing when a toplevel window gets closed; there might
18987           be other toplevel windows belonging to the same app (Fixes #78052)
18988
18989 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
18990
18991         * FileDialog.cs: After reading FileDialog settings from mwf_config
18992           use Desktop prefix only if a real folder doesn't exist anymore.
18993         * FontDialog.cs: Added char sets.
18994           It is now possible to select the font, size or style with the
18995           textboxes.
18996
18997 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
18998
18999         * PrintPreviewDialog.cs: Use assembly name constants.
19000
19001 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
19002
19003         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
19004           scrollbar from whacking it's buttons)
19005
19006 2006-08-24  Chris Toshok  <toshok@ximian.com>
19007
19008         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
19009         in this patch (aggregating setting Left/Top/Width/Height to
19010         setting Bounds on the scrollbars), but the crux of the fix is in
19011         Recalculate, where we scroll by the remaining scroll_position if
19012         we're hiding a scrollbar.  The 2*$5 reward in the comment is
19013         serious.
19014
19015 2006-08-24  Jackson Harper  <jackson@ximian.com>
19016
19017         * MdiClient.cs:
19018         * MdiWindowManager.cs: If the form is made a non-mdi window we
19019         need to remove the form closed event so that closing forms works
19020         correctly.
19021
19022 2006-08-24  Jackson Harper  <jackson@ximian.com>
19023
19024         * Control.cs: Make IsRecreating internal so that the driver can
19025         check it
19026         - Temporarily remove the Hide when controls are removed, its
19027         making a whole bunch of things not work because visibility isn't
19028         getting reset elsewhere correctly
19029         * Form.cs: Need to do a full handle recreation when the mdi parent
19030         is set.
19031         * XplatUIX11.cs: If we are recreating handles don't dispose the
19032         HWNDs.  What was happening is the handles were being recreated in
19033         SendWMDestroyMessages, but then flow continued on in that method
19034         and destroyed the new handles.
19035
19036 2006-08-23  Jackson Harper  <jackson@ximian.com>
19037
19038         * Form.cs: MdiClient is always at the back of the bus
19039         * Control.cs: When the order of items in the collection is changed
19040         we need to reset the all_controls array
19041         - do the same sorta setup thats done when adding a control when a
19042         control is set on the collection.
19043
19044 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
19045
19046         * TextBoxBase.cs (get_Text): Return an empty array if our document
19047           is empty (fixes #79052)
19048
19049 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19050
19051         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
19052           on WM_SYSCHAR messages (fixes #79053)
19053
19054 2006-08-23  Chris Toshok  <toshok@ximian.com>
19055
19056         * DataGrid.cs: fix flickering when scrolling vertically.
19057
19058 2006-08-23  Chris Toshok  <toshok@ximian.com>
19059
19060         * DataGrid.cs (EndEdit): only invalidate the row header when we
19061         need to.
19062
19063 2006-08-23  Chris Toshok  <toshok@ximian.com>
19064
19065         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
19066         methods.  fixes the flicker when scrolling around.
19067
19068 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19069
19070         * FileDialog.cs: Making sure the control is created before we get a 
19071           chance to use it with BeginInvoke (Fixes #79096)
19072
19073 2006-08-23  Chris Toshok  <toshok@ximian.com>
19074
19075         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
19076         width to use when painting the rows.
19077
19078 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19079
19080         * TextBoxBase.cs:
19081           - Throw ArgumentException if a negative value is passed to SelectionLength
19082           - Update the selection end if start is moved. end needs to be always
19083             after start. (Fixes #79095)
19084           - Track selection length; MS keeps the selection length even if start
19085             is changed; reset on all other operations affection selection
19086
19087 2006-08-22  Jackson Harper  <jackson@ximian.com>
19088
19089         * TreeView.cs: Make sure both scrollbars get displayed and sized
19090         correctly when the other bar is visible.
19091         - Use the original clip rectangle for checking if the area between
19092         the two scrollbars is visible, not the viewport adjusted clipping
19093         rectangle.
19094
19095 2006-08-22  Jackson Harper  <jackson@ximian.com>
19096
19097         * Binding.cs: We don't use IsBinding because it requires the
19098         control to be created, which really shouldn't be necessary just to
19099         set a property on the control.
19100
19101 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19102
19103         * ComboBox.cs: Some CB.ObjectCollection methods must throw
19104         ArgumentNullReferenceException when the argument is null.
19105
19106 2006-08-21  Jackson Harper  <jackson@ximian.com>
19107
19108         * Timer.cs: Track the thread that the timer is started in (NOT
19109         CREATED), this way messages for it will only be triggered on its
19110         queue.
19111         * XEventQueue.cs: Track the timers here, this makes timers per
19112         thread, like MS.
19113         * XplatUIX11.cs: The timers are moved to the XEventQueue.
19114
19115 2006-08-19  Chris Toshok  <toshok@ximian.com>
19116
19117         * XplatUIX11.cs: after further communication with pdb, we get the
19118         best of both worlds.  SetZOrder working for un-Mapped windows, and
19119         no X errors for un-mapped windows.
19120
19121 2006-08-19  Chris Toshok  <toshok@ximian.com>
19122
19123         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
19124         as it was causing pdn toolbars to not have the correct stacking.
19125
19126 2006-08-18  Mike Kestner  <mkestner@novell.com> 
19127
19128         * ListView.cs : guard against negative ClientArea.Width in scrollbar
19129         calculation.  Not sure why control should ever be setting a negative
19130         width though.  Fixes #78931.
19131
19132 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19133
19134         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
19135         null items in ObjectCollection class.
19136         * ListBox.cs.: Likewise.
19137
19138 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
19139
19140         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
19141           as the base method in ThemeWin32Classic should work fine.
19142           Fixed bug #78607.
19143
19144 2006-08-18  Jackson Harper  <jackson@ximian.com>
19145
19146         * Binding.cs: When validating if the value entered doesn't convert
19147         properly reset to the old value.
19148         * RadioButton.cs: Don't fire click when we get focus.
19149
19150 2006-08-18  Jackson Harper  <jackson@ximian.com>
19151
19152         * FileDialog.cs: Paint the selection on the directory combobox the
19153         same way as on MS. 
19154
19155 2006-08-17  Jackson Harper  <jackson@ximian.com>
19156
19157         * ErrorProvider.cs: Don't allow the error control to be selected.
19158         * Control.cs: Don't send the SetFocus messages, the control
19159         activation will do this, and if we do it blindly here validation
19160         does not work.
19161
19162 2006-08-17  Jackson Harper  <jackson@ximian.com>
19163
19164         * Control.cs:
19165         * ContainerControl.cs: Make validation events fire in the correct
19166         order.  TODO: For some reason the first validation event is not
19167         getting fired.
19168
19169 2006-08-17  Mike Kestner  <mkestner@novell.com> 
19170
19171         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
19172
19173 2006-08-17  Mike Kestner  <mkestner@novell.com> 
19174
19175         * ComboBox.cs : implement scroll wheel support for popped-down
19176         state. Fixes #78945. 
19177
19178 2006-08-17  Jackson Harper  <jackson@ximian.com>
19179
19180         * TreeView.cs: Specify treeview actions (old patch that didn't get
19181         committed for some reason).
19182         - Don't let the mouse wheel scroll us too far.  Just want to make
19183         the bottom node visible, not scroll it all the ways to the top.
19184
19185 2006-08-17  Jackson Harper  <jackson@ximian.com>
19186
19187         * XplatUIX11.cs: Mouse wheel events go to the focused window.
19188
19189 2006-08-17  Mike Kestner  <mkestner@novell.com> 
19190
19191         * ComboBox.cs : don't do mouseover selection in simple mode.
19192
19193 2006-08-16  Jackson Harper  <jackson@ximian.com>
19194
19195         * Form.cs: Fire the closing events for all the mdi child windows
19196         when a window is closed.  If the cancel args are set to true, the
19197         main window still gets the event fired, but it doesn't not close.
19198         * MdiWindowManager.cs: Do this closing cleanup in a Closed
19199         handler, instead of when the button is clicked, so cancelling the
19200         close works correctly.
19201         * ComboBox.cs: Send the mouse down to the scrollbar.
19202
19203 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19204
19205         * ListBox.cs: When passing 'null' to SelectedItem,
19206         set SelectedIndex to -1, to unselect items. This is the
19207         observed behaviour in .Net.
19208
19209 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
19210
19211         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
19212           MS flags saying there won't be any. (fixes #78800)
19213         * Control.cs (HandleClick): Made virtual
19214
19215 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
19216
19217         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
19218           cultures. Fixed bug #78399.
19219
19220 2006-08-16  Jackson Harper  <jackson@ximian.com>
19221
19222         * Form.cs: Use the MdiClients MdiChildren property to access
19223         MdiChildren instead of creating the array from the child controls.
19224         * MdiClient.cs: Maintain a separate array of the mdi children, so
19225         that insertion order is maintained when the Z-order is changed.
19226
19227 2006-08-16  Mike Kestner  <mkestner@novell.com> 
19228
19229         * ListView.cs : add an ItemComparer and default to it for sorting.
19230         Fixes #79076, but sorting needs a complete overhaul to be compat with
19231         MS.
19232
19233 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
19234
19235         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
19236
19237 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
19238
19239         * Hwnd.cs (Mapped): Properly traverse the tree
19240
19241 2006-08-15  Chris Toshok  <toshok@ximian.com>
19242
19243         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
19244         pass manager.Current.GetType() to ParseData.  It has to be the
19245         property type.  So, hold off doing the ParseData until we're in
19246         SetPropertyValue where we know the type.  This fixes the crash in
19247         #78821 but the textbox is still empty.
19248
19249 2006-08-15  Chris Toshok  <toshok@ximian.com>
19250
19251         * DataGrid.cs:
19252         - when we're scrolling, only call Edit() again if the
19253         current cell is still unobscured. Fixes bug #78927.
19254         - when handling mousedown on a cell, ensure the cell is visible
19255         before calling Edit.
19256         - remove the properties from DataGridRow, and remove the
19257         DataGridParentRow class altogether.
19258         
19259
19260 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
19261
19262         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
19263           fire OnTextChanged by ourselves. There's no point calling base,
19264           we don't set the base value anywhere else. Fixes #78773.
19265
19266 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19267
19268         * ListBox.cs: Call CollectionChanged when modifying
19269         an item from Items indexer, to update the actual items
19270         in the list box.
19271
19272 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19273
19274         * PrintDialog.cs: Small fixes for focus and a pair of checks,
19275         to match .Net behaviour.
19276
19277 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
19278
19279         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
19280
19281 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
19282
19283         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
19284
19285 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
19286
19287         * MessageBox.cs: Prevent potential NRE exception.
19288         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
19289
19290 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
19291
19292         * MessageBox.cs: Calculate the owner of a messagebox, also make
19293           it topmost. Fixes #78753
19294
19295 2006-08-14  Chris Toshok  <toshok@ximian.com>
19296
19297         * XplatUIX11.cs: A couple of fixes so that metacity will let us
19298         programmatically move windows.  first, set the PPosition hint as
19299         well as the USPosition hint.  Second include some code from pdb
19300         that sets the window type to NORMAL when we set the transient for
19301         hint.  This is because, in the absence of a window type, metacity
19302         thinks any window with TransientFor set is a dialog, and refuses
19303         to let us move it programmatically.  fascists.
19304
19305 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
19306
19307         * XplatUIX11.cs: When setting normal hints, take into consideration
19308           an different hints previously set so we don't delete them (fixes #78866)
19309
19310 2006-08-12  Chris Toshok  <toshok@ximian.com>
19311
19312         * ToolBarButton.cs: make Layout return a boolean, if something to
19313         do with the button's layout changed.
19314
19315         * ToolBar.cs:
19316         - add another parameter to Redraw, @force, which all existing
19317           calls set to true.
19318         - make the Layout function return a boolean which is true if the
19319           layout has actually changed.  Redraw now uses this (and @force)
19320           to determine when to invalidate.  At present the only place
19321           where @force can be false is the call from OnResize, when
19322           background_image == null.  So, resizing a toolbar when the
19323           layout doesn't change results in no drawing.
19324
19325 2006-08-12  Chris Toshok  <toshok@ximian.com>
19326
19327         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
19328         the VScrollBar and HScrollbar reversed.  oops.
19329
19330         * DataGrid.cs: fix the logic that assigns sizes to the implicit
19331         scrollbars.  we were assigning them twice (once in
19332         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
19333         therefore causing two scrollbar resizes (and redraws?) to happen
19334         per grid resize.
19335
19336 2006-08-12  Chris Toshok  <toshok@ximian.com>
19337
19338         * ToolBarButton.cs: redraw the entire button if the theme tells us
19339         to.
19340
19341         * Theme.cs: add ToolBarInvalidateEntireButton.
19342
19343         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
19344         buttons, just the border.
19345
19346         * ThemeNice.cs: redraw the entire toolbar button since we need to
19347         draw the highlight image.
19348
19349         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
19350         we need to redraw the entire button (not just the border).
19351
19352 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
19353
19354         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
19355           for vertical bars. Fixes the mismatches shown by #78513
19356
19357 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
19358
19359         * FileDialog.cs: If a saved/remembered path doesn't exist
19360           anymore, fall back to "Desktop".
19361
19362 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
19363
19364         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
19365           parent. It's apparently legal to not have one
19366         * XplatUIX11.cs:
19367           - SetZOrder: Don't try to set Z-Order on an unmapped window
19368           - CreateWindow: 0,0 are legal coordinates for a window. don't move
19369             it unless the coordinates are negative
19370
19371 2006-08-10  Mike Kestner  <mkestner@novell.com>
19372
19373         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
19374         when setting to null per msdn docs.  Fixes #78854.
19375
19376 2006-08-10  Chris Toshok  <toshok@ximian.com>
19377
19378         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
19379         flickering by setting a clip rectangle on the Graphics when we
19380         need to redraw just a particular menuitem.  Also, rename "OnClick"
19381         to "OnMouseDown" to reflect what it actually is.
19382         
19383         * Form.cs: track the OnMouseDown change.
19384
19385 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
19386
19387         * CommonDialog.cs: Properly inherit the CreateParams from the form
19388           and only change what we need. Fixes #78865
19389
19390 2006-08-10  Chris Toshok  <toshok@ximian.com>
19391
19392         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
19393         flickering in flat mode (and most of the flickering in general) by
19394         only invalidating the button border (and not the entire rectangle)
19395         when the state changes.  A couple of cases still flicker:
19396         ToggleButtons, and the dropdown arrow case when the user mouse
19397         ups.
19398
19399 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
19400
19401         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
19402           for german keyboards. Numlock state shouldn't affect the behaviour
19403           of the Del key. Fixes bug #78291.
19404
19405 2006-08-10  Chris Toshok  <toshok@ximian.com>
19406
19407         * ListControl.cs: remove the items.Clear line from BindDataItems,
19408         as this is the first thing done by both subclasses in their
19409         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
19410         passed -1, refresh the list.  This gets databinding working when
19411         the datasource is set on the list before the datasource is
19412         populated (as in wf-apps/ReportBuilder.)
19413
19414         * ComboBox.cs: remove the argument to BindDataItems.  This call
19415         should really go away, and be initiated by the ListControl code.
19416
19417         * ListBox.cs: same.
19418
19419 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
19420
19421         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
19422           if no data is in the document when the control is displayed
19423
19424 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
19425
19426         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
19427           yes (fixes #78806)
19428         * TextControl.cs: 
19429           - PositionCaret: Allow positioning of caret but don't call methods 
19430             requiring a handle if the window isn't created yet
19431           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
19432           - owner_HandleCreated: Don't position the caret, just update it's 
19433             location. User might have already set a different position
19434
19435 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
19436
19437         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
19438           windows. Screws up the returned coordinates for child windows. 
19439           Fixes #78825. I'm hoping this doesn't break something, since the
19440           code was explicitly put in 8 months ago, but no bug was attached.
19441           Menus still seem to work properly.
19442
19443 2006-08-08  Chris Toshok  <toshok@ximian.com>
19444
19445         * DataGrid.cs: make BeginInit/EndInit actually do what they're
19446         supposed to do - delay data binding until the EndInit call.  Also,
19447         make the table style collection's CollectionChangeAction.Refresh
19448         work properly.
19449
19450         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
19451         (with action = Refresh) when a consituent table's MappingName is
19452         changed.
19453
19454 2006-08-08  Chris Toshok  <toshok@ximian.com>
19455
19456         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
19457         Invalidate, since changing the text can change the size of the all
19458         toolbar buttons.
19459
19460 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
19461
19462         * Form.cs (AddOwnedForm): Still need to add the form to our listif
19463           we don't have it yet
19464
19465 2006-08-08  Chris Toshok  <toshok@ximian.com>
19466
19467         * PrintControllerWithStatusDialog.cs: don't .Close() the status
19468         dialog, as this causes X errors later on, since we actually
19469         destroy the window.  Instead, .Hide() it.
19470
19471 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
19472
19473         * ComboBox.cs: Added focus reflection for popup window
19474         * XplatUIX11.cs: 
19475           - Removed transient setting for non-app windows for now, not sure it
19476             was needed
19477           - Fixed logic checking if we have captions when deciding 
19478             override_redirect, WS_CAPTION is two bits and a 0 check was not
19479             sufficient
19480           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
19481             complicated
19482         * Form.cs: 
19483           - AddOwnedForm: Don't just add the form to the list, call the property
19484             to ensure the driver is informed about the ownership as well
19485           - CreateHandle: Set the TopMost status in the driver if we have an owner
19486         * XplatUI.cs: Fixed debug statement
19487
19488 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
19489         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
19490           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
19491           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
19492           TrackBarRenderer.cs: Make constructor private.
19493         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
19494         * ProfessionalColorTable.cs: Make properties virtual.
19495
19496 2006-08-06  Duncan Mak  <duncan@novell.com>
19497
19498         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
19499         is not changing.
19500
19501 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
19502         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
19503           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
19504           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
19505           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
19506           Initial import of new 2.0 classes.
19507
19508 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
19509         * Application.cs: Add 2.0 VisualStyles properties.
19510
19511 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
19512         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
19513           XplatUIX11.cs: Create property to allow access to existing private
19514           variable "themes_enabled"
19515
19516 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19517
19518         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
19519         file size, as otherwise our class libraries fail using windows. Fixes
19520         bug #78759.
19521
19522 2006-08-04  Jackson Harper  <jackson@ximian.com>
19523
19524         * Form.cs:
19525         * XplatUIX11.cs: Move the toolwindow window manager creation into
19526         the X11 driver, this way on win32 we can let windows create/handle
19527         the toolwindows.
19528
19529 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19530
19531         * PrintDialog.cs: Remove some redundant checks, add some others,
19532         clean some code, and move the focus to the text boxes when the
19533         values are incorrect.
19534
19535 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
19536
19537         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
19538
19539 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
19540
19541         * NumericUpDown.cs: Setting the Minimum and Maximum is now
19542           handled correctly. Fixes bug #79001.
19543
19544 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19545
19546         * PrintDialog.cs: The "Copies" numeric up down must have
19547         set the Minimum property to 1; only if the value is bigger
19548         than 1, activate "Collate" check box. This is the behaviour of .Net.
19549         Also modify the Document elements only if it is not null.
19550
19551 2006-08-03  Jackson Harper  <jackson@ximian.com>
19552
19553         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
19554         length. (We have a larger array then actual node count).
19555                 
19556 2006-08-03  Jackson Harper  <jackson@ximian.com>
19557
19558         * ComboBox.cs: Don't show selection by default.
19559         - The SelectAll isn't needed here, since the focus code should do
19560         that
19561         - DDL style lists to manual selection drawing, so when they
19562         get/lose focus they have to invalidate.
19563
19564 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
19565
19566         * TextBoxBase.cs: Don't always show all selections by default.
19567
19568 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
19569         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
19570           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
19571           Fixed various typos.
19572
19573 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
19574
19575         * Control.cs: Removing the controls in a ControlCollection with
19576           Clear now hides the controls as expected. Fixes bug #78804. 
19577
19578 2006-08-03  Jackson Harper  <jackson@ximian.com>
19579
19580         * Control.cs: Revert previous focus patch, it breaks reflector.
19581
19582 2006-08-03  Jackson Harper  <jackson@ximian.com>
19583
19584         * ComboBox.cs: Cleanup selection and focus with the combobox.
19585         This also eliminates some duplicated keyboard code, since now
19586         everything is handled by the main class.
19587         - Make list selection work on mouse up instead of down, to match
19588         MS.
19589
19590 2006-08-02  Jackson Harper  <jackson@ximian.com>
19591
19592         * Control.cs: Setting focus needs to go through the whole
19593         selection mechanism.
19594
19595 2006-08-02  Chris Toshok  <toshok@ximian.com>
19596
19597         * PrintPreviewDialog.cs: change MinimumSize to use
19598         base.MinimumSize so it works.
19599
19600 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
19601
19602         * TextControl.cs:
19603           - UpdateCaret: Added sanity check in case caret isn't defined yet
19604           - Line.Delete: Now updating selection and caret markers if we're
19605             transfering a node (Properly fixes #78323)
19606           - SetSelectionEnd: Added sanity check
19607         * TextBoxBase.cs: Removed broken attempt to fix #78323
19608
19609 2006-08-01  Chris Toshok  <toshok@ximian.com>
19610
19611         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
19612         Close() call is handled in Form, not here.
19613
19614 2006-08-01  Chris Toshok  <toshok@ximian.com>
19615
19616         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
19617         layout/rendering.
19618
19619         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
19620         for sizes < 100% zoom.  The code now aggressively attempts to keep
19621         from calling document.Print (), and tries not to use the scaling
19622         g.DrawImage whenever possible (it still does if you scale to >
19623         100%, since usually that involves huge images).
19624
19625         * PrintPreviewControl.cs: hook up the close button.
19626
19627 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
19628         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
19629           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
19630           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
19631           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
19632           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
19633           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
19634           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
19635           Removed [Serializable] for 2.0 Event Handlers.
19636
19637 2006-07-31  Jackson Harper  <jackson@ximian.com>
19638
19639         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
19640         * TextControl.cs: Uncomment out the body of this method.
19641
19642 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
19643
19644         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
19645           standard cursors.
19646
19647 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
19648
19649         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
19650           that embed TextBox and need selections visible even if textbox is not
19651           focused to enforce that behaviour.
19652         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
19653           selection drawing
19654
19655 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
19656
19657         * TextControl.cs:
19658           - Added new SetSelectionStart/SetSelectionEnd overloads
19659           - Fixed viewport width assignment to be accurate
19660           - Adjusted alignment line shift calculations to allow cursor on right
19661             aligned lines to be always visible at the right border (like MS)
19662         * TextBoxBase.cs:
19663           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
19664           - TextBoxBase_SizeChanged: recalculating canvas on size changes
19665           - CalculateScrollBars: Use ViewPort size instead of window size, to
19666             properly consider space occupied by the border and scrollbars 
19667             (Fixes #78661)
19668           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
19669             calculations; no longer leaves artifacts
19670           - CaretMoved: Adjusted window scrolling to match MS and fixed several
19671             calculation bugs (Still missing right/center align calculations)
19672
19673 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
19674
19675         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
19676           use of both scroll rect and clip rect, as they do the same.
19677
19678 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
19679
19680         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
19681           in the event handler (fixes #78912)
19682
19683 2006-07-31  Chris Toshok  <toshok@ximian.com>
19684
19685         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
19686         grid.ListManager.Count, since grid.ListManager might be null.
19687         This of course begs the question "why are we drawing rows for a
19688         grid with no list manager (and therefor no rows)?"  Fixes the
19689         crash in bug #78929.
19690
19691 2006-07-31  Chris Toshok  <toshok@ximian.com>
19692
19693         * RelatedPropertyManager.cs: Don't always chain up to the parent
19694         ctor.  instead, call SetDataSource if the parent's position is !=
19695         -1.  Fixes the crash in #78822.
19696
19697 2006-07-31  Chris Toshok  <toshok@ximian.com>
19698
19699         * DataGrid.cs (get_ListManager): use field instead of property
19700         accessors for datasource and datamember.
19701         (RowsCount): make internal again.
19702         (OnMouseDown): end edits before resizing columns/rows.
19703         (OnMouseUp): restart edits after resizing columns/rows.
19704
19705 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
19706
19707         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
19708           This fixes the situation where the last set cursor is displayed
19709           whenever the mouse is over scrollbars.
19710
19711 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19712
19713         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
19714         Document properties, as well as initial values.
19715
19716 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
19717
19718         * XplatUIWin32.cs (SetBorderStyle): Setting both border
19719           and ClientEdge results in a 3-pixel border, which is
19720           wrong.
19721
19722 2006-07-28  Jackson Harper  <jackson@ximian.com>
19723
19724         * TreeNodeCollection.cs: Fix the clear method.
19725         - Fix the Shrink also
19726
19727 2006-07-27  Jackson Harper  <jackson@ximian.com>
19728
19729         * TreeView.cs: Make sure the visible order is computed when we
19730         attempt to size the scrollbars (for trees that mess with the
19731         scrolling when they shouldn't.
19732         - Make sure to give the scrollbars valid values.
19733
19734 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
19735
19736         * XplatUIX11.cs: Move motion compression code to where it
19737           has less performance impact
19738
19739 2006-07-26  Jackson Harper  <jackson@ximian.com>
19740
19741         * UpDownBase.cs: When the control is selected make the child
19742         controls non selectable, so that a click on them won't do a
19743         focus/unfocus cycle.
19744         - Don't give focus to the text box when the spinner is selected.
19745         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
19746
19747 2006-07-26  Chris Toshok  <toshok@ximian.com>
19748
19749         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
19750         satisfied with this solution.  If the bitmaps are small, we should
19751         just cache them in the PrintPreviewDialog and draw them here.
19752         Also, the layout is broken for the 2-up and 3-up cases.
19753
19754         * Theme.cs: add PrintPReviewControlPaint.
19755
19756         * PrintPreviewDialog.cs: first pass implementation.
19757
19758         * PrintPreviewControl.cs: first pass implementation.  No
19759         scrollbars yet.
19760
19761         * PrintDialog.cs: only validate fields if that particular portion
19762         of the UI is enabled.  Also, set the document's controller to a
19763         PrintControllerWithStatusDialog wrapping the document's print
19764         controller.
19765
19766         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
19767         bring up a SaveFileDialog (i hope we don't want to match the
19768         behavior of the crappy windows file entry) and set the
19769         PrinterSettings.PrintFileName accordingly.
19770
19771 2006-07-26  Jackson Harper  <jackson@ximian.com>
19772
19773         * ContainerControl.cs: Add a field that disables auto selecting
19774         the next control in a container when the container is activated.
19775         * UpDownBase.cs: Don't select the text box when the up down is
19776         selected.
19777
19778 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
19779
19780         * XEventQueue.cs: Added methods for peeking (used for compression
19781           of successive events)
19782         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
19783           mouse move events (fixes #78732)
19784
19785 2006-07-25  Jackson Harper  <jackson@ximian.com>
19786
19787         * UpDownBase.cs: Use an internal class for the textbox so that we
19788         can control focus.  the updown control should always have focus,
19789         if either the text area or the buttons are clicked.
19790         - Send the key messages to the textbox, since it never actually
19791         has focus
19792         - Activate and decativate the textbox caret.
19793
19794 2006-07-24  Jackson Harper  <jackson@ximian.com>
19795
19796         * Control.cs: Use the directed select when selecting a control,
19797         this way the container controls override will get called and the
19798         whole ActiveControl chain will get triggered.  TODO: probably need
19799         to make sure this gets done everywhere instead of the old
19800         Select(Control).
19801         * ContainerControl.cs: Implement the directed Select method to
19802         find and activate the correct child control.    
19803         
19804 2006-07-22  Mike Kestner  <mkestner@novell.com>
19805
19806         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
19807         menu handling code so that clicks without a grab work too.
19808         [Fixes #78914]
19809
19810 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
19811
19812         * FileDialog.cs: Enable the BackButton when dirstack has one element.
19813           Added some small optimizations.
19814
19815 2006-07-21  Matt Hargett  <matt@use.net>
19816
19817         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
19818
19819 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
19820
19821         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
19822           tests pass and match MS in some strange border cases.
19823
19824 2006-07-21  Chris Toshok  <toshok@ximian.com>
19825
19826         * ThemeWin32Classic.cs: handle drawing of the relation links and
19827         parent row buttons.
19828
19829         * Theme.cs: change args to DataGridPaintParentRow.
19830
19831         * DataGrid.cs: Don't use controls for the relation links and
19832         parent buttons, so we have to handle all their interactions in
19833         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
19834         when we're navigating through child tables, so we can reinstate
19835         selection, expanded state, current cell, etc.
19836
19837 2006-07-20  Chris Toshok  <toshok@ximian.com>
19838
19839         * ToolBar.cs: When we redraw a button, for whatever reason,
19840         there's no reason to redraw the entire toolbar.  Also, don't call
19841         Control.Refresh from within Redraw, as it's much heavier than
19842         Invalidate (which is really what we want).
19843
19844 2006-07-20  Chris Toshok  <toshok@ximian.com>
19845
19846         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
19847         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
19848         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
19849         traces from within a debug IBindingList datasource
19850         (in mono/winforms/datagrid) for *days*, I've finally gotten things
19851         to work in a similar fashion.
19852
19853 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19854
19855         * ListBox.cs: Don't call Sort () when setting 
19856         the Sorted property to false (avoid an unnecessary sort).
19857
19858 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19859
19860         * ListControl.cs: DataSource should throw an ArgumentException
19861         instead of a normal exception when the argument is not of the 
19862         correct type.
19863
19864 2006-07-20  Mike Kestner  <mkestner@novell.com>
19865
19866         * Control.cs: add InternalPreProcessMessage to allow us to steal
19867         key events before MWF gets its paws on them.  Adapted from a
19868         suggestion by eno.
19869         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
19870         up/down/left/right navigation. Override the new internal control
19871         method to steal the events since they never make it to WndProc.
19872         * ToolBarButton.cs: don't worry about pushed when setting hilight
19873         since the drawing code prefers pushed to hilight. Invalidate on 
19874         Hilight changes. Fixes #78547 and #78525.
19875
19876 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
19877
19878         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
19879           the canvas size. Fixes #78868
19880
19881 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
19882
19883         * Splitter.cs: Track requested split position until first layout
19884           is performed. Fixes #78871
19885
19886 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
19887
19888         * Application.cs: Removed code that forces 1.x for the version
19889           number if the version started with 0. Not sure why that code was
19890           there and I couldn't find any bugs that indicated we needed it.
19891           Fixes #78869
19892
19893 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
19894
19895         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
19896           ResetDefaults(), just write some output to the console until it's
19897           implemented. Fixes bug #78907 for now. Eliminated two warnings.
19898
19899 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
19900
19901         * PropertyGridView.cs: set StartPosition of drop down forms
19902         so they appear in correct initial spot.  Fixes #78190.
19903
19904 2006-07-19  Mike Kestner  <mkestner@novell.com>
19905
19906         * ThemeWin32Classic.cs: use parent background color when drawing
19907         flat toolbars.  Restructure the conditionals to make sure non-flat
19908         non-Divider toolbars are filled too.  Fixes #78837.
19909
19910 2006-07-19  Mike Kestner  <mkestner@novell.com>
19911
19912         * ListBox.cs: Sort on collection changes even if the handle
19913         isn't created yet.  Fixes #78813.
19914
19915 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19916
19917         * ListControl.cs: DisplayMember should never be null,
19918         and now we assign String.Empty when null is passed to it (this
19919         is the .Net way).
19920
19921 2006-07-17  Mike Kestner  <mkestner@novell.com>
19922
19923         * ListViewItem.cs: restructure Font and subitem Font handling 
19924         to hold a specific font and refer back to owner on null.
19925         Fixes #78761.
19926
19927 2006-07-17  Mike Kestner  <mkestner@novell.com>
19928
19929         * ToolBar.cs: bandaid for side-effect of previous patch which was
19930         discarding explicit heights for non-AutoSize toolbars.  Need to
19931         extend my format tester to deal with AutoSize=false. Fixes #78864.
19932
19933 2006-07-15  Jackson Harper  <jackson@ximian.com>
19934
19935         * LabelEditTextBox.cs:
19936         * TreeView.cs: Use a new LabelEdit class for node editing, this
19937         class automatically 'closes' itself when it gets the enter key or
19938         loses focus.
19939         - Use the client rectangle when setting the trees scrollbars, so
19940         border style is taken into account.
19941         
19942 2006-07-14  Jackson Harper  <jackson@ximian.com>
19943
19944         * TreeNode.cs:
19945         * TreeView.cs: Make the editing work similar to MSs, firing the
19946         events correctly and ending edits correctly.
19947
19948 2006-07-14  Mike Kestner  <mkestner@novell.com>
19949
19950         * ToolBarButton.cs:
19951         * ToolBar.cs: layout restructuring and redraw enhancements to support
19952         formatting changes gracefully, like setting TextAlign, ImageList, 
19953         ButtonSize, and Appearance.  Handles explicit button sizing quirks
19954         of the MS controls.  Things like flat toolbars ignoring button size
19955         but becoming constant sized at the largest button's size.  Normal
19956         toolbars with an image set cannot be shrunk smaller than the image,
19957         but text can be clipped/ignored.
19958         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
19959         is zero.  Seems like DrawString should be smart enough to not put
19960         anything on screen though. Also trim labels and ellipsize at the char
19961         boundary, not word.
19962         Fixes #78711 and #78483.
19963
19964 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
19965
19966         * FolderBrowserDialog.cs: Disable "New Folder" button and
19967           "New Folder" contextmenu menuitem if a folder like "My Computer"
19968           is selected.
19969
19970 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
19971
19972         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
19973         * FolderBrowserDialog.cs:
19974           - Use MWFConfig to store and read size and position settings
19975           - Added code to create a new folder (button or context menu).
19976             Use TreeView labeledit to change the name of the new folder.
19977
19978 2006-07-14  Jackson Harper  <jackson@ximian.com>
19979
19980         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
19981         when the tree is scrolled we end editing.
19982
19983 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
19984
19985         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
19986           Down arrows
19987
19988 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
19989
19990         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
19991         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
19992         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
19993         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
19994         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
19995         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
19996         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
19997         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
19998         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
19999         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
20000         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
20001         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
20002         ListViewItemSelectionChangedEventHandler.cs,
20003         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
20004         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
20005         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
20006         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
20007         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
20008         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
20009         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
20010         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
20011         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
20012         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
20013         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
20014         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
20015         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
20016         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
20017         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
20018         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
20019         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
20020         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
20021         WebBrowserNavigatingEventHandler.cs, 
20022         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
20023
20024 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
20025
20026         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
20027         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
20028         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
20029         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
20030         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
20031         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
20032         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
20033         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
20034         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
20035         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
20036         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
20037         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
20038         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
20039         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
20040         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
20041         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
20042         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
20043         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
20044         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
20045         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
20046         ListViewItemStates.cs, MaskFormat.cs: Added
20047
20048 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
20049
20050         * PropertyGridView.cs: Fix keyboard navigation of drop down.
20051         Patch from eno for bug 78558.
20052         
20053 2006-07-13  Jackson Harper  <jackson@ximian.com>
20054
20055         * TreeView.cs: When an edit is finished make sure that the
20056         selected node is visible.
20057         - When setting the top/bottom use the scrollbars is_visible, so
20058         everything will be set correctly even if the tree isn't visible
20059         yet.
20060
20061 2006-07-13  Jackson Harper  <jackson@ximian.com>
20062
20063         * ComboBox.cs: Revert the item->index part of my previous patch.
20064         * TreeView.cs: Use LostFocus instead of Leave for detecting when
20065         the edit box has lost focus (duh).
20066         - Just make the edit box not visible when we get return, that will
20067         take the focus, which will call EndEdit
20068         * TreeNode.cs When we start editing, notify the treeview.
20069
20070 2006-07-12  Jackson Harper  <jackson@ximian.com>
20071
20072         * ComboBox.cs: Clear out old items before setting the item list.
20073         This prevents databound controls from having their items added
20074         twice.
20075         - Switch the combobox to use indices whereever possible instead of
20076         using Item's.  This allows usto navigate through lists that have
20077         more then one item with the same string value (ie a, b, b, a).
20078         - Scroll the listboxes scrollbar when a non visible item is
20079         highlighted
20080         - Allow keypress to cycle through all the possible values. For
20081         example if you have b1, b2, b3 and hold down the B key all the
20082         values will be cycled through.
20083         
20084 2006-07-12  Jackson Harper  <jackson@ximian.com>
20085
20086         * TextBoxBase.cs:
20087         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
20088         this using the internal methods.
20089         * Control.cs: Add OnGotFocusInternal.  A new method that allows
20090         controls to "override" OnGotFocus and change focus behavior if
20091         needed.
20092         - Same thing for LostFocus
20093         * ComboBox.cs: Pass off focus to the text control properly.
20094
20095 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
20096
20097         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
20098         * FolderBrowserDialog.cs: Almost a complete rewrite.
20099           - Better support for Environment.Specialfolders
20100           - Added support for MWFVFS
20101           - Made setting SelectedPath work
20102
20103 2006-07-12  Jackson Harper  <jackson@ximian.com>
20104
20105         * Control.cs: Optimze getting all the controls.
20106
20107 2006-07-11  Jackson Harper  <jackson@ximian.com>
20108
20109         * ContainerControl.cs: Override SETFOCUS in the container control,
20110         so that it is not selected on mouse click.
20111
20112 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
20113
20114         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
20115           Hopefully we will have a better way once all of focus is complete.
20116
20117 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
20118
20119         * ThemeWin32Classic.cs: Commented out some debug code and fixed
20120           a compile error with csc.
20121
20122 2006-07-11  Jackson Harper  <jackson@ximian.com>
20123
20124         * Control.cs: When hiding a control only select the next control
20125         if the current control was focused.
20126         - Don't handle enter/leave when setting/killing focus, this is
20127         done by the container control.
20128         - Remove is_selected, it's not needed anymore.
20129         - Add utility methods for selecting a child control, and for
20130         firing the Enter/Leave events.
20131         * ContainerControl.cs: When a control is activated fire the
20132         enter/leave events.
20133         - Don't wrap when processing the tab key, so that focus can be
20134         moved outside of the container.
20135         - Use the correct active control
20136
20137 2006-07-11  Jackson Harper  <jackson@ximian.com>
20138
20139         * ComboBox.cs: Remove some debug code that was blinding me.
20140         * UpDownBase.cs: These controls actually aren't implicit, they are
20141         visible to the user.
20142
20143 2006-07-10  Chris Toshok  <toshok@ximian.com>
20144
20145         * DataGrid.cs: move back to the is_adding boolean field.  god i
20146         hate this is_editing/is_adding/is_changing stuff.
20147
20148 2006-07-10  Chris Toshok  <toshok@ximian.com>
20149
20150         * DataGridTableStyle.cs: just check if the property type is bool.
20151         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
20152         Don't use CanRenderType.
20153
20154         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
20155         if our text == NullText.  Remove CanRenderType.
20156
20157         * DataGridBoolColumn.cs: nuke CanRenderType.
20158
20159         * DataGrid.cs: reenable some code to end the current edit inside
20160         of set_CurrentCell.  This fixes the other 1.1.16 regression.
20161         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
20162         Also, remove the visible_row_count arg from CalcRowHeaders, since
20163         we don't need to worry about the actual height of the area.
20164
20165 2006-07-10  Chris Toshok  <toshok@ximian.com>
20166
20167         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
20168         mode, just return.
20169
20170         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
20171         the real sense of the IsInEditOrNavigateMode property (true =
20172         navigate, false = edit).  Also, update OnKeyPress to reflect this.
20173
20174         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
20175         column style exists, we still need to set its property descriptor
20176         to match up with our list manager.
20177
20178 2006-07-10  Chris Toshok  <toshok@ximian.com>
20179
20180         * ThemeWin32Classic.cs: implement the new row/header painting
20181         approach.  The parent row painting will likely go away and
20182         replaced with label controls, but the rest seems to work ok (and
20183         efficiently).
20184
20185         * Theme.cs: change the way we draw datagrid rows.  we don't draw
20186         the row headers as a block now.  Instead we draw them in the
20187         normal draw-row loop.  Add some calls for drawing parent rows and
20188         relation rows.
20189
20190         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
20191         a default table style.  Set the defaults from ThemeEngine.Current,
20192         not SystemColors.  Fix lots of misc issues with property setters.
20193
20194         * DataGrid.cs: move loads of style information out of this class
20195         as it's being duplicated with DataGridTableStyle.  keep track of a
20196         special DataGridTableStyle for the properties we used to mirror
20197         here.  Switch all the style properties to access this table style
20198         instead of instance fields of this class.  Also add a internal
20199         class to represent parent rows (more needs to be stored here, like
20200         the selection state from the parent table, as well as the
20201         expansion state.)  Also, for datasources with relations, do the
20202         right thing for collapse/expand, and add support for the
20203         navigation/parent row buttons.
20204
20205         Lastly, fix the crash in the 1.1.16 build.
20206
20207         * GridTableStylesCollection.cs: make the explicit interface
20208         implementations call the class's methods as opposed to duplicating
20209         them.
20210
20211         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
20212         0 so the text doesn't jump around when we move the cursor.
20213
20214 2006-07-10  Jackson Harper  <jackson@ximian.com>
20215
20216         * TextBoxBase.cs:
20217         * ListBox.cs: Match MS's ToString (this makes debugging focus
20218         stuff infinitely easier).
20219
20220 2006-07-10  Jackson Harper  <jackson@ximian.com>
20221
20222         * Control.cs (SelectNextControl): When checking the control's
20223         parent use this instead of ctrl.parent so that null can be passed
20224         to SelectNextControl. (I have unit tests for this).
20225         - Remove unused var.
20226
20227 2006-07-10  Chris Toshok  <toshok@ximian.com>
20228
20229         * CurrencyManager.cs: correct one regression, the removal of the
20230         finalType field.  Also, add a MonoTODO on CanAddRows, implement
20231         Refresh() correctly, and fix some event emission in
20232         ListChangedHandler.
20233
20234 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
20235
20236         * FileDialog.cs: Don't use brackets for new folders if they exist
20237           under *nix. Instead use -(number of existing folders +1).
20238
20239 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
20240
20241         * FileDialog.cs:
20242           - Fixed really nasty bug #78771
20243           - Don't block the whole GUI when reading directories with a lot of
20244             entries. Use an other thread instead and call BeginInvoke to
20245             update the ListView in MWFFileView
20246
20247 2006-07-07  Chris Toshok  <toshok@ximian.com>
20248
20249         * Control.cs (Dispose): release any Capture when disposing.
20250
20251 2006-07-07  Chris Toshok  <toshok@ximian.com>
20252
20253         * LinkLabel.cs (Select): if we chain up to the parent, set
20254         focused_index to -1 so we'll search for the first available link
20255         the next time the user tabs into us.  Also, if the direction is
20256         backward and focused_index == -1, start the search from the last
20257         element.
20258
20259 2006-07-07  Chris Toshok  <toshok@ximian.com>
20260
20261         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
20262         is beyond the end of the text, don't do anything.
20263         (CreateLinkPieces): set our ControlStyles.Selectable based on
20264         whether or not we have any links.
20265         (Link.Invalidate): use a loop instead of foreach.
20266         (Link.set_Start): null out owner.sorted_links so it'll be
20267         recreated by CreateLinkPieces.
20268
20269 2006-07-06  Chris Toshok  <toshok@ximian.com>
20270
20271         * LinkLabel.cs: revert the SetStyle change.
20272
20273 2006-07-06  Chris Toshok  <toshok@ximian.com>
20274
20275         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
20276         (OnEnableChanged): s/Refresh/Invalidate
20277         (OnGotFocus): if we have a focused index already, refocus it (so
20278         if we mouse out/in to the window it'll focus the right link).
20279         (OnKeyDown): move the tab handling out of here.
20280         (OnLostFocus): don't set focused_index to -1, so we can refocus it
20281         when we lose focus.
20282         (OnMouseDown): don't Capture here - Control handles it.  Also,
20283         focus the active link.
20284         (OnMouseUp): don't deal with Capture.
20285         (OnPaintBackgroundInternal): remove.
20286         (OnTextAlignChanged): CreateLinkPieces before calling the
20287         superclass's method.
20288         (OnTextChanged): call CreateLinkPieces before calling superclass's
20289         method.
20290         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
20291         move around.
20292         (Select): implement this, moving the selection between different
20293         links, and call parent.SelectNextControl if we don't have another
20294         link to focus in the given direction.
20295         (CreateLinkPieces): call Invalidate instead of Refresh.
20296         
20297 2006-07-06  Chris Toshok  <toshok@ximian.com>
20298
20299         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
20300         new LinkLabel internals.
20301
20302         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
20303         over pieces looking for active/focused/etc links.  also, deal with
20304         runs of text (and links) with embedded \n's in them, and use
20305         MeasureCharacterRanges instead of MeasureString to figure out the
20306         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
20307         two-step.
20308
20309 2006-07-04  Jackson Harper  <jackson@ximian.com>
20310
20311         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
20312         XKB or key auto repeat, do it manually.  Without key auto repeat,
20313         when a key is held down we get key press, key release, key press,
20314         key release, ... with auto repeat we get key press, key press, key
20315         press ..., and then a release when the key is actually released.
20316
20317 2006-07-03  Jackson Harper  <jackson@ximian.com>
20318
20319         * TabControl.cs:
20320         * ThemeWin32Classic.cs: Tabs do not obey normal background color
20321         rules, they are always control color regardless of the background
20322         color.
20323
20324 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
20325
20326         * FileDialog.cs: Added internal class MWFConfig.
20327           Removed Registry support and replaced it with support for the new
20328           MWFConfig class. See MWFConfig comments for more information.
20329
20330 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
20331
20332         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
20333           rectangle. Added some patches from eno from bug #78490 and fixed
20334           the arrow position for small up and down CPDrawScrollButtons.
20335
20336 2006-06-30  Jackson Harper  <jackson@ximian.com>
20337
20338         * InternalWindowManager.cs: Remove some debug code.
20339         * Form.cs: When an MdiParent is set to null, the window is
20340         "detatched" and becomes a normal window.
20341         * MdiClient.cs: Don't bring the new child form to the front until
20342         it is activated (setting it as active does this), this makes the
20343         previously active forms titlebar get redrawn as inactive.
20344
20345 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
20346
20347         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
20348           with later controls
20349
20350 2006-06-29  Mike Kestner  <mkestner@novell.com>
20351
20352         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
20353         arrow in keynav state.  Fixes #78682.
20354
20355 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
20356
20357         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
20358           order (fixes #78393)
20359
20360 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
20361
20362         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
20363           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
20364           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
20365           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
20366           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
20367           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
20368           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
20369           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
20370           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
20371           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
20372           enumerations (FlagsAttribute, SerializableAttribute, added/removed
20373           values)
20374
20375 2006-06-28  Mike Kestner  <mkestner@novell.com>
20376
20377         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
20378
20379 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
20380
20381         * PropertyGrid.cs,
20382           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
20383           item lines from other area (It also makes BackColor consistent and
20384           compatible with .NET). Fixed bug #78564.
20385
20386 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
20387
20388         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
20389         Patch from Eno for #78555.
20390
20391 2006-06-27  Chris Toshok  <toshok@ximian.com>
20392
20393         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
20394
20395         * DataGridColumnStyle.cs: same.
20396
20397         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
20398         
20399         * DataGridDrawingLogic.cs: nuke.
20400
20401 2006-06-27  Chris Toshok  <toshok@ximian.com>
20402
20403         * DataGridTableStyle.cs: clean up the constructors, and build the
20404         list of child relations for this table.  I have no idea if this is
20405         where we should be doing it (it probably isn't), but since we're
20406         already iterating over the properties..
20407
20408         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
20409         struct and array for keeping track of row information, similar to
20410         what's shown in a hack on
20411         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
20412
20413         * Theme.cs: be consistent about the naming of DataGrid methods,
20414         prefering ColumnWidths and RowHeights over columnsWidths and
20415         RowsHeights.
20416
20417         * ThemeWin32Classic.cs: same, and also add support for variable
20418         sized rows (and the +/- expansion icons for related rows).
20419
20420 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
20421
20422         * TextBoxBase.cs: Applied Eno's patch from #78660
20423
20424 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
20425
20426         * Form.cs (ScaleCore): We don't want to scale our form if it's
20427           state is minimized or maximized, but we still need to scale our
20428           child windows. Also, added try/finally block to ensure layout
20429           gets reset (Fixes #78697)
20430
20431 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
20432
20433         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
20434
20435 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
20436
20437         * Form.cs: Fixed c+p error and added check to resize form if minimum
20438           size is bigger than current size (Fixes #78709)
20439
20440 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
20441
20442         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
20443
20444 2006-06-26  Mike Kestner  <mkestner@novell.com>
20445
20446         * ComboBox.cs: only do Keypress handling in the combo when there  
20447         are items in the collection. Fixes #78710.
20448
20449 2006-06-26  Chris Toshok  <toshok@ximian.com>
20450
20451         * Binding.cs: make this work bi-directionally.  also, clear up
20452         other mixups between Push/Pull Data (e.g. we're supposed to pull
20453         data when validating).
20454
20455         * BindingManagerBase.cs: trim some fully qualified collection
20456         types.
20457
20458         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
20459
20460 2006-06-23  Chris Toshok  <toshok@ximian.com>
20461
20462         * PropertyManager.cs: It appears (according to the unit tests)
20463         that PropertyManager doesn't use
20464         PropertyDescriptor.AddValueChanged to track propery value changes
20465         in its datasource, but uses the same scheme as Binding, where it
20466         looks for a <Property>Changed event and binds to it.
20467
20468         Also, according to the docs, IsSuspended always returns false for
20469         a property manager with a non-null datasource.
20470
20471 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
20472
20473         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
20474           need to update the actual DialogResult. (Fixes #78613)
20475
20476 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
20477
20478         * Form.cs (ShowDialog): Release any captures before running the
20479           new message pump (fixes #78680)
20480
20481 2006-06-22  Mike Kestner  <mkestner@novell.com>
20482
20483         * ListView.cs: Layout column widths properly in details mode even 
20484         if HeaderStyle.None is set.  Fixes #78691.
20485
20486 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
20487
20488         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
20489
20490 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
20491
20492         * Control.cs (ContainsFocus): Using new driver method to get focused
20493           window, instead of trying to use internal tracking var, which can
20494           recursion issues (Fixes #78685)
20495         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
20496           XplatUIWin32.cs: Added GetFocus method to return focused window
20497
20498 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20499
20500         * ColorDialog.cs: when the mouse button is pressed inside the color
20501         matrix, don't let the cursor move out of it until the button is
20502         released, which is the behavior on windows. Changed 'colours' by
20503         'colors' to use the same word consistently.
20504
20505 2006-06-21  Chris Toshok  <toshok@ximian.com>
20506
20507         * DataGrid.cs: add in some basic navigation stuff (navigating to a
20508         child relation and back, using a stack).  Also, remove
20509         GetDataSource and the code that calls it - it's not needed.  Also,
20510         track CurrencyManager.ListName's removal.
20511
20512 2006-06-21  Chris Toshok  <toshok@ximian.com>
20513
20514         * CurrencyManager.cs: push some of the original type checking from
20515         BindingContext.CreateBindingManager to here, and remove some of
20516         the finalType stuff.  Need more tests to make sure I've got the
20517         ListName part right, and we might need more in SetDataSource.
20518
20519         * PropertyManager.cs: add a ctor that takes just the datasource,
20520         and no property name.  Make SetDataSource work with a null
20521         property_name, and make Current return the data_source if the
20522         property descriptor is null.  this makes 'string foo = "hi";
20523         BindingContext[foo].Current' return "hi" as it should.
20524
20525         * RelatedCurrencyManager.cs: make this code more generic - there's
20526         no reason the parent manager has to be CurrencyManager, and
20527         there's no reason to pass the DataRelation.  It suffices to use a
20528         BindingManagerBase and PropetyDescriptor.
20529
20530         * RelatedPropertyManager.cs: make a similar change here.
20531         
20532         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
20533         flower I knew it could be.
20534
20535 2006-06-20  Chris Toshok  <toshok@ximian.com>
20536
20537         * PropertyManager.cs: the PropertyChangedHandler is invoked when
20538         data in the source has changed and we need to update the control,
20539         so s/PullData/PushData.
20540
20541         * CurrencyManager.cs: Refresh is meant to update the control from
20542         data in the datasource.  So, s/PullData/PushData.
20543
20544         * BindingContext.cs: add more ugliness (we weren't handling the
20545         case where data_source = DataTable and data_member = column_name).
20546
20547         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
20548         from the perspective of the datasource.  PullData pulls from the
20549         control, PushData pushes to the control.
20550
20551 2006-06-20  Chris Toshok  <toshok@ximian.com>
20552
20553         * BindingContext.cs: rewrite the CreateBindingManager code to
20554         handle navigation paths more or less properly.  This could
20555         definitely stand some more work, in particular to push the
20556         recursion up to the toplevel.  But that relies on fixes in other
20557         places (System.Data comes to mind).
20558
20559         Also, move to a flat hashtable (and encode the twolevel nature of
20560         the dictionary into the hash key).  This lets us implement the
20561         IEnumerable.GetEnumerator method.
20562
20563         * RelatedCurrencyManager.cs: new class.  Update our view based on
20564         our relation and our parent CurrencyManager's position.
20565
20566         * CurrencyManager.cs: split out some logic from the ctor into
20567         SetView, so it can be called from the new RelatedCurrencyManager
20568         subclass.
20569
20570         * RelatedPropertyManager.cs: new class.  Update our datasource
20571         based on the position of our parent CurrencyManager.
20572
20573         * PropertyManager.cs: split out some logic from the ctor into
20574         SetDataSource, so it can be called from the new RelatedDataSource
20575         subclass.  Also, make the Current getter return the value
20576         of the PropertyDescriptor, not the data_source.
20577
20578         * Binding.cs: no need to duplicate the string splitting code here.
20579
20580 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
20581
20582         * Control.cs:
20583           - set_Enabled: OnEnabledChanged is not called if the inherited state 
20584             of the control is not altered, even though  we might be changing the
20585             internal state of the control (#78458)
20586           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
20587             OnEnabledChanged, to allow easy altering of any child window state
20588           - OnEnabledChanged: Added code to enable/disable driver window state
20589           - OnParentEnabledChanged: Instead of firing the event, call 
20590             OnEnabledChanged, which will fire the event and also a) set driver
20591             window state and pass the enabled state to any grandchildren (#78458)
20592
20593 2006-06-19  Jackson Harper  <jackson@ximian.com>
20594
20595         * InternalWindowManager.cs: We don't set the cursor explicitly
20596         thats done via the response to NCHITTESTs.
20597         - Don't need to adjust for titlebar heights anymore, the
20598         coordinates are coming in the correct coordinates now (see peters
20599         last patch).
20600
20601
20602 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
20603
20604         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
20605           being translated relative to whole window, instead of client window.
20606           That caused broken offsets on mouseclick (and caused gas for our
20607           InternalWindowManager)
20608
20609 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
20610
20611         * TextControl.cs:
20612           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
20613           - Undo(): Added replay of cursor move on DeleteChars action; added
20614             calling Undo() again if a recorded cursor move is invalid (to
20615             ensure that some action is performed on Undo)
20616         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
20617
20618 2006-06-16  Jackson Harper  <jackson@ximian.com>
20619
20620         * MdiClient.cs: Instead of just sizing maximized windows when
20621         there is a resize we also have to adjust the Y of minimized
20622         windows, so they stay pinned to the bottom of the mdi container.
20623         - Eliminate separate tracking of the active control, we can just
20624         get this from the controls collection.
20625         - Paint the decorations for the newly activated titlebar so we get
20626         a pretty blue bar.
20627         * InternalWindowManager.cs:
20628         * ThemeWin32Classic.cs: Minimized windows get all three buttons
20629         even if they are a tool window.
20630         
20631 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
20632
20633         * TextControl.cs (Undo): Handle non-existent cursor locations in the
20634           undo buffer, these can happen when text was deleted and the cursor
20635           was recorded first. Since we will also have a recorded cursor
20636           after the delete this is not an issue. (Fixes #78651)
20637
20638 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
20639
20640         * AccessibleObject.cs: Remove dependence on Control.is_selected;
20641           instead properly track control states internally (allows us to
20642           remove is_selected from Control)
20643
20644 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20645
20646         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
20647         whose width is not a multiple of 8.
20648
20649 2006-06-13  Jackson Harper  <jackson@ximian.com>
20650
20651         * MdiClient.cs:  Only maximize the next child if the current one
20652         is maximized.
20653
20654 2006-06-13  Chris Toshok  <toshok@ximian.com>
20655
20656         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
20657         modified.  Also, guard against grid or grid_drawing being null in
20658         Invalidate.
20659
20660         * DataGrid.cs: Reformat tons of getters/setters.  In the
20661         DataMember setter, just call SetNewDataSource instead of
20662         duplicating some of its functionality.  In SetNewDataSource, don't
20663         check ListManager for null, since the property getter creates the
20664         object if needed.
20665
20666         * DataGridTableStyle.cs: don't set TableStyle or call
20667         SetDataGridInternal on the column here, it's done in
20668         GridColumnStylesCollection.Add.
20669
20670         * GridColumnStylesCollection.cs: fix all the explicit interface
20671         implementations to just call our methods.  Nuke AddInternal() and
20672         move the body of it to Add().  Also, add a call to
20673         column.SetDataGridInternal to Add().
20674
20675         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
20676         base()+duplicate code.  Also, use the Format property instead of
20677         format to generate an Invalidate ala MS.  Lastly, create the
20678         textbox here, unconditionally.
20679         (set_Format): call Invalidate.
20680         (get_TextBox): no need to call EnsureTextBox.
20681         (Commit): remove the message box.
20682         (Edit) remove the call to EnsureTextBox.
20683         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
20684         (EnterNullValue): no need to check textbox for null.
20685         (HideEditBox): no need to check textbox for null.
20686         (SetDataGridInColumn): add the textbox to the grid's controls.
20687         (EnsureTextBox): nuke.
20688         
20689 2006-06-13  Jackson Harper  <jackson@ximian.com>
20690
20691         * MdiWindowManager.cs: Hook up to the maximized menus paint event
20692         and redraw the buttons when needed. Unhook when the window is
20693         unmaximized.
20694         * MainMenu.cs: Add an internal Paint event, the mdi window manager
20695         needs this so that it can redraw its buttons when the menu is
20696         repainted.
20697         * InternalWindowManager.cs:
20698         * Form.cs: The method order has changed for DrawMaximizedButtons,
20699         so that it can be a PaintEventHandler.
20700         
20701 2006-06-13  Jackson Harper  <jackson@ximian.com>
20702
20703         * MdiClient.cs: When we close a maximized mdi window, the next mdi
20704         window is activated and maximized, even if it wasn't before.
20705         - When  a new window is activated repaint the decorations of the
20706         old one, so that it no longer has the Active "look" (the blue
20707         titlebar).
20708         * InternalWindowManager.cs: Open up CreateButtons to base classes
20709         so they can recreate the buttons on state changes.
20710         - If a window is maximized give it all three buttons
20711         * MdiWindowManager.cs: Create the titlebar buttons when the state
20712         is changed, this is needed because a toolwindow will not have all
20713         three buttons until it is maximized.
20714
20715 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
20716
20717         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
20718           Fixed bug #78609.
20719
20720 2006-06-12  Jackson Harper  <jackson@ximian.com>
20721
20722         * KeysConverter.cs: Make sure we handle the Ctrl special case
20723         if its the only key.
20724         
20725 2006-06-12  Jackson Harper  <jackson@ximian.com>
20726
20727         * Theme.cs: Add a method to get the size of a managed window
20728         toolbar button.
20729         * InternalWindowManager.cs: Remove the ButtonSize property, this
20730         should be retrieved from the theme.
20731         * MdiWindowManager.cs: Get the button size from the theme
20732         * ThemeWin32Classic.cs: Make the method to get the managed window
20733         titlebar button size public.
20734         - Handle the different button sizes of maximized toolwindows
20735         (should match any maximized window).
20736         - Get the titlebar height from the theme, not the WM (which gets
20737         it from the theme).
20738
20739 2006-06-12  Jackson Harper  <jackson@ximian.com>
20740
20741         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
20742         event down to the mdi window manager.
20743         - Expose some extra stuff to base classes
20744         - Make sure to end the Capture on an NC Mouse up, so that we can
20745         get double clicks properly, and the sizing doens't stick.
20746         - When doing PointToClient contain it in the workable desktop
20747         area, this prevents windows from changing size when the cursor is
20748         pulled outside of the working area while sizing.
20749         * MdiWindowManager.cs: When we get a double click maximize the
20750         window.
20751         - Reset the cursor after handling mode changes.
20752
20753 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
20754
20755         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
20756           current desktop, instead of just assuming a 0, 0 origin. This
20757           is needed for our internal window manager, to know the top
20758           margin of the desktop
20759
20760 2006-06-12  Chris Toshok  <toshok@ximian.com>
20761
20762         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
20763         we need this to get rid of the selected background in the bool
20764         column.
20765         (CancelEditing): move the ConcedeFocus call to above the Abort
20766         call.  Also, set is_changing to false and invalidate the row
20767         header if we were changing before.
20768         (ProcessKeyPreviewInternal): remove, since noone outside this
20769         class calls it anymore.  Roll the code into ProcessKeyPreview.
20770         (EndEdit): remove the internal version.
20771         (InvalidateCurrentRowHeader): make private.
20772
20773         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
20774         Keys.Escape handling (and with it the last call to
20775         DataGrid.EndEdit from outside the class.)
20776
20777
20778 2006-06-12  Chris Toshok  <toshok@ximian.com>
20779
20780         * DataGridTextBox.cs (.ctor): isedit defaults to false.
20781         (OnKeyPress): set isedit to true.
20782         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
20783         already handled by the grid.
20784
20785         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
20786         right.  ugh.
20787         (set_DataSource): SetDataSource always returns true, so stop
20788         putting it in an if statement.
20789         (EndEdit): get rid of some {}'s
20790         (ProcessGridKey): return true in case Keys.Escape.
20791         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
20792         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
20793         PositionChanged, stopped connecting to CurrentChanged.
20794         (GetDataSource): simplify this a bunch.
20795         (SetDataSource): change return type from bool to void.
20796         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
20797         to this, and make sure we don't set ListManager.Position inside
20798         set_CurrentCell.
20799         (OnListManagerItemChanged): if we're passed an actual index,
20800         redraw that row.
20801
20802         * CurrencyManager.cs (set_Position): don't call PullData here.
20803
20804 2006-06-09  Jackson Harper  <jackson@ximian.com>
20805
20806         * TreeNode.cs:  Recalculate the visible order before doing the
20807         Expand/Collapse Below calls, because those calls generate an
20808         expose.
20809         - Reduce calls to the TreeView property, which is mildly expensive
20810         by using a local var.
20811         * Form.cs: Layout the MDI child windows when creating the parent
20812         form.
20813         - Don't use the internal constructor anymore
20814         * MdiClient.cs: use the parent form width/height (if available)
20815         when laying out the child windows, we do this because the
20816         mdiclient isn't docked yet when the initial layout is done.
20817         - Don't need an internal constructor anymore.
20818
20819 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20820
20821         * FileDialog.cs: handle access errors when trying to create a folder
20822         or changing to a directory. No need to initialize out parameters.
20823
20824 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
20825
20826         * FileDialog.cs: Append a number when creating a new folder if the
20827           folder already exists (use parenthesis instead of square brackets)
20828
20829 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
20830
20831         * FileDialog.cs:
20832           - Disabled registry support for windows and added better registry
20833             error checking for other systems (need to investigate why it
20834             works perfectly on my system)
20835           - If a folder already exist show an error MessageBox instead of
20836             trying to create an indexed name.
20837           - Fixed a non intentional typo.
20838
20839 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20840
20841         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
20842
20843 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
20844
20845         * FileDialog.cs: When creating a new folder don't crash if the
20846           folder already exists.
20847
20848 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
20849
20850         * FileDialog.cs: Allmost a complete rewrite.
20851           - added a "virtual" file system that handles the differences
20852             between unix and windows file systems (especially the directory
20853             structure). Moved most of the directory and file handling code
20854             into the vfs.
20855             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
20856             UnixFileSystem and FSEntry.
20857           - Recently used folder/directory, size, location and used file names
20858             (file name ComboBox) are now stored in the registry and get read
20859             before the dialog shows up (fixes part 6 of bug #78446).
20860           - Creation of new folders/directories is now possible (context menu
20861             or ToolBar). Added TextEntryDialog for this that fills in the gap
20862             until ListView.LabelEdit works.
20863           - Fixed cursor handling (bug #78527) and focus handling for
20864             PopupButtonPanel
20865           - Various "Search in" ComboBox enhancements. The content of the
20866             dropdown listbox now almost matches ms.
20867           - Changed the behaviour when the user switches to SpecialFolder
20868             Recent to show the ListView in View.Details.
20869           - Beside using the ToolBar to change the View property of the
20870             file ListView it is now possible to use the context menu too.
20871
20872 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
20873
20874         * ComboBox.cs: Don't create a new ObjectCollection when an item
20875           gets inserted. Just insert the item in the existing object_items
20876           ArrayList.
20877
20878 2006-06-08  Jackson Harper  <jackson@ximian.com>
20879
20880         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
20881         that the treeview and root node checks are done also, this fixes a
20882         regression i caused in the unit tests.
20883
20884 2006-06-07  Wade Berrier <wberrier@novell.com> 
20885
20886         * RichTextBox.cs: More ISO8859-1 -> unicode
20887
20888 2006-06-07  Mike Kestner  <mkestner@novell.com>
20889
20890         * ComboBox.cs : use items to hold highlight/selection so that
20891         collection insertions don't require synchronization.
20892
20893 2006-06-07  Jackson Harper  <jackson@ximian.com>
20894
20895         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
20896         routine.  We now always keep the sized edge at the cursor instead
20897         of computing movement and adjusting rects.  There is one buglet
20898         with this method though when the cursor is moved over area that
20899         the window can not expand too (such as the toolbars on the desktop).
20900
20901 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20902
20903         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
20904         here. Fixes crash on startup in AlbumSurfer.
20905
20906 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
20907
20908         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
20909           values
20910
20911 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20912
20913         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
20914         statement to avoid calling XNextEvent which will block if another thread
20915         took the event that we were expecting. Fixes bug #78605.
20916
20917 2006-06-07  Mike Kestner  <mkestner@novell.com>
20918
20919         * ListView.cs : isolated checkbox clicking from the selection logic.
20920         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
20921
20922 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20923
20924         * Form.cs: Check that the value passed to Form.DialogResult
20925         is a valid enum value.
20926
20927 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20928
20929         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
20930         Computer'. Clicking it in the network view goes to 'My Computer'.
20931         Added CIFS filesystem type. Display the mount point of filesystems.
20932         Avoid duplicate mount points (happens for me with CIFS);
20933
20934 2006-06-06  Jackson Harper  <jackson@ximian.com>
20935
20936         * InternalWindowManager.cs: Draw the maximized windows buttons
20937         when resizing.
20938
20939 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20940
20941         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
20942         all other dialogs. Fixes bug #78585.
20943
20944 2006-06-06  Mike Kestner  <mkestner@novell.com>
20945
20946         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
20947         Only invalidate checkbox on checkstate changes to avoid flicker.
20948         * ListBox.cs : avoid unselect/select when clicking selected item.
20949         avoid reselection flicker for already multiselected items.
20950         Fixes #78382.
20951
20952 2006-06-06  Jackson Harper  <jackson@ximian.com>
20953
20954         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
20955         the parent form so that the menu is removed if needed.
20956
20957 2006-06-06  Mike Kestner  <mkestner@novell.com>
20958
20959         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
20960         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
20961
20962 2006-06-06  Mike Kestner  <mkestner@novell.com>
20963
20964         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
20965
20966
20967 2006-06-06  Jackson Harper  <jackson@ximian.com>
20968
20969         * Control.cs: Use the property (instead of the field) to get the
20970         default cursor so it is instantiated correctly.
20971         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
20972         resizes so we need to manually repaint the window decorations here.
20973         - Set the titlebar button locations as soon as they are created,
20974         otherwise they are not set correctly on win32.
20975         
20976 2006-06-06  Chris Toshok  <toshok@ximian.com>
20977
20978         * CurrencyManager.cs (set_Position): call PullData before
20979         OnCurrentChanged.
20980         (AddNew): after calling IBindingList.AddNew, update our
20981         listposition, and call OnCurrentChanged/OnPositionChanged (without
20982         calling PullData).
20983         (OnCurrentChanged): remove the call to PullData from here.
20984         (OnItemChanged): remove the call to PushData from here.
20985         (OnPositionChanged): change the test from == null to != null to
20986         match the other methods.
20987         (ListChangedHandler): the grossest part of the patch.  Implement
20988         this such that it passes the unit tests in CurrencyManagerTest and
20989         the output more or less matches that of MS's implementation.
20990  
20991 2006-06-06  Mike Kestner  <mkestner@novell.com>
20992
20993         * ListView.cs : only update check state on single click.
20994         * ThemeWin32Classic.cs : fix focus drawing for details view without
20995         fullrowselect.  Fixes #78454.
20996         * XplatUIX11.cs : fix for double click emission.
20997
20998 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
20999
21000         * PropertyGridView.cs : Applied Atsushi's patch to fix
21001         font dialog bug  (#78197).
21002
21003 2006-06-05  Jackson Harper  <jackson@ximian.com>
21004
21005         * TreeNode.cs: Compute the next node for expanding/collapsing
21006         correctly. We now factor in nodes without a NextNode
21007         correctly. (Fixes somes cases in nunit-gui).
21008         * InternalWindowManager.cs: Set the bounds when updating the
21009         virtual position of a tool window.
21010         
21011 2006-06-05  Chris Toshok  <toshok@ximian.com>
21012
21013         * DataGrid.cs: rename cached_currencymgr to list_manager.
21014         (set_CurrentCell): move SetCurrentCell code here, and clean it up
21015         some.
21016         (CurrentRow, CurrentColumn): single accessors so we can make the
21017         cursor movement code a lot easier to understand.
21018         (CurrentRowIndex): implement this in terms of CurrentRow.
21019         (BeginEdit): clean this up a bit.
21020         (CancelEditing): sort out the is_editing/is_changing/is_adding
21021         stuff a little.
21022         (EndEdit): minor changes.
21023         (OnKeyDown): add a comment about a (most likely) unnecessary
21024         check.
21025         (OnMouseDown): cancel editing when we click on a row header.  And
21026         use the CurrentRow setter, not CurrentCell.
21027         (ProcessDialogKey): directly call ProcessGridKey.
21028         (UpdateSelectionAfterCursorMove): factor out this common block of
21029         code (it's used everywhere that we move the cursor by updating row
21030         or column).
21031         (ProcessGridKey): pretty substantial overhaul.  Use the
21032         CurrentRow/CurrentColumn properties to make the code a lot more
21033         readable.  Only use the CurrentCell property when we have to
21034         modify both row and column at once.  Tab behavior is still broken,
21035         and Delete is untested.
21036         (Select): if we have no selected rows, set selection_start to
21037         @row.
21038         (EditCurrentCell): rename EditCell this.  It was only ever invoked
21039         with CurrentCell as the arg, so drop the arg and rename it.
21040
21041         * DataGridColumnStyle.cs: clean up the constructors a little, and
21042         drop CommonConstructor().
21043
21044         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
21045         actually get notified when the user hits it.
21046         (ProcessKeyMessage): *substantially* simplify this method.
21047         There's no reason (that I can see) for the textbox to be making
21048         calls into the datagrid at all.  Remove all of them but the ones
21049         for Enter handling.  those will take some more work.
21050
21051         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
21052         calling HideEditBox.
21053         (HideEditBox): if we have an active textbox, render it invisible
21054         without causing a re-layout of the datagrid.
21055
21056 2006-06-05  Mike Kestner  <mkestner@novell.com>
21057
21058         * ListView.cs : fix NRE crasher when focuseditem is cleared by
21059         collection changes by resetting it to Items[0].  Fixes #78587.
21060
21061 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21062
21063         * MessageBox.cs: if the height of the text is larger than the icon_size,
21064         use that. Fixes bug #78575.
21065
21066 2006-06-05  Jackson Harper  <jackson@ximian.com>
21067
21068         * TreeView.cs: Fix line drawing when scrolling.  To do this each
21069         node is basically responsible for drawing its entire horizontal
21070         area.  When drawing a node it draws its parent node lines if
21071         needed.
21072         - Adjust the clip area to the viewport rectangle
21073         - Fix Left/Right key handling to match MS. (It expand/collapses
21074         and moves to parents/first child but does not move selection to
21075         sibling nodes).
21076         - Fix SetTop to work with new bound calculation code
21077         - When scrollbars are no longer needed we need to reset scrolling
21078         vars and recalculate the visible order so the redraw is correct
21079         * TreeNode.cs: We can't expand/collapse nodes with no children.
21080
21081 2006-06-03  John Luke  <john.luke@gmail.com> 
21082
21083         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
21084         so the colors work without dev packages
21085         
21086 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
21087
21088         * Control.cs 
21089           - Select: Implemented to just use activate. Seems to match MS 
21090             behaviour closest. Documented to only do actual control walking 
21091             based on it's parameters if in a container control so I moved 
21092             the code there.
21093           - Removed selection check logic from our internal Select() method
21094         * ContainerControl.cs:
21095           - Select: Moved selection logic from Control here, since MS documents
21096             that containers obey the bool arguments. No longer calling base
21097
21098 2006-06-02  Jackson Harper  <jackson@ximian.com>
21099
21100         * TreeView.cs: If the selected node isn't changed when we get
21101         focus update the previously selected node so that we see the
21102         selection box.
21103
21104 2006-06-02  Mike Kestner  <mkestner@novell.com>
21105
21106         * ComboBox.cs: restructure grab and general mouse event handling.
21107         Make the composite control raise mouse events like it was a single
21108         control for leaves/enters/motion/up/down events.  fix dropdown list
21109         coordinate mangling and refactor it into the scrollbar subclass to
21110         reduce code duplication.  Fixes #78282 #78361 and #78457.
21111
21112 2006-06-02  Mike Kestner  <mkestner@novell.com>
21113
21114         * ScrollBar.cs: remove Capture setting/clearing, as it happens
21115         automatically in the Control.WndProc.
21116
21117 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21118
21119         * FileDialog.cs: fix crash when running SharpChess, which sets the
21120         FilterIndex to 2 with only one Filter.
21121
21122 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21123
21124         * ToolBar.cs: add SizeSpecified property.
21125         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
21126         try to figure out our real size, otherwise fallback to what the
21127         container says.
21128
21129 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
21130
21131         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
21132         * Control.cs (WndProc): MS always calls the DefWndProc to pass
21133           up the event
21134
21135 2006-06-01  Mike Kestner  <mkestner@novell.com>
21136
21137         * ListView.cs: revamp the focus management in ListView.  It still
21138         causes churn of LostFocus/GotFocus emissions on clicks, but it's
21139         better than not handling focus at all.  Will revisit when pdb feels
21140         the general focus handling is solid.  Fixes #78526.
21141
21142 2006-06-01  Jackson Harper  <jackson@ximian.com>
21143
21144         * TreeView.cs: Set the default border style in the constructor.
21145         - Move painting to use OnPaintInternal instead of capturing
21146         WM_PAINT, this is the correct way of doing things
21147         - UpdateBelow shouldn't invalidate the scrollbar area
21148         - Cap the top on update below in case the node was above the top
21149         of the viewport rectangle.
21150         - ExpandBelow and Collapse below need to obey Begin/End Update.
21151         * TreeNode.cs: Make is_expanded internal so the treenode
21152         collection can change it without firing the whole event chain.
21153         * TreeNodeCollection.cs: When clearing all the child nodes make
21154         sure to recalc the visible order.
21155         - Improve algo for remove the top node
21156
21157 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
21158
21159         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
21160           SendMessage directly calling window procedures, which in turn might
21161           call SetFocus()
21162
21163 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
21164
21165         * Control.cs: Don't handle WM_SETFOCUS if the same window already
21166           has focus (works around X11 sending a FocusIn after our SetFocus)
21167         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
21168
21169 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
21170
21171         * Mime.cs: Fix for the NET_2_0 build.
21172           NameValueCollection needs StringComparer now.
21173
21174 2006-05-31  Chris Toshok  <toshok@ximian.com>
21175
21176         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
21177         return (via an out parameter) the starting X of the column.
21178         (UpdateVisibleColumn): track change to FromPixelToColumn.
21179         (HitTest): add a ColumnResize case here.
21180         (DrawResizeLine): new function, probably poorly named.
21181
21182         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
21183         only need to keep one reference.
21184         (set_ListManager): same.
21185         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
21186         Also, add support for HitTestType.ColumnResize.
21187         (OnMouseMove): add column resize behavior here, and change the
21188         cursor to the correct one as we move around the datagrid.
21189         (OnMouseUp): terminate the column resize if we're resizing.
21190         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
21191         for the current cell.
21192         (ConnectListManagerEvents): use cached_currencymgr.
21193         (DisconnectListManagerEvents): fill this in, using
21194         cached_currencymgr.
21195         (SetCurrentCell): remove cached_currencymgr_events handling.
21196         (SetDataMember): only call DisconnectListManagerEvents if
21197         cached_currencymgr is != null.
21198         (SetDataSource): same.
21199         (OnListManagerCurrentChanged): cached_currencymgr_events ->
21200         cached_currencymgr.
21201
21202 2006-05-31  Jackson Harper  <jackson@ximian.com>
21203
21204         * BindingManagerBase.cs: Remove somedebug code that creeped into
21205         SVN.
21206         * TreeNode.cs: We get the indent level dynamically right now, so
21207         don't track it as a member.
21208         * TreeNodeCollection.cs: Make sure all nodes added to the list
21209         have parents, treeviews/topnodes setup properly.
21210         - Don't attempt to track indent level.
21211
21212 2006-05-30  Jackson Harper  <jackson@ximian.com>
21213
21214         * BindingContext.cs: Create the currency manager tables here.
21215         This allows us to more easily create null tables (when bad data
21216         members are used), and more easily create related currency
21217         managers.
21218         * CurrencyManager.cs: All the table creation stuff is done by the
21219         binding context now.
21220         - Current should throw an exception if listposition is -1.
21221         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
21222         been bound yet.
21223
21224 2006-05-30  Mike Kestner  <mkestner@novell.com>
21225
21226         * ListView.cs: allow reexpansion of zero-width column headers.
21227         Fixes #78528.
21228
21229 2006-05-28  Chris Toshok  <toshok@ximian.com>
21230
21231         * CurrencyManager.cs (get_Current): after the late binding
21232         listposition = -1 fix, we need to guard against it here and return
21233         null, otherwise we raise an exception (which is swallowed
21234         elsewhere, and breaks datagrid databinding.)
21235
21236 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
21237
21238         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
21239           than WM_SYSKEY, don't throw if get something unexpected (#78507)
21240
21241 2006-05-26  Jackson Harper  <jackson@ximian.com>
21242
21243         * ControlPaint.cs:
21244         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
21245         values, it's faster and it's all we care about (we don't care if
21246         the names aren't equal).
21247         * KeyboardLayouts.cs: Eliminate some dead code.
21248         - Lazy init things
21249         * X11Keyboard.cs: Lazy init keyboard detection.
21250         - Cleanup access modifiers a little.
21251
21252 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
21253
21254         * XplatUIX11.cs: Once again, attempting to get layout just right.
21255
21256 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
21257
21258         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
21259           the sizes of each link section, that will result in sizes that
21260           match DrawString's layout (Fixes #78391)
21261
21262 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
21263
21264         * FileDialog.cs: If AddExtension property is true autocomplete the
21265           extensions in SaveFileDialog correctly. Fixes bug #78453.
21266           Set MyNetwork and MyComputer to "C:\" for windows. This should
21267           fix part 8 of bug #78446 for now.
21268
21269 2006-05-26  Chris Toshok  <toshok@ximian.com>
21270
21271         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
21272         invalidate the current row header if we need to, but presumably
21273         we'll invalidate the row corrsponding to the bounds or
21274         editingControl.
21275         (GridHScrolled): switch back to this method, as it's part of the
21276         public api.  *sigh*.
21277         (GridVScrolled): same.
21278         (OnMouseWheel): hack up something that more or less works.  Call
21279         GridHScrolled/GridVScrolled directly, instead of duplicating much
21280         of their code here.
21281         (EnsureCellVisibility): reinstate a bunch of this code, since we
21282         can't just set the scrollbar Value and expect to do all the work
21283         in the ValueChanged handler.  Also, Call Update() after scrolling
21284         in one direction so the other XplatX11.ScrollWindow call has the
21285         proper stuff in the proper places.
21286         (EditCell): set is_editing to true before calling .Edit.
21287
21288         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
21289         don't bother comparing first.
21290         (OnKeyPress): call grid.ColumnStartedEditing before calling
21291         base.OnKeyPress.  this will set is_changing and invalidate the row
21292         header if necessary.
21293         (ProcessKeyMessage): for WM_CHAR messages, call
21294         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
21295         and WM_KEYDOWN.
21296         
21297         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
21298         it's done in the DataGrid.
21299         (NextState): call grid.ColumnStartedEditing, which takes care of
21300         invalidating the row header (and setting is_changing).
21301
21302         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
21303         here.  it's done in the DataGrid.
21304
21305 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21306
21307         * Control.cs: allow changing the cursor when the mouse position is
21308         out of bounds but Capture is set.
21309         * LinkLabel.cs: handle the case when the mouse button is pressed on the
21310         linklabel but released somewhere else.
21311
21312 2006-05-25  Jackson Harper  <jackson@ximian.com>
21313
21314         * TreeView.cs: When we get focus if there is no selected node make
21315         it the top node
21316         - Remove some uneeded setup code from Draw.
21317         * TreeNodeCollection.cs: If the tree doesn't have a top node when
21318         a new node is inserted make the new node the top.
21319         * XplatUIX11.cs:
21320         * Timer.cs: Use Utc time so that no local time zone stuff needs to
21321         be used (should be faster).
21322         
21323 2006-05-25  Chris Toshok  <toshok@ximian.com>
21324
21325         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
21326         problem with the last commit.
21327
21328 2006-05-25  Chris Toshok  <toshok@ximian.com>
21329
21330         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
21331         need the invalidate call here, while scrolling right-to-left via
21332         the left arrow key (i.e. moving the editing cell while scrolling).
21333
21334         * DataGrid.cs (.ctor): remove the initialization of
21335         ctrl_pressed/shift_pressed.  We no longer track them using key
21336         up/down handlers, but by using Control.ModifierKeys.  Also, switch
21337         to using ValueChanged handlers on the scrollbars instead of
21338         Scrolled event handlers.  This simplifies a bunch of the scrolling
21339         code.
21340         (GridHValueChanged): rename from GridHScrolled, and change it to
21341         work with the new event args.
21342         (GridVValueChanged): same.
21343         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
21344         (OnMouseWheel): actually scroll the datagrid.  Don't change the
21345         selected cell.
21346         (ProcessGridKey): correct all the keyboard navigation stuff I
21347         could find.  Ctrl up/down/left/right/home/end work now.
21348         (EnsureCellVisibility): correct method name spelling.  Also,
21349         simplify this a touch by not explicitly calling the
21350         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
21351         scrollbar value.
21352         (OnKeyUpDG): no need for this method now.
21353         
21354 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21355
21356         * LinkLabel.cs: display the OverrideCursor when hovering the label.
21357         Fixes bug #78392.
21358
21359 2006-05-25  Chris Toshok  <toshok@ximian.com>
21360
21361         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
21362         r61019.
21363
21364 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
21365
21366         * Application.cs: Moved setting of is_modal and closing to before
21367           we create the control, to allow the event handlers called as a
21368           result of creation affect closing. Also removed Gonzalo's previous
21369           change to setting DialogResult, the behaviour has been moved to 
21370           Form.ShowDialog()
21371         * Form.cs: 
21372           - ShowDialog(): Removed explicit creation of the form, let RunLoop
21373             handle it instead
21374           - ShowDialog(): If no dialog result is set, we need to return Cancel
21375           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
21376             the close is cancelled
21377
21378 2006-05-25  Jackson Harper  <jackson@ximian.com>
21379
21380         * StatusBar.cs: We only need to update the sizes of the other
21381         panels when we have auto size contents.  Also we are only updating
21382         the contents of the panel, not the borders, so compensate for the
21383         border width (TODO: get this width from the theme somehow).
21384         * TreeView.cs: Scrollable is true by default
21385         - Use invalidate instead of refresh where needed
21386         - Factor the scrollable value into scrollbar updating
21387         - Update the scrollbars if the Scrollable property is altered
21388         - Update the selected node if its ImageIndex is changed
21389         - Handle null nodes in UpdateNode (mainly so we don't have to
21390         check if selected is null when updating it
21391         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
21392         are factored into the visible count
21393         - Use VisibleCount for clarity in the code
21394         - When the font is changed we need to recurse through all the
21395         nodes and invalidate their sizes
21396         
21397 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21398
21399         * Application.cs: set the DialogResult to fixed when the main form is
21400         hidden or destroyed while being modal.
21401
21402 2006-05-25  Miguel de Icaza  <miguel@novell.com>
21403
21404         * Theme.cs: Use Tangoified messagebox icons. 
21405
21406         (GetSizedResourceImage): Also cope with width = 0 and do not
21407         trigger a warning in that case (0 means "give me your icon from
21408         the resouce, no special size needed).
21409
21410 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
21411
21412         * Application.cs: Leave runloop if the the main modal form is 
21413           hidden (fixes #78484)
21414
21415 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
21416
21417         * BindingContext.cs : reject null datasource in Contains() and
21418           Item[].
21419         * CurrencyManager.cs : check data_member validity when data_source
21420           is dataset. When it is late binding, the initial position is -1.
21421
21422 2006-05-24  Jackson Harper  <jackson@ximian.com>
21423
21424         * TreeNodeCollection.cs: Dont't recalculate the visible order on
21425         inserted nodes that aren't visible.  This changes the
21426         max_visible_order which confuses scrollbar settings.
21427         - Use the enumerator to get the prev node instead of duplicating
21428         code.
21429         * TreeView.cs: Use new method for setting scrollbar values
21430         - Don't set the bounds every time the scrollbar is updated
21431         - When updating below the root node use an invalidate instead of a
21432         refresh to prevent the child controls (scrollbars) from being
21433         refreshed. (UpdateBelow still needs to be reworked anyways).
21434         - Reenable SetBottom now that visible orders are set correctly,
21435         added some debug code incase we ever get bad values there again.
21436         - Set the scrollbar max to 2 less then the max value, this
21437         compensates for the max value being one above the node count, and
21438         for scrollbars adding one extra "notch".
21439         - When drawing image nodes if there is an imagelist we draw the
21440         first image in the list if the supplied image index is out of the
21441         image list's bounds.
21442         
21443 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
21444
21445         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
21446           we receive a size change from the WM (Fixes #78503)
21447
21448 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
21449
21450         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
21451           rectangle (Fixes #78501)
21452
21453 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
21454
21455         * ButtonBase.cs: 
21456           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
21457             as a bitfield.
21458           - Fixed MouseMove to no longer switch pressed state unless the left
21459             mouse button is pressed. Atsushi provided the original patch (#78485)
21460           
21461 2006-05-24  Jackson Harper  <jackson@ximian.com>
21462
21463         * ScrollBar.cs: New internal methods that allow us to change a
21464         couple values on the scrollbar (the most common case is maximum
21465         and large change) without getting multiple invalidates.
21466
21467 2006-05-24  Chris Toshok  <toshok@ximian.com>
21468
21469         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
21470         (Edit): save off the original state in oldState, and set
21471         grid.is_editing to true.
21472         (OnKeyDown): abort editing if escape is pressed.  also, call
21473         NextState if space is pressed.
21474         (OnMouseDown): call NextState.
21475         (NextState): factor out shared code from OnKeyDown and OnMouseDown
21476         here.  Also, only invalidate the row header once (on the initial
21477         is_changing switch) to save on redraws.
21478
21479 2006-05-24  Chris Toshok  <toshok@ximian.com>
21480
21481         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
21482         if the value in the cell is different than it was before.  This
21483         keeps us from triggering a layout when we move around a datarid
21484         with a highlighted cell.
21485         (Edit): suspend layout when creating/positining the text box, and
21486         resume passing false so we don't ever actually re-layout.
21487         (ReleaseHostedControl): same.
21488         (EnsureTextBox): reformat slightly, and set WordWrap to false.
21489
21490         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
21491         control-key sequences should go to the datagrid - remove that
21492         lock.  Also, modify the conditions under which we move between
21493         cells when moving the cursor within a cell, and remove the "this"
21494         and "base" from field accesses.  We weren't even consistent, given
21495         they all were in the base class.
21496
21497 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
21498
21499         * Binding.cs : (.ctor)
21500           An obvious NRE fix for BindingTest.CtorNullTest().
21501
21502 2006-05-23  Chris Toshok  <toshok@ximian.com>
21503
21504         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
21505         them between lines.  This fixes some quirks editing cells in the
21506         datagrid.
21507
21508 2006-05-23  Jackson Harper  <jackson@ximian.com>
21509
21510         * TreeView.cs: Use begin/end update when doing expand/collapse all
21511         so that we don't get flicker on the scrollbar.
21512
21513 2006-05-23  Jackson Harper  <jackson@ximian.com>
21514
21515         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
21516         treenode calculations to be independant of the painting code. To
21517         do this nodes track a visible order which is calculated by the
21518         treeview.
21519         - Call new methods for expanding/collapsing nodes.  These methods
21520         use scrollwindow so we don't have to update everything below the
21521         node.
21522         * TreeView.cs: Refactored drawing and scrolling code.  We don't
21523         need to update nodes when drawing anymore or calculate scrollbar
21524         stuff.
21525         - Added new methods for expanding/collapsing nodes. These methods
21526         use ScrollWindow so as to not have to redraw all the nodes below.
21527         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
21528         we add/remove nodes or sort.
21529         - Handle removing the selected and the top node properly.
21530
21531 2006-05-23  Chris Toshok  <toshok@ximian.com>
21532
21533         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
21534         maybe this should actually happen in the datagrid code?
21535         (EndEdit): no need to invalidate anything, given that
21536         ReleaseHostedControl causes the datagrid to relayout, which
21537         invalidates everything anyway.
21538
21539         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
21540         in SetCurrentCell).
21541         (set_SelectionBackColor): call InvalidateSelection instead of
21542         Refresh.
21543         (set_SelectionForeColor): same.
21544         (BeginEdit): Flesh this out a bit.
21545         (CancelEditing): only do any of this if we're editing/adding.
21546         (EndEdit): same.
21547         (OnMouseDown): there's no need to cancel editing here, it's done
21548         in SetCurrentCell.
21549         (SetCurrentCell): only invalidate the current row header if it's a
21550         different row than the new one.
21551         (ShiftSelection): fix this to work like MS does.
21552         (ResetSelection): factor out the invalidation of selected_rows to
21553         InvalidateSelection.
21554         (SetDataSource): cancel any editing that's going on.
21555
21556         * DataGridColumnStyle.cs
21557         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
21558         call the non-interface version.
21559
21560         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
21561         header rectangle with the clip rectangle so we don't redraw the
21562         entire header for just a small area.  Gets rid of the last flicker
21563         when horizontally scrolling.
21564         (DataGridPaintRow): same.
21565
21566 2006-05-23  Mike Kestner  <mkestner@novell.com>
21567
21568         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
21569         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
21570         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
21571         Critical bug report.
21572
21573 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
21574
21575         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
21576           and this fixes #78493
21577
21578 2006-05-23  Miguel de Icaza  <miguel@novell.com>
21579
21580         * Theme.cs (GetSizedResourceImage): Scale images if the proper
21581         size is not found.  
21582         
21583         * FileDialog.cs: Do not change the background for the side bar as
21584         it wont work nicely with the theme, and also reduces the artifacts
21585         in rendering the icons (which I want to fix too).
21586
21587         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
21588         resources, not resgen resources. 
21589
21590         (PlatformDefaultHandler): Pull images using the new API.
21591
21592 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
21593
21594         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
21595           a reference to the hwnd and will not remove it unless there are
21596           no pending exposures (fixes #78341)
21597         * XplatUI.cs: Improved debug
21598
21599 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
21600
21601         * MenuAPI.cs : don't handle OnClick event when it was not the left
21602           button. Fixed bug #78487.
21603
21604 2006-05-23  Mike Kestner  <mkestner@novell.com>
21605
21606         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
21607         prefer submenus to the top menu for item lookup, to avoid popping down
21608         top-row items.
21609
21610 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
21611
21612         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
21613           Graphics.FillRectangle as the visual results are really bad (even
21614           on win). We now draw perfect arrows (and perfect shadows when the
21615           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
21616           Pen.DashPattern to draw the dots of each line.
21617
21618 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
21619
21620         * FileDialog.cs: Update the filename combobox when navigating through
21621           the ListView with the cursor keys. Fixes part 7 of bug #78446.
21622
21623 2006-05-22  Mike Kestner  <mkestner@novell.com>
21624
21625         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
21626         Fixes #78463.
21627
21628 2006-05-22  Mike Kestner  <mkestner@novell.com>
21629
21630         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
21631         requests. Fix a misspelled parameter and a copy paste exception error
21632         in Select.
21633
21634 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
21635
21636         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
21637           to get the same width/height (5/13) on X11 as the default font has on
21638           win32. This means that our DefaultFont emSize is smaller than the 
21639           the MS SWF equivalent (even thought the width/height stays the same)
21640
21641 2006-05-20  Jackson Harper  <jackson@ximian.com>
21642
21643         * MdiClient.cs:
21644         * MdiWindowManager.cs:
21645         * InternalWindowManager.cs: Make sure to use the border width from
21646         the theme.
21647
21648 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
21649
21650         * PrintDialog.cs: Implements printer details
21651
21652 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
21653
21654         * FileDialog.cs: Added focus handling for PopupButtonPanel.
21655           Fixes part 1 and 2 of bug #78446
21656
21657 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
21658
21659         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
21660           instead of sticking to the first ever calculated value
21661
21662 2006-05-19  Mike Kestner  <mkestner@novell.com>
21663
21664         * ComboBox.cs: fix mouse motion selection to use MousePosition and
21665         PointToClient, since Capture is set. Fixes #78344.
21666
21667 2006-05-19  Mike Kestner  <mkestner@novell.com>
21668
21669         * ListView.cs: match MS behavior in Details view where items are not
21670         drawn if Columns.Count == 0. 
21671         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
21672         Use a separate pen to draw the check, since changing the width affects
21673         the box as well.  Fixes #78454.
21674
21675 2006-05-18  Miguel de Icaza  <miguel@novell.com>
21676
21677         * ListView.cs: ArgumentOutOfRangeException, single versions of the
21678         exception should throw the name of the invalid argument.
21679
21680         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
21681         there are no files listed. 
21682
21683 2006-05-18  Jackson Harper  <jackson@ximian.com>
21684
21685         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
21686         up.
21687
21688 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
21689
21690         * Control.cs: Brought back our old UpdateZOrder method as a private
21691           function and switched our calls from UpdateZOrder to the new one.
21692           This fixes the Paint.Net canvas disappearing bug.
21693
21694 2006-05-18  Jackson Harper  <jackson@ximian.com>
21695
21696         * Theme.cs:
21697         * ThemeWin32Classic.cs:
21698         * InternalWindowManager.cs: Move the drawing into the theme,
21699         expose everything the theme should need from the window manager.
21700
21701 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
21702
21703         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
21704           from the call to NativeWindow to avoid walking up the parent chain
21705           further than needed (speeds up setting cursors and avoids setting
21706           the wrong cursor if a parent has another cursor defined)
21707         * Cursor.cs: When loading an icon as cursor, MS uses the center of
21708           the icon as hotspot, not what's contained as hotspot in the icon
21709           file. This fixes the perceived drawing offset seen with Paint.Net
21710         
21711 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
21712
21713         * XplatUIX11.cs: 
21714           - Store the calculated rectangle in Hwnd object and use it when 
21715             setting the client size
21716           - Force Toolwindows to always be type Dock, to ensure they're on top
21717
21718 2006-05-18  Mike Kestner  <mkestner@novell.com>
21719
21720         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
21721         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
21722         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
21723         Substantial refactoring to remove confusing nested classes. Coding
21724         standard and Get+Set->property refactorings.  Shift to index based
21725         highlighting in ComboListBox instead of constantly using IndexOf and
21726         Items[]. Add invalidations on resize for DropDownList to fix ugliness
21727         in FileDialog growth.  Draw borders manually since Simple mode needs
21728         to look like two independent controls.  Make listbox border
21729         conditional to DropDownStyle.  Improved OwnerDraw support.
21730
21731 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
21732
21733         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
21734         Don't set the disposed graphics to null, so we can throw the "right"
21735         exception if the graphics is reused later (added a flag to avoid 
21736         double disposing). Some behaviours are different under 2.0 and are
21737         filled under bug #78448.
21738
21739 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
21740
21741         * Control.cs: When double-buffering is enabled, we need to reset
21742           our graphics context between paint calls. Otherwise, any 
21743           transformations and other alterations on the context will 
21744           become cumulative (#77734)
21745
21746 2006-05-18  Mike Kestner  <mkestner@novell.com>
21747
21748         * ListView.cs: do focused item selection like MS on clicks. 
21749         Rework focus handling for ItemControl so LostFocus invalidates as
21750         well.
21751         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
21752         the ListView ItemControl has focus.
21753
21754 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
21755
21756         * XplatUIX11.cs: If client_window ends up being width or height zero
21757           due to border settings, move it off window inside whole_window (#78433)
21758
21759 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
21760
21761         * Mime.cs: Shrink the mime file cache correctly.
21762
21763 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
21764
21765         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
21766
21767 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
21768
21769         * XplatUIX11.cs (AddExpose): More sanity checks
21770
21771 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
21772
21773         * XplatUIX11.cs:
21774           - AddExpose: Don't add expose ranges outside the size of our
21775             window
21776           - Cast opacity values to Int32 to avoid crashes with certain
21777             values
21778           - Added disabled code paths that protect against illegal cross-
21779             thread painting (Developers.exe)
21780
21781 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
21782
21783         * ProgressBar.cs: Invalidate the control when it's resized
21784           since block size is based on control size. (#78388)
21785
21786 2006-05-16  Miguel de Icaza  <miguel@novell.com>
21787
21788         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
21789         of setting the incoming argument to the "reset" value, we set the
21790         this.datamember to string.empty (before we were invalidating the
21791         incoming data).   
21792
21793         Fixes 78420
21794
21795 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
21796
21797         * Form.cs: Only apply transparency settings after the form
21798           is created. (Fixes #77800)
21799
21800 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
21801
21802         * ApplicationContext.cs: Grab the HandleDestroyed event so
21803           we know when to fire OnMainFormClosed 
21804
21805 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
21806
21807         * Application.cs: Introduced sub-class to allow tracking of
21808           threads and centralized triggering of the event mess for
21809           ThreadExit, AppExit, etc..  (#76156)
21810
21811 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
21812
21813         * MimeIcon.cs:
21814           - Do not return a null icon index value for a mime subclass.
21815             Instead try the main mime type class too.
21816           - Seems that some newer distributions don't have a link to some
21817             gnome default icons anymore. So check the default gnome dir too.
21818           
21819
21820 2006-05-16  Jackson Harper  <jackson@ximian.com>
21821
21822         * MdiClient.cs: Don't paint the parent background image if we have
21823         our own background image.
21824
21825 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
21826
21827         * Control.cs:
21828           - PerformLayout: Do not shrink space filled by DockStyle.Fill
21829             controls, all filled controls are supposed to overlap (#78080)
21830           - UpdateZOrder is supposed to update the control's z-order in the
21831             parent's z-order chain. Fixed to behave like that
21832           - BringToFront: Removed obsolete code
21833           - SendToBack: Simplyfied
21834           - SetChildIndex: Trigger layout calculations when Z-order changes
21835             since layout is done by z-order
21836
21837 2006-05-16  Chris Toshok  <toshok@ximian.com>
21838
21839         [ fixes bug #78410 ]
21840         * DataGrid.cs (set_AlternatingBackColor): use
21841         grid_drawing.InvalidateCells instead of Refresh().
21842         (set_BackColor): call grid_drawing.InvalidateCells.
21843         (set_BackgroundColor): use Invalidate instead of Refresh.
21844
21845         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
21846         invalidate the cell area.
21847
21848 2006-05-15  Chris Toshok  <toshok@ximian.com>
21849
21850         [ fixes bug #78011 ]
21851         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
21852         on to DataGridPaintRow.
21853         (DataGridPaintRow): take a clip argument, and only draw the cells
21854         which intersect it.  same with the not_usedarea.
21855
21856         * Theme.cs (DataGridPaintRow) add @clip parameter.
21857
21858         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
21859         XplatUI.ScrollWindow.
21860         (ScrollToRow): same.
21861
21862         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
21863         with last column which was causing a gray swath to appear with the
21864         XplatUI.ScrollWindow code.
21865
21866 2006-05-15  Chris Toshok  <toshok@ximian.com>
21867
21868         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
21869         use XplatUI.ScrollWindow.
21870         (VerticalScrollEvent): use XplatUI.ScrollWindow.
21871
21872 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
21873
21874         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
21875
21876 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
21877
21878         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
21879           file since there are no equivalent X11 cursors
21880
21881 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
21882
21883         * MonthCalendar.cs : DateTimePicker should reflect selected date
21884           on mouse*up*, not mouse*down*. Fixed originally reported part of
21885           bug #76474.
21886
21887 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
21888
21889         * TabControl.cs : When argument index is equal or more than tab
21890           count, just ignore. Fixed bug #78395.
21891
21892 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
21893
21894         * Control.cs: Dispose all child controls when control is diposed (#78394)
21895
21896 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
21897
21898         * ColorDialog.cs: Finally it is possible to select the color with
21899           the text boxes
21900
21901 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
21902
21903         * PrintDialog.cs: Fix typo
21904
21905 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
21906
21907         * PrintDialog.cs: PrintDialog is not resizable
21908         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
21909           color. Made some ToolBar drawing methods protected virtual.
21910
21911 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
21912
21913         * PrintDialog.cs: Implementation of the PrintDialog
21914
21915 2006-05-12  Chris Toshok  <toshok@ximian.com>
21916
21917         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
21918         thumb, instead use MoveThumb.  This has the side effect of making
21919         most of the other thumb moving machinery use MoveThumb as well.
21920         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
21921         need to actually invalidate the rectangle where the new thumb will
21922         go.
21923         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
21924         We force an Update() after, so it's not as fast as it could be,
21925         but at least there's zero flicker and no droppings.
21926         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
21927         (UpdateThumbPos): add another argument (dirty), which says whether
21928         or not to calculate/add dirty regions which we later invalidate.
21929         For cases where we know we're going to use MoveThumb, we pass
21930         false for this.  Otherwise, pass true.
21931
21932 2006-05-12  Jackson Harper  <jackson@ximian.com>
21933
21934         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
21935         the status bar.
21936         
21937 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
21938
21939         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
21940           and GetClipRegion methods and UserClipWontExposeParent property.
21941         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
21942           overriding UserClipWontExposeParent property, setting to false, since
21943           Win32 handles the required expose messages to draw our clipped parent
21944           areas internally
21945         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
21946           PaintEventStart to set the user clip region if set.
21947         * Control.cs: 
21948           - Now internally tracking the Region for the control since we need to
21949             store it if the handle is not yet created and only set it when it
21950             becomes created. Before setting the region forced handle creation
21951           - Added code to draw the parents underneath a user-clipped region
21952         * Hwnd.cs: Added UserClip property
21953
21954 2006-05-12  Chris Toshok  <toshok@ximian.com>
21955
21956         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
21957         (set_Maximum): same.
21958         (set_Minimum): same.
21959         (set_SmallChange): same.
21960         (OnMouseUpSB): remove the call to refresh when releasing the
21961         thumb.  We shouldn't need it.
21962         
21963 2006-05-12  Miguel de Icaza  <miguel@novell.com>
21964
21965         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
21966         AutoSize set to None, we do not need to relayout everything, we
21967         just need to invalidate the current region.
21968
21969         (Draw): Do not draw the entire ClientArea, just redraw the
21970         clip area being passed.
21971
21972         * MdiClient.cs: Make MdiClient constructor with the Form argument
21973         internal. 
21974
21975 2006-05-12  Jackson Harper  <jackson@ximian.com>
21976
21977         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
21978         parents background image,  but strangely not their own.
21979         - (DrawStatusBarPanel): Take into account horizontal alignment
21980         when drawing the strings and icons.
21981
21982 2006-05-12  Mike Kestner  <mkestner@novell.com>
21983
21984         * ListBox.cs: avoid invalidations for focus when the collection is
21985         empty. 
21986
21987 2006-05-12  Chris Toshok  <toshok@ximian.com>
21988
21989         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
21990         invalidate the entire thumb area.  Call InvalidateDirty which
21991         limits the redraw to the thumb itself and surrounding pixels.
21992
21993         * XplatUIX11.cs (ScrollWindow): optimize copying.
21994         
21995 2006-05-12  Chris Toshok  <toshok@ximian.com>
21996
21997         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
21998         Figure out the positioning/layout in a single pass instead of
21999         multiple recursive invocations.  Speeds up the initial display of
22000         the data grid.  Also, make many things private that were
22001         originally public but unused outside this class.
22002
22003 2006-05-11  Jackson Harper  <jackson@ximian.com>
22004
22005         * MdiClient.cs: Improved layout code.
22006
22007 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
22008
22009         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
22010           not SelectedObject.
22011
22012 2006-05-11  Chris Toshok  <toshok@ximian.com>
22013
22014         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
22015         union of that will always be {0,0,width,height}.
22016
22017 2006-05-11  Jackson Harper  <jackson@ximian.com>
22018
22019         * Form.cs: Match MS's DefaultSize for forms (they must have
22020         changed the size in sp2).
22021
22022 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
22023
22024         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
22025
22026 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
22027
22028         * TextControl.cs : Fixed bug #78109. This incorrect position
22029           comparison caused crash on automatic line split.
22030         * TextBoxBase.cs : reduce duplicate code.
22031
22032 2006-05-10  Jackson Harper  <jackson@ximian.com>
22033
22034         * MdiClient.cs: Active form is only sent to the back when using
22035         the Next form functionality, when a form is clicked the current
22036         active shouldn't be sent to the back.
22037         - Layout the mdi windows when the container is first made visible.
22038         * Form.cs: Give the MdiClient a ref to the containing form when we
22039         create it.
22040         
22041 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
22042
22043         * LinkLabel.cs : link_font could be uninitialized, so populate one
22044           before actual use. Fixed bug #78340.
22045
22046 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
22047
22048         * XplatUIX11.cs : clipboard format native value is IntPtr.
22049           Fixed bug #78283.
22050
22051 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
22052
22053         * Control.cs: 
22054           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
22055             which is passed up the parent chain by DefWndProc
22056           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
22057             to DefWndProc (#77956)
22058         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
22059
22060 2006-05-10  Jackson Harper  <jackson@ximian.com>
22061
22062         * MdiClient.cs: We need to remove the controls from the mdi
22063         collection, when we close the window.
22064         * MdiWindowManager.cs: Special handling of closing mdi windows.
22065         * InternalWindowManager.cs: Make the close method virtual so the
22066         mdi window manager can handle it specially.
22067
22068 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
22069
22070         * DataGrid.cs:
22071           - Recalculate grid when the data source has changed
22072           - Matches styles provided by user from all data sources types
22073         * DataGridTableStyle.cs: For columns that provided by the user set the
22074         with the preferred value is there was unassigned.
22075         * CurrencyManager.cs: throw OnItemChanged event
22076
22077 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
22078
22079         * PictureBox.cs: Don't animate until handle is created. Start animation
22080           when handle is created.
22081
22082 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
22083
22084         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
22085           current codebase.
22086         * XEventQueue.cs: We don't need to provide the extra info
22087
22088 2006-05-10  Jackson Harper  <jackson@ximian.com>
22089
22090         * MdiClient.cs: If the mdi clients parent form has a background
22091         image set, we draw that background image for the mdi area's
22092         background.
22093
22094 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
22095
22096         * TextBoxBase.cs: Set IBeam cursor (#78347)
22097
22098 2006-05-10  Mike Kestner  <mkestner@novell.com>
22099
22100         * ToolBar.cs: fix some text padding issues with ButtonSize
22101         calculation. Update the default size to match MS documentation.
22102         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
22103         button size. Fixes #78296.
22104
22105 2006-05-10  Mike Kestner  <mkestner@novell.com>
22106
22107         * ListBox.cs: use is_visible for scrollbar positioning in case the
22108         control isn't on screen yet.  Fix off by one with Right vs Width
22109         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
22110         
22111 2006-05-10  Jackson Harper  <jackson@ximian.com>
22112
22113         * X11Dnd.cs: Drop to a control with another control on top of it.
22114         * ToolBar.cs: Work on a copy of the buttons list, so that it can
22115         be modified in click handlers. TODO: Look for similar problems in
22116         other controls.
22117
22118 2006-05-09  Jackson Harper  <jackson@ximian.com>
22119
22120         * Form.cs: Window managers need the old window state when setting
22121         window state now.
22122         * InternalWindowManager.cs: Allow the base mdi window manager to
22123         handle more of the MDI only stuff (like maximize buttons).
22124         * MdiWindowManager.cs: Fix some snafus in changing the window
22125         state.  Add all the menu functionality, for both popup and
22126         maximized menus.
22127         * MdiClient.cs: When a new form is selected the currently
22128         activated form is sent to the back, this matches MS.
22129         - Implement a new method to activate the next mdi child window.
22130
22131 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
22132
22133         * Control.cs: 
22134           - Added new InternalCapture method to allow controls to prevent
22135             the capture behaviour on the click handlers
22136           - Switched to use InternalCapture
22137         * ComboBox.cs:
22138           - Using InternalCapture to prevent mouse captures from being released
22139             on mouse button release (Fixes #78100)
22140         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
22141           returns Form borders if a caption is present. (Fixes #78310)
22142
22143 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
22144
22145         * TreeNode.cs: Changed serialization .ctor to not require every field
22146           to be present. (#78265)
22147         * OwnerDrawPropertyBag.cs: Added serialization .ctor
22148
22149 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
22150
22151         * MimeIcon.cs: for is faster than foreach for strings.
22152
22153 2006-05-05  Mike Kestner  <mkestner@novell.com>
22154
22155         * CheckedListBox.cs: update check handling code to not use selected.
22156         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
22157         behavior for visual feedback, motion response, shift/ctrl handling,
22158         and properly deal with all 4 selection modes. Updates to bounds
22159         handling logic.  Add scroll wheel support. [Fixes #77842]
22160
22161 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
22162
22163         * ListView.cs:
22164           - Moved adding of Implicit controls into .ctor. That way, subsequent
22165             creation of the controls will not cause them to think they are 
22166             toplevel windows (fixes #78200 header problem)
22167           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
22168           - Switched visibility setting of header control to use internal field
22169             to avoid triggering handle creation
22170           - Now checking if handle is created before causing a refresh when items
22171             are added (This makes us now match handle creation time with MS)
22172         * Splitter.cs: Removed loading of private splitter cursor, switched to
22173           Cursors version now that that is loading the right ones
22174         * Cursors.cs: Load proper splitter cursors from resources
22175         * Cursor.cs: Added second method of loading resource cursors for the 
22176           VS.Net users amongst us
22177
22178 2006-05-05  Mike Kestner  <mkestner@novell.com>
22179
22180         * ListView.cs: give header_control a minimum size based on the
22181         ListView size.
22182
22183 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
22184
22185         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
22186           window seems to do that with metacity, so set that type. (#78120)
22187
22188 2006-05-05  Mike Kestner  <mkestner@novell.com>
22189
22190         * ListViewItem.cs: fix Details mode checkbox layout bug.
22191         * ThemeWin32Classic.cs: draw a ListView column header for unused space
22192         at the end of the header, if it exists. [Fixes for #78200]
22193
22194 2006-05-04  Jackson Harper  <jackson@ximian.com>
22195
22196         * MdiClient.cs: Add a helper property to get the container form.
22197         * MdiWindowManager.cs: We have to make sure to use the menu origin
22198         when drawing the icons and buttons, this fixes maximized window
22199         icons/buttons on win32.
22200         * InternalWindowManager.cs: Reset the restore captions when a
22201         window goes from Maximized to Minimized and vice versa. Move the
22202         DrawMaximizedButtons into the MdiWindowManager source, tool
22203         windows can't be maximized. NOTE: This could use a little
22204         refactoring if time ever permits.
22205         
22206 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
22207
22208         * TextBox.cs: Add MWFCategoryAttributes
22209         * TextBoxBase.cs: Add MWFCategoryAttributes
22210         * Form.cs: Add MWFCategoryAttributes
22211
22212 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
22213
22214         * Control.cs: Add MWFCategoryAttributes
22215         * ScrollableControl.cs: Add MWFCategoryAttributes
22216
22217 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
22218
22219         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
22220           Divider is true. Fix a little glitch in PropertyToolBar
22221           drawing code
22222
22223 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
22224
22225         * Control.cs:
22226           - Dispose: Call base.Dispose, this causes the disposed event
22227             to be fired (and probably other, more important stuff)
22228           - SetVisibleCore: Set is_visible to true after creating the
22229             window so that the window still gets created invisible (if
22230             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
22231             to generate a WM_ACTIVE message
22232         * Form.cs: Call Dispose when we want to destroy the window, instead of
22233           just destroying the handle (Dispose will do that for us)
22234         * XplatUIX11.cs:
22235           - RootWindow also needs a queue, so we can properly process the
22236             property change events from RootWindow (like Activate)
22237           - Generatic synthetic WM_ACTIVE message when the active window is
22238             being destroyed
22239
22240 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
22241
22242         * LinkLabel.cs: Trigger a recalc of our label dimensions when
22243           bounds are changed
22244
22245 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
22246
22247         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
22248           for determining width and height (image might not be assigned if
22249           we're drawing an imagelist)
22250
22251 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
22252
22253         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
22254         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
22255           height from system
22256         * Theme.cs: No longer returns hardcoded menu height, instead calls
22257           new driver method
22258         * Form.cs (OnLoad): Scaling happens before triggering Load events 
22259           on MS (# 78257)
22260
22261 2006-05-01  Mike Kestner  <mkestner@novell.com>
22262
22263         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
22264
22265 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
22266
22267         * TextBoxBase.cs: Removed Fixme
22268         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
22269
22270 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
22271
22272         * XplatUIX11.cs:
22273           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
22274             the rectangle relative to the parent, considering borders. We
22275             don't really want that.
22276           - ScrollWindow: Fixed warning to be more understandable
22277         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
22278           scrollbars and scroll only the visible area
22279         * RichTextBox.cs: Removed debug output
22280
22281 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
22282
22283         * NumericUpDown.cs (Text): Just use base
22284         * UpDownBase.cs: Ensure txtView is created before using it
22285
22286 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
22287
22288         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
22289           casting to IntPtr to avoid 64bit overflow errors
22290
22291 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
22292
22293         * Control.cs:
22294           - AllowDrop: Don't force handle creation.
22295           - CreateHandle: Added call to tell driver if we're allowed to drop
22296
22297 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
22298
22299         * FileDialog.cs: Remember the last directory not only for the
22300           current instance but also for new FileDialog instances.
22301
22302 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
22303         
22304         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
22305           broke sending async messages
22306
22307 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
22308
22309         * XplatUIX11.cs:
22310           - ScrollWindow: Fixed method. We finally generate expose events again
22311             for scrolled areas. This was causing 'garbage' when scrolling
22312             textbox and other controls that used ScrollWindow
22313           - Switched from using the regular queue for paint events to the MS 
22314             model of 'generating' paint events when the queue is empty.
22315             We use the new XQueueEvent.Paint subclass to store which windows
22316             need painting.
22317           - AddExpose now takes the x/y/width/height of the exposed area
22318             and inserts the window into the paint queue if not already there
22319           - InvalidateWholeWindow: Switched to use new AddExpose method
22320           - UpdateMessageQueue: Added which queue to monitor for paint events
22321           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
22322             the unlikely case nothing above handles it. We reset the expose
22323             pending states to get them off the queue.
22324           - GetMessage: Now pulls a paint event if no other events are in the
22325             queue
22326           - Invalidate: Switched to new AddExpose method
22327           - PeekMessage: Updated to understand pending paint events
22328           - UpdateWindow: Fixed logic bug. We were only updating if the window
22329             didn't need updating. Also switched to sending WM_PAINT directly,
22330             like MS does.
22331         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
22332           and random access Remove(). The random access is needed to handle
22333           UpdateWindow() where a WM_PAINT is sent directly without accessing
22334           the queue.
22335         * ScrollBar.cs: Added Update() calls to cause immediate updates to
22336           allow for better feedback when scrolling. Scrollbars are small and
22337           the immediate update should make it 'feel' more responsive without
22338           slowing things down. ScrollBar still needs it's invaliate logic
22339           updated to not always invalidate the whole bar on certain changes.
22340
22341 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22342
22343         * Control.cs:
22344         (BackColor): if the control does not support a transparent background,
22345         return the default backcolor when the parent backcolor is transparent.
22346
22347 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
22348
22349         * Application.cs: Updated to new StartLoop/GetMessage API
22350         * RichTextBox.cs: Provide some output on RTF parsing errors
22351         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
22352           new queue_id argument to GetMessage and PeekMessage to allow faster
22353           handling of per-thread queues in drivers.
22354         * Hwnd.cs: Added Queue tracking and property
22355         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
22356         * XEventQueue.cs: Added thread trackingA
22357         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
22358         * XplatUIX11.cs:
22359           - Implemented new per-thread queue
22360           - GetMessage: Fixed return/break behaviour on several cases. We were
22361             returning stale messages in some cases, instead of just processing
22362             the next message
22363
22364 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
22365
22366         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
22367
22368 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
22369
22370         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
22371           fixed off-by-one comparisons between Width/Height and Right/Bottom.
22372
22373 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
22374
22375         * PropertyGridView.cs: Fix drop down width.
22376
22377 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
22378
22379         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
22380           a mess in DrawToolBar, so I removed one of them.
22381
22382 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
22383
22384         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
22385           needed (clip). Otherwise we get artifacts.
22386
22387 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
22388
22389         * FixedSizeTextBox.cs: Added constructor to allow specifying which
22390           dimension is fixed
22391         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
22392           and switched FixedSizeTextBox to only be fixed vertical (#78116)
22393         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
22394           if it matches the scale base font (avoids unneeded scaling)
22395
22396 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
22397
22398         * X11DesktopColors.cs: One gtk_init_check should be enough
22399
22400 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
22401
22402         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
22403           match MS behaviour
22404
22405 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
22406
22407         * TextBoxBase.cs: 
22408           - Generate OnTextChanged for Backspace even if we're only deleting
22409             the current selection
22410           - When setting the Text property, only select all text if the
22411             control does not have focus when it is being set. Otherwise
22412             just place the cursor at the beginning of the control
22413
22414 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
22415
22416         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
22417           Added a little helper to draw PropertyGrid ToolBar with a different
22418           border and a different BackColor.
22419         * PropertyGrid.cs: Some background parts didn't get painted with the
22420           correct background color. Added a class that helps us to draw the
22421           correct border for PropertyGridView and a class that helps us to
22422           draw ToolBars with a different backcolor
22423         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
22424
22425 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
22426
22427         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
22428         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
22429
22430 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
22431
22432         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
22433           into the palette entries. Also, since we're working on a copy
22434           we needed to copy the palette back onto the bitmap.
22435         * Cursor.cs: Same fix as XplatUIWin32.cs.
22436
22437 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
22438
22439         * ImageListStreamer.cs: Need to read the var (or we're off)
22440
22441 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
22442
22443         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
22444           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
22445           TextBoxBase.cs: Unused var fixes
22446         * AxHost.cs: Small 2.0 fix
22447         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
22448           as it seems that is what at least Metacity expects. This will make
22449           icons show up on 64bit platforms. We still have some 64bit size
22450           issues, though, since the startup app window size still won't match.
22451
22452 2006-04-25  Mike Kestner  <mkestner@novell.com>
22453
22454         * *.cs: cleanup newly reported exception var unused warnings.
22455
22456 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
22457
22458         * ThemeWin32Classic.cs: Button image alignment now matches exactly
22459           ms
22460
22461 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
22462
22463         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
22464           image. The image position is always the same, no matter if the
22465           button is pressed or not.
22466
22467 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
22468
22469         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
22470           selection and set the correct filename for SaveFileDialog.
22471           Patch by Emery Conrad.
22472
22473 2006-04-24  Mike Kestner  <mkestner@novell.com>
22474
22475         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
22476         check for item.X outside the ClientRect instead of item.Y. Fixes
22477         #78151.
22478
22479 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22480
22481         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
22482         trust that value blindly and do some sanity check. Fixes bug #77814.
22483
22484 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22485
22486         * ImageListStreamer.cs: save the mask as a 1bpp image.
22487
22488 2006-04-21  Mike Kestner  <mkestner@novell.com>
22489
22490         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
22491         pass Checked and Indeterminate to the Theme Engine. Improve
22492         encapsulation with ListBox.
22493         * ListBox.cs: Keep a StringFormat instead of calculating it every item
22494         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
22495         nested types.  Move all CheckState functionality to CheckedListBox.
22496         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
22497         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
22498         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
22499         single base list. Fix scrollbar sizing and placement to mirror MS.
22500         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
22501         used.
22502         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
22503         for CheckedListBox by using new DrawItemState info.  Center the
22504         checkboxes on the items. Use new StringFormat property.
22505
22506 2006-04-18  Jackson Harper  <jackson@ximian.com>
22507
22508         * Form.cs: MdiChildren don't do default locations the same way as
22509         regular forms.  This prevents a crash when trying to position the
22510         mdi windows.
22511
22512 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
22513
22514         * PropertyGridTextBox.cs: Formatting, copyright
22515         * PropertiesTab.cs: Formatting
22516         * PropertyGrid.cs: Formatting
22517         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
22518           click toggling of values
22519           
22520 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
22521
22522         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
22523         * Control.cs (.ctor): verify_thread_handle is static, don't reset
22524           every time a control is created
22525         * Application.cs: Removed obsolete EnableRTLMirroring method
22526
22527 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
22528
22529         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
22530         SelectedIndex to -1. Fixes bug #78121.
22531
22532 2006-04-17  Jackson Harper  <jackson@ximian.com>
22533
22534         * Binding.cs: Handle null values for Current and BindingContext.
22535         This occurs when binding is a little delayed.
22536         * CurrencyManager.cs: return null for Current when there are no
22537         items in the list.
22538         - Hookup to the listchanged event on the DataView and update
22539         bindings when the list is changed.  This fixes late binding of
22540         controls.
22541
22542 2006-04-17  Jackson Harper  <jackson@ximian.com>
22543
22544         * X11Dnd.cs:
22545         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
22546         Ringenbach.
22547
22548 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
22549
22550         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
22551           place
22552         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
22553           with the correct ButtonState
22554
22555 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
22556
22557         * XplatUIX11.cs: Improved distinguishing between window types to
22558           tell the WM a type closer to what the app wants (Fixes #78107)
22559
22560 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
22561
22562         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
22563           GrabHandle
22564
22565 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
22566
22567         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
22568           drawing code to reflect the size grip changes
22569
22570 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22571
22572         * ImageListStreamer.cs: fix handling of the mask that follows the main
22573         bitmap when deserializing and serialize it properly. The generated mask
22574         should better be a 1bpp image, but I'll do that later.
22575
22576 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
22577
22578         * FileDialog.cs: Show something in the DirComboBox on *nix if the
22579           path doesn't fit into some of our Current.Places
22580
22581 2006-04-13  Jackson Harper  <jackson@ximian.com>
22582
22583         * ComboBox.cs: Use borders instead of drawing our own decorations,
22584         try to obey correct rules for heights.
22585         * Theme.cs:
22586         * ThemeNice.cs:
22587         * ThemeClearLooks.cs:
22588         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
22589         this is now handled by borders.
22590         - Remove unused DrawListBoxDecorationSize method.
22591         
22592 2006-04-13  Mike Kestner  <mkestner@novell.com>
22593
22594         * MenuAPI.cs: null guarding for the disbled click check fixes crash
22595         reported by Alex.
22596
22597 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
22598
22599         * ThemeWin32Classic.cs: 
22600           - Fixed CPDrawStringDisabled
22601           - Corrected drawing of disabled menu items
22602           - Fixed drawing of disabled radio buttons (bug #78095)
22603           - Draw check in a disabled CheckBox with color ControlDark 
22604
22605 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
22606
22607         * Form.cs: Use the provided width when calculating the menu size;
22608           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
22609           and ClientSize.Width won't be updated yet
22610         * Application.cs: Use Visible instead of Show() to make form visible,
22611           this way we create the handle later and menusize is considered
22612
22613 2006-04-12  Mike Kestner  <mkestner@novell.com>
22614
22615         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
22616         reporting.
22617
22618 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
22619
22620         * TextBox.cs: Implemented context menu
22621
22622 2006-04-12  Mike Kestner  <mkestner@novell.com>
22623
22624         * ListView.cs: implement box selection. fixes #77838.
22625         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
22626
22627 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
22628
22629         * XplatUIX11.cs: Added setting of window type when transient window
22630           is created (metacity would move it otherwise)
22631         * X11Structs.cs: Added WINDOW_TYPE atoms
22632         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
22633           background (the control is Opaque but still wants transparent
22634           backgrounds)
22635
22636 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
22637
22638         * Control.cs: Added OnPaintBackgroundInternal to allow controls
22639           that set Opaque but don't mean it (like all ButtonBase-derived
22640           controls) to still draw their background
22641         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
22642           the background
22643
22644 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
22645
22646         * Control.cs (PaintControlBackground): Set the graphics object
22647           on our PaintEvent to null to prevent it from being disposed
22648           when the PaintEvent gets disposed
22649
22650 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
22651
22652         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
22653         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
22654
22655 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
22656
22657         * Control.cs: 
22658           - Added transparency check to BackColor property. Transparent
22659             backgrounds are only allowed if the control styles permit it
22660           - Added recursive painting of parent control background and
22661             foreground if a control with a transparent backcolor is drawn
22662             (Thanks to Tim Ringenback for providing his 'hack' as a base
22663              for this patch) Fixes #77985 and #78026.
22664           - Added Opaque style check before calling OnPaintBackground, no
22665             need to draw the background if the control is opaque
22666           - Removed ControlAccessibleObject owner variable (inherited from
22667             base, no need to define again)
22668           - Added some documentation links explaining the drawing events
22669             and styles
22670
22671 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
22672
22673         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
22674           that the affected control is the located at the left border of our
22675           parent (Fixes #77936)
22676
22677 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
22678
22679         * TextBoxBase.cs: When rendering disabled or readonly controls,
22680           draw the background with 'Control' instead of 'Window' color as
22681           long as the user hasn't specifically set a color
22682
22683 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
22684
22685         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
22686           since that won't be updated if the user types text (only if it's
22687           programatically set)
22688
22689 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
22690
22691         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
22692           layout changes do to app-triggered resizes will have the proper
22693           display rectangle for layout
22694
22695 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
22696
22697         * ThemeWin32Classic.cs:
22698           - Make use of the SystemBrushes and SystemPens wherever possible
22699           - Corrected some highlight colors
22700           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
22701             drawing
22702         * Theme.cs: Added Empty field to CPColor struct
22703
22704 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
22705
22706         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
22707           is displayed when calculating the display rectangle. Thanks to Mike
22708           for teaching me the err of my ways.
22709
22710 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
22711
22712         * ScrollableControl.cs:
22713           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
22714             (instead of 0,0) and we now return the real width/height instead of
22715             just the clientrectangle, adjusted for padding. The rectangle is
22716             now cached and created by the new CalculateDisplayRectangle method.
22717           - Created new CalculateDisplayRectange method, which basically does
22718             what get_DisplayRectangle() did originally, but now using the 
22719             right edge instead of DisplayRectangle to determine the size of
22720             our scrollbars
22721           - get_Canvas(): Fixed it to properly calculate canvas for 
22722             right/bottom controls which seem to be placed to the right/bottom
22723             of any controls that have a fixed location
22724           - Removed TODO that's taken care of
22725           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
22726             and SetDisplayRectLocation according to new MSDN2 docs
22727           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
22728             event when that is called, this is added for compatibility
22729           - ScrollControlIntoView(): Implemented.
22730           - Switched scrollbars to be implicit, they shouldn't be selectable
22731         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
22732           call it when the active control is set/changed
22733         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
22734         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
22735           implicit_control variable (used for native Win32 message generation)
22736         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
22737           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
22738         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
22739         * XplatUIStructs.cs: Added ScrollBarCommands enum
22740
22741 2006-04-10  Jackson Harper  <jackson@ximian.com>
22742
22743         * ButtonBase.cs:
22744         * CheckedListBox.cs:
22745         * ComboBox.cs:
22746         * DataGrid.cs:
22747         * DataGridView.cs:
22748         * Form.cs:
22749         * GroupBox.cs:
22750         * ListBox.cs:
22751         * PrintPreviewControl.cs:
22752         * ProgressBar.cs:
22753         * PropertyGrid.cs:
22754         * Splitter.cs:
22755         * StatusBar.cs:
22756         * TrackBar.cs:
22757         * UpDownBase.cs: Fixup base event overrides.
22758         
22759 2006-04-06  Mike Kestner  <mkestner@novell.com>
22760
22761         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
22762         all user-initiated value changes to min <= value <= max-thumbsz+1.
22763         (set_Value): check for vert/horiz when calculating new thumb position.
22764         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
22765         like MS does.
22766         (OnMouseMoveSB): refactor the thumb dragging code and refine
22767         invalidation logic to reduce flicker.
22768         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
22769         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
22770         (UpdateThumbPosition): small code readability cleanup
22771
22772 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
22773
22774         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
22775           different
22776
22777 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
22778
22779         * ThemeNice.cs: Use a better graphics effect when a button is pressed
22780
22781 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
22782
22783         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
22784         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
22785           This dramatically reduces the number of Pen.Dispose calls. 
22786           Where possible call ResPool methods only once instead of calling it
22787           over and over again (for example for the same color).
22788
22789 2006-04-06  Mike Kestner  <mkestner@novell.com>
22790
22791         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
22792         Also remove an unused private field on the collection. Fixes #77972.
22793
22794 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
22795
22796         * ThemeNice.cs: Added ToolBar drawing code
22797
22798 2006-04-06  Mike Kestner  <mkestner@novell.com>
22799
22800         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
22801         I'm assuming that means we need to look up the toplevel for the
22802         provided control. Fixes the crash trace in #77911 but exposes another
22803         crash in some strange reflection usage in NDocGui.
22804
22805 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
22806
22807         * ThemeNice.cs: Gave it a little silver touch and added Images
22808           method
22809         * FontDialog.cs: FontDialog is not resizable
22810         * FileDialg.cs: Added SizeGripStyle.Show
22811
22812 2006-04-05  Jackson Harper  <jackson@ximian.com>
22813
22814         * KeyboardLayouts.cs: Remove warning.
22815
22816 2006-04-05  Jackson Harper  <jackson@ximian.com>
22817
22818         * Control.cs: Enable OnPaintInternal so we can use it for drawing
22819         all of our controls instead of Paint +=.
22820         * ListBox.cs:
22821         * ListView.cs:
22822         * MenuAPI.cs:
22823         * MessageBox.cs:
22824         * NotifyIcon.cs:
22825         * ProgressBar.cs:
22826         * ScrollBar.cs:
22827         * Splitter.cs:
22828         * StatusBar.cs:
22829         * TabControl.cs:
22830         * TextBoxBase.cs:
22831         * ToolBar.cs:
22832         * TrackBar.cs:
22833         * UpDownBase.cs:
22834         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
22835         use OnPaintInternal. Remove Width/Height and Visible checks in
22836         paint handler, this is done at a higher level now.
22837         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
22838         * PaintEventArgs.cs: Add a handled flag so controls that don't
22839         want anymore painting after OnPaintInternal can make sure OnPaint
22840         isn't called.
22841
22842 2006-04-05  Mike Kestner  <mkestner@novell.com>
22843
22844         * Form.cs: fix the menu WndProc hacks to respect the native enabled
22845         state of the form, so that we don't process events when Modal dialogs
22846         are up. Fixes #77922.
22847
22848 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
22849
22850         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
22851           checking is done.
22852
22853 2006-04-05  Mike Kestner  <mkestner@novell.com>
22854
22855         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
22856
22857 2006-04-05  Mike Kestner  <mkestner@novell.com>
22858
22859         * ListView.cs (HeaderMouseMove): null guarding for the over column
22860         when setting up the drag_to_index.  Fixes #78015.
22861
22862 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
22863
22864         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
22865           in the taskbar. Transient windows seem to accomplish that.
22866
22867 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
22868
22869         * Form.cs:
22870           - Re-enabled CreateParams.X/Y code for FormStartPosition
22871           - Added code for manual placement when creating the Control
22872           - Incomplete patch to treat MDI forms differently when
22873             setting the ClientSizeCore. (Still need to figure out handling
22874             x/y coords there)
22875         * XplatUIX11.cs:
22876           - When we're explicitly setting the X/Y position of a non-Child
22877             window, let the WM know. Metacity really wants this.
22878
22879 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
22880
22881         * ThemeNice.cs: Added CPDrawButton
22882
22883 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
22884
22885         * ThemeNice.cs: Changed the color for focused buttons and activated
22886           the arrows for small scroll buttons.
22887
22888 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
22889
22890         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
22891           anymore. Changed some method modifiers to protected (virtual)
22892         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
22893           changes
22894         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
22895           Updated drawing of menus, buttons and progressbars; added
22896           CPDrawBorder3D 
22897
22898 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22899
22900         * ImageListStreamer.cs: implemented serialization/deserialization
22901         of the images.
22902
22903 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
22904
22905         * ThemeWin32Classic.cs:
22906           - Removed all the DrawFrameControl stuff; CPDrawButton,
22907             CPDrawCheckBox and CPDrawRadioButton are now handled directly
22908             inside the methods
22909           - Updated and corrected the drawing code of CPDrawButton,
22910             CPDrawCheckBox and CPDrawRadioButton to better match ms
22911           - Updated theme checkbox and radiobutton code to use the CP*
22912             methods
22913
22914 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
22915
22916         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
22917           bug is fixed
22918
22919 2006-03-31  Jackson Harper  <jackson@ximian.com>
22920
22921         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
22922         sometimes.
22923         * UpDownBase.cs: Don't CreateGraphics manually, use a
22924         Refresh. Ideally we would invalidate the correct areas here.
22925
22926 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
22927
22928         * XplatUIX11.cs: 
22929           - We now track the mapping state of windows. If a window (or 
22930             one of it's parents) is not mapped we no longer permit
22931             WM_PAINT messages to be generated since we'd otherwise get 
22932             lots of BadMatch X errors. Jackson did all the work figuring
22933             out the problem.
22934           - Destroying the caret if the window it's contained in is 
22935             destroyed. Can't use regular DestroyCaret method since it
22936             might fall into a drawing function (trying to remove the
22937             caret) and with that generate new BadMatch errors. Again,
22938             Jackson tracked this down.
22939           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
22940             make sure we send the messages to all windows. (The old code
22941             would send the WM_DESTROY to the window, and then all child
22942             windows would be 'gone' because the WM_DESTROY handle lookup
22943             would no longer find the destroyed window)
22944         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
22945         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
22946
22947 2006-03-31  Jackson Harper  <jackson@ximian.com>
22948
22949         * ScrollableControl.cs: Dont recalc if we are not visible.
22950
22951 2006-03-31  Mike Kestner  <mkestner@novell.com>
22952
22953         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
22954         the visibility branch.
22955
22956 2006-03-31  Jackson Harper  <jackson@ximian.com>
22957
22958         * ScrollBar.cs: Cap values when incrementing/decrementing.
22959
22960 2006-03-31  Mike Kestner  <mkestner@novell.com>
22961
22962         * MenuAPI.cs: setup menu.tracker for popup/context menus.
22963         * ToolTip.cs: guard against timer expirations with no active control.
22964         Not sure why it happened.
22965
22966 2006-03-31  Mike Kestner  <mkestner@novell.com>
22967
22968         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
22969         text.
22970         * ToolTip.cs: Position the tooltip based on where the cursor is at
22971         popup time, not at MouseEnter time.  Add a Down state so that we don't
22972         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
22973         positioning offset. Lookup DisplaySize at positioning time, since it
22974         can theoretically change during invocation.
22975         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
22976         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
22977
22978 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
22979
22980         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
22981           Fixes behaviour when the Text property of the box is String.Empty
22982
22983 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
22984
22985         * XplatUIX11.cs: Only send mouseleave for our client windows, not
22986           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
22987           a window)
22988
22989 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
22990
22991         * FileDialog.cs: Visual enhancement for the popup buttons in 
22992           PopupButtonPanel
22993
22994 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
22995
22996         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
22997           code
22998
22999 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
23000
23001         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
23002           highlighted menu items to match ms
23003
23004 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
23005
23006         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
23007
23008 2006-03-30  Mike Kestner  <mkestner@novell.com>
23009
23010         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
23011         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
23012         go active to account for HotLight to Selected transition.
23013         * MenuItem.cs: add internal Selected prop. Fill out the Status
23014         property by calculating it from item info. Add HotLight,
23015         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
23016
23017 2006-03-30  Mike Kestner  <mkestner@novell.com>
23018
23019         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
23020
23021 2006-03-29  Jackson Harper  <jackson@ximian.com>
23022
23023         * Form.cs: Implement TODO.
23024
23025 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
23026
23027         * PrintPreviewDialog.cs: Implemented missing methods and events; still
23028           missing proper dialog setup in the constructor
23029
23030 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
23031
23032         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
23033         * Control.cs:
23034           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
23035           - Fixed ResetBindings and removed TODO
23036           - Added check for cross-thread calls to get_Handle()
23037           - Added Marshaller attribute for set_Font to satisfy class status
23038         * FontDialog.cs: Removed TODOs that seemed implemented
23039         * UpDownBase.cs: Removed unneeded TODO and Fixme
23040         * MessageBox.cs: Implemented support for Default button and removed TODO
23041         * FileDialog.cs: Removed obsolete TODO
23042         * DomainUpDown.cs: Removed obsolete TODO
23043         * ButtonBase.cs: Removed obsolete TODO
23044         * XplatUIWin32.cs: Removed obsolete TODO
23045         * Form.cs:
23046           - Removed obsolete TODO
23047           - Calling CheckAcceptButton when the acceptbutton is changed to allow
23048             internal status updates
23049           - Making sure the active control is selected when the control is created
23050         * CurrencyManager.cs: Removed obsolete TODO
23051
23052 2006-03-29  Mike Kestner  <mkestner@novell.com>
23053
23054         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
23055         of PrintPreviewDialog and RichTextBox.
23056
23057 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
23058
23059         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
23060           DarkDark, Light and LightLight colors for a specific color
23061         * ThemeWin32Classic.cs:
23062           - Use Button drawing code to draw RadioButtons and CheckBoxes with
23063             Appearance = Button 
23064           - Make use of the new ResPool helper CPColor
23065           - Draw ProgressBar and StatusBar with correct 3D borders
23066
23067 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
23068
23069         * ColorDialog.cs: Return selected color. Fixes bug #77940.
23070
23071 2006-03-28  Mike Kestner  <mkestner@novell.com>
23072
23073         * ListView.cs: fix Icon layout to plan for scrollbar widths when
23074         calculating col/row counts.
23075
23076 2006-03-28  Mike Kestner  <mkestner@novell.com>
23077
23078         * ColumnHeader.cs:
23079         * ListView.cs:
23080         * ListViewItem.cs:
23081         * Menu.cs: 
23082         switch to explicit interface method implementation for some methods
23083         corcompare identifies as inconsistent with MS.
23084
23085 2006-03-28  Mike Kestner  <mkestner@novell.com>
23086
23087         * MainMenu.cs: 
23088         * Menu.cs:
23089         add a few missing methods from the class status output.
23090
23091 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
23092
23093         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
23094           correct.
23095
23096 2006-03-28  Mike Kestner  <mkestner@novell.com>
23097
23098         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
23099
23100 2006-03-27  Mike Kestner  <mkestner@novell.com>
23101
23102         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
23103         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
23104
23105 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
23106
23107         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
23108
23109 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
23110
23111         * ThemeWin32Classic.cs:
23112           - GroupBox: Inserted a little gap between the text and the lines
23113             on the right side
23114           - Made the code in CPDrawBorder3D more readable
23115           - Corrected the drawing location of the up and down arrows in 
23116             CPDrawScrollButton
23117
23118 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
23119
23120         * ControlPaint.cs: Corrected line widths in DrawBorder for
23121           ButtonBorderStyle Inset and Outset
23122
23123 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
23124
23125         * ThemeWin32Classic.cs:
23126           - Rewrote the totally broken CPDrawBorder3D method. That was
23127             one of the main problems for the terrific ThemeWin32Classic
23128             look
23129           - Updated and corrected Button drawing
23130           - Correct the dimensions of the SizeGrip to match ms ones
23131           - Removed a small drawing glitch in DrawComboBoxEditDecorations
23132         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
23133           Border3DStyle.Sunken to match ms.
23134
23135 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
23136
23137         * ThemeWin32Classic.cs: First small part of the "de-uglify
23138           ThemeWin32Classic" effort, SizeGrip
23139
23140 2006-03-24  Jackson Harper  <jackson@ximian.com>
23141
23142         * XplatUIX11.cs: Give a max idle time of one second, this matches
23143         MS and forces an Idle event every second when there are no other
23144         events in the queue.
23145
23146 2006-03-24  Mike Kestner  <mkestner@novell.com>
23147
23148         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
23149         * ListView.Item.cs: fix layout issues with null image lists and images
23150         smaller than checkbox size.
23151         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
23152         mode like MS does.  It's weird, but consistent.  ;-)
23153         Fixes #77890.
23154
23155 2006-03-24  Mike Kestner  <mkestner@novell.com>
23156
23157         * ListView.cs: Scroll wheel support for the item control.  Fixes
23158         #77839.
23159
23160 2006-03-23  Jackson Harper  <jackson@ximian.com>
23161
23162         * ScrollableControl.cs: Special case negative sized areas, not
23163         zero.
23164         * MonthCalendar.cs: Save the rect of the clicked date so we can
23165         use it for invalidation.
23166         - Try to cut down on the number of invalidates
23167         - Invalidate the rect the mouse is over and was over when moving
23168         the mouse, so we get the focus box following the cursor.
23169
23170 2006-03-23  Mike Kestner  <mkestner@novell.com>
23171
23172         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
23173         focus rectangle drawing. Fixes #77835.
23174
23175 2006-03-23  Mike Kestner  <mkestner@novell.com>
23176
23177         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
23178         the if and else if and reverting back to the original == check on the
23179         None conditional.
23180
23181 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
23182
23183         * FontDialog.cs: Update the example panel if the selected index of
23184           the fontListBox changes.
23185
23186 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
23187
23188         * FileDialog.cs: Make FileDialog remember which directory it was in
23189           last in the same execution.
23190
23191 2006-03-22  Mike Kestner  <mkestner@novell.com>
23192
23193         * FileDialog.cs: make the DropDownMenu on the toolbar display
23194         RadioChecks since they are mutually exclusive and that's what MS does.
23195
23196 2006-03-22  Mike Kestner  <mkestner@novell.com>
23197
23198         * Theme.cs: add Color param to CPDrawMenuGlyph.
23199         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
23200         checks and radio marks and arrows are visible on highlighted items.
23201         * ControlPaint.cs: update to use new Theme signature.
23202
23203 2006-03-22  Mike Kestner  <mkestner@novell.com>
23204
23205         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
23206         is active. Fixes #77870.
23207
23208 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
23209
23210         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
23211           to be focused/selected after startup
23212
23213 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
23214
23215         * ColorDialog.cs: 
23216           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
23217             CustomColors and ShowHelp properties
23218           - Some internal rewrites to get better results when using the
23219             ColorMatrix
23220
23221 2006-03-22  Mike Kestner  <mkestner@novell.com>
23222
23223         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
23224         HoverSelection.  Fixes #77836.
23225
23226 2006-03-22  Mike Kestner  <mkestner@novell.com>
23227
23228         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
23229         ToggleButtons.  (De)Sensitize the Back button around a stack count of
23230         1, not 0.  Update ButtonSize based on a pixel count of the win32
23231         control.  Adjust the toolbar size/location for new button size.
23232
23233 2006-03-22  Jackson Harper  <jackson@ximian.com>
23234
23235         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
23236         true.
23237         * ScrollBar.cs: When doing increments and decrements we need to
23238         set the Value property so that ValueChanged gets raised. A
23239         possible optimization here would be to make an internal SetValue
23240         that doesn't invalidate immediately.
23241         * ToolTip.cs: Tooltips get added to their container (when
23242         supplied) so they get disposed when the container is disposed.
23243         - Don't create tooltips for String.Empty. This prevents all these
23244         little 2-3 pixel windows from showing up when running nunit-gui
23245         and driving me mad.
23246         * Form.cs: Don't set topmost when setting the owner if the handles
23247         haven't been created yet.  The topmost set will happen when the
23248         handles are created.
23249
23250 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
23251
23252         * XplatUIX11.cs:
23253           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
23254           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
23255             visible (to allow them to recalculate their sizes)
23256
23257 2006-03-21  Mike Kestner  <mkestner@novell.com>
23258
23259         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
23260         methods. Removed a ton of redundant code.  Still not really happy with
23261         the border rendering, but I think that's mainly because of the
23262         ControlDarkDark being black instead of a dark grey. Depending on how 
23263         close we want to be, we might want to revisit those color choices.
23264         Among the new features added during the refactor were DropDownArrow
23265         pressed rendering, Disabled image rendering.  Proper flat appearance
23266         boundary rendering.  Removed the Divider and Wrapping dividers since I
23267         can't figure out any combination of themes and conditions to make the
23268         MS control draw a horizontal line on a toolbar despite what the
23269         Divider property docs indicate.
23270         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
23271         conditions and incorrect layout.  Updated to coding standard.
23272         * ToolBarButton.cs: refactored layout and positioning code from
23273         ToolBar to here.  Invalidate wherever possible instead of forcing
23274         redraws of the whole toolbar. 
23275         (Known remaining issues: explicit ButtonSize smaller than provided
23276         images.)
23277
23278 2006-03-21  Mike Kestner  <mkestner@novell.com>
23279
23280         * ContextMenu.cs (Show): use the position parameter instead of just
23281         showing at the MousePosition.
23282
23283 2006-03-21  Jackson Harper  <jackson@ximian.com>
23284
23285         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
23286         control handle this.
23287         * TreeNodeCollection.cs: If we are clearing the root node we need
23288         to reset top_node so calcs can still happen.
23289         * ThemeWin32Classic.cs: This is a Flags so we need to check
23290         properly.
23291         
23292 2006-03-21  Jackson Harper  <jackson@ximian.com>
23293
23294         * DataGrid.cs: Create columns when the binding context has been
23295         changed.
23296         * X11Structs.cs: Keysyms are uints.
23297         - Add size to fix build.
23298
23299 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
23300
23301         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
23302           XplatUIOSX.cs: 
23303           - Added ResetMouseHover method to allow controls to retrigger
23304             hovering if they need it more than once
23305           - Implemented MouseHoverTime and MouseHoverSize properties
23306         * Timer.cs: Start() must reset the interval
23307         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
23308           properties
23309
23310 2006-03-21  Jackson Harper  <jackson@ximian.com>
23311
23312         * X11Keyboard.cs: improved layout detection. Move the nonchar
23313         tables into this file.
23314         * KeyboardLayouts.cs: Move the tables into resource files.
23315
23316 2006-03-21  Mike Kestner  <mkestner@novell.com>
23317
23318         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
23319
23320 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
23321
23322         * Mime.cs: Various speed optimizations. Looking up mime types
23323           is now 2 times faster than before
23324
23325 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
23326
23327         * CreateParams.cs: Added internal menu field
23328         * Control.cs: 
23329           - Switched call order for UpdateBounds; now we always call
23330             the one that also takes ClientSize, and we're calculating the 
23331             client size via driver method in the others. The previous
23332             method of tracking client size by difference wasn't working
23333             for forms where even the starting client size wouldn't match
23334             the overall form size (due to borders) (Part of fix for #77729)
23335           - CreateParams(): Do not use parent.Handle unless the handle is
23336             already created. Causes havoc with Nexxia and throws off our
23337             creation of controls
23338         * XplatUIX11.cs:
23339           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
23340           - Switched handling of ConfigureNotify over to new PerformNCCalc 
23341             method (consolidates code)
23342           - Changed RequestNCRecalc to use new PerformNCCalc method
23343           - Added calls to RequestNCRecalc when menus and borders are changed
23344             to allow app to set NC size. (Part of fix for #77729) This matches
23345             when MS send a WM_NCRECALC on Win32 windows.
23346           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
23347             (Part of fix for #77729). This matches what MS does, they also
23348             send that message when the form is made visible.
23349           - XException.GetMessage: Improved usability of X errors by including
23350             a translation of the window into Hwnd and Control class
23351           - Improved debug info for window creation, reparenting and destruction
23352           - Created helper method WindowIsMapped() [Currently not used]
23353         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
23354         * Form.cs:
23355           - CreateParams: Now setting our menu on the new internal menu field
23356           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
23357             avoid calculating the same property twice
23358         * Hwnd.cs:
23359           - Improved usability of ToString() for debugging purposes
23360           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
23361             determine the height of the menu, instead of just the font. This
23362             required to also create a graphics context and to keep a bmp 
23363             around (for performance reasons)
23364
23365 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
23366
23367         * MenuAPI.cs: Added OnMouseUp method
23368         * Form.cs:
23369           - Now remembering the requested client size, avoids size errors
23370           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
23371             instead of base if the menu is active. This is required due to
23372             control now capturing and releasing on down/up and it would
23373             prematurely release our menu capture
23374
23375 2006-03-17  Jackson Harper  <jackson@ximian.com>
23376
23377         * KeyboardLayouts.cs: Add the czech layouts.
23378
23379 2006-03-16  Jackson Harper  <jackson@ximian.com>
23380
23381         * Control.cs: Use the viewport space when sizing not the controls
23382         client size, so things like ScrollableControl that effect the
23383         viewport size (when scrollbars are added) are computed correctly.
23384         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
23385         of ManagerEntrys.
23386         - Handle creating BindingManagers for null data sources.
23387         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
23388         source, otherwise when rows are added they are added to the 'fake'
23389         datasource and we will crash when trying to set the position in
23390         those rows.
23391         - Use Implicit scrollbars on the datagrid so they arent
23392         selectable.
23393         
23394 2006-03-16  Jackson Harper  <jackson@ximian.com>
23395
23396         * Binding.cs:
23397         * InternalWindowManager.cs:
23398         * MdiWindowManager.cs:
23399         * X11Keyboard.cs: I really want Mike to love me again (fix
23400         compiler warnings).
23401
23402 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
23403
23404         * DataGrid.cs:
23405           - OnMouseDown: Switch to editing mode when clicking on the cell
23406                          even if we're clicking on the cell that's currently 
23407                          selected
23408           - ProcessGridKey: Left/Right now wrap like MS.Net does
23409           - ProcessGridKey: Tab now knows to add a new row when tab is
23410                             pressed in the cell of the last column of the 
23411                             last row
23412           - ProcessGridKey: Enter now adds another row  if pressed in the last
23413                             row and selectes the new row, same column cell
23414           - ProcessGridKey: Home/End navigate columns, not rows, like 
23415                             originally implemented
23416           - Broke ProcessKeyPreview code out into an extra Internal method
23417             so it can be called from the edit code
23418         * DataGridTextBox.cs (ProcessKeyMessage):
23419           - Switched to accept Tab keypresses
23420           - Added F2 handling to allow jumping to the end of the edited cell
23421           - Added logic to allow moving caret left/right inside edited cell
23422             and making the edited cell jump when the caret hits cell borders
23423           - Tab and Enter are now passed to the datagrid after being handled
23424         * TextBoxBase.cs:
23425           - Removed capture code now that Control handles it
23426           - set_SelectionStart now ensures caret is visible
23427
23428 2006-03-16  Jackson Harper  <jackson@ximian.com>
23429
23430         * TrackBar.cs: Debackwards the increment/decrement for handling
23431         mouse clicks on the bar with vertical trackbars.
23432         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
23433         bottom to match MS.
23434
23435 2006-03-16  Mike Kestner  <mkestner@novell.com>
23436
23437         * ListView.cs: make shift/ctrl keyboard and mouse selection 
23438         consistent with the MS control. Fix a bug in
23439         SelectedListViewItemCollection.Clear that was pissing me off for the
23440         better part of a day because the collection was being altered
23441         underneath us as we walked the list.
23442
23443 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
23444
23445         * Control.cs: Not sure how we could miss this so long, but it seems
23446           that MS.Net has Capture set all the way from before calling 
23447           OnMouseDown through sending the mouse events until after
23448           OnMouseUp. This will fix DataGrid's selection being set to end
23449           at the location of the MouseUp.
23450
23451 2006-03-15  Jackson Harper  <jackson@ximian.com>
23452
23453         * BindingContext.cs: Check the binding after its added so that it
23454           can initialize the binding managers and hookup to events.
23455         * Binding.cs: Data members seem to sometimes include rows/cols in
23456           the format Row.Column we now take this into account.
23457           - Hookup to the position changed event so we can update the
23458           control when the position has changed in the data set.
23459         * CurrencyManager.cs: Take into account the row/col naming
23460           convention when creating dataset tables.
23461         * BindingContext.cs: Using a newer better way of storing
23462           datasource/datamember pairs.  Hopefully this better matches MS for
23463           looking up binding managers.
23464
23465
23466 2006-03-15  Jackson Harper  <jackson@ximian.com>
23467
23468         * BindingContext.cs: The currency manager needs the data member
23469         name, if the member is a data set we use the name to find the
23470         correct table.
23471         * CurrencyManager.cs: When creating the list prefer an IList over
23472         an IListSource.
23473         - Attempt to create a DataTable from a DataSet (TODO: might need
23474         some better error checking here, although MS doesn't seem to have much)
23475         - If we have a DataTable create a view and use it as our list.
23476
23477 2006-03-15  Mike Kestner  <mkestner@novell.com>
23478
23479         * ListView.cs: keep a matrix of the icon mode layout to facilitate
23480         keyboard navigation. Support Up/Down/Left/Right selection correctly
23481         for all 4 View modes.
23482         * ListViewItem.cs: add internal row/col fields for icon layouts.
23483
23484 2006-03-15  Jackson Harper  <jackson@ximian.com>
23485
23486         * TabControl.cs: Redraw the tabs when we resize so their newly
23487         calculated sizes are drawn on screen.
23488         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
23489         composite characters.
23490         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
23491         - filter events so that composite characters can be created
23492         patches by peter
23493         * X11Structs.cs: Add XIMProperties enum.
23494
23495 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
23496
23497         * Control.cs (BringToFront, SendToBack): Don't use window or handle
23498           unless it's created
23499
23500 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
23501
23502         * Control.cs (PerformLayout): We don't need to consider visiblity
23503           for anchoring, only for docking. This fixes 'whacky' alignment
23504           in listbox and other controls that use implicit scrollbars after
23505           the previous PerformLayout patch
23506         * ListBox.cs: Switched to use implicit scrollbars
23507           
23508 2006-03-14  Mike Kestner  <mkestner@novell.com>
23509
23510         * ToolBar.cs: 
23511         * VScrollBar.cs:
23512         - chain up the "new event" overrides to base and use
23513         OnEvent to raise them.  Part of fix for bug #76509.
23514
23515 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
23516
23517         * FileDialog.cs: Do not select an item in the parent directory
23518           on backspace
23519
23520 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
23521
23522         * Control.cs (PerformLayout): It would seem that we considered
23523           invisible windows for our layout. Not quite the right thing
23524           to do. Now we don't any longer, thereby fixing bug #76889.
23525
23526 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
23527
23528         * Control.cs (CanFocus): I goofed. A control can have focus 
23529           even though it's not selectable. Made it match MS docs.
23530
23531 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
23532
23533         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
23534           center by default (fixes #76895)
23535         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
23536           all uses of Border3DSides.All with the explicit ORd together
23537           Left|Right|Top|Bottom because I assume that nobody was aware 
23538           that All also implies a center fill. Most places I checked had
23539           a fill right above.
23540         * ProgressBarStyle.cs: Added
23541
23542 2006-03-13  Mike Kestner  <mkestner@novell.com>
23543
23544         * ListView.cs: fix breakage in drag shadow header positioning 
23545         from Peter's csc compilation fix.
23546
23547 2006-03-13  Mike Kestner  <mkestner@novell.com>
23548
23549         * ListView.cs: fix NRE produced by backspacing twice in a focused
23550         FileDialog.
23551
23552 2006-03-13  Mike Kestner  <mkestner@novell.com>
23553
23554         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
23555
23556 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
23557
23558         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
23559           be changed
23560         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
23561           the allowed size before making programmatic size changes
23562
23563 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
23564
23565         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
23566           set, metacity is broken and will still use the emty sizes in 
23567           the struct. (Fix for #77089)
23568
23569 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
23570
23571         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
23572           WindowExStyles and marked both enums as Flags
23573         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
23574           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
23575           to match WindowStyles split
23576         * XplatUIX11.cs:
23577           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
23578           - Updated to match WindowStyles split
23579         * XplatUIWin32.cs:
23580           - Fixed FosterParent creation, was using ExStyle on the Style field
23581             (This should help with Popup focus issues)
23582           - Updated to match WindowStyles split
23583
23584 2006-03-13  Jackson Harper  <jackson@ximian.com>
23585
23586         * MdiWindowManager.cs: Use the system menu height. Fixes some
23587         strange sizing issues.
23588
23589 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
23590
23591         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
23592         * TextBoxBase.cs:
23593           - Scroll to caret after inserting text (#77672)
23594           - Make scroll range one pixel higher, fixes off-by-one error (and
23595             makes underlines visible on the last line)
23596
23597 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
23598
23599         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
23600           the keyboard state from being stuck with keys in 'pressed' state when
23601           focus is switched away via keyboard
23602         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
23603           reset the keyboard if no X11 KeyUp events are expected to come
23604         * X11Structs.cs: Switched type of Visible to bool to match driver
23605
23606 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
23607
23608         * TextControl.cs:
23609           - Switched caret to be just 1 pixel wide, matches MS and looks less
23610             clunky
23611           - Moved caret display 1 pixel down from the top of the control
23612             to improve view
23613           - InsertCharAtCharet: Update the selection start if moving the caret
23614             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
23615           - No longer always creating the caret when the caret methods are
23616             called. Only the actual ShowCaret/HideCaret will do that now
23617           - Only setting caret visible if the owner control has focus
23618           - UpdateView: Added invalidation-shortcut logic for center and right 
23619             aligned text. Previously we'd update all according to the left
23620             logic which caused drawing errors. Also fixed height of invalidated
23621             areas, now properly invalidating the whole area (was off-by-one)
23622           - owner_HandleCreated: Always generate the document when the
23623             handle is created; this ensures that 
23624         * TextBoxBase.cs:
23625           - Fixed situation where caret would disappear under the right
23626             window border, also improved scrolling behaviour on left-
23627             aligned textboxes
23628           - Fixed right-aligned textboxes to have a border to the
23629             right instead of the caret being under the right border
23630         * XplatUIX11.cs:
23631           - Switched from 'nested' to simple visible/not visible tracking 
23632             for caret (part of fix for #77671)
23633           - No longer passing through translated FocusIn/FocusOut messages
23634             since we were notifying too often and the wrong windows. Instead
23635             we just notify our focussed window of receiving or loosing focus
23636         * XplatUIWin32.cs: Switched from 'nested' show/hide 
23637           counting for caret to simple visible yes/no behaviour (part of 
23638           fix for #77671)
23639
23640 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
23641
23642         * Mime.cs: Remove debug code...
23643
23644 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
23645
23646         * MimeGenerated.cs: Removed
23647         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
23648           and subclasses) from /usr/(local/)share/mime and
23649           $HOME/.local/share/mime.
23650
23651 2006-03-10  Jackson Harper  <jackson@ximian.com>
23652
23653         * MdiWindowManager.cs: Recalc the NC area when a window is
23654         maximized/restored so that the menu area is drawn on forms that
23655         don't have a menu.
23656
23657 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
23658
23659         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
23660           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
23661           us to force a WM_NCCALCRESIZE message being sent. This is needed
23662           for MDI maximizing.
23663
23664 2006-03-10  Jackson Harper  <jackson@ximian.com>
23665
23666         * Form.cs: We need to use the ActiveMenu when calculating menu
23667         height.
23668         - Fix nullref when the window manager hasn't been created yet.
23669         * Control.cs: Fix nullref when we try to bring a control to the
23670         front that has no parent.
23671         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
23672         height.
23673         - Add a dummy item to the maximized menu so it always has the
23674         correct height. Otherwise when there are no menus we don't get our
23675         icon and buttons.
23676         
23677
23678 2006-03-10  Jackson Harper  <jackson@ximian.com>
23679
23680         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
23681         stuff.
23682         * Form.cs: Make the window_state internal so the window managers
23683         can track it.
23684         - When an MDI child is maximized let its window manager create the
23685         main menu (so it can add its icon).
23686         - Notify the window managers of state changes
23687         - Let the window manager paint its buttons and handle button
23688         clicks on the menu when it is maximized.
23689         * InternalWindowManager.cs: Move the prev_bounds into the mdi
23690         window manager, since tool windows don't use it, only mdi windows.
23691         - Tell the main form that we don't want it to handle NCPAINT
23692         itself to avoid extra painting.
23693         - Handle clicks on a maximized windows menu.
23694         - Handle window state changes
23695         - Handle minimize/maximize clicks correctly by setting the window state.
23696         * MdiWindowManager.cs: Add an icon menu that (the menu you get
23697         when clicking on the forms icon).
23698         - New method to create a forms maximized menu. This is its normal
23699         menu + an icon.
23700         - Handle window state changes.
23701         - Handle sizing of maximized windows.  Maximized windows are just
23702         drawn bigger then the parent visible area. All controls are still
23703         there, they are just outside the visible area (this matches windows).
23704         * MdiClient.cs: No scrollbars when a child window is maximized.
23705         - Let the children windows figure out how big they should be when
23706         sizing maximized windows.
23707         - Implement a version of ArrangeIconicWindows somewhat similar to
23708         Windows version.  There are some little differences, but I don't
23709         think any app will rely on the layout of minimized mdi windows.
23710
23711 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
23712
23713         * Padding.cs: Several fixes to allow compiling with csc 2.0
23714
23715 2006-03-09  Jackson Harper  <jackson@ximian.com>
23716
23717         * Menu.cs:
23718         * MenuItem.cs: Cheap hack so we can add items to the list without
23719         the events being raised.  This allows adding mdi items during
23720         drawing. TODO: Should probably find a better time to add the items.
23721
23722 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
23723
23724         * ThemeWin32Classic.cs:
23725           - CheckBox_DrawText: Added logic to not wrap if not enough space
23726             is available (Fix for bug #77727)
23727           - RadioButton_DrawText: Added logic not to wrap if not enough
23728             space is available (Fix for bug #77727). Also removed some
23729             duplicate code, DrawString always drawing the regular text
23730             before hitting the if statement.
23731
23732 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
23733
23734         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
23735
23736 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
23737
23738         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
23739         * ContainerControl.cs: Partial implementation of some 2.0 scaling
23740           methods. Moved the new 2.0 properties into alphabetical order with
23741           other properties and added MonoTODO tags
23742
23743 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
23744
23745         * AutoScaleMode.cs: Added. Fix build.
23746
23747 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
23748
23749         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
23750           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
23751           and was requiring premature handle creation for calls from above
23752         * Form.cs, Control.cs: Removed handle arguments from calls to
23753           CalculateClientRect()
23754
23755 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
23756
23757         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
23758           drag_column.column_rect is MarshalByRef and can't be used that way
23759
23760 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
23761
23762         * AxHost.cs: Added deserialization constructor for 
23763           AxHost+State (fixes 77743)
23764
23765 2006-03-09  Mike Kestner  <mkestner@novell.com>
23766
23767         * ListView.cs: 
23768         - Added column drag reordering for details view.
23769         - fixed behavior when mouse is dragged off column and
23770         AllowColumnReorder is false.
23771         * ColumnHeader.cs: clone the format too in Clone.
23772         * Theme.cs: add DrawListViewHeaderDragDetails method.
23773         * ThemeWin32Classic.cs:
23774         - impl new method for drawing drag column shadows and targets.
23775         - support column offset for details mode in DrawListViewItem.
23776
23777 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
23778
23779         * TextControl.cs: Reset the char_count when the document is cleared
23780           (Fixes bug reported on mono-winforms mailing list)
23781
23782 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
23783
23784         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
23785           of calling base we simply process the key ourselves, since both
23786           DefWindowProc and the handled method would set m.Result. 
23787           (Fixes #77732)
23788
23789 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
23790
23791         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
23792           method also moves the window; instead implemented a copy of
23793           Control.ScaleCore (Part of fix for #77456)
23794         * TextBoxBase.cs: 
23795           - Created new CreateGraphicsInternal method to allow providing
23796             a graphics context when no handle is created without triggering
23797             handle creation. (Part of fix for #77456)
23798           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
23799         * TextControl.cs: 
23800           - Switched Constructor to require TextBoxBase instead of Control (to
23801             allow uncast access to CreateGraphicsInternal)
23802           - Safeguarded use of owner.Handle property. No longer accessing it
23803             unless the handle is already created.
23804           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
23805           - Now triggering a recalc when owning control becomes visible
23806         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
23807           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
23808           premature handle creation (Part of fix for #77456)
23809         * Control.cs:
23810           - We now only destroy our double-buffering buffers when the
23811             control is resized or disposed, but not when visibility
23812             changes. (The code even re-created them twice every time)
23813           - Now requiring a redraw of the buffer on visibility changes
23814             (fixes bug 77654 part 2)
23815           - Not passing OnParentVisibleChanged up unless the control
23816             is visible
23817           - CanFocus: Fixed to match MS documentation
23818           - Focus: Fixed to return actual focus state and to check if
23819             setting focus is legal before setting it
23820
23821 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
23822
23823         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
23824           when to draw focus rectangle by looking at parent focus and
23825           selected state instead. This fixes TabPages on Linux sometimes
23826           having none or multiple focus rectangles.
23827         * XplatUIX11.cs (SetFocus): 
23828           - Don't set the focus if the same window already has focus
23829           - Use SendMessage instead of PostMessage (like it's Win32
23830             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
23831             to match MS behaviour
23832         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
23833           are not selectable.
23834
23835 2006-03-07  Jackson Harper  <jackson@ximian.com>
23836
23837         * PictureBox.cs: Revert line I accidently committed last week.
23838
23839 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
23840
23841         * Control.cs: 
23842           - Added new IsRecreating and ParentIsRecreating properties to
23843             allow testing if RecreateHandle has been called on ourselves
23844             or one of our parents
23845           - WndProc(WM_DESTROY): If our control handle is being recreated
23846             we immediately need to create the handle when receiving the
23847             destroy, that way our child windows find a valid parent handle
23848             when they themselves are being recreated upon WM_DESTROY receipt
23849             (fix for bug #77654 part 1)
23850         * XplatUIX11.cs:
23851           - DestroyWindow: WM_DESTROY must be sent to our own window before
23852             notifying any child windows. MS documents that child windows
23853             are still valid when WM_DESTROY is received. (Control now relies on
23854             this behaviour)
23855           - Added some fine-grain debug options
23856
23857 2006-03-06  Jackson Harper  <jackson@ximian.com>
23858
23859         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
23860         box and base calculations off this.
23861         * MdiChildContext.cs:
23862         * MdiWindowManager.cs: Don't need to ensure scrollbars here
23863         anymore.
23864         
23865 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
23866
23867         * Splitter.cs: In situations where the affected control is added
23868           to the parent's control list after the splitter, we would not
23869           populate affected. Now we try populating it on mousedown, if
23870           it's not already set, and force it to be re-set whenever our
23871           parent changes.
23872
23873 2006-03-03  Matt Hargett  <matt@use.net>
23874
23875         * Control.cs: implement Control.Padding
23876         * Padding.cs: -Padding.All returns -1 when constructing with the
23877         implicit default ctor
23878         -Padding.ToString() matches MS.NET
23879         * ContainerControl.cs: implement
23880         ContainerControl.AutoScaleDimensions
23881         * ListControl.cs: implement ListControl.FormattingEnabled
23882         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
23883         * ButtonBase.cs:
23884         * TabPage.cs: Implement UseVisualStyleBackColor.
23885         * PictureBox.cs: Implement PictureBox.InitialImage.
23886
23887 2006-03-03  Mike Kestner  <mkestner@novell.com>
23888
23889         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
23890         event declarations to proxy to base event.
23891         * ListViewItem.cs: update to use ItemControl.
23892         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
23893         * ThemeWin32Classic.cs: update to new ListView theme API and fix
23894         column header label rendering for 0 width columns.
23895
23896 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
23897
23898         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
23899           that causes the control to be created. Fixes #77476.
23900
23901 2006-03-02  Jackson Harper  <jackson@ximian.com>
23902
23903         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
23904         expose_pending.
23905
23906 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
23907
23908         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
23909           passed in for the EventArgs (fixes #77690)
23910
23911 2006-03-01  Jackson Harper  <jackson@ximian.com>
23912
23913         * ScrollBar.cs: Refresh afterbeing resized.
23914
23915 2006-02-28  Mike Kestner  <mkestner@novell.com>
23916
23917         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
23918         Clean up a tracker compile warning.
23919         * MenuItem.cs: add internal PerformPopup method.
23920         [Fixes #77457]
23921
23922 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
23923
23924         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
23925           implicit expose) when the text is set to null
23926
23927 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
23928
23929         * RichTextBox.cs (FlushText): When newline is true, we always
23930           need to split the line, even if no text is on it and we may
23931           never eat newlines. (Fixes #77669)
23932
23933 2006-02-28  Mike Kestner  <mkestner@novell.com>
23934
23935         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
23936         and set Selected instead.
23937         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
23938         collections.
23939
23940 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
23941
23942         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
23943
23944 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
23945
23946         * FontDialog.cs:
23947           - Got rid of the panel. All controls are now directly added to
23948             the dialog form
23949           - It is now possible to set a font with the Font property
23950           - MinSize and MaxSize property do now what they should
23951           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
23952           - Searching and selecting a font with the font textbox works now,
23953             the same applies to the style and size textbox
23954           - Draw the correct 3D border in the example panel
23955           - Fixed a little mem leak (unused fonts didn't get disposed)
23956           - Many other internal updates/rewrites...
23957           - Fix typo
23958
23959 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
23960
23961         * TextControl.cs: 
23962           - InsertRTFFromStream: Added 'number of characters inserted' argument
23963           - set_SelectedRTF: Now using the number of characters to calculate
23964             the new location for the selection and cursor (x/y cannot be used
23965             due to potentially already wrapped text)
23966
23967 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
23968
23969         * TextControl.cs: Added property and implemented means to allow 
23970           disabling recalculation of a document (can be used to speed up
23971           multiple inserts and is needed to make RTF inserts predictable, see
23972           bug #77659)
23973         * RichTextBox.cs: Using the new NoRecalc property of Document to
23974           keep x/y insert locations predictable. Also makes it faster inserting
23975           large chunks of RTF
23976
23977 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
23978
23979         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
23980           it's easier for a child control to handle the other messages without
23981           having to duplicate the special functionality
23982         * TextBoxBase.cs
23983           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
23984             code to handle processing the key ourselves, in order to get 
23985             access to the result of KeyEventArgs.Handled. We now only call 
23986             ProcessKey if they key hasn't been handled already. Fixes #77526.
23987           - set_Text: If null or empty string is given, just clear the 
23988             document. Fixes part of #77526
23989
23990 2006-02-27  Jackson Harper  <jackson@ximian.com>
23991
23992         * SizeGrip.cs: Paint the background color before painting the grip
23993         so things look right.
23994         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
23995
23996 2006-02-27  Mike Kestner  <mkestner@novell.com>
23997
23998         * ListView.cs:
23999           - Restructure layout and invalidation model to remove a ton of
24000           flicker from the control and speed up performance in general.
24001           - Add manual column resize, flickers like crazy, but I already have
24002           some ideas on how I'll fix that. (#76822)
24003           - Merge the three Icon-based views into a single layout method.
24004           - Move item selection interaction logic from the item since 
24005           interaction with the collections is more appropriate to the view.
24006           - Deselection on non-item clicks.
24007         * ListViewItem.cs:
24008           - Encapsulate most of the layout. Add some internal props to trigger
24009           layout.  Move to a model where Items invalidate themselves instead
24010           of just invalidating the whole control every time something changes.
24011           - Invalidate on Text/Caption changes.
24012           - switch to an offset based layout model to avoid having to absolute
24013           position every element on item moves.
24014           - correct checkbox layout to conform to MS layout.
24015         * ThemeWin32Classic.cs:
24016           - refactor some column header drawing code.
24017           - fix string justification for column headers (#76821)
24018           - make SmallIcon labels top justified for compat with MS impl.
24019         * ThemeClearlooks.cs:
24020           - adjust to new ListViewItem internal checkbox bounds api.
24021
24022 2006-02-27  Jackson Harper  <jackson@ximian.com>
24023
24024         * Control.cs:  Change where implicit controls fall in the zorder.
24025         They are now on top of all children.
24026         - Synced AddImplicit code with Add
24027         - Removed unused enumerator.
24028         * SizeGrip.cs: Remove the TODO as its been TODONE.
24029
24030 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
24031
24032         * TextControl.cs(Insert): Combine the last lines unless the insertion
24033           string ends with \n\n, otherwise we leave one line too many (Fixes
24034           something I noticed with the testapp for #77526; the bug itself was
24035           already fixed in the previous checkin)
24036
24037 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
24038
24039         * RichTextBox.cs:
24040           - SelectionColor and SelectionFont methods no longer set absolute
24041             styles. Instead, the keep font or color respectively (This 
24042             resolves a long-standing FIXME in the code)
24043           - When flushing RTF text, the insert code now considers text trailing
24044             behind the insertion point (Fixes the bug where when replacing
24045             the selected text via SelectedRTF the remainder of the line behind 
24046             the selection would stay on the first insertion line)
24047         * TextBoxBase.cs:
24048           - AppendText now updates the selection points after inserting text
24049           - AppendText now ensures that the last tag (sometimes 0-length) of
24050             the document is used for the style information (Fixes part of 
24051             bug #77220)
24052         * TextControl.cs:
24053           - Created new FontDefiniton class to allow describing partial style
24054             changes
24055           - StreamLine() now takes a lines argument, to allow it to decide
24056             whether an encountered zero-length tag is the last in the document
24057             (which must be kept to not loose the font/color contained in it,
24058             for later appends)
24059           - Created Combine() and Split() methods for Marker structs, to 
24060             support marker updates due to reformatted documents (soft line
24061             wraps)
24062           - Implemented Document.CaretTag setter
24063           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
24064             of the last line (Not the cause, but also exposed by bug #77220)
24065           - Added LineTag argument to InsertString method, to allow callers
24066             to force a certain tag to be used (required to force use of the
24067             trailing zero-length tag of a document)
24068           - Now updating markers in Combine(), to avoid stale tag markers
24069           - Added some method descriptions to aid maintenance
24070           - Implemented new FormatText concept, allowing additive/subtractive
24071             formatting by only specifying the components that are to be 
24072             changed. This was needed for resolving the RTB.SelectedColor/
24073             RTB.SelectedFont fixmes
24074           - Added Break() support method to allow breaking up linetags (used
24075             for partial formatting)
24076           - Added GenerateTextFormat() method. It is used for partial 
24077             formatting and allows to generate a full font/color from given
24078             attributes and an existing tag.
24079
24080 2006-02-26  Jackson Harper  <jackson@ximian.com>
24081
24082         * XplatUIX11.cs:  Use the correct caption height.
24083         - Translate hittest coordinates to screen coords to match MS.
24084         * XplatUIWin32.cs: When we create MDI windows we need to reset
24085         some of the style flags, so we get a nice blank window, and can
24086         draw all the decorations ourselves.
24087         - Set a clipping rectangle on the non client paint event, the
24088         window manager drawing code needs one.
24089         * Form.cs: The window manager needs to know when the window state
24090         has been updated.
24091         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
24092         don't need to factor in border and title sizes in these
24093         methods. TODO: Remove the args and fix the call points.
24094         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
24095         properly.
24096         - Let the driver set the cursors.
24097         - Improve active window handling
24098         - Correct sizes for title bars and buttons.
24099         - Match MS drawing better
24100         * MdiWindowManager.cs: We don't need to handle border style
24101         updates specially anymore.
24102         - Check for scrollbars when windows are done moving
24103         - Handle Active properly.
24104         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
24105         correctly. I am spewing the exception though, so we don't hide the
24106         bugs.
24107         
24108 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
24109
24110         * DataGridViewRowPostPaintEventArgs.cs,
24111           DataGridViewCellPaintingEventArgs.cs,
24112           DataGridViewRowCollection.cs,
24113           DataGridViewRowPrePaintEventArgs.cs,
24114           DataGridViewCell.cs: Clear a few warnings and implement a few
24115           exceptions that should be thrown.
24116
24117 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
24118
24119         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
24120           'inheriting' our parent's (non-default) cursor. (Part of
24121            the fix for #77479)
24122
24123 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
24124
24125         * XplatUIX11.cs: Fixed cast to make csc happy
24126
24127 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
24128
24129         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
24130           it's for the client area (part of fix for #77479 and needed
24131           for MDI window cursor handling)
24132         * XplatUIX11.cs
24133           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
24134             the appropriate default cursors and also passing the message
24135             up the parent chain 
24136           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
24137             for non-client areas
24138
24139 2006-02-15  Jackson Harper  <jackson@ximian.com>
24140
24141         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
24142         is a real MDI window
24143
24144 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
24145
24146         * X11DesktopColors.cs: Instead of checking the desktop session
24147           string for "KDE" check if it starts with "KDE"
24148
24149 2006-02-10  Jackson Harper  <jackson@ximian.com>
24150
24151         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
24152         systems).
24153
24154 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
24155
24156         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
24157           errors
24158         * ColorDialog.cs:
24159           - Got rid of the panel. All controls are now directly added to
24160             the dialog form
24161           - Changed to mono coding style
24162
24163 2006-02-10  Jackson Harper  <jackson@ximian.com>
24164
24165         * InternalWindowManager.cs: We don't need the set visibility to
24166         false hack anymore now that peter has written beautiful shutdown
24167         code.
24168
24169 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
24170
24171         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
24172           where already explicitly destroyed
24173
24174 2006-02-10  Jackson Harper  <jackson@ximian.com>
24175
24176         * MdiClient.cs: Handle the case where windows are too high or to
24177         the left and we need scrollbars.
24178
24179 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
24180
24181         * MimeIcon.cs: Added some icons
24182         * FileDialog.cs:
24183           - Fixed bug #77477
24184           - Got rid of the panel. All controls are now directly added to
24185             the dialog form
24186           - Changed to mono coding style
24187           - On Linux "My Computer" and "My Network" will now show some
24188             more usefull information. A new class, MasterMount, gathers
24189             this information from /proc/mount. Updated MWFFileView to make
24190             use of this information
24191           - Fixed a bug that caused FileDialog to crash when
24192             ".recently_used" file had a zero size
24193           - FilterIndex does now what it should
24194           - Some Refactoring
24195         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
24196             FileDialog changes
24197
24198 2006-02-09  Jackson Harper  <jackson@ximian.com>
24199
24200         * ComboBox.cs: Don't touch if null.
24201
24202 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
24203
24204         * Cursor.cs: 64bit safeness fix
24205         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
24206
24207 2006-02-09  Jackson Harper  <jackson@ximian.com>
24208
24209         * Form.cs: If a form is made into an MDI form update the styles so
24210         all the props can get set correctly.
24211         - Kill the mdi_container when we dont need it anymore.
24212         * InternalWindowManager.cs: Add missing NOT
24213
24214 2006-02-08  Jackson Harper  <jackson@ximian.com>
24215
24216         * InternalWindowManager.cs: Respek clipping when drawing MDi
24217         decorations.
24218
24219 2006-02-08  Jackson Harper  <jackson@ximian.com>
24220
24221         * Hwnd.cs: Add bits to track non client expose events.
24222         * XplatUIX11.cs: Track non client expose events on the hwnd. This
24223         gives us a proper invalid rect and will allow for some nice
24224         optimizations with NC client drawing
24225         - MDI windows are children windows, so move their style handling
24226         into the child window block.
24227         * InternalWindowManager.cs: Remove a state reset that was
24228         getting invoked at the wrong time. Fixes managed windows getting
24229         into a 'stuck' captured state.
24230
24231 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
24232
24233         * TextControl.cs (Document.ctor): Now initializing 
24234           selection_anchor. Fixes #77493
24235
24236 2006-02-07  Jackson Harper  <jackson@ximian.com>
24237
24238         * TrackBar.cs: The increment/decrements were backwards.
24239
24240 2006-02-07  Mike Kestner  <mkestner@novell.com>
24241
24242         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
24243         to the instance itself.
24244
24245 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
24246
24247         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
24248           on ulongs and pointers, the size differs between 32bit and 64bit
24249           systems. 
24250
24251 2006-02-07  Mike Kestner  <mkestner@novell.com>
24252
24253         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
24254         for 64 bit platforms to work around a metacity bug. 
24255
24256 2006-02-07  Jackson Harper  <jackson@ximian.com>
24257
24258         * TrackBar.cs: Process the input keys we need, and hookup to
24259         KeyDown instead of using WndProc, so we get key messages.
24260
24261 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
24262
24263         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
24264           machine we're on. 
24265         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
24266           we need to translate the XdndVersion atoms array before sending it
24267
24268 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
24269
24270         * XplatUIX11.cs: 
24271           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
24272             number of bits for the property, not the number of bytes. The
24273             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
24274             but would not crash since it specified 8 bits instead of 4 bits)
24275           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
24276             defined as XID -> long in the C headers)
24277           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
24278             references since those are now IntPtr to begin with
24279           - Switched all Atom.XXX 'int' casts to IntPtr casts
24280           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
24281           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
24282           - Added XChangeActivePointerGrab DllImport (for X11DnD)
24283         * X11Structs.cs:
24284           - Changed 'int' type for Atoms in XEvent structures to IntPtr
24285           - Changed atom in HoverStruct to be IntPtr
24286         * X11DnD.cs:
24287           - Removed local DllImports, switched code to use those from XplatUIX11
24288           - Removed/fixed casts related to the switch of Atom to be a IntPtr
24289
24290 2006-02-06  Mike Kestner  <mkestner@novell.com>
24291
24292         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
24293         method signatures in the import region.  There may still be some
24294         lingering struct marshaling issues, as I didn't drill down into those.
24295         Yet.
24296
24297 2006-02-06  Jackson Harper  <jackson@ximian.com>
24298
24299         * ComboBox.cs: Dont manually set the top_item, this is computed
24300         when the scrollbar position is set.
24301
24302 2006-02-06  Mike Kestner  <mkestner@novell.com>
24303
24304         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
24305         startup crashes on amd64.  There's other fixes needed.  All pinvoke
24306         usage of Atom needs to be mapped to IntPtr for example.  And there are
24307         likely other int/long issues to be addressed.
24308
24309 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
24310
24311         * FileDialog.cs: One more...
24312
24313 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
24314
24315         * FileDialog.cs: Next try
24316
24317 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
24318
24319         * FileDialog.cs: First part of fix for #77464
24320
24321 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
24322
24323         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
24324           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
24325           AcceptButton border drawing.
24326
24327 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
24328
24329         * Form.cs: Moved positioning of form after auto scaling is applied,
24330           otherwise it would possibly use wrong form size.
24331
24332 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
24333
24334         * Control.cs (RecreateHandle): No need to re-create any child
24335           controls, the child windows will get destroyed automatically by
24336           the windowing system or driver, and re-created when the handle
24337           is being accessed the first time. Fixes #77456
24338         * Form.cs: No longer setting the form to closing if the handle is 
24339           being recreated. This seems like the right thing to do, don't
24340           have a bug or testcase for this, though.
24341
24342 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
24343
24344         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
24345           controls to avoid unwanted side effects
24346
24347 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
24348
24349         * Control.cs: 
24350           - ScaleCore needs to scale the bounds, not the ClientSize of the 
24351             control. Fixes #77416.
24352           - DefaultSize is 0,0 for control
24353         * TextBoxBase.cs: 
24354           - DefaultSize is 100, 20
24355           - SetBoundsCore: Now enforcing the height, no matter if the provided
24356             height is more or less than the preferred one, as long as AutoSize
24357             is on
24358         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
24359
24360 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
24361
24362         * Control.cs:
24363           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
24364             call unless both performLayout is true *and* we have a pending
24365             layout change
24366           - ResumeLayout: MS does not completely nest Suspend and Resume,
24367             they bottom out at 0, fixed our code to match that.
24368           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
24369             SetBoundsCore, we were updating even when we shouldn't. This fixes
24370             swf-anchors mis-anchoring when resizing the app fast and lots.
24371           - UpdateDistances: Now only setting the left and top distance if 
24372             we have a parent and are not suspended, this is based on
24373             a suggestion by Don Edvaldson in bug #77355.
24374           - OnVisibleChanged: Fixed logic when to create the control. We may
24375             not create the control if we have no parent or if it's not visible;
24376             switched to using Visible property instead of is_visible field 
24377             since the property also considers parent states. This fixes a bug
24378             when starting Paint.Net
24379
24380 2006-02-02  Jackson Harper  <jackson@ximian.com>
24381
24382         * Form.cs: If the forms handle hasn't been created yet don't call
24383         into xplatui to make it top most, just set the topmost flag on the
24384         form in CreateParams
24385         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
24386
24387 2006-02-01  Jackson Harper  <jackson@ximian.com>
24388
24389         * ScrollableControl.cs: Refactored the Recalculate method a
24390         little, this wasn't handling all the variants of bottom and right
24391         bars needed to be added and added/removed based on their
24392         counterparts being added/removed (which changes the drawable
24393         size). Also we special case client widths and heights of 0 and
24394         don't add the scrollbar for those.
24395
24396 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
24397
24398         * XplatUIX11.cs: 
24399           - Added method to get AbsoluteGeometry(); currently unused, but might
24400             be used in the future, if we try again to figure out toplevel
24401             coordinates with some more crappy window managers
24402           - Added FrameExtents() method to retrieve the WM set decoration size
24403           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
24404             to deal with at least KDE, FVWM and metacity (Fixes #77092)
24405         * Hwnd.cs: 
24406           - Added whacky_wm tracking var for metacity
24407           - Added logic to have default menu height if the actual menu height
24408             has not yet been calculated (part of fix for #77426)
24409         * Form.cs: Keep track whether client size has been set and re-set 
24410           it if a menu is added/removed afterwards (Fixes #77426)
24411
24412 2006-01-31  Jackson Harper  <jackson@ximian.com>
24413
24414         * Control.cs: When a new Site is set on the component attempt to
24415         pull the AmbientProperties from it.
24416
24417 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
24418
24419         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
24420           in the background of the owning form. Fixes #77332
24421
24422 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
24423
24424         * MimeIcon.cs: Fix for #77409
24425
24426 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
24427
24428         * XplatUIX11GTK.cs: Initial import
24429
24430 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
24431
24432         * FixedSizeTextBox: fixes class signature
24433
24434 2006-01-30  Jackson Harper  <jackson@ximian.com>
24435
24436         * FixedSizeTextBox.cs: New internal class that represents a
24437         textBox that will not be scaled.
24438         * TreeView.cs:
24439         * ComboBox.cs:
24440         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
24441         standard TextBox.
24442                 
24443 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
24444
24445         * XplatUIX11.cs: Retrieve default screen number instead of
24446           assuming 0. Attempted fix for #77318
24447
24448 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
24449
24450         * XplatUIWin32.cs: 
24451           - GetWindowPos: When a window is parented by FosterParent, use 
24452             the desktop instead of FosterParent as the base to get coordinates
24453           - CreateWindow: Don't make FosterParent the parent window for Popups
24454             if we don't want a taskbar entry, Popups automatically don't get one
24455         * Hwnd.cs: Need to call remove to actually remove the key from the
24456           hash table
24457
24458 2006-01-30  Mike Kestner  <mkestner@novell.com>
24459
24460         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
24461
24462 2006-01-30  Jackson Harper  <jackson@ximian.com>
24463
24464         * TreeView.cs:
24465         * TreeNode.cs: Raise events no matter how the treenode is
24466         checked. Patch by Don Edvalson.
24467
24468 2006-01-30  Jackson Harper  <jackson@ximian.com>
24469
24470         * TreeNode.cs: Signature fix.
24471
24472 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
24473
24474         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
24475
24476 2006-01-20  Mike Kestner  <mkestner@novell.com>
24477
24478         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
24479         event forwarding when menus are active.
24480         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
24481         Most of the patch is pdb's with a little rework.
24482
24483 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
24484
24485         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
24486           Removed GetMenuDC and ReleaseMenuDC methods; replaced
24487           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
24488         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
24489         * InternalWindowManager.cs: Added use of PaintEventStart/End to
24490           handling of WM_NCPAINT message, now passing the PaintEventArgs to
24491           the PaintWindowDecorations method
24492         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
24493         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
24494         * MenuAPI.cs: Made tracker window invisible
24495         * XplatUIWin32.cs:
24496           - Removed GetMenuDC and ReleaseMenuDC methods
24497           - Implemented the client=false path for PaintEventStart and
24498             PaintEventEnd
24499
24500 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
24501
24502         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
24503         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
24504           styles
24505         * Form.cs: 
24506           - MaximizeBox, MinimizeBox: Recreate the handle when setting
24507             the style
24508           - CreateParams: Reworked the styles to match MS look'n'feel,
24509             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
24510             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
24511
24512 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
24513
24514         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
24515           window is not mapped, since otherwise every form that's being 
24516           created is considered minimized, which is wrong.
24517         * Form.cs: Catching the exception and returning our internal value
24518           instead
24519
24520 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
24521
24522         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
24523           SetWindowMinMax() to have means to tell the driver about the minimum,
24524           maximum and maximized state window sizes. (Part of the fix for #76485)
24525         * Form.cs:
24526           - Implemented tracking of minimum and maximum window size, now calling
24527             new SetWindowMinMax() driver method to tell the driver (Part of the
24528             fix for #76485)
24529           - Finished handling of WM_GETMINMAXINFO method, now setting all values
24530             (Completes fix for #76485)
24531           - Calling new SetWindowMinMax driver method when the handle for a 
24532             form is created, to make sure the driver knows about it even if
24533             the values have been set before the window was created
24534           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
24535             to avoid messing up our anchoring calculations (partial fix
24536             for #77355)
24537         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
24538         * XplatUIX11.cs:
24539           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
24540           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
24541             (and presumably other freedesktop.org compliant WMs). Left the
24542             assumption unmapped=minimized, needed for SetVisible to work.
24543           - Now setting the window state when creating windows
24544           - Fixed SetVisible to consider/set the window state when mapping
24545             a Form. We cannot set the state before it's mapped, and we cannot
24546             use Form.WindowState once it's mapped (since it would ask the
24547             driver and get 'normal'. Therefore, we grab the state before
24548             mapping, map, and then set state.
24549           - Implmemented SetWindowMinMax method; Metacity does not seem to
24550             honor the ZoomHints, though.
24551         * XplatUIWin32.cs:
24552           - Removed MINMAXINFO (moved to XplatUIStructs)
24553           - Added SetWindowMinMax stub (on Win32 the only way to set that
24554             information is in response to the WM_GETMINMAXINFO message, which
24555             is handled in Form.cs)
24556           - Added logic to SetVisible to set the proper window state when a 
24557             form is made visible (fixes #75720)
24558
24559 2006-01-26  Jackson Harper  <jackson@ximian.com>
24560
24561         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
24562         same way we handle them with Invoke.
24563
24564 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
24565
24566         * Form.cs:
24567           - Added tracking of window state so CreateParams can return
24568             the appropriate style
24569           - Moved setting of WS_CAPTION style in CreateParams to allow
24570             styles without caption
24571         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
24572           control if the TextBox property is accessed. Fixes #77345
24573         * Control.cs:
24574           - get_Created: now uses is_disposed and is_created to determine
24575             return value (suggested by Jackson)
24576           - CreateHandle: No longer exits if the handle is being recreated
24577           - RecreateHandle: If the handle is not yet created call the 
24578             appropriate method to create either control or handle. If the
24579             control is already created CreateHandle will simply exit instead
24580             of just creating the handle
24581         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
24582           now SendMessage WM_DESTROY directly to the control when DestroyWindow
24583           is called.
24584         * XplatUIX11.cs: 
24585           - When DestroyWindow is called, instead of waiting for the 
24586             DestroyNotification from X11, we directly post it to the WndProc
24587             and immediately dispose the hwnd object.
24588             Same applies to DestroyChildWindows, and this obsoletes the
24589             expose_pending tracking. Contrary to Win32 behaviour we destroy our
24590             child windows before our own, to avoid X11 errors.
24591           - Removed the direct sending of WM_PAINT on UpdateWindow
24592         * XplatUIWin32.cs:
24593           - Reworked DoEvents and GetMessage to allow access to internal queue
24594             even when trying non-blocking access to the queue.  Fixes #77335. 
24595             Based on a patch suggestion by Don Edvalson. The new private
24596             GetMessage can now also be used as a backend for a PeekMessage
24597             frontend version.
24598         * XplatUI.cs: Improved debug output for CreateWindow
24599
24600 2006-01-25  Jackson Harper  <jackson@ximian.com>
24601
24602         * Help.cs: Allow param to be null. Patch by Don Edvalson.
24603
24604 2006-01-24  Jackson Harper  <jackson@ximian.com>
24605
24606         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
24607         when we have a MaxDropItems lower then the selected index.
24608
24609 2006-01-24  Jackson Harper  <jackson@ximian.com>
24610
24611         * Control.cs: Don't allow selection of non visible controls, allow
24612         selection of controls without parents.
24613
24614 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
24615
24616         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
24617         * DataGridDrawingLogic.cs: Add editing row only when is necessary
24618
24619 2006-01-23  Jackson Harper  <jackson@ximian.com>
24620
24621         * UpDownBase.cs: Make the textbox handle all the selection and
24622         tabbing. This fixes tabing to updown controls.
24623
24624 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
24625
24626         * TextBoxBase.cs: fixes exception thown the object was null
24627
24628 2006-01-23  Jackson Harper  <jackson@ximian.com>
24629
24630         * ButtonBase.cs: Just use the base CreateParams. They set
24631         visibility and enabled correctly.
24632         * ComboBox.cs:
24633         * TrackBar.cs:
24634         * MonthCalendar.cs: Lets let the base set as much of the
24635         createparams as possible so we don't have duplicate code all over
24636         the place.
24637
24638 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
24639
24640         * ThemeGtk.cs: Added TrackBar and some experimental code to
24641           get double buffering back
24642
24643 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
24644
24645         * DataGrid.cs: Allows row number set internally higher than the last
24646         when creating a new row. Restores the editing functionality.
24647
24648 2006-01-20  Mike Kestner  <mkestner@novell.com>
24649
24650         * MimeIcon.cs: delay Image creation until the icons are accessed
24651         instead of creating 190 scaled images on GnomeHandler startup.
24652
24653 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
24654
24655         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
24656           first call base before processing the event. Fixes #77279
24657
24658 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
24659
24660         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
24661           that the stride for the GDI bitmap would match the stride of
24662           a DIB or a Cursor.
24663
24664 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
24665
24666         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
24667
24668 2006-01-19  Jackson Harper  <jackson@ximian.com>
24669
24670         * ComboBox.cs: Hookup the text controls keydown event so we get
24671         those when the text control has the focus.
24672
24673 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
24674
24675         * Label.cs: Now using the base events instead of defining new ones;
24676           this allows us to just call the base properties without having to
24677           duplicate all base property logic 
24678
24679 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
24680
24681         * Label.cs: A label by default is not a tabstop (Fixes one of our
24682           failing nunit tests)
24683
24684 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
24685
24686         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
24687         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
24688
24689 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
24690
24691         * Cursor.cs: Reimplemented creating cursor bitmaps without using
24692           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
24693           This fixes #77218
24694         * XplatUIWin32.cs: 
24695           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
24696             constructor creates images that can't be saved. Part of the fix
24697             for #76103
24698           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
24699           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
24700             bug fix for handling window state in forms properly)
24701
24702 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
24703
24704         * ThemeGtk.cs: Simplify ScrollBar drawing
24705
24706 2006-01-18  Jackson Harper  <jackson@ximian.com>
24707
24708         * Splitter.cs: Set the default dock style for the splitter control
24709         in the constructor.
24710
24711 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
24712
24713         * ThemeGtk.cs: Corrected StateType and ShadowType for
24714           gtk_paint_box
24715
24716 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
24717
24718         * Control.cs: Make use of Theme.DoubleBufferingSupported
24719         * ThemeGtk.cs:
24720           - Added drawing for flat style buttons
24721           - Added ScrollBar drawing
24722
24723 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
24724
24725         * ThemeClearlooks.cs: Removed some unneeded code.
24726         * ThemeGtk.cs: First part of ThemeGtk enhancements.
24727
24728 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
24729
24730         * LinkLabel.cs: We need to update the hover drawing when
24731           leaving the control as well.
24732
24733 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
24734
24735         * DataGrid.cs: Clicking on non empty areas in the columns
24736            area was giving an exception
24737
24738 2006-01-17  Jackson Harper  <jackson@ximian.com>
24739
24740         * ThemeWin32Classic.cs:
24741         * ListView.cs: Do not draw/clip the headers when the header style
24742         is None.
24743
24744 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
24745
24746         * DataGrid.cs: Fixes 77260
24747         
24748 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
24749
24750         * DataGrid.cs: Clicking on a column on a empty grid was giving
24751           an exception
24752
24753 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
24754
24755         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
24756           or any keypress will crash the grid.
24757
24758 2006-01-17  Mike Kestner  <mkestner@novell.com>
24759
24760         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
24761         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
24762         invisible/previously-visible items.
24763         [Fixes #76909]
24764
24765 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
24766
24767         * ThemeClearlooks.cs:
24768         - Added CL_Draw_Button method; now other theme controls that are 
24769           not derived from button or do not have a button can draw buttons
24770           too
24771         - Updated ComboBox drawing
24772         - Beautified RadioButton drawing
24773         - Corrected drawing of bottom and left tabs
24774         - Beautified DateTimePicker and MonthCalendar
24775         - Added CPDrawButton and CPDrawRadioButton
24776
24777 2006-01-16  Jackson Harper  <jackson@ximian.com>
24778
24779         * ComboBox.cs: Set the initial value of the scrollbar to the
24780         current index. Reduce the numbers of refreshs and IndexOfs called.
24781
24782 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
24783
24784         * FileDialog.cs: When the file listview is focused hitting the
24785           backspace key moves the fileview to the parent directory
24786
24787 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
24788
24789         * Form.cs: 
24790           - Added RecreateHandle call when changing taskbar visibility to 
24791             trigger reparenting in Win32 driver (Fixes #75719)
24792           - If a window has minimize or maximize buttons, it cannot have
24793             a help button
24794         * XplatUIWin32.cs:
24795           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
24796             the toplevel form with FosterParent (A toolwindow not on the
24797             taskbar) (Fixes #75719)
24798           - Made FosterParent a toolwindow
24799
24800 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
24801
24802         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
24803
24804 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
24805
24806         * ToolTip.cs: If SetToolTip is called from a control and the mouse
24807           is currently over that control, make sure that tooltip_window.Text
24808           gets updated
24809
24810 2006-01-13  Mike Kestner  <mkestner@novell.com>
24811
24812         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
24813
24814 2006-01-13  Jackson Harper  <jackson@ximian.com>
24815
24816         * TreeView.cs: On MS GetNodeAt never actually factors in the X
24817         value passed.  Also redraw the selected node when we recieve
24818         focus, so tabbing between trees works correctly.
24819
24820 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
24821
24822         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
24823           ~/.gconf/%gconf-tree.xml, so use
24824           .gconf/desktop/gnome/interface/%gconf.xml
24825
24826 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
24827
24828         * TextControl.cs: Draw text in gray if control is disabled
24829
24830 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
24831
24832         * TreeView.cs: Draw the focus rectangle outside the highlight, to
24833           make sure it's always visible. Fixes #76680.
24834
24835 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
24836
24837         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
24838
24839 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
24840
24841         * PageSetupDialog.cs: Added.
24842         * PrintDialog.cs: Attributes.
24843         * PrintPreviewControl.cs: Updates.
24844         * PrintPreviewDialog.cs: Updates.
24845         
24846 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
24847
24848         * Control.cs: Undid my selection check fix, since it's not needed
24849         * TextBoxBase.cs:
24850           - Now considering the presence of hscroll/vscroll when sizing
24851             vscroll/hscroll respectively. Fixed bug #77077
24852           - Added Left/Up/Down/Right to IsInputKey list to prevent
24853             ContainerControl from stealing them. This fixes what I broke
24854             with my last checkin.
24855
24856 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
24857
24858         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
24859           I finally understand how the property can be set without a setter :-)
24860
24861 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
24862
24863         * Application.cs:
24864           - Switched RunLoop to use static Message.Create to create a 
24865             Message object
24866           - Added PreProcessMessage call in runloop for keyboard events; this
24867             is part of the fix for #77219, I overlooked this originally in the
24868             MSDN doc for PreProcessMessage
24869         * Control.cs:
24870           - Removed call to PreProcessMessage from handling of keyboard 
24871             messages; it's supposed to be done in the message pump
24872           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
24873             per MSDN documentation.
24874           - IsInputChar: All chars are input chars by default; removed the 
24875             parent calling chain, MS does not document that
24876           - PreProcessMessage: If IsInputChar is true, we want to return false
24877             to allow dispatching of the message
24878           - When selecting the next control, now also check that we're not
24879             selecting ourselves again and therefore return a false positive.
24880         * TextBoxBase.cs:
24881           - Tried to match return values for IsInputKey and ProcessDialogKey
24882             to what MS returns; moved processing of our special keys outside
24883             ProcessDialogKey since MS does not seem to return true on those.
24884           - Moved code that previously was in ProcessDialogKey into new private
24885             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
24886           - Reworked handling of WM_CHAR to not have to duplicate code from
24887             Control.cs anymore, instead we simply call down to base.
24888            
24889 2006-01-12  Jackson Harper  <jackson@ximian.com>
24890
24891         * ComboBox.cs: We always need to refresh the text area when
24892         EndUpdate is called. Fixes the combobox in the file dialog.
24893         * Control.cs: Don't create the creator_thread until the controls
24894         handle is created.  Also in InvokeRequired we check if the
24895         creator_thread is null. This gives the effect of InvokeRequired
24896         returning true if the controls handle is not created yet, and
24897         matches MS.
24898
24899 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
24900
24901         * XplatUI.cs:
24902           - Added StartLoop() driver method. This is used to allow drivers to
24903             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
24904             loop for a particular thread
24905           - Added EndLoop() driver method. This is called once the message
24906             pump for the thread is shut down
24907           - Added SupportsTransparency method to allow the driver to indicate
24908             opacity support for windows
24909         * Form.cs:
24910           - Removed TODO attribute, completed AllowTransparency property
24911           - Added documented logic to Opacity
24912         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
24913           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
24914           versions of CompatibleTextRendering
24915         * X11Structs.cs: Added opacity atom to our atom enumeration
24916         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
24917           of a form might be set before it's reparented by the WM, and we need
24918           the opacity value without calling up to Form)
24919         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
24920           SupportsTransparency() driver methods
24921         * Application.cs: Now calling StartLoop and EndLoop driver methods
24922         * XplatUIX11.cs:
24923           - Added opacity atom registration
24924           - Added StartLoop()/EndLoop() methods. They're empty right now but
24925             will need to get implemented when we switch to a per-thread queue
24926           - Implemented SupportsTransparency() method
24927           - Implemented SetWindowTransparency() method
24928           - Added support for setting the opacity value when a window is
24929             reparented (since the opacity needs to be set on the WM frame)
24930         * XplatUIOSX.cs, XplatUIWin32.cs:
24931           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
24932
24933 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
24934
24935         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
24936
24937 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
24938
24939         * FileDialog.cs: Added ToolTip for MWFFileView
24940         * MimeIcon.cs: Rewrote GnomeHandler.
24941           - Get currently used gnome icon theme from
24942             ($HOME)/.gconf/%gconf-tree.xml
24943           - Make use of inherited icon themes
24944           - Support SVG icon themes like Tango via librsvg
24945
24946 2006-01-12  Miguel de Icaza  <miguel@novell.com>
24947
24948         Revert's Jackson's revert which broke 2.0 builds.   Fix both
24949         builds. 
24950         
24951         * Application.cs: Move the use_compatible_text_rendering outside
24952         the NET_2_0 define.  If we ever need to use the
24953         use_compatible_text_rendering on the individual controls they will
24954         access the variable from the common shared code paths.
24955
24956 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
24957
24958         * XplatUI.cs:
24959           - Added more granular debug options
24960           - Added method to print both window text and id
24961           - Switched debug output to use new Window() debug method
24962           - Added IsEnabled() driver method
24963           - Added EnableWindow() driver method
24964         * Form.cs:
24965           - Removed end_modal; no longer needed, new loop handles termination
24966             via 'closing' variable
24967           - If form is modal, setting DialogResult will now initiate loop
24968             termination via 'closing' variable
24969           - Added support for is_enabled/WS_DISABLED to CreateParams
24970           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
24971             does all the work
24972           - Removed code that's now in RunLoop from ShowDialog()
24973           - Added various documented sanity checks to ShowDialog()
24974           - Added handling of WM_DESTROY message; we set 'closing' on getting
24975             the message to indicate the message pump to terminate
24976           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
24977             send by the Application.ExitThread method. (We send the message
24978             to destroy the window after all other events have been
24979             processed through the queue, instead of destroying the handle 
24980             directly)
24981           - Moved code from Close() method to WM_CLOSE handler; added logic
24982             to only send close-related events if the form is not displayed
24983             modal
24984         * Splitter.cs (..ctor): Fixed typo in resource name
24985         * Control.cs:
24986           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
24987             brush now
24988           - set_Cursor: Now only setting calling into XplatUI if the handle for
24989             the control is already created; this avoids implict handle creation
24990             or crashes if it's not created
24991           - set_Enabled: Now setting the enabled state via the new driver method
24992             instead of just tracking it
24993           - CreateParams: Added logic to set WS_DISABLED based on enabled state
24994           - CreateControl: Reordered event firing and method calls to more
24995             closely fire events in the order MS does. Now setting the
24996             enabled state in the driver when creating the control.
24997           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
24998             match MS order
24999         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
25000           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
25001         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
25002         * Hwnd.cs:
25003           - Added tracking of window enabled state (get_Enabled/set_Enabled)
25004           - Added EnabledHwnd property to easily allow a driver to find the
25005             handle of the first enabled window in the parent chain (this is
25006             used by drivers to pass up input events of disabled windows)
25007         * XplatUIDriver.cs: Added IsEnabled() method
25008         * Application.cs:
25009           - Removed crude and obsolete exiting tracking variable
25010           - Removed internal ModalRun(); replaced by RunLoop()
25011           - Implemented private CloseForms() method to allow closing all 
25012             windows owned by a particular (or all) threads
25013           - Exit() now properly closes all windows without forcing the message
25014             pump to quit
25015           - Removed obsolete InternalExit() method
25016           - Changed Run() methods to use new RunLoop() message pump
25017           - Implemented new RunLoop() method for both modal and non-modal forms
25018         * CommonDialog.cs:
25019           - get_CreateParams: Added setting of WS_DISABLED
25020           - Simplified ShowDialog(); now all the work is done in RunLoop(),
25021             invoked via Form.ShowDialog()
25022         * NativeWindow.cs: We don't remove the window from the collection when
25023           the handle is destroyed; there might still be messages for it in the
25024           queue (mainly the resulting WM_DESTROY); instead it will be removed
25025           when Control calls InvalidateHandle in the WM_DESTROY handler
25026         * XplatUIX11.cs:
25027           - CreateWindow: Added logic to handle the WS_DISABLED window style
25028           - EnableWindow: Implemented based on Hwnd.Enabled
25029           - GetMessage: Reset PostQuitState so the method can be called again
25030           - Implemented support for disabled windows (passing messages to the
25031             first enabled parent) in handling all input messages
25032           - Added optimizations for handling Expose events
25033           - Implemeted new driver method IsEnabled()
25034           - Now always resetting paint pending tracking vars when we start paint
25035           - Re-implemented UpdateWindow via just sending a WM_PAINT message
25036         * XplatUIOSX.cs: Added IsEnabled method stub
25037         * XplatUIWin32.cs: Implemented new IsEnabled() method
25038
25039 2006-01-11  Jackson Harper  <jackson@ximian.com>
25040
25041         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
25042         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
25043         variables a little.
25044         * ColorDialog.cs: Clear out the old form before adding the new
25045         panel.  
25046
25047 2006-01-11  Jackson Harper  <jackson@ximian.com>
25048
25049         * X11Dnd.cs: Make sure to add all the text formats when adding
25050         strings to the data object.
25051         * TreeNodeCollection.cs: When adding to a sorted tree we need to
25052         do some redrawing too.  Also change the UpdateNode to an
25053         UpdateBelow so the newly added node gets painted.
25054         
25055 2006-01-11  Miguel de Icaza  <miguel@novell.com>
25056
25057         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
25058         LinkLabel.cs, PropertyGrid.cs: Implement the
25059         UseCompatibleTextRendering property for 2.x
25060
25061         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
25062
25063 2006-01-11  Jackson Harper  <jackson@ximian.com>
25064
25065         * TreeView.cs: Use the property for setting the selected node so
25066         the correct events get raised.
25067         * TreeNode.cs: Update the tree when the fore/back colours of a
25068         node are set.
25069
25070 2006-01-10  Jackson Harper  <jackson@ximian.com>
25071
25072         * TreeView.cs: Allow setting SelectedNode to null.
25073
25074 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25075
25076         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
25077
25078 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25079
25080         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
25081
25082 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25083
25084         * PrintDialog.cs: Added attributes and set default property values.
25085
25086 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25087
25088         * PrintControllerWithStatusDialog.cs: 
25089         Added PrintControllerWithStatusDialog.
25090
25091 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25092
25093         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
25094         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
25095
25096 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25097
25098         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
25099
25100 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
25101
25102         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
25103         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
25104
25105 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
25106
25107         * MimeIcon.cs: Added internal class SVGUtil.
25108
25109 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
25110
25111         * FileDialog.cs: Don't crash if there are two files with the
25112           same name but different locations.
25113
25114 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
25115
25116         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
25117         dates across multiple month grids. Used to not highlight entire 
25118         month, but does now.
25119         
25120 2006-01-06  Jackson Harper  <jackson@ximian.com>
25121
25122         * MonthCalendar.cs: Removed DoEvents call to prevent a running
25123         message loop. Change timer intervals to numbers that seem more
25124         natural.
25125
25126 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
25127
25128         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
25129           object for location info since screen object is now implemented.
25130
25131 2006-01-05  Jackson Harper  <jackson@ximian.com>
25132
25133         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
25134         * AsyncMethodResult.cs: We no longer use a WeakReference for the
25135         AsyncMethodResult, this is because we ALWAYS want the
25136         ManualResetEvent to get set.
25137         * Control.cs: When disposing use an async invoke to call shutdown
25138         code, so that thigns don't block on the finalizer thread.  Also
25139         check if we even have a message loop before trying to send
25140         messages, if we don't then don't bother sending messages.
25141         - No more weak references for async methods
25142         * XplatUIDriver.cs: No more weak references for async methods.
25143
25144 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
25145
25146         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
25147           returns two FontFamily with the same name
25148
25149 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
25150
25151         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
25152           drawing disabled text. Instead using the ColorGrayText color
25153
25154 2006-01-04  Jackson Harper  <jackson@ximian.com>
25155
25156         * TreeNode.cs: redraw the node when its image index is changed.
25157
25158 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
25159
25160         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
25161           time I checked there are no others like it.
25162
25163 2006-01-04  Jackson Harper  <jackson@ximian.com>
25164
25165         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
25166         this gives the behavoir I was looking for.
25167         * Control.cs: Special case Invoking EventHandlers, this matches MS
25168         and fixes part of bug #76326.
25169
25170 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
25171
25172         * ThemeClearlooks.cs, FileDialog.cs:
25173           - Reflect the latest Theme class changes
25174           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
25175             with DateTime
25176             
25177 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
25178
25179         * Theme.cs: Cache UI resource images and resize them if needed
25180
25181 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
25182
25183         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
25184           is called. This fixes the crash in Nexxia when setting the font
25185           attributes in the chat. [However, RTF needs a look-over to make sure
25186           that all SelectionXXX methods handle the special case that selection
25187           is empty and therefore the change must be applied to all text starting
25188           at the cursor/selection start]
25189
25190 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
25191
25192         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
25193           XplatUIOSX.cs: Added SendMessage and PostMessage methods
25194         * X11Keyboard.cs: Switched to new way of calling PostMessage
25195
25196 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
25197
25198         * Theme.cs: Added theme interface for images to allow the theme to
25199           control what images are used for things like FileDialog, MessageBox
25200           icons, etc.
25201         * MessageBox.cs: Now uses the new Theme icon/image interfaces
25202
25203 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
25204
25205         * FileDialog.cs:
25206           - Removed some dead code
25207           - Opening a recently used file does work now
25208           - Small UI enhancements
25209           - Refactoring
25210
25211 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
25212
25213         * FileDialog.cs: Forgot too add __MonoCS__
25214
25215 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
25216
25217         * FileDialog.cs: We are able to read recently used files now let's
25218           go on and write them.
25219
25220 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
25221
25222         * FileDialog.cs: Breathe some life into "last open"/"recently used"
25223           button
25224         * MimeIcon.cs: Do a check for the top level media type also
25225
25226 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
25227
25228         * ThemeClearlooks.cs:
25229           - Added CPDrawStringDisabled
25230           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
25231             some chars if the text doesn't fit into text_rect
25232           - DrawListViewItem: If View = View.LargeIcon center the image;
25233             rewrote the drawing of ListViewItem.Text if View = 
25234             View.LargeIcon
25235
25236 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
25237
25238         * MimeIcon.cs: Use default KDE icon theme if there is no
25239           "48x48" directory for the current icon theme, fixes #77114
25240         * Mime.cs: Disable not working and actually not used code. 
25241         * ThemeWin32Classic.cs:
25242           - Replace "new SolidBrush" in GetControlBackBrush and
25243             GetControlForeBrush with ResPool.GetSolidBrush
25244           - Changed DrawListViewItem from private to protected virtual
25245         * FileDialog.cs:
25246           - Added form.MaximizeBox = true
25247           - Don't throw an exception if there is a broken symbolic link
25248
25249 2005-12-23  Jackson Harper  <jackson@ximian.com>
25250
25251         * TabControl.cs: Give the panels focus, keyboard navigation is
25252         fixed so this works correctly now.
25253         - We need these key events also.
25254         * ToolBar.cs: Remove some of the poor mans double buffering.
25255         
25256 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
25257
25258         * ComboBox.cs: The internal TextBox now returns the focus.
25259
25260 2005-12-23  Jackson Harper  <jackson@ximian.com>
25261
25262         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
25263
25264 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
25265
25266         * Control.cs: Removed debug code
25267         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
25268           implicit children
25269
25270 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
25271
25272         * Control.cs: When creating the control, update the Z-order after
25273           all it's children are created, too. (Fixes nexxia not showing
25274           picturebox bug)
25275
25276 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
25277
25278         * Control.cs: Do not update the anchoring distances if layout is
25279           suspended, instead do it once layout is resumed
25280
25281 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
25282
25283         * Control.cs: 
25284           - After many hours of debugging, for both Jackson and
25285             myself, it turns out that it helps to set the parent of a control
25286             if you want to actually see it onscreen. In the spirit of that
25287             discovery, we're now setting the parent of the control and
25288             it's children when the control's handle is created. This fix
25289             will make Lutz Roeder's Reflector run happily. 
25290           - now just creating the handle instead of the whole control when
25291             getting a graphics context for the control.
25292
25293 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
25294
25295         * ScrollableControl.cs: When calculating the canvas, don't consider
25296           the scrollbar widths. Instead, predict if horizontal scrollbar
25297           will affect canvas when deciding on vertical display and vice versa.
25298
25299 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
25300
25301         * RichTextBox.cs: Set default RTF font for documents that don't
25302           have a font table (Fixes #77076)
25303
25304 2005-12-22  Jackson Harper  <jackson@ximian.com>
25305
25306         * TextBoxBase.cs: It's difficult to do, but you can have an empty
25307         clipboard. This prevents a NullRef in that case.
25308         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
25309         clipboard. PRIMARY is for the currently selected text only. (We
25310         should implement PRIMARY at some point.
25311
25312 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
25313
25314         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
25315           a Unicode function with a structure that was defined in Ansi way.
25316           This fixes #76942.
25317
25318 2005-12-21  Jackson Harper  <jackson@ximian.com>
25319
25320         * StatusBar.cs: Statusbar handles its fore/back colours on it's
25321         on. Because thats how it rolls. (and this avoids it using ambient
25322         colours).
25323         * ThemeWin32Classic.cs: Use the proper back color for filling.
25324         * Menu.cs: Use the system menu bar color for drawing menu
25325         bars. Using the window back color will bring ambient colours into
25326         the picture.
25327
25328 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
25329
25330         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
25331           Bitmaps were created and not disposed.
25332
25333 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
25334
25335         * Control.cs (CreateControl): Don't do anything if the control is
25336           already created, otherwise we'd fire the OnCreated event more than
25337           once
25338
25339 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
25340
25341         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
25342           will always match. Instead return -1. Fixes #76464.
25343
25344 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
25345
25346         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
25347           neither the beginning nor the end of the line (Fixes bug #76479)
25348
25349 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
25350
25351         * Control.cs:
25352           - ControlNativeWindow.ControlFromHandle(): Now handling situation
25353             where handle is invalid
25354           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
25355             instead of slower linear search
25356         * NativeWindow.cs: Don't remove the window from the hashtable until
25357           after the driver has destroyed it (since the driver might use
25358           Control.FromHandle to lookup the control object
25359         * Hwnd.cs: Added DestroyPending property to track if a window is 
25360           already destroyed as far as the driver is concerned and only hasn't
25361           yet notified the control
25362         * XplatUIX11.cs:
25363           - Activate(): Check if the window is still valid before using the 
25364             handle
25365           - Implemented DestroyChildWindow() method to mark child windows as
25366             destroyed when a window is destroyed. This prevents situations 
25367             where we might call an X method based on queued events for a
25368             window that already has been destroyed but we haven't yet pulled
25369             the destroy method from the queue.
25370           - Added a call to the new DestroyChildWindow() method to the drivers
25371             DestroyWindow code. Also now marking the destroyed window itself
25372             as pending
25373
25374 2005-12-20  Jackson Harper  <jackson@ximian.com>
25375
25376         * StatusBar.cs:
25377         * StatusBarPanel.cs: Don't calculate panel sizes on draw
25378         anymore. Just do them when needed, also track the rects of panels
25379         so that we can optimize refreshing more in the future.
25380
25381 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
25382
25383         * ColorDialog.cs: Fixed focus drawing in small color controls
25384
25385 2005-12-19  Jackson Harper  <jackson@ximian.com>
25386
25387         * InternalWindowManager.cs:
25388         * MdiWindowManager.cs: Cleanup some coordinate system changes so
25389         moving windows works properly.
25390
25391 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
25392
25393         * Control.cs: 
25394           - Removed call to InitLayout() from SetBoundsCore(); doc says
25395             it's only called when a control is added to a container
25396           - Split InitLayout logic, moved to separate UpdateDistances() method
25397             since we need to perform those calculations more often than just
25398             when adding the control to a container. (Needed to fix #77022)
25399           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
25400           - Reduced the OnBindingContextChanged events count, don't send them
25401             unless the control is created, we still aren't totally matching
25402             MS, but I can't quite figure out some of their rules
25403
25404 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
25405
25406         * ThemeClearlooks.cs: Corrected distance between ProgressBar
25407           stripes
25408
25409 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
25410
25411         * ThemeClearlooks.cs:
25412           - Updated ProgressBar drawing
25413           - Corrected drawing of ScrollBars and scroll buttons
25414           - Some temporary fixes for minor pixel artefacts
25415
25416 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
25417
25418         * Control.cs:
25419           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
25420             cause events to be sent in the same order as MS does.
25421           - Added ChangeParent() method to trigger various OnXXXChanged events
25422             that need to be fired when a parent changes (This is a reworking
25423             of the patch from r54254, with the X11 errors fixed)
25424           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
25425             since on MS we get OnLayoutChanged events when calling Clear()
25426           - Changed Enabled property to consider parent state as well, if a
25427             parent is not enabled, the control will not be either
25428           - Changed Parent property to simply call Controls.Add() since that
25429             now does all the work required, this way we avoid code duplication
25430           - Threw in a few OnBindingsContextChanged calls to try and match
25431             when MS sends them. We seem to send a few too many, though.
25432           - Added call to CreateControl when adding the control to a parent.
25433             We were never calling CreateControl. Still needs some work, in
25434             some places we treat HandleCreated and ControlCreated as equal, 
25435             which is wrong
25436           - Removed obsolete commented out code from UpdateZOrder()
25437
25438 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
25439
25440         * ThemeClearlooks.cs: Updated TrackBar drawing.
25441
25442 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
25443
25444         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
25445
25446 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
25447
25448         * FileDialog.cs: Add the Help button and the open readonly
25449           checkbox only if needed
25450
25451 2005-12-16  Jackson Harper  <jackson@ximian.com>
25452
25453         * Control.cs: Make sure we have an active menu before trying to
25454         process commands on it. Prevents menu-less forms from crashing
25455         when Alt is pressed.
25456         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
25457         Dieter Bremes.
25458         * RichTextBox.cs: Expand statement to help out gmcs and fix the
25459         2.0 build.
25460
25461 2005-12-16  Jackson Harper  <jackson@ximian.com>
25462
25463         * InternalWindowManager.cs: Don't translate tool windows screen
25464         coordinates. This fixes windows 'bouncing' around when being moved.
25465
25466 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
25467
25468         * TextBoxBase.cs:
25469           - MaxLength now treats 2^31-1 equal to unlimited length (this is
25470             not quite MS compatible, MS uses that number only for single line
25471             and 2^32-1 for multi-line, but I figure it won't hurt keeping
25472             the limit at 2GB)
25473           - Now enforcing the MaxLength limit when entering characters
25474           - Added argument to internal Paste() method to track if it's called
25475             from programatically or via keyboard, since keyboard driven pastes
25476             need to enforce max-length
25477           - Added logic to Paste to only paste as many chars as MaxLength 
25478             allows
25479         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
25480         * TextControl.cs:
25481           - Added Length property to return number of characters in document
25482           - Added private CharCount property which only tracks actual chars
25483             in the document (no linefeeds) and fires event when CharCount
25484             changes
25485           - Added tracking of character count to all methods that alter it
25486           - Added LengthChanged event to allow applications to subscribe
25487             to any changes to the document
25488
25489 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
25490
25491         * TextBox.cs: 
25492           - Removed local password_char field (moved to TextBoxBase)
25493           - Now setting the document's password var when password is
25494             set
25495         * TextBoxBase.cs:
25496           - Added password_char field (needed here so MultiLine can
25497             access it)
25498           - Added logic to MultiLine property setter to set the document's
25499             variable when password display is allowed
25500           - Removed debug code and made some debug code conditional
25501         * TextControl.cs:
25502           - Added RecalculatePasswordLine() method to handle special password
25503             char only lines
25504           - Added PasswordChar property, also added related tracking vars
25505           - Draw() method now uses local text var for grabbing text to draw,
25506             this var is set to line.text unless we're doing password display,
25507             then it is set to the pre-generated all-password-chars line
25508           - Added calling RecalculatePasswordLine() method for password lines
25509
25510 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
25511
25512         * Hwnd.cs: 
25513           - Added Reparented property to allow tracking of Window Manager
25514             reparenting actions (which affect X/Y calculations of toplevel 
25515             windows)
25516           - Made ToString() print window handles in hex
25517         * XplatUIX11.cs:
25518           - AddConfigureNotify(): Now uses reparented state off Hwnd to
25519             determine if X/Y needs offsetting
25520           - AddConfigureNotify(): Fixed offset calculations
25521           - Now adds ReparentNotify messages into the queue
25522           - Now processes ReparentNotify messages and causes a 
25523             WM_WINDOWPOSCHANGED message to be sent upstream if a window
25524             is reparented (as most likely it's X/Y coordinates are changed
25525             due to that)
25526
25527 2005-12-14  Jackson Harper  <jackson@ximian.com>
25528
25529         * XplatUIX11.cs: Tool windows still need to respek focus.
25530
25531 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
25532
25533         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
25534           have a working release
25535
25536 2005-12-13  Jackson Harper  <jackson@ximian.com>
25537
25538         * Form.cs: Update styles after setting the border style regardless
25539         of whether or not the window is using a window manager.
25540
25541 2005-12-13  Jackson Harper  <jackson@ximian.com>
25542
25543         * Form.cs: We now hook into an internal window manager instead of just an
25544         MDI subsystem, this is so we can have properly behaving tool windows.
25545         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
25546         * InternalWindowManager.cs: New internal class that acts as a
25547         window manager for tool windows and as a base for mdi windows.
25548         * MdiWindowManager.cs: New class that acts as a window manager for
25549         mdi windows.
25550
25551 2005-12-12  Jackson Harper  <jackson@ximian.com>
25552
25553         * Control.cs: Updates so we match behavoir for for implicit
25554         controls. Fixes explosions in MDI.
25555
25556 2005-12-12  Jackson Harper  <jackson@ximian.com>
25557
25558         * Control.cs: Implement Invalidate (Region).
25559
25560 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
25561
25562         * Control.cs: 
25563           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
25564             the same events as MS does. MS fires events for each property 
25565             except, for unknown reasons, Cursor, when the control is reparented. 
25566             I can't seem to totally match add/remove since MS also fires some 
25567             VisibleChanged events, which makes no sense. Consolidated the
25568             parenting code into a separate method so it can be called from
25569             both Add and Remove. set_Parent no longer needs any special logic
25570             as it calls the parent's add method which implicitly fires
25571             all events
25572           - Removed some obsolete code and debug output
25573           - Enabled state is inherited from parents, if this is enabled
25574
25575 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
25576
25577         * Form.cs: Removed commented out code
25578
25579 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
25580
25581         * Control.cs:
25582           - Added internal version of Invoke, with additional argument 
25583             indicating if we're calling it from a Dispose() handler. That
25584             way we can avoid BeginInvoke throwing an exception if we're
25585             calling for an already destroyed window.
25586           - Added a dispose argument to BeginInvokeInternal, and made the
25587             check if a valid window handle chain exists conditional on
25588             it not being a dispose call
25589           - Removed code in DestroyHandle to destroy our children. Since we
25590             now handle the WM_DESTROY message we will catch all our children
25591             being destroyed.
25592           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
25593         * Form.cs:
25594           - Added a field to track the application context of the form.
25595           - No need to set closing variable as response to WM_CLOSE, instead
25596             we destroy the window. We also call PostQuitMessage if the form
25597             has an application context (which makes it the main app form,
25598             which, when closed terminates the app)
25599         * XplatUI.cs:
25600           - Dropped Exit() method, it's naming was confusing
25601           - Added PostQuitMessage() which causes GetMessage to return false
25602             once the message queue is empty
25603         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
25604           PostQuitMessage()
25605         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
25606           no longer a valid XplatUI method, but left it in since it's used
25607           internally. Added empty PostQuitMessage() method.
25608         * MenuAPI.cs: Replaced call to Exit() with call to
25609           PostQuitMessage, even though this is probably no longer needed.
25610         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
25611         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
25612         * Application.cs:
25613           - Replaced call to XplatUI.Exit() with PostQuitMessage()
25614           - Removed old debug code that would call XplatUI for exception
25615             display, enabled standard exception handling (Still not enabled
25616             though, until NativeWindow's ExternalExceptionHandler define
25617             is removed
25618         * NativeWindow.cs:
25619           - Added internal method to allow control to update NativeWindow
25620             after a window has been destroyed
25621           - Added handling of already destroyed windows when calling i
25622             DestroyWindow
25623           - Added removal of handle from list on ReleaseHandle
25624         * XplatUIX11.cs:
25625           - Dropped GetMessageResult var and related code
25626           - Added PostQuitState to field to track if PostQuitMessage has been
25627             called
25628           - Dropped Exit() method
25629           - Added PostQuitMessage() method
25630           - GetMessage now will return false if PostQuitState is set and no
25631             more messages are in the queue.
25632           - Expose handler will no longer generate WM_PAINT messages if we are
25633             in PostQuitState since it's very likely any windows have already
25634             been destroyed, and since Hwnd won't get updated until we have
25635             processed the DestroyNotify we'd be causing X errors.
25636         
25637 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
25638
25639         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
25640           Thanks to Mike for pointing out the err of my ways.
25641
25642 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
25643
25644         * Control.cs(PreProcessMessage): Moved menu handling back, but
25645           after all other key handling, to match MS (who handles Menu in
25646           DefWndProc)
25647         * Menu.cs (WndProc): Removed my brainfart
25648
25649 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
25650
25651         * Control.cs(PreProcessMessage): Removed special menu handling 
25652         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
25653
25654 2005-12-07  Mike Kestner  <mkestner@novell.com>
25655
25656         * Control.cs : special case SYSKEYUP so that we can adjust keynav
25657         state according in tracker.
25658         * Menu.cs : promote tracker field to base class and provide a tracker
25659         lookup capability.  Add/Remove shortcuts dynamically if the top menu
25660         has a tracker. Unparent items that are removed from the collection.
25661         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
25662         * Theme*.cs: add always_show_hotkeys field to support configurability
25663         of mnemonic display.  win32 doesn't show mnemonics until Alt is
25664         pressed.
25665
25666 2005-12-07  Jackson Harper  <jackson@ximian.com>
25667
25668         * MdiChildContext.cs: Use Control.ResetCursor.
25669         * Control.cs: ResetCursor needs to set the property so that the
25670         correct XplatUI call gets made.
25671
25672 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
25673
25674         * Control.cs: More fixes to make our key events match MS. We
25675           were not setting the modifier state on KeyData, and we were
25676           not generating any events when Alt was pressed with a key
25677           since handling of WM_SYSxxx was missing for the OnKey methods.
25678
25679 2005-12-07  Jackson Harper  <jackson@ximian.com>
25680
25681         * MdiChildContext.cs: reenable the sizing code.
25682         - When the mouse leaves a window reset its cursor.
25683
25684 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
25685
25686         * ThemeClearlooks.cs: Reflect latest Hwnd changes
25687
25688 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
25689
25690         * Hwnd.cs: Now using the theme 3d bordersize to calculate
25691           widths of Fixed3D borders
25692
25693 2005-12-07  Jackson Harper  <jackson@ximian.com>
25694
25695         * MdiClient.cs: Fix warnings. Earn Mike's love.
25696
25697 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
25698
25699         * ThemeClearlooks.cs:
25700           - Adjusted mouse over button color
25701           - Added first parts of CheckBox drawing
25702           - Added correct color for selected text background
25703           - Fixed ComboBox drawing
25704           - Added CPDrawBorder3D and CPDrawBorder
25705
25706 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
25707
25708         * XplatUIX11.cs: Added call to XBell for AudibleAlert
25709
25710 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
25711
25712         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
25713           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
25714           alert users via sound. We could add an enum arg with different
25715           types of alerts in the future
25716
25717 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
25718
25719         * Control.cs: Fix behaviour problems pointed out by Mike
25720
25721 2005-12-05  Mike Kestner  <mkestner@novell.com>
25722
25723         * StatusBarPanel.cs: add Invalidate method and hook it into all the
25724         prop setters.  Calls parent.Refresh for now, but could be maybe be
25725         optimized with an internal method on StatusBar at some point.
25726         [Fixes #76513]
25727
25728 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
25729
25730         * RichTextBox.cs: Implemented get_SelectionColor
25731
25732 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
25733
25734         * ThemeClearlooks.cs:
25735           - Removed dead code
25736           - Draw black button border only if button is Form.AcceptButton
25737           - Draw correct button color for pressed RadioButton if the mouse 
25738             has entered the button
25739           - Updated ProgressBar drawing!
25740           - Updated CPDrawSizeGrip drawing
25741           - Updated StatusBarPanel drawing
25742
25743 2005-12-05  Mike Kestner  <mkestner@novell.com>
25744
25745         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
25746         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
25747
25748 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
25749
25750         * ThemeClearlooks.cs: Initial check-in, activate with
25751           export MONO_THEME=clearlooks
25752         * ThemeEngine.cs: Added ThemeClearlooks
25753
25754 2005-12-03  Mike Kestner  <mkestner@novell.com>
25755
25756         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
25757         [Fixes #76897]
25758
25759 2005-12-02  Jackson Harper  <jackson@ximian.com>
25760
25761         * Form.cs: If the child form has no menu the default main menu is
25762         used as the active menu.
25763
25764 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
25765
25766         * ListBox.cs: Check if any items exist before trying to resolve 
25767           coordinates into items
25768
25769 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
25770
25771         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
25772           as the second color for the background hatch
25773
25774 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
25775
25776         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
25777         * RichTextBox.cs: FormatText position arguments are 1-based, now making
25778           sure that what we pass to FormatText is always 1-based. Fixes #76885
25779
25780 2005-11-29  Miguel de Icaza  <miguel@novell.com>
25781
25782         * NumericUpDown.cs (EndInit): When we are done initializing,
25783         reflect any updates on the UI.
25784
25785 2005-12-02  Jackson Harper  <jackson@ximian.com>
25786
25787         * ImplicitHScrollBar.cs:
25788         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
25789         their container controls.
25790         * TreeView.cs: Use the new implicit scrollbars.
25791
25792 2005-12-02  Jackson Harper  <jackson@ximian.com>
25793
25794         * TreeView.cs: Make top_node internal so the TreeNodeCollections
25795         can play with it.
25796         * TreeNodeCollection.cs: If we remove the topnode we need to
25797         update topnode to the next node in line.
25798         - When clearing nodes go through the same process as removing
25799         them, so they get depareneted and checked if they are top node.
25800
25801 2005-12-01  Jackson Harper  <jackson@ximian.com>
25802
25803         * TreeView.cs: When imagelists are used the image area is
25804         selectable as well as the text.
25805         - If there are no selected nodes select the first one.
25806         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
25807         so don't do it more then we need to.
25808
25809 2005-12-01  Jackson Harper  <jackson@ximian.com>
25810
25811         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
25812         that arrows can be scaled.
25813
25814 2005-12-01  Jackson Harper  <jackson@ximian.com>
25815
25816         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
25817         fail. Patch by Dieter Bremes
25818
25819 2005-11-30  Jackson Harper  <jackson@ximian.com>
25820
25821         * Form.cs: Property is 2.0 only
25822         * PrintDialog.cs: Signature fix.
25823
25824 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
25825
25826         * TextControl.cs: 
25827           - No longer artificially moves text 2 pixels down (now that we have
25828             borders this is no longer needed)
25829           - Added calcs for left, hanging and right indent
25830
25831 2005-11-23  Mike Kestner  <mkestner@novell.com>
25832
25833         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
25834
25835 2005-11-30  Jackson Harper  <jackson@ximian.com>
25836
25837         * MdiChildContext.cs: Set the cloned menus forms, as these don't
25838         get cloned as part of CloneMenu ().
25839         * Menu.cs: Make sure the parent of the items get set correctly
25840         when they are added.  And the owners are notified of the changes.
25841         * Form.cs: Create an ActiveMenu property, so that when MDI is used
25842         we can change the menu being displayed/handled by the form without
25843         changing the menu assosciated with the form.
25844         - Don't let Mdi children draw/handle menus.
25845         
25846 2005-11-30  Jackson Harper  <jackson@ximian.com>
25847
25848         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
25849         a MenuChanged event. Just to make the API a little more
25850         consistent.
25851         * MainMenu.cs:
25852         * MenuItem.cs: Use the new OnMenuChanged
25853         * MdiChildContext.cs: Handle menu merging.
25854         * Form.cs: Implement MergedMenu.
25855         
25856 2005-11-30  Jackson Harper  <jackson@ximian.com>
25857
25858         * Menu.cs: We were misusing Add. Add goes behind the specified
25859         index according to the docs, and does not replace the specified
25860         index. So I added an Insert method.
25861
25862 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
25863
25864         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
25865           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
25866           is for Jackson
25867         * RichTextBox.cs: Added calls to base for DnD events
25868
25869 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
25870
25871         * TextControl.cs:
25872           - Fixed drag-selection related crash; style fixes
25873           - Implemented undo class
25874             o Implemented method to capture document state for specified
25875               range in document tree
25876             o Implemented method to restore captured document state
25877             o Implemented cursor tracking
25878             o Implemented basic undo stack
25879           - Added undo cursor tracking to methods altering cursor location
25880           - Added undo tracking to selection deletion (still missing
25881             other text-altering hookups)
25882         * RichTextBox.cs:
25883           - Added SelectionLength property
25884           - Implemented CanPaste()
25885           - Implemented Paste()
25886           - Added missing protected methods
25887           - Fixed RTF->Document conversion; now uses font index 0 and color 
25888             index 0 as the default font for the parsed text
25889           - Fixed RTF<->Document font size translation
25890           - Fixed RTF generation, now properly handles cross-tag boundaries
25891             for single line selection
25892           - No longer always appends blank line to generated RTF
25893           - Removed TODOs
25894           - Added missing attributes
25895           - Hooked up undo-related methods
25896         * TextBoxBase.cs:
25897           - Implemented Copy()
25898           - Implemented Paste()
25899           - Implemented Cut()
25900           - Fixed caret mis-behaviour on backspace across line-boundaries
25901
25902 2005-11-29  Jackson Harper  <jackson@ximian.com>
25903
25904         * MdiClient.cs: Add a method for activating mdi children. Very
25905         basic right now. I imagine someday it might need more girth.
25906         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
25907         children windows names are added to the menu item.
25908         * ThemeWin32Classic.cs: Draw the arrow if the item is an
25909         mdilist. This happens regardless of whether or not there are any
25910         mdi windows to see in the list, and according to my tests happens
25911         before the items are even added. Also happens if there isn't even
25912         an mdi client to get windows from.
25913
25914 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
25915
25916         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
25917         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
25918
25919 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
25920
25921         * DataGridTableStyle.cs:
25922           - Create always the styles for the missing columns even if they are
25923             provided by the user (not default table style)
25924         * DataGrid.cs:
25925           - Fixes bug 76770
25926           - Fixes SetDataBinding (always re-attach source)
25927           - Fixes SetNewDataSource (only clear styles if they are not for 
25928             this source)
25929          -  Expands OnTableStylesCollectionChanged to handle style refresh 
25930             and remove properly
25931
25932 2005-11-29  Jackson Harper  <jackson@ximian.com>
25933
25934         * FileDialog.cs: Implement missing bits, remove some dead
25935         code.
25936         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
25937         creation of the panel so that the options set on the dialog are
25938         seen when the panel is created.
25939         * TreeView.cs: raise a click when items are clicked.
25940         
25941 2005-11-29  Jackson Harper  <jackson@ximian.com>
25942
25943         * MdiClient.cs: Pass some signature methods through to base.
25944
25945 2005-11-28  Jackson Harper  <jackson@ximian.com>
25946
25947         * ListView.cs: Raise the click event when items are clicked.
25948
25949 2005-11-28  Jackson Harper  <jackson@ximian.com>
25950
25951         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
25952         a nullref.
25953
25954 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
25955
25956         * ThemeNice.cs: - Removed 1 pixel bitmaps
25957           - Use SmoothingMode.AntiAlias where it makes sense
25958             (ScrollButton arrow for example)
25959           - Enhanced Button focus drawing
25960           - Fixed ComboBox drawing (no artefacts anymore, focus
25961             rectangle is back again, reduced size of ComboButton, etc.)
25962           - Fixed RadioButton focus drawing for Appearence.Button
25963           - Slight ScrollButton redesign
25964           - Some LinearGradientBrush size fixes
25965           - GroupBoxes have now rounded edges
25966           - Fixed StatusBar drawing
25967
25968 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
25969
25970         * ThemeNice.cs: - Remove dead code
25971           - use correct background colors for menus, etc.
25972           - Fake pixel drawing with 1 pixel bitmaps
25973
25974 2005-11-24  Jackson Harper  <jackson@ximian.com>
25975
25976         * MdiClient.cs: Size the scrollbars when resizing the window.
25977         - Resize the maximized windows when the client is resized
25978         * Form.cs: Make the child context available
25979         
25980 2005-11-23  Jackson Harper  <jackson@ximian.com>
25981
25982         * MdiChildContext.cs: Don't size windows if they are maximized.
25983
25984 2005-11-23  Mike Kestner  <mkestner@novell.com>
25985
25986         * ContextMenu.cs: use MenuTracker.
25987         * Control.cs: remove menu handle usage.
25988         * Form.cs: remove menu handle usage.
25989         * Hwnd.cs: remove menu handle usage.
25990         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
25991         motion and clicks to the new Tracker handlers.
25992         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
25993         and handle usage.
25994         * MenuAPI.cs: refactored to combine popup and menubar event handling.
25995         Killed the MENU and MENUITEM data types and associated collections
25996         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
25997         MenuTracker class that exposes the leftovers from the old MenuAPI
25998         static methods. Restructured Capture handling so that only one grab is
25999         done for the entire menu hierarchy instead of handing off grabs to
26000         submenus. Tracker now has an invisible control to Capture when active.
26001         * MenuItem.cs: add sizing accessors, kill Create
26002         and handle usage.
26003         * Theme.cs: remove menu handle and MENU(ITEM) usage.
26004         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
26005         MENU(ITEM). remove menu handle usage, use Menu directly.
26006         * XplatUIDriver.cs: remove menu handle usage.
26007         * XplatUIOSX.cs: remove menu handle usage.
26008         * XplatUIWin32.cs: remove menu handle usage.
26009         * XplatUIX11.cs: remove menu handle usage.
26010
26011 2005-11-22  Jackson Harper  <jackson@ximian.com>
26012
26013         * Hwnd.cs: Don't compute the menu size for
26014         DefaultClientRectangle.
26015         - Reenable menu sizes being computed for GetClienRectangle.
26016         * Form.cs: Remove comment of trechery
26017         
26018 2005-11-22  Jackson Harper  <jackson@ximian.com>
26019
26020         * Hwnd.cs: The adjustments for the menu bar are made when it is
26021         attached to the form.
26022
26023 2005-11-19  Jackson Harper  <jackson@ximian.com>
26024
26025         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
26026         (just like on windows).
26027
26028 2005-11-19  Jackson Harper  <jackson@ximian.com>
26029
26030         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
26031         use real buttons anymore because they are in non client area. The
26032         one TODO here is that I need to somehow invalidate a section of
26033         the non client area.
26034
26035 2005-11-18  Jackson Harper  <jackson@ximian.com>
26036
26037         * Control.cs: Put the enum check back in now that MDI doesnt have
26038         to use this to set border styles.
26039         * Form.cs: Only set mdi child windows borders if the handle has
26040         been created.
26041         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
26042         this directly on to the driver.
26043         - Get the move start position before adjusting for the titlebar
26044         height, this fixes the windows "skipping" when they are first
26045         moved.
26046
26047 2005-11-18  Jackson Harper  <jackson@ximian.com>
26048
26049         * XplatUIX11.cs: Just compute the mdi borders separately as they
26050         don't totally match up with normal form borders.
26051
26052 2005-11-18  Jackson Harper  <jackson@ximian.com>
26053
26054         * Control.cs: Set WS_ styles for borders, so that the driver does
26055         not have to retrieve the control instance to figure out what kind
26056         of borders it should have.
26057         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
26058         driver can know its an mdi child easily.
26059         * XplatUIX11.cs: Get the border styles and whether the window is
26060         MDI from the Styles and ExStyles params instead of having to get a
26061         control. This prevents a chicken and egg problem.       
26062
26063 2005-11-18  Jackson Harper  <jackson@ximian.com>
26064
26065         * MdiClient.cs: Fix typo so scrollbars show up correctly.
26066
26067 2005-11-18  Jackson Harper  <jackson@ximian.com>
26068
26069         * MdiClient.cs: Calculate when to add and remove scrollbars
26070         correctly.
26071         * MdiChildContext.cs: Adjust the y position to take the titlebar
26072         into account.
26073         - No height for FormBorderStyle.None
26074
26075 2005-11-18  Jackson Harper  <jackson@ximian.com>
26076
26077         * Control.cs: Allow non enum values to be used for
26078         InternalBorderStyle.  MDI does this to set a special border style.
26079         - New utility methods for converting points to/from client coords
26080         - Add the newly created control to the Controls collection before
26081         updating its style. This way UpdateStyle can walk the control
26082         heirarchy to find the control if needed.
26083         so I don't need to create a new Point object all the time.
26084         * Form.cs: Let MDI windows handle their border styles.
26085         - Set styles on MDI windows so the correct title style is derived.
26086         * MdiChildContext.cs: Move all the painting and window handling
26087         into the non client area.
26088         - Use correct sizing and put correct buttons on frames based on
26089         the FormBorderStyle.
26090         - Notify the mdi client about scrolling
26091         - Need to handle the buttons ourselves now, because they are all
26092         in non client areas and we can't add controls there.
26093         * MdiClient.cs: Halfway to scrolling, this implementation is
26094         somewhat broken though, we need to check to make sure other
26095         windows aren't causing scrolling before removing the bars. Also
26096         the bars need to be drawn on top, maybe I can switch implicit
26097         controls to be on top.
26098         * Hwnd.cs: caption_height and tool_caption_height are now
26099         properties of an hwnd, this way they can be set by the driver
26100         based on the type of window they are.  In X11 the window manager
26101         handles the decorations so caption_height is zero unless its an
26102         MDI window.
26103         - Add 3 pixel borders for MDI windows (0xFFFF).
26104         - Get rid of some code duplication, have DefaultClientRectanle
26105         just call GetClientRectangle.
26106         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
26107         Hwnd now.
26108         - Set border styles differently for mdi windows.
26109         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
26110         Hwnd now.
26111         
26112 2005-11-15  Mike Kestner  <mkestner@novell.com>
26113
26114         * Menu.cs: when adding an item to the collection, if item is already 
26115         parented, remove it from the parent.
26116
26117 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
26118
26119         * X11DesktopColors.cs: Added KDE support
26120
26121 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
26122
26123         * XplatUIWin32.cs: 
26124           - Clipboard methods now can translate Rtf format
26125           - No longer removes clipboard contents whenever a new format is added
26126             to allow placing multiple formats on the clipboard
26127         * Clipboard.cs: Clipboard now supports getting a IDataObject and
26128           will place all formats contained in it onto the clipboard. Also
26129           now cleans the clipboard before placing a new object onto it
26130         * RichTextBox.cs:
26131           - Implemented set_Rtf
26132           - Implemented set_SelectedRtf
26133           - Created InsertRTFFromStream() method to allow single code base
26134             for all properties and methods that insert RTF into document
26135           - Removed debug output
26136         * TextControl.cs:
26137           - Fixed Delete(int) to fix up line numbers
26138           - Fixed ReplaceSelection to combine start and end line
26139           - Fixed serious DeleteChars bug that would leave the document tree
26140             broken
26141           - Improved DumpTree with several logic checks to detect broken
26142             document trees
26143           - Removed debug lines
26144           - Fixed Caret.WordForward/WordBack moving code, now always also 
26145             updates caret.tag (fixes crash when word-selecting across tag
26146             boundaries via keyboard)
26147           - Added Insert() method for inserting multiline text into documents
26148           - Fixed DeleteChars() calculation errors that would cause a broken
26149             tag chain with multiple tag lines
26150           - DeleteChars() no longer crashes on multi-tag lines if not all tags
26151           - Split() no longer moves caret if split is at caret location
26152           - ReplaceSelection() now updates the cursor and re-displays it
26153           - ReplaceSelection() now uses new Insert() method to avoid code
26154             duplication
26155           - FormatText() can now handle formatting partial lines
26156         * TextBoxBase.cs:
26157           - Append now uses new TextControl.Insert() method (this avoids 
26158             duplicate code)
26159           - Implemented Ctrl-X (Cut) (
26160           - Implemented Ctrl-C (Copy)
26161           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
26162             regeneration when pasting text; roundtripping Copy&Paste within
26163             edit control still fails due to some calculation bugs in GenerateRTF)
26164           - The Delete key will now remove the current selection if it is visible
26165         * TextBox.cs: Removed debug lines
26166         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
26167           driver to be initialized and can't therefore be done via a static ctor)
26168
26169 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
26170
26171         * TextControl.cs: Added backend code for finding char arrays and strings
26172         * TextBoxBase.cs:
26173           - Added mouse wheel scroll support
26174           - Added support for VScroll and HScroll events
26175         * RichTextBox.cs:
26176           - Implemented all seven Find() variants
26177           - Implemented GetCharFromPosition()
26178           - Implemented GetCharIndexFromPosition()
26179           - Implemented GetLineFromIndex()
26180           - Implemented GetPositionFromCharIndex();
26181           - Implemented SaveFile for PlainText and UnicodeText
26182           - Fixed set_Font, now setting a new font applies that font to
26183             the whole document
26184           - Implemented generic Document to RTF converter
26185           - Implemented SaveFile for RichText format (still missing unicode
26186             conversion for non-ansi chars)
26187           - Implemented get_Rtf
26188           - Implemented get_SelectedRtf
26189
26190 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
26191
26192         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
26193           to allow any captures to be released before triggering OnClick. This
26194           way a click handler may capture the mouse without interference.
26195         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
26196           This way we send them even though X may not allow a grab (if the window
26197           isn't visible, for example)
26198
26199 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
26200
26201         * DataGridViewRowEventArgs.cs: DataGridView implementation
26202         * DataGridViewElement.cs: DataGridView implementation
26203         * DataGridViewComboBoxCell.cs: DataGridView implementation
26204         * DataGridViewDataErrorContexts.cs: DataGridView implementation
26205         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
26206         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
26207         * ImageLayout.cs: DataGridView implementation
26208         * DataGridViewComboBoxColumn.cs: DataGridView implementation
26209         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
26210         * DataGridViewSelectionMode.cs: DataGridView implementation
26211         * IDataGridViewEditingControl.cs: DataGridView implementation
26212         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
26213         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
26214         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
26215         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
26216         * DataGridViewColumnSortMode.cs: DataGridView implementation
26217         * DataGridView.cs: DataGridView implementation
26218         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
26219         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
26220         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
26221         * Padding.cs: DataGridView implementation
26222         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
26223         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
26224         * DataGridViewRowEventHandler.cs: DataGridView implementation
26225         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
26226         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
26227         * DataGridViewButtonCell.cs: DataGridView implementation
26228         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
26229         * DataGridViewEditMode.cs: DataGridView implementation
26230         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
26231         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
26232         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
26233         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
26234         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
26235         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
26236         * DataGridViewCellEventHandler.cs: DataGridView implementation
26237         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
26238         * DataGridViewCellStyleConverter.cs: DataGridView implementation
26239         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
26240         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
26241         * DataGridViewColumnEventArgs.cs: DataGridView implementation
26242         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
26243         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
26244         * QuestionEventArgs.cs: DataGridView implementation
26245         * IDataGridViewEditingCell.cs: DataGridView implementation
26246         * DataGridViewTriState.cs: DataGridView implementation
26247         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
26248         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
26249         * DataGridViewColumnCollection.cs: DataGridView implementation
26250         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
26251         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
26252         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
26253         * DataGridViewColumn.cs: DataGridView implementation
26254         * DataGridViewCellBorderStyle.cs: DataGridView implementation
26255         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
26256         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
26257         * DataGridViewRow.cs: DataGridView implementation
26258         * DataGridViewImageCellLayout.cs: DataGridView implementation
26259         * DataGridViewImageCell.cs: DataGridView implementation
26260         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
26261         * DataGridViewCheckBoxCell.cs: DataGridView implementation
26262         * DataGridViewHeaderCell.cs: DataGridView implementation
26263         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
26264         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
26265         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
26266         * DataGridViewTextBoxColumn.cs: DataGridView implementation
26267         * QuestionEventHandler.cs: DataGridView implementation
26268         * DataGridViewCellStyleScopes.cs: DataGridView implementation
26269         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
26270         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
26271         * DataGridViewCell.cs: DataGridView implementation
26272         * DataGridViewCellEventArgs.cs: DataGridView implementation
26273         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
26274         * DataGridViewCellStyle.cs: DataGridView implementation
26275         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
26276         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
26277         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
26278         * TextFormatFlags.cs: DataGridView implementation
26279         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
26280         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
26281         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
26282         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
26283         * DataGridViewButtonColumn.cs: DataGridView implementation
26284         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
26285         * HandledMouseEventArgs.cs: DataGridView implementation
26286         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
26287         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
26288         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
26289         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
26290         * DataGridViewRowCollection.cs: DataGridView implementation
26291         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
26292         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
26293         * DataGridViewHitTestType.cs: DataGridView implementation
26294         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
26295         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
26296         * DataGridViewColumnEventHandler.cs: DataGridView implementation
26297         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
26298         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
26299         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
26300         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
26301         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
26302         * DataGridViewContentAlignment.cs: DataGridView implementation
26303         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
26304         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
26305         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
26306         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
26307         * DataGridViewPaintParts.cs: DataGridView implementation
26308         * DataGridViewCellCollection.cs: DataGridView implementation
26309         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
26310         * DataGridViewImageColumn.cs: DataGridView implementation
26311         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
26312         * DataGridViewElementStates.cs: DataGridView implementation
26313         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
26314         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
26315         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
26316         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
26317         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
26318         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
26319         * DataGridViewRowHeaderCell.cs: DataGridView implementation
26320         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
26321         * DataGridViewTextBoxCell.cs: DataGridView implementation
26322         * DataGridViewBand.cs: DataGridView implementation
26323         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
26324         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
26325         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
26326         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
26327         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
26328         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
26329         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
26330         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
26331         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
26332         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
26333         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
26334
26335 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
26336
26337         * ThemeWin32Classic.cs: 
26338           - Draw the outside focus rectangle around buttons
26339           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
26340             doesn't use end caps for every dash of a line anymore. This
26341             workaround ignores the forecolor.
26342
26343 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
26344
26345         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
26346           endian safe.
26347
26348 2005-11-07  Jackson Harper  <jackson@ximian.com>
26349
26350         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
26351
26352 2005-11-07  Jackson Harper  <jackson@ximian.com>
26353
26354         * ScrollableControl.cs: Calculate the maximum and change vars
26355         (more) correctly so that scrollbars appear as a sensible size.
26356
26357 2005-11-04  Jackson Harper  <jackson@ximian.com>
26358
26359         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
26360         collection.
26361         * TreeView.cs: When the tree is sorted null out the top_node so
26362         that it is recalculated.
26363         - Use dotted lines instead of dashed lines to match MS better.
26364
26365 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
26366
26367         * ListView.cs: 
26368           - Implements key search for items. Useful when browsing files with FileDialog
26369           - When changing view mode or when clear the items reset scrollbar positions
26370
26371 2005-11-04  Jackson Harper  <jackson@ximian.com>
26372
26373         * CurrencyManager.cs: Implement the MetaDataChanged event, the
26374         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
26375         as to what the method may do as there is no real way of creating a
26376         derived CurrencyManager and calling the method. 
26377
26378 2005-11-03  Jackson Harper  <jackson@ximian.com>
26379
26380         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
26381         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
26382         method which seems to just be used internally to refresh the tabs.
26383
26384 2005-11-03  Jackson Harper  <jackson@ximian.com>
26385
26386         * TabControl.cs: Implement the remove method. Fix some broken
26387         comments.
26388
26389 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
26390
26391         * DateTimePicker.cs:
26392           - Added missing DateTimePickerAccessibleObject class
26393           - Added missing events
26394           - Added OnFontChanged method
26395         * Form.cs: Added missing attributes
26396         * TreeView.cs: Added missing attributes
26397
26398 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
26399
26400         * GridItemCollection.cs: Fix signatures
26401
26402 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
26403
26404         * XplatUI.cs: Updated build rev/date
26405         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
26406           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
26407         * Application.cs: Trigger context-specific ExitThread events
26408
26409 2005-11-03  Jackson Harper  <jackson@ximian.com>
26410
26411         * Menu.cs:
26412         * MainMenu.cs:
26413         * GridTableStylesCollection.cs:
26414         * Timer.cs:
26415         * TabPage.cs:
26416         * HelpProvider.cs:
26417         * StatusBar.cs:
26418         * MonthCalendar.cs: Signature fixes
26419
26420 2005-11-03  Jackson Harper  <jackson@ximian.com>
26421
26422         * TreeNodeCollection.cs: Remove should not be virtual.
26423         * TreeView.cs: Implement the last of the missing methods.
26424
26425 2005-11-03  Jackson Harper  <jackson@ximian.com>
26426
26427         * TreeNodeConverter.cs: Implement to get off my class-status back.
26428
26429 2005-11-03  Jackson Harper  <jackson@ximian.com>
26430
26431         * TreeView.cs: Hookup the bits for drag and drop.
26432         * TreeNode.cs: Don't cache the tree_view or index anymore, now
26433         that nodes can be moved from tree to tree easily this just causes
26434         all sorts of problems.
26435         * TreeNodeCollection: Don't need to give treenodes an index and
26436         treeview anymore when they are added, these are computed on the
26437         fly. Also make sure to remove a node before its added.
26438
26439 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
26440
26441         * TextControl.cs:
26442           - Added CaretSelection enum
26443           - Added comparison methods to Marker struct, makes selection code
26444             more readable
26445           - Added SelectionStart and SelectionEnd as 'moveable' location for
26446             the CaretDirection enum and handler
26447           - Added selection_prev variable to track optimized invalidation for
26448             word and line selection
26449           - Added SelectionVisible property (returns true if there is a valid 
26450             selection)
26451           - Switched CaretHasFocus to only display the caret if there is no
26452             visible selection
26453           - Avoiding StringBuilder.ToString to retrieve a single char, instead
26454             using the direct character index; should be much faster
26455           - Added various conditional debug statements
26456           - Fixed invalidation calculation for selection ranges
26457           - Added ExpandSelection() method to support word and line selection
26458           - Switched SetSelectionToCaret to use new Marker compare overloads
26459           - Added central IsWordSeparator() method to determine word 
26460             separators/whitespace and FindWordSeparator() to streamline common
26461             usage of IsWordSeparator()
26462         * TextBoxBase.cs:
26463           - Removed unneeded grabbed variable, it was just mirroring
26464             Control.Capture
26465           - No longer firing OnTextChanged event when Text setter is called,
26466             since the base will fire the event for us
26467           - Added handling of Ctrl-Up/Down selection
26468           - Added handling of Shift-Cursorkey selection
26469           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
26470             words
26471           - Added handling of Shift and Ctrl-Shift-Home/End selection
26472           - Removed some debug output
26473           - Added handling for single/double/tripple-click to place caret/
26474             select word/select line respectively (Fixes bug #76031)
26475           - Added support for drag expansion of word/line selection
26476         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
26477           current selection
26478
26479 2005-11-02  Jackson Harper  <jackson@ximian.com>
26480
26481         * X11Dnd.cs: If the drag is going to and from a MWF window just
26482         copy the data instead of sending it out through the X Selection
26483         mechanism.
26484
26485 2005-11-02  Jackson Harper  <jackson@ximian.com>
26486
26487         * X11Dnd.cs:
26488         * XplatUIX11.cs: When in a drag we don't want motion notify
26489         messages to get passed on to the other controls. This prevents
26490         mouse move messages from showing up in the drag source.
26491
26492 2005-11-02  Jackson Harper  <jackson@ximian.com>
26493
26494         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
26495         the correct button is release to end a drag.
26496         * XplatUIX11.cs: Make the button state internal so the drag system
26497         can access it.  Dragging needs to know about all button releases,
26498         not just left button.
26499
26500 2005-11-02  Miguel de Icaza  <miguel@novell.com>
26501
26502         * Form.cs (Icon): If the icon is null, reset the icon to the
26503         default value. 
26504
26505         * Cursor.cs: When writing the AND-mask bitmap do not include the
26506         number of colors, but hardcode those to two (black and white),
26507         fixes the loading of color cursors (Paint Dot Net).
26508
26509         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
26510         turn off autoscaling.
26511
26512         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
26513
26514 2005-11-02  Jackson Harper  <jackson@ximian.com>
26515
26516         * X11Dnd.cs: Make sure to send a status message if the pointer
26517         enters a control that can not accept a drop, otherwise the cursor
26518         isn't updated correctly. Also tried to compress the lines of code
26519         a bit.
26520
26521 2005-11-02  Jackson Harper  <jackson@ximian.com>
26522
26523         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
26524         set actions correctly.  This isn't perfect as XDND and win32 have
26525         some differences on how you allow actions. I'll clear this up by
26526         adding a path for drag from MWF to MWF windows.
26527         * XplatUIX11.cs: Hook into the dnd system.
26528
26529 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
26530
26531         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
26532         previously shown but they are no longer need it. Very obvious when 
26533         browsing files with FileDialog.
26534
26535 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
26536
26537         * Control.cs: We always need to call OnPaintBackground. We pretty much
26538           ignore AllPaintingInWmPaint and always do the painting there, whether 
26539           it's set or not, since we always ignore the WM_ERASEBKGND message 
26540           (which we don't generate on X11). This fixes #76616.
26541         * Panel.cs: Removed unneeded background painting. This happens properly
26542           in Control.cs already
26543
26544 2005-10-31  Mike Kestner  <mkestner@novell.com>
26545
26546         * Menu.cs: Add items to collection before setting their index.
26547         * MenuItem.cs : add range checking with ArgumentException like MS.
26548         [Fixes #76510]
26549
26550 2005-10-31  Jackson Harper  <jackson@ximian.com>
26551
26552         * ListBox.cs: Invalidate if the area is visible at all not just
26553         contained in the visible rect. Fixes unselection of semi visible
26554         items.
26555
26556 2005-10-31  Jackson Harper  <jackson@ximian.com>
26557
26558         * Control.cs: Consistently name the dnd methods. Make them
26559         internal so we can override them to match some MS behavoir
26560         internally.
26561         * Win32DnD.cs: Use the new consistent names.
26562
26563 2005-10-31  Jackson Harper  <jackson@ximian.com>
26564
26565         * TreeView.cs: Don't draw the selected node when we lose focus.
26566
26567 2005-10-31  Jackson Harper  <jackson@ximian.com>
26568
26569         * X11Dnd.cs: We still need to reset the state even though a full
26570         reset isn't being done, otherwise status's still get sent all over
26571         the place.
26572
26573 2005-10-31  Jackson Harper  <jackson@ximian.com>
26574
26575         * Control.cs: Make the dnd_aware flag internal so the dnd
26576         subsystem can check it. Catch exceptions thrown in dnd handlers to
26577         match MS behavoir.
26578         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
26579         * X11Dnd.cs: Handle null data in the converters. Set the XDND
26580         version when sending a XdndEnter. Use the control/hwnd dnd_aware
26581         flags to reduce the number of dnd enters/status's sent.
26582
26583 2005-10-31  Jackson Harper  <jackson@ximian.com>
26584
26585         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
26586
26587 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
26588
26589         * PictureBox.cs: Fixes 76512
26590
26591 2005-10-28  Jackson Harper  <jackson@ximian.com>
26592
26593         * X11Dnd.cs: Early implementation to support winforms being a drag
26594         source for data on X11. Also restructured the converters so they
26595         can go both ways now.
26596         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
26597         
26598 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
26599
26600         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
26601           clipboard requests
26602
26603 2005-10-27  Jackson Harper  <jackson@ximian.com>
26604
26605         * TreeNode.cs: Implement serialization so my DnD examples will work.
26606
26607 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
26608
26609         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
26610           TreeView.cs: Don't dispose objects that are not owned.
26611           
26612 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
26613
26614         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
26615           should retrieve the current cursor and report that, but XplatUI
26616           doesn't (yet) have an interface for that (and I'm not sure I even
26617           can, on X11)
26618         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
26619           until any message loop processing is done (and the WM_SETCURSOR
26620           replaces the cursor to the proper one)
26621         * XplatUIX11.cs: 
26622           - Fixed override behaviour, we can't set the cursor globally on X11, 
26623             just for our windows.
26624           - Invalidating the System.Drawing X11 display handle when we are
26625             shutting down
26626         * Control.cs: Fix to make csc happy
26627
26628 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
26629
26630         * TextBoxBase.cs: 
26631           - get_Text: Add last line (without trailing newline) to returned
26632             value (Fixes 76212)
26633           - get_TextLength: Count last line in returned length
26634           - ToString: Call Text property instead of duplicating code
26635
26636 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
26637
26638         * ImageList.cs: Dispose ImageAttributes objects.
26639
26640 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
26641
26642         * ImageList.cs: Use attribute constructors with less arguments where
26643           possible.
26644
26645 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
26646
26647         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
26648           Use typeof instead of strings when assembly is referenced. Added
26649           some more comments.
26650
26651 2005-10-21  Jackson Harper  <jackson@ximian.com>
26652
26653         * ListView.cs: Raise a double click event. Also tried to somewhat
26654         fix when the selectedindexchanged event is raised. Its still
26655         broken though.
26656
26657 2005-10-21  Jackson Harper  <jackson@ximian.com>
26658
26659         * TreeView.cs: New method to invalidate the plus minus area of a
26660         node without invalidating the whole node (maybe this can be used
26661         in some more places).
26662         * TreeNodeCollection.cs: When adding to an empty node we need to
26663         invalidate its plus minus area so the little block shows up.
26664         
26665 2005-10-21  Jackson Harper  <jackson@ximian.com>
26666
26667         * TreeView.cs: Make sure that when we invalidate a node the bounds
26668         are big enough to cover the selected box and the focus
26669         rectangle. Use a different colour for the lines connecting nodes
26670         so they show up with all themes.
26671
26672 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
26673
26674         * NativeWindow.cs: Don't call anything that could call into the driver,
26675           we might be on a different thread.
26676
26677 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
26678
26679         * Control.cs(Dispose): Since Dispose might run on a different thread,
26680           make sure that we call methods that could call into the driver via
26681           invoke, to avoid thread issues
26682
26683 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
26684
26685         * XplatUI.cs: Removed finalizer
26686         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
26687           not allowing to be called on the finalizer thread.
26688
26689 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
26690
26691         * ImageList.cs:
26692           - Reverted r51889 and r51891.
26693           - Added ImageListItem class that stores unmodified image items and image
26694             properties required to create list images until handle is created.
26695           - Added AddItem and moved image creation logic to AddItemInternal.
26696           - Added CreateHandle method that creates images based on unmodified items.
26697           - Added DestroyHandle that changes state to store unmodified items.
26698           - Add and AddStrip methods no more create handle.
26699           - ReduceColorDepth has no return value.
26700           - Dispose destroys handle.
26701           - Modified other methods to reflect the above changes.
26702           - Implemented key support.
26703           - Added profile 2.0 members and attributes.
26704           - Added private Reset and ShouldSerialize methods that provide the same
26705             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
26706             them as they are private.
26707           - Added some more comments about implementation details.
26708
26709 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
26710
26711         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
26712
26713 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
26714
26715         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
26716
26717 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
26718
26719         * DataGridDrawingLogic.cs: Fixes column hit calcultation
26720         * DataGridColumnStyle.cs: Remove debug message
26721
26722 2005-10-20  Jackson Harper  <jackson@ximian.com>
26723
26724         * TreeView.cs: We can always get input keys regardless of whether
26725         or not editing is enabled. They are used for navigation.
26726
26727 2005-10-20  Jackson Harper  <jackson@ximian.com>
26728
26729         * TreeNode.cs: Use the viewport rect for determining if a node
26730         needs to be moved for visibility. Don't use Begin/End edit. This
26731         calls a full refresh when its done.
26732         * TreeView.cs: New SetBottom works correctly.  Make the viewport
26733         rect property internal so the treenodes can see it. When clicking
26734         on a node we need to ensure that its visible because it might just
26735         be partly visible when clicked.
26736
26737 2005-10-20  Jackson Harper  <jackson@ximian.com>
26738
26739         * TreeNodeCollection.cs: Remove debug code.
26740
26741 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
26742
26743         * Datagrid.cs: Implements column sorting in Datagrid
26744         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
26745
26746 2005-10-20  Jackson Harper  <jackson@ximian.com>
26747
26748         * TreeNodeCollection.cs: Remove items properly. Update the correct
26749         area after removing them.
26750
26751 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
26752
26753         * Datagrid.cs: Should not call base.OnPaintBackground
26754
26755 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
26756
26757         * XplatUIX11.cs (GetMessage):
26758           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
26759             window instead of client window
26760           - Now properly calculates NC_xBUTTONUP message coordinates
26761           - ScreenToMenu now properly calculates it's coordinates of whole 
26762             window, since menus are in the whole window, not in the client
26763             window
26764           - Added WholeToScreen coordinate translation method
26765
26766 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
26767
26768         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
26769           want to return a message, loop back to the beginning of the function
26770           and grab the next real message to process instead.
26771
26772 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
26773
26774         * Splitter.cs: Properly set limits if no filler control is used
26775
26776 2005-10-19  Jackson Harper  <jackson@ximian.com>
26777
26778         * ColorDialog.cs: Don't show the help button if it is not enabled
26779         instead of disabling it (this is what MS does). Don't create the
26780         panel until the dialog is run, otherwise the vars (such as
26781         ShowHelp) are not set yet.
26782
26783 2005-10-19  Jackson Harper  <jackson@ximian.com>
26784
26785         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
26786         are reduced when adding nodes.
26787         * TreeNode.cs:
26788         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
26789         tree.
26790         
26791 2005-10-19  Jackson Harper  <jackson@ximian.com>
26792
26793         * FolderBrowserDialog.cs: End editing our treeview so the window
26794         actually gets refreshed.
26795
26796 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
26797
26798         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
26799           Obsoleted handling of WM_ERASEBKGND, now always draws our background
26800           inside of WM_PAINT
26801
26802 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
26803
26804         * MenuAPI.cs: Returns after Hidding window
26805         * XplatUIX11.cs: Added TODO found while debugging menu issues
26806
26807 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
26808
26809         * XplatUIX11.cs: Do not re-map the whole window when it's size
26810           becomes non-zero unless it's supposed to be actually visible
26811
26812 2005-10-18  Jackson Harper  <jackson@ximian.com>
26813
26814         * TreeView.cs: We don't need to keep a count anymore.
26815         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
26816         use the Grow method.
26817
26818 2005-10-18  Jackson Harper  <jackson@ximian.com>
26819
26820         * TreeNodeCollection.cs: Insert is not supported on arrays, so
26821         implement it manually here.
26822
26823 2005-10-18  Jackson Harper  <jackson@ximian.com>
26824
26825         * ImageList.cs: Dont kill the list when the colour depth is
26826         changed, just change the colour depth of all the images.
26827         - Same goes for setting the image size. Just resize them all
26828         instead of killing the list softly.
26829
26830 2005-10-18  Jackson Harper  <jackson@ximian.com>
26831
26832         * Control.cs: Don't invalidate empty rectangles.
26833
26834 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
26835
26836         * ListViewItem.cs:
26837           - Adds checked item to the Checked/Item lists (where empty before)
26838           - Do not add items to the Selected lists if they are already present
26839         * ListView.cs:
26840           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
26841           - When deleting items make sure that we delete them for the Selected
26842           and Checked list also.
26843
26844 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
26845
26846         * Label.cs: Dispose objects no longer used
26847         * ThemeWin32Classic.cs: Dispose objects no longer used
26848
26849 2005-10-18  Jackson Harper  <jackson@ximian.com>
26850
26851         * TabControl.cs: Don't refresh the whole control when the tabs are
26852         scrolled, we just need to refresh the tab area.
26853
26854 2005-10-17  Jackson Harper  <jackson@ximian.com>
26855
26856         * XplatUIX11.cs: Compress code a little bit. Only calculate the
26857         after handle when we need it.
26858
26859 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
26860
26861         * Control.cs: When the parent size changes, recalculate anchor 
26862           positions. Partial fix for #76462
26863
26864 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
26865
26866         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
26867           drawn. Fixes #76462
26868
26869 2005-10-17  Jackson Harper  <jackson@ximian.com>
26870
26871         * MonthCalendar.cs: Don't create the numeric up down until our
26872         handle is created. Otherwise our handle is created in the
26873         constructor and we don't know if we are a WS_CHILD or WS_POPUP
26874         yet.
26875
26876 2005-10-17  Jackson Harper  <jackson@ximian.com>
26877
26878         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
26879         correctly.
26880
26881 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
26882         * TreeNode.cs : small logical fix (was using local var instead of field)
26883         
26884 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
26885
26886         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
26887
26888 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
26889
26890         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
26891
26892 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
26893
26894         * Control.cs: 
26895           - Re-implemented anchoring code. My first version was really broken.
26896             This fixes bug #76033. Unlike the previous implementation we will
26897             no longer have round errors since all numbers are calculated from
26898             scratch every time. Removed various anchor-related obsolete vars.
26899           - InitLayout no longer causes layout event firing and layout to be 
26900             performed
26901
26902 2005-10-16  Jackson Harper  <jackson@ximian.com>
26903
26904         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
26905         which was broken).
26906
26907 2005-10-16  Jackson Harper  <jackson@ximian.com>
26908
26909         * TabControl.cs: Remove debug code.
26910
26911 2005-10-16  Jackson Harper  <jackson@ximian.com>
26912
26913         * XEventQueue.cs: Increase the default queue size (very simple
26914         apps needed to grow the queue).
26915         * Hwnd.cs: No finalizer so we don't need to suppress
26916         finalization. Compute the invalid area manually so a new rectangle
26917         does not newto be created.
26918         * ScrollableControl.cs: Don't set any params (otherwise visibility
26919         isn't set correctly).
26920         * MdiChildContext.cs: New constructor takes the mdi parent so it
26921         doesn't have to be computed and avoids a crash on windows. Draw
26922         the window icon properly, and allow the text to be seen.
26923         * Form.cs: Use new MdiChildContext constructor. Make sure the
26924         child context isn't null in wndproc.
26925         * TabControl.cs: Don't set focus, this is muddling keyboard
26926         behavoir. Expand the tab rows when a window size increase will
26927         allow extra tabs to be seen. Don't allow tabs smaller than the
26928         width of a window to be scrolled out of view.
26929         * TreeNode.cs:
26930         * TreeView.cs: Use measure string to calculate a nodes width, the
26931         width is cached and only updated when the text or the font is
26932         changed. Don't check for expand/collapse clicks on the first level
26933         nodes if root lines are disabled.
26934         
26935 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
26936
26937         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
26938
26939 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
26940
26941         * DataGridBoolColumn.cs: fixes warning
26942
26943 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
26944
26945         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
26946         to match more to match more precisely the MS Net behavior
26947
26948 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
26949
26950         * Hwnd.cs: Added field to track if window is mapped
26951         * XplatUIX11.cs: 
26952           - Unmap windows if they become 0-size, re-map when 
26953             they are >0 again; fixes #76035
26954           - Re-set our error handler after initializing X11Desktop
26955             to override any error handlers Gtk or whatever was called
26956             may have set.
26957
26958 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
26959
26960         * CheckedListBox.cs: Removed unused vars
26961         * ListView.cs: Fixed signatures
26962         * RichTextBox.cs: Removed unused vars
26963         * TextBoxBase.cs: Removed unused vars
26964         * XplatUIWin32.cs: Removed unused vars
26965         * XplatUIX11.cs: Removed unused vars
26966         * XplatUI.cs: Updated version and date to latest published
26967
26968 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
26969
26970         * Cursor.cs: Added private .ctor to work around a bug in
26971           resourceset (Thanks to Geoff Norton for the help on this)
26972         * SplitterEventArgs.cs: Made fields accessible so we don't
26973           waste boatloads of objects and can reuse the same one
26974           in Splitter
26975         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
26976           any captions and borders when generating screen coordinates
26977         * Splitter.cs: Reimplemented control, now fully complete, uses
26978           rubberband drawing, supports and obeys all properties, has
26979           proper cursors
26980
26981 2005-10-13  Miguel de Icaza  <miguel@novell.com>
26982
26983         * Form.cs (Form): Setup default values for autoscale and
26984         autoscale_base_size;  Make these instance variables, not static
26985         variables. 
26986
26987         (OnLoad): on the first load, adjust the size of the form.
26988
26989 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
26990
26991         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
26992           width argument to DrawReversibleRectangle()
26993         * XplatUIWin32.cs, XplatUIX11.cs: 
26994           - Implemented width for DrawReversibleRectangle()
26995           - Added logic to DrawReversibleRectangle that recognizes a zero
26996             width or height and only draws a line in that situation
26997         
26998 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
26999
27000         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
27001         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
27002         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
27003           method (it uses our FosterParent window to get a graphics context)
27004
27005 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
27006
27007         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
27008           and SetWindowBackground methods
27009         * Control.cs:
27010           - Setting proper ControlStyles
27011           - We no longer call XplatUI.SetWindowBackground and XplatUI.
27012             EraseWindowBackground, instead we draw the window background
27013             ourselves in PaintControlBackground. This behaviour is
27014             required to match MS, where, when OnPaintBackground is not
27015             called, the background is not drawn.
27016           - Removed unneeded Refresh() in set_Text
27017         * Hwnd.cs: Dropped the ErasePending support. No longer needed
27018         * XplatUIX11.cs:
27019           - Created DeriveStyles method to translate from CreateParams to
27020             FormBorderStyle and TitleStyle, also handles BorderStyle (which
27021             matches FormBorderStyle enum values)
27022           - Consolidated SetHwndStyles and CalculateWindowRect border/title
27023             style calculations into single DeriveStyles method
27024           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
27025             from redrawing the whole window on any resize or expose.
27026           - Fixed CreateWindow usage of SetWindowValuemask. Before not
27027             all styles were applied to our whole/client window appropriately
27028           - Removed EraseWindowBackground() and SetWindowBackground() methods
27029           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
27030             no longer clear/redraw the background through X
27031           - Removed handling of erase_pending bit, we have no use for it (or
27032             so it seems)
27033         * XplatUIOSX.cs:
27034           - Removed generation and handling of WM_ERASEBKGND message
27035           - Removed EraseWindowBackground() and SetWindowBackground() methods
27036           - Removed handling of hwnd.ErasePending flag
27037         * XplatUIWin32.cs:
27038           - Removed EraseWindowBackground() and SetWindowBackground() methods
27039           - We no longer call EraseWindowBackground on PaintEventStart, we 
27040             ignore the fErase flag, erasing is handled in Control in the
27041             background handler
27042         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
27043           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
27044           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
27045           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
27046           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
27047           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
27048           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
27049
27050 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
27051
27052         * PropertyGrids.cs: Get sub properties
27053         * PropertyGridView.cs: Fix drawing code
27054
27055 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
27056
27057         * ListBox.cs: Fixes 76383
27058
27059 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
27060
27061         * DataGridTextBoxColumn.cs: Sets location and size before attachment
27062         * ThemeWin32Classic.cs: Fixes border drawing and calculations
27063         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
27064
27065
27066 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
27067
27068         * ComboBox.cs: Fixes border drawing
27069
27070 2005-10-10  Miguel de Icaza  <miguel@novell.com>
27071
27072         * MimeIcon.cs: Ignore errors if the file can not be read.
27073
27074 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
27075
27076         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
27077          - Fixed border calculations
27078          - Fixed horizontal scrolling in single column listboxes
27079          - Fixed drawing issues
27080
27081 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
27082
27083         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
27084           FormBorderStyle enum
27085         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
27086           code to determine FormBorderStyles from CreateParams
27087         * Form.cs:
27088           - Fixed bug where we'd set the wrong window styles if we were
27089             not creating an MDI window
27090           - Added call to XplatUI.SetBorderStyle when form borders are set
27091         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
27092         * Hwnd.cs:
27093           - Removed obsolete edge style
27094           - Switched from BorderStyle to FormBorderStyle
27095         
27096 2005-10-10  Jackson Harper  <jackson@ximian.com>
27097
27098         * Form.cs: Use the property to get the window handle instead of
27099         accessing it directly. Prevents a null reference exception.
27100
27101 2005-10-10  Jackson Harper  <jackson@ximian.com>
27102
27103         * TreeView.cs: Don't adjust the rect given to DrawString now that
27104         our libgdiplus draws correctly.
27105
27106 2005-10-08  Jackson Harper  <jackson@ximian.com>
27107
27108         * TreeView.cs: Don't try to find the clicked on node if there are
27109         no nodes in the tree.
27110
27111 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
27112
27113         * RichTextBox.cs:
27114
27115           restore
27116
27117 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
27118
27119         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
27120           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
27121           ErrorProvider.cs:
27122           Use ResPool for brushes and dispose System.Drawing objects that
27123           are not used anymore.
27124
27125 2005-10-07  Jackson Harper  <jackson@ximian.com>
27126
27127         * MdiChildContext.cs: Use the new borders instead of drawing them
27128         ourselves.
27129
27130 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
27131
27132         * Calling UpdateBounds after changing the window's BorderStyle 
27133         since the style can change the ClientSize
27134
27135 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
27136
27137         * Control.cs: Made PaintControlBackground virtual
27138         * Panel.cs: Overriding PaintControlBackground instead of using paint
27139           event; paint event method was interfering with 'real' users of the
27140           event.
27141
27142 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
27143
27144         * ThemeWin32Classic.cs: remove border drawing since it is handled
27145         by the base control class now and was causing double border drawing.
27146
27147 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
27148
27149         * Panel.cs: Redraw our background on paint. Not a pretty solution,
27150           but it does seem to match MS behaviour. This fixes bug #75324
27151
27152 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
27153
27154         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
27155           somewhat hackish looking
27156
27157 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
27158
27159         * TextBoxBase.cs:
27160           - We now accept Enter even if AcceptEnter is false, if the containing
27161             form does not have an AcceptButton configured (fixes bug #76355)
27162           - Calculations are now fixed to no longer use Width/Height, but
27163             ClientSize.Width/Height, since we now support borders (this was
27164             a result of fixing borders and therefore bug #76166)
27165           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
27166             true (fixes bug #76354)
27167         
27168 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
27169
27170         * Control.cs: 
27171           - Defaulting BorderStyle and setting it in XplatUI when our window 
27172             is created
27173           - Added enum check to InternalBorderStyle setter
27174         * XplatUIX11.cs: 
27175           - Added drawing of window borders
27176           - Now properly calculates WM decorations offset for toplevel 
27177             windows (fixes bug #74763)
27178         * XplatUIWin32.cs: 
27179           - Implemented BorderStyles for windows (we're letting win32 draw 
27180             the border for us)
27181           - Fixed the signature for SetWindowLong
27182         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
27183           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
27184           setting borders
27185         * UpDownBase.cs: Remove drawing of borders, this is handled by
27186           the driver, outside the client area
27187         * ListView.cs: Removed bogus border calculations. The control should
27188           be oblivious to borders, since those are not part of the client
27189           area. 
27190         * X11DesktopColors.cs: Commented out (currently) unneeded variables
27191         * ThemeWin32Classic.cs: Removed border calculations from ListView 
27192           drawing code
27193
27194 2005-10-06  Jackson Harper  <jackson@ximian.com>
27195
27196         * MdiChildContext.cs: Clear out the old virtual position remove
27197         all the unneeded calls to CreateGraphics.
27198
27199 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
27200
27201         * TextControl.cs: Use proper color for highlighted text; fixes #76350
27202
27203 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
27204
27205         * Form.cs: 
27206           - Added loading and setting of our new default icon
27207           - Only set icon if window is already created
27208
27209 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
27210
27211         * Label.cs:
27212           - Do not explicitly set the foreground and background colors, to
27213             allow inheriting from parents (fixes #76302)
27214           - Use Control's InternalBorderStyle property to deal with borders
27215
27216 2005-10-06  Jackson Harper  <jackson@ximian.com>
27217
27218         * MdiChildContext.cs: Use the new xplatui function to draw a
27219         reversible rect.
27220
27221 2005-10-06  Jackson Harper  <jackson@ximian.com>
27222
27223         * Form.cs: Add the parent before creating the child context cause
27224         we need the parent when setting up the child.
27225
27226 2005-10-06  Jackson Harper  <jackson@ximian.com>
27227
27228         * FolderBrowserDialog.cs: redo the tree population code so a
27229         second thread isn't used. Should be a lot faster and more stable
27230         now.
27231
27232 2005-10-05  Jackson Harper  <jackson@ximian.com>
27233
27234         * TreeView.cs: There are no expand/collapse boxes if the node has
27235         no children.
27236
27237 2005-10-05  Jackson Harper  <jackson@ximian.com>
27238
27239         * X11DesktopColors.cs: Get menu colours for the gtk theme.
27240
27241 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
27242
27243         * FileDialog.cs: Fix InitialDirectory
27244
27245 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
27246
27247         * ComboBox.cs:
27248                 - Fixes changing between styles
27249                 - Fixes simple mode
27250                 - Fixes last item crashing when navigating with keyboard
27251
27252 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
27253
27254         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
27255
27256 2005-10-05  Jackson Harper  <jackson@ximian.com>
27257
27258         * TreeView.cs: If updating the root node do a full refresh.
27259         * TreeNode.cs: The root node should be expanded by default. Also
27260         added a utility prop to tell if we are the root node.
27261         * TreeNodeCollection.cs: Only refresh if the node we are being
27262         added to is expanded. Also added a comment on a potential
27263         optimization.
27264         
27265 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
27266
27267         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
27268           in dispose method. Fixes #76330
27269
27270 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
27271
27272         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
27273
27274                 - Implements vertical and horizontal scrolling using XplatUI
27275                 - Fixes keyboard navagation
27276                 - Fixes EnsureVisible
27277                 - Drawing fixes
27278                 - Handles and draws focus properly
27279
27280
27281 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
27282
27283         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
27284           Create handle. NET_2_0: Destroy handle when value is null.
27285
27286 2005-10-03  Jackson Harper  <jackson@ximian.com>
27287
27288         * ScrollBar.cs: My last scrollbar patch was broken. This is a
27289         revert and a new patch to prevent the thumb from refreshing so
27290         much.
27291
27292 2005-10-02  Jackson Harper  <jackson@ximian.com>
27293
27294         * ScrollBar.cs: Don't update position if it hasn't actually
27295         changed. This occurs when you hold down the increment/decrement
27296         buttons and the thumb gets to the max/min.
27297
27298 2005-10-01  Jackson Harper  <jackson@ximian.com>
27299
27300         * Form.cs:
27301         * MdiChildContext.cs:
27302         * MdiClient.cs: Implement ActiveMdiChild in Form.
27303
27304 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
27305
27306         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
27307
27308 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
27309
27310         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
27311           be found
27312
27313 2005-09-30  Jackson Harper  <jackson@ximian.com>
27314
27315         * ListBox.cs: Don't do a full refresh unless some data has
27316         actually changed.
27317
27318 2005-09-30  Jackson Harper  <jackson@ximian.com>
27319
27320         * TreeView.cs: Make sure that the checkboxes size is factored in
27321         even when not visible.
27322
27323 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
27324
27325         * FileDialog.cs: Fix Jordi's build break
27326
27327 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
27328
27329         * FileDialog.cs: 
27330                 - Use standard the Windows colours for the combobox as espected
27331                 - Dispose objects that use resouces when no longer need them
27332
27333 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
27334
27335         * X11DesktopColors.cs: Initial incomplete implementation
27336         * XplatUIX11.cs: Added call to initialize X11DesktopColors
27337
27338 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
27339
27340         * Theme.cs: 
27341           - Switched Theme color names to match the names defined in 
27342             System.Drawing.KnownColors. Life's hard enough, no need to make 
27343             it harder.
27344           - Added setters to all theme color properties so themes can set
27345             their color schemes. The setters also propagate the color changes
27346             to System.Drawing.KnownColors via reflection
27347         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
27348           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
27349           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
27350           use the new, more logical theme color names
27351         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
27352           post-NT colors
27353         * ThemeWin32Classic.cs:
27354           - Removed code to set the old classic Windows colors. Instead it
27355             now relies on the colors returned by System.Drawing.KnownColors
27356             which will be either modern static colors (Unix) or colors
27357             read from the user's configuration (Win32)
27358           - Updated to use the new, more logical theme color names
27359           - Switched DataGrid drawing code to use only Theme colors instead of
27360             a mix of System.Drawing.KnownColors and Theme colors
27361           - DrawFrameControl(): Removed code that fills the button area, the
27362             fill would overwrite any previous fill done by a control. This
27363             fixes bug #75338 
27364           - Added DrawReversibleRectangle() stub
27365         * ScrollableControl.cs: Set visible state to false when scrollbars
27366           are removed (pdn fix)
27367         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
27368           DrawReversibleRectangle() method to allow drawing primitive 
27369           'rubber bands'
27370         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
27371
27372 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
27373
27374         * ImageList.cs: Add(Icon): Create handle.
27375
27376 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
27377
27378         * ListView.cs:
27379         * ThemeWin32Classic.cs:
27380                 - Fixes detail mode
27381                 - Sets clippings
27382                 - Issues with drawing
27383
27384 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
27385
27386         * ImageList.cs: Moved RecreateHandle back to ImageList as event
27387           source has to be the ImageList.
27388
27389 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
27390
27391         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
27392
27393 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
27394
27395         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
27396
27397 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
27398
27399         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
27400
27401 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
27402         * GridItem.cs: Fixed TODOs
27403         * GridItemCollection.cs: Added ICollection interface
27404
27405 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
27406
27407         * ImageList.cs: Resize icons when needed.
27408
27409 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
27410
27411         * ListViewItem.cs
27412                 - Fixes GetBounds and returns on screen rects
27413         * ListView.cs:
27414                 - Fixes vertical and horzintal scrolling of items
27415         * ThemeWin32Classic.cs:
27416                 - Fixes drawing
27417                 
27418 2005-09-29  Raja R Harinath  <harinath@gmail.com>
27419
27420         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
27421
27422 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
27423
27424         * ImageList.cs: Added comments about handle creation. Moved Handle,
27425           HandleCreated and OnRecreateHandle implementations to ImageCollection.
27426           Handle is created in Add methods.
27427
27428 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
27429          
27430         * DataGridDrawingLogic.cs: 
27431                 - Takes rows into account on Colum calculations
27432                 - Returns the column when clickig
27433         * DataGrid.cs:
27434                 - Fixes default HitTestInfo values
27435                 - Fixes HitTestInfo.ToString
27436                 - Fixes ResetBackColor          
27437         
27438 2005-09-28  Jackson Harper  <jackson@ximian.com>
27439
27440         * MdiChildContext.cs: Obey rules for fixed sized windows (no
27441         sizing or cursor changes). Also added some temp code to draw the
27442         titlebars text (Makes dev a little easier).
27443
27444 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
27445
27446         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
27447
27448 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
27449          
27450         * ListBox.cs: Fixes bug 76253
27451
27452 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
27453
27454         * ImageList.cs: Added comments about the current implementation. Added
27455           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
27456           Format32bppArgb to preserve transparency and can use Graphics.FromImage
27457           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
27458           with Bitmap.LockBits for better performance. Revised the whole file to
27459           match MS.NET behaviour and provide better performance. Non-public
27460           interface members are calling public members even when they throw
27461           NotSupportedException for better maintainability. Moved ColorDepth,
27462           ImageSize, ImageStream and TransparentColor implementations to
27463           ImageCollection for better performance as these properties are not used
27464           by ImageList.
27465         * ImageListStreamer.cs: Added a new internal constructor that takes an
27466           ImageList.ImageCollection and serializes Images based on
27467           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
27468           match ImageList property name.
27469
27470 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
27471
27472         * ListBox.cs: Fixes IndexFromPoint for last item
27473
27474 2005-09-27  Jackson Harper  <jackson@ximian.com>
27475
27476         * Form.cs: Set the position of new mdi children correctly.
27477
27478 2005-09-27  Jackson Harper  <jackson@ximian.com>
27479
27480         * MdiClient.cs: New mdi children need to be added to the back of
27481         the controls collection so the zorder is set correctly. Also add a
27482         count of all the child windows that have been created.
27483
27484 2005-09-27  Jackson Harper  <jackson@ximian.com>
27485
27486         * Form.cs (CreateParams): Setup MDI forms correctly.
27487
27488 2005-09-27  Jackson Harper  <jackson@ximian.com>
27489
27490         * MdiChildContext.cs:
27491         * MonthCalendar.cs:
27492         * UpDownBase.cs:
27493         * ListBox.cs:
27494         * ListView.cs:
27495         * TextBoxBase.cs:
27496         * TreeView.cs:
27497         * ScrollableControl.cs:
27498         * ComboBox.cs: Add implicit controls using the new implict control
27499         functionality in ControlCollection. Also try to block multiple
27500         control add in a suspend/resume layout to save some cycles.
27501         
27502 2005-09-27  Jackson Harper  <jackson@ximian.com>
27503
27504         * Control.cs: Add functionality to the controls collection to add
27505         'implicit controls' these are controls that are created by the
27506         containing control but should not be exposed to the user. Such as
27507         scrollbars in the treeview.
27508         * Form.cs: The list var of the ControlsCollection is no longer
27509         available because of the potential of implicit controls getting
27510         ignored by someone accessing the list directly.
27511
27512 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
27513
27514         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
27515           loose it's parent. (Fixed bug introduced in r49103 when we added
27516           setting the child parent to null on Remove)
27517
27518 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
27519
27520         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
27521         * Splitter.cs: Added missing attributes for BorderStyle property.
27522         * TextBoxBase.cs: Marked Calculate* methods internal.
27523         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
27524         MS.NET.
27525
27526 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
27527          
27528         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
27529
27530 2005-09-25  Jackson Harper  <jackson@ximian.com>
27531
27532         * TreeView.cs: Update the node bounds correctly regardless of
27533         whether the node is visible.
27534
27535 2005-09-25  Jackson Harper  <jackson@ximian.com>
27536
27537         * ImageList.cs: Don't dispose the image after it is added to the
27538         image list. Only reformat images that need to be resized.
27539
27540 2005-09-25  Jackson Harper  <jackson@ximian.com>
27541
27542         * ImageList.cs: Don't set the format when changing the image.
27543
27544 2005-09-25  Jackson Harper  <jackson@ximian.com>
27545
27546         * TreeView.cs: We can't just assume the node has a font. Use the
27547         treeviews font if no node font is available.
27548
27549 2005-09-25  Jackson Harper  <jackson@ximian.com>
27550
27551         * TreeView.cs: Allow the scrollbars to be reset with negative
27552         values.
27553         - Don't add scrollbars to negative sized windows.
27554
27555 2005-09-23  Jackson Harper  <jackson@ximian.com>
27556
27557         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
27558         old Mono.Posix. Also remove some stray code that shouldn't have
27559         been committed.
27560
27561 2005-09-23  Jackson Harper  <jackson@ximian.com>
27562
27563         * TreeView.cs: Attempt at proper sizing of the horizontal
27564         scrollbar. Also don't resize the scrollbars unless they are
27565         visible.
27566
27567 2005-09-23  Jackson Harper  <jackson@ximian.com>
27568
27569         * TreeView.cs: We don't need to expand the invalid area when the
27570         selection changes, as this is all drawn in the node's bounding
27571         box. The area needs to be expanded (previous typo was contracting
27572         it) when the focus rect moves.
27573
27574 2005-09-23  Jackson Harper  <jackson@ximian.com>
27575
27576         * TreeView.cs: Display the selection box under the correct
27577         circumstances. We were rendering white text with no selection box
27578         before.
27579
27580 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
27581
27582         * TextControl.cs(Split): Now updates selection start/end if it points 
27583           into a line that's being split. Fixes a FIXME and bug #75258
27584
27585 2005-09-23  Jackson Harper  <jackson@ximian.com>
27586
27587         * Binding.cs:
27588         * ListControl.cs: Don't use the path when retrieving binding
27589         managers from the binding context. My bat sense tells me that the
27590         path is only used on insertion.
27591
27592 2005-09-22  Jackson Harper  <jackson@ximian.com>
27593
27594         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
27595
27596 2005-09-22  Jackson Harper  <jackson@ximian.com>
27597
27598         * Splitter.cs: There are special cursors used for splitting.
27599         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
27600
27601 2005-09-22  Jackson Harper  <jackson@ximian.com>
27602
27603         * Splitter.cs: Change the cursor appropriately when the splitter
27604         is moused over, so the user actually knows there is a splitter
27605         there.
27606
27607 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
27608
27609        * Label.cs : Fix ToString method to give same output as MS.NET
27610
27611 2005-09-22  Jackson Harper  <jackson@ximian.com>
27612
27613         * TreeView.cs: Create the scrollbars when the handle is created
27614         and add them right away, just make them invisble. Also account for
27615         the window being shrunk vertically to the point that the vert
27616         scrollbar needs to be added.
27617         - Remove some 0.5 adjustments to get around anti aliasing issues.
27618         
27619 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
27620          
27621         * MainMenu.cs: Fixes default value
27622         * MenuItem.cs: Fixes default value
27623
27624 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
27625
27626         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
27627
27628 2005-09-21  Jackson Harper  <jackson@ximian.com>
27629
27630         * Control.cs: Don't try to set the border style on the window if
27631         it hasn't been created. When the window is created the border
27632         style will be used.
27633
27634 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
27635
27636         * Control.cs (Update): Don't call XplatUI if we don't have a
27637           window handle yet
27638
27639 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
27640
27641         * ContainerControl.cs: Instead of throwing an exception, print
27642           a one-time warning about Validate not being implemented
27643         * XplatUIWin32.cs: Removed debug output
27644
27645 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
27646
27647         * Control.cs: Only set XplatUI background if we expect the windowing
27648           system to handle the background. This stops controls that draw their
27649           own background from flickering
27650
27651         * XplatUIX11.cs: Support custom visuals and colormaps for window 
27652           creation. This allows, amongst other things, using MWF X11 windows 
27653           with OpenGL.
27654
27655 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
27656
27657         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
27658           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
27659           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
27660           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
27661           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
27662           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
27663           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
27664           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
27665           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
27666           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
27667           GridColumnStylesCollection.cs, 
27668           IDataGridColumnStyleEditingNotificationService.cs,
27669           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
27670           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
27671           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
27672           TreeNodeCollection.cs, AmbientProperties.cs, 
27673           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
27674           DataObject.cs, ErrorProvider.cs, Splitter.cs,
27675           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
27676           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
27677           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
27678           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
27679           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
27680           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
27681           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
27682           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
27683           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
27684           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
27685           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
27686           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
27687           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
27688           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
27689           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
27690           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
27691           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
27692           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
27693           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
27694           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
27695           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
27696           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
27697           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
27698           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
27699           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
27700           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
27701           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
27702           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
27703           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
27704           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
27705           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
27706           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
27707           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
27708           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
27709           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
27710
27711 2005-09-21  Jackson Harper  <jackson@ximian.com>
27712
27713         * TreeNode.cs: Call Before/After Expand not Collapse when
27714         expanding.
27715
27716 2005-09-20  Jackson Harper  <jackson@ximian.com>
27717         
27718         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
27719
27720 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
27721          
27722         * ListViewItem.cs:
27723                 - Fixes bug 76120
27724                 - Fixes proper storing of subitems
27725                 - Fixes not updated items
27726
27727 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
27728
27729         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
27730           things if our window handle isn't created yet. Also disabled 
27731           debug for TextBoxBase
27732
27733 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
27734
27735         * MenuAPI.cs: Remove filtering of events to allow menu usage
27736
27737 2005-09-20  Miguel de Icaza  <miguel@novell.com>
27738
27739         * Cursor.cs: Allow null to be passed to Cursor.Current.
27740
27741 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
27742
27743         * ThemeWin32Classic.cs:
27744           - Change some private methods/fields to protected virtual so that 
27745             they can be accessed and overriden in derived classes
27746           - First refactoring of some methods. Derived themes now don't 
27747             need to duplicate the complete code from ThemeWin32Classic
27748         * ThemeNice.cs:
27749           - Added nice StatusBar
27750           - Derive from ThemeWin32Classic and not Theme
27751           - Removed duplicate ThemeWin32Classic code
27752
27753 2005-09-20  Miguel de Icaza  <miguel@novell.com>
27754
27755         * Control.cs (ControlCollection.Add): If the value null is passed
27756         the control is ignored. 
27757
27758         Optimize this loop.
27759
27760 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
27761
27762         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
27763           PostQuitMessage state.
27764         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
27765
27766 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
27767
27768         * Application.cs: Our constructor will never get called, move 
27769           initialization to fields; fixes bug #75933
27770
27771 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
27772
27773         * FileDialog.cs :
27774                 - Allow files to be selected properly using file name
27775                 combo box.
27776                 - Add ability to change diretory (absolute / relative)
27777                 using file name combo box.
27778
27779 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
27780          
27781         * ListBox.cs: 
27782                 - Fixes Multicolumn listboxes item wrong calculations
27783                 - Allows to click when only one item is in the listbox
27784                 - Fixes crash when no items using keyboard navigation
27785
27786 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
27787
27788         * ComboBox.cs: Reverted almost everything from the latest patch which
27789           broke ComboBox
27790
27791 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
27792         
27793         * ToolTip.cs:
27794                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
27795         * ComboBox.cs:
27796                 - When DropDownStyle is Simple, it does not show scrollbar 
27797                 to the last item of the list.
27798                 - When DropDownStyle is Simple, it crashed when the list was 
27799                 scrolled down with the down cursor key.
27800                 - Fixed a bug that when DropDownStyle is DropDownList, the 
27801                 selected item was not shown.
27802                 - The position of the selected item was not preserved when 
27803                 the next dropdown happened.
27804         * ThemeWin32Classic.cs:
27805                 - Items were wrapped at the right end.
27806         * CheckedListBox.cs:
27807                 - Fixed Add method
27808         * ListBox.cs:
27809                 - Items should be fully shown.
27810                 - When resizing and vertical scrollbar disappeared, the item 
27811                 of index 0 should be on the top of the list.
27812                 - GetItemRectangle should consider the size of ver. scrollbar
27813         * StatusBar.cs:
27814                 - SizingGrip area should not be allocated when it is not 
27815                 displayed.
27816                 - Now it reflects MinWidth of the containing panel and 
27817                 fixed a crash that happens when its width becomes so small.
27818
27819 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
27820
27821         * CheckedListBox.cs: Fixes bug 76028
27822         * ListBox.cs: Fixes bug 76028
27823
27824 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
27825
27826         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
27827         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
27828
27829 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
27830
27831         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
27832
27833 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
27834
27835         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
27836
27837 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
27838
27839         * IRootGridEntry.cs: Added
27840         * PropertyGridCommands.cs: Added
27841         * PropertiesTab.cs: Added missing methods and property
27842         * PropertyGridView.cs: Made class internal
27843         * PropertyGridTextBox.cs: Made class internal
27844
27845 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
27846
27847         * MimeIcon.cs: Try to check some other environment variables
27848           if "DESKTOP_SESSION" returns "default"
27849
27850 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
27851
27852         * ThemeNice.cs: Corrected background colors (e.g. menus)
27853         * ColorDialog.cs: Use correct background colors for controls
27854
27855 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
27856
27857         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
27858
27859 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
27860
27861         * RichTextBox.cs: Added initial implementation
27862         * lang.cs: Removed. Was accidentally checked in long time ago
27863         * TODO: Removed. Contents were obsolete
27864
27865 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
27866                                                                                 
27867         * PropertiesTab.cs : Added
27868
27869 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
27870                                                                                 
27871         * PropertyGrid.cs : Update
27872         * PropertyGridView.cs : Update
27873         * System.Windows.Forms.resx : Added images and strings
27874
27875 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
27876
27877         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
27878  
27879 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
27880
27881         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
27882           a busy loop right after the Ungrab the X11 display is otherwise 
27883           blocked
27884
27885 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
27886
27887         * ThemeWin32Classic.cs: Optimise the use of clipping
27888
27889 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
27890
27891         * DataGrid.cs: fixes recursion bug
27892
27893 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
27894
27895         * ThemeNice.cs: 
27896           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
27897           - Cleanup
27898
27899 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
27900
27901         * ThemeNice.cs: Draw nice ProgressBars
27902
27903 2005-09-01  Miguel de Icaza  <miguel@novell.com>
27904
27905         * VScrollBar.cs: Another buglet found by Aaron's tool. 
27906
27907         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
27908         bug finder.
27909
27910 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
27911
27912         * ThemeNice.cs:
27913           - Added nicer menu drawing
27914           - Updated DrawTab
27915           - some refactoring
27916
27917 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
27918
27919         * CreateParams.cs (ToString): Made output match MS
27920         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
27921             handle is already created (to avoid forcing window creation)
27922         * XplatUIX11.cs: Set window text to caption after creating window,
27923           in case Text was set before window was created
27924         * Form.cs: Use this.Text instead of a static string as caption
27925
27926 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
27927
27928         * NotifyIcon.cs: Don't set the window to visible; this screws
27929           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
27930           OnPaint without a bitmap)
27931         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
27932           happen very often anyway; we could add the check to the WM_PAINT 
27933           event generation code
27934
27935 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
27936
27937         * NotifyIcon.cs: Fill the icon area with a background color, to 
27938           avoid 'residue' when transparent icons are drawn
27939         * XplatUIX11.cs:
27940           - Handle whole_window == client_window when destroying windows
27941           - SystrayAdd(): Set client_window to whole_window value to
27942             get mouse and other events passed to NotifyIcon
27943
27944 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
27945
27946         * Form.cs: Set proper default for Opacity property
27947         * NotifyIcon.cs:
27948           - ShowSystray(): Don't bother creating telling the OS
27949             about the systray item if no icon is provided
27950           - Now handles WM_NCPAINT message to deal with whole/client window
27951             split
27952           - Create window as visible to not get caught by Expose optimization
27953         * Hwnd.cs: Removed debug message
27954         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
27955           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
27956             PaintEventStart/End to use new client argument
27957         * TextBoxBase.cs:
27958           - Commented out debug messages
27959           - Switched PaintEventStart/End to use new client argument
27960         * XplatUI.cs: Added client window bool to PaintEventStart()/
27961           PaintEventEnd() calls, to support drawing in non-client areas
27962         * XplatUIDriver.cs: 
27963           - Added client window bool to PaintEventStart()/PaintEventEnd() 
27964             calls, to support drawing in non-client areas
27965           - Added conditional compile to allow using MWF BeginInvoke 
27966             on MS runtime
27967         * XplatUIX11.cs:
27968           - Added some conditional debug output
27969           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
27970             whole/client window split
27971           - Implemented handling of client argument to PaintEventStart()/End()
27972         * Control.cs:
27973           - Throw exception if BeginInvoke() is called and the window handle
27974             or one of the window's parent handles is not created
27975           - Added conditional compile to allow using MWF BeginInvoke on
27976             MS runtime
27977           - get_Parent(): Only sets parent if handle is created. This avoids
27978             forcing window handle creation when parent is set.
27979           - Now fires Layout and Parent changed events in proper order
27980           - Switched to use Handle instead of window.Handle for Z-Order setting,
27981             the get_Parent() patch above causes us to possibly get null for 'window'
27982           - Implemented handling of client argument to PaintEventStart()/End()
27983           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
27984             default handling)
27985           - Now sends a Refresh() to all child windows when Refresh() is called
27986
27987 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
27988
27989         * Form.cs: Added (non-functional) Opacity property
27990         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
27991
27992 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
27993         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
27994           use export MONO_THEME=nice to activate it.
27995           Currently supported controls:
27996           - Button
27997           - ComboBox
27998           - ScrollBar
27999           - TabControl (TabAlignment.Top only, other will follow)
28000         * ThemeEngine.cs: Add theme nice
28001         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
28002           if enabled
28003
28004 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
28005
28006         * Splitter.cs: Resize docked control and its neighbor.
28007
28008 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
28009         -- Making Windows with Menus layout correctly --
28010         * Form.cs : The first leg of the fix
28011                 Menu setter - adjust Client Size as needed to make space for the menu
28012                 SetClientSizeCore - doesn't call base version to be able to pass the 
28013                         menu handle to XplatUI.CalculateWindowRect
28014         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
28015         * XplatUIX11.cs: The critical second leg of the fix
28016                 GetWindowPos needs to use a recalculated client_rect
28017                 so that resizing the window doesn't break layout of child controls. 
28018                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
28019                 Lots of \t\n killed
28020
28021 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
28022
28023         * Label.cs: Now properly recalculates width and height on Font and Text
28024           changes if AutoSize is set
28025
28026 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
28027         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
28028
28029 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
28030
28031         * ImageList.cs: Makes ToString method compatible with MS
28032
28033 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
28034
28035         * MenuAPI.cs: fixes bug 75716
28036
28037 2005-08-11 Umadevi S <sumadevi@novell.com>
28038         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
28039
28040 2005-08-11 Umadevi S <sumadevi@novell.com>
28041         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
28042
28043 2005-08-10  Umadevi S <sumadevi@novell.com>
28044         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
28045
28046 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
28047
28048         * Menu.cs: fixes bug 75700
28049         * MenuAPI.cs: fixes navigation issues
28050
28051 2005-08-09  Umadevi S <sumadevi@novell.com>
28052         * CheckedListBox.cs - simple fix for GetItemChecked.
28053
28054 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
28055
28056         * ComboBox.cs: Serveral fixes
28057         * ListBox.cs: Serveral fixes
28058
28059 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
28060
28061         * ComboBox.cs: Fixes FindString methods and GetItemHeight
28062         * ListBox.cs: Fixes FindString methods
28063
28064 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
28065
28066         * DataGrid.cs: fixes bugs exposed by new tests
28067
28068 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
28069
28070         * Mime.cs: Compile Mono assembly references only if compiling
28071           with Mono (Allows to build with VS.Net again)
28072
28073 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
28074
28075         * Control.cs (PaintControlBackground): Draw background image
28076         corrrectly.
28077         (CheckForIllegalCrossThreadCalls): Stubbed.
28078         
28079         * Form.cs (OnCreateControl): Center when should be centered.
28080         
28081         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
28082
28083 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
28084
28085         * Binding.cs: Binding to properties should be case unsensitive
28086
28087 2005-07-18 vlindos@nucleusys.com
28088
28089         * DataGrid.cs: fixes setmember order
28090
28091 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
28092
28093         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
28094         * FileDialog.cs: FileDialog is now resizable and uses the new
28095           MimeIconEngine
28096
28097 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
28098
28099         * DataGridTextBoxColumn.cs: default value
28100         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
28101         * GridTableStylesCollection.cs: fixes checking MappingName
28102         * DataGridDrawingLogic.cs: fixes drawing logic issues
28103         * DataSourceHelper.cs: rewritten to make compatible with more data sources
28104         * DataGrid.cs: fixes    
28105
28106 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
28107
28108         * MimeGenerated.cs: Use case sensitive comparer for
28109           NameValueCollections
28110
28111 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
28112
28113         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
28114         * ThemeWin32Classic.cs: bug fixes, code refactoring
28115         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
28116         * DataGrid.cs: bug fixes, code refactoring
28117         * DataGridTextBox.cs: bug fixes, code refactoring
28118         * DataGridColumnStyle.cs:  bug fixes, code refactoring
28119         * Theme.cs:  bug fixes, code refactoring
28120
28121 2005-07-01  Peter Bartok  <pbartok@novell.com> 
28122
28123         * TextControl.cs: Quick fix for the reported crash on ColorDialog
28124           and other text box usage
28125
28126 2005-07-01  Jackson Harper  <jackson@ximian.com>
28127
28128         * TabControl.cs: Make sure the bottom of the tab covers the pages
28129         border.
28130
28131 2005-06-30  Peter Bartok  <pbartok@novell.com> 
28132
28133         * Form.cs (ShowDialog): Assign owner of the dialog
28134         * TextBoxBase.cs: Always refresh caret size when deleting, caret
28135           might have been moved to a tag with different height
28136
28137 2005-06-30  Jackson Harper  <jackson@ximian.com>
28138
28139         * Form.cs: Don't create an infinite loop when setting focus
28140         * MenuItem.cs: Don't dirty the parents if we don't have any
28141
28142 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
28143
28144         * LibSupport.cs: Rename
28145
28146 2005-06-29  Peter Bartok  <pbartok@novell.com>
28147
28148         * TextBoxBase.cs: Re-align caret after deleting a character
28149         * TextControl.cs:
28150           - DeleteChars(): Ensure that tag covers the provided position
28151           - StreamLine(): Drop reference for dropped tag
28152
28153 2005-06-29  Peter Bartok  <pbartok@novell.com> 
28154
28155         * TextControl.cs: 
28156           - Selections now work properly, anchoring at the initial location
28157             and properly extending in either direction (SetSelectionToCaret(),
28158             SetSelectionStart() and SetSelectionEnd())
28159           - No longer redraws the whole control on selection change, now
28160             calculates delta between previous and new selection and only
28161             invalidates/redraws that area
28162           - Fixed FindPos() math off-by-one errors
28163           - Changed DeleteChars() to verify the provided tag covers the
28164             provided position, selections may have a tag that doesn't cover
28165             the position if the selection is at a tag border
28166           - Fixed off-by-one errors in DeleteChars()
28167           - Added missing streamlining check in DeleteChars() to remove
28168             zero-length tags
28169           - Implemented Invalidate() method, now properly calculates exposures
28170             between two given lines/positions
28171           - Implemented SetSelection()
28172           - Obsoleted and removed FixupSelection()
28173           - Improved RecalculateDocument() logic, removing code duplication
28174
28175 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28176
28177         * LibSupport.cs: changes to match different input/output arguments.
28178
28179 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28180
28181         * LibSupport.cs: added libsupport.so init routine.
28182
28183 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
28184         
28185         * ControlBindingsCollection.cs
28186                 - Throws an exception on null datasource when adding
28187                 - Checks for duplicated bindings when adding
28188
28189 2005-06-28  Jackson Harper  <jackson@ximian.com>
28190
28191         * TreeView.cs (OnKeyDown): Support left and right properly
28192         (navigates as well as expanding and collapsing.
28193         - Add support for Multiply, this expands all the selected nodes
28194         children.
28195         - Fix some tabbing.
28196
28197 2005-06-28  Jackson Harper  <jackson@ximian.com>
28198
28199         * TreeView.cs: Implement keyboard navigation, currently supports,
28200         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
28201         support for toggling checkboxes with the space bar.
28202
28203 2005-06-28  Jackson Harper  <jackson@ximian.com>
28204
28205         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
28206         tree.
28207
28208 2005-06-28  Jackson Harper  <jackson@ximian.com>
28209
28210         * TreeView.cs: Add missing event.
28211
28212 2005-06-27  Peter Bartok  <pbartok@novell.com> 
28213
28214         * TextControl.cs:
28215           - Made line ending size configurable (now allows for counting 
28216             lineendings as \n or \r\n)
28217           - Added margin to viewport to keep caret visible on right side
28218           - Fixed translation routines for line/pos to documentpos to consider
28219             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
28220           - Fixed some line-endings to be unix style
28221           - Fixed Document.FormatText to perform it's calculations 1-based
28222           - Added descriptions for a few methods that might otherwise get 
28223             used wrong
28224           - Added NOTE section with some basic conventions to remember at 
28225             the top of the file
28226           - Major fixup for RichTextBox selection drawing:
28227             * Fixed crashes when multiple tags on a single line were selected
28228             * fixed selection box drawing not overlaying text
28229             * fixed bogus offset calculation for tags not starting at index 1
28230             * Switched behaviour from using multiple Substrings of a 
28231               StringBuilder.ToString() to using multiple 
28232               StringBuilder.ToString(start, length) statements, hoping this is
28233               faster (kept original version commented out in the code, in case
28234               original version was faster)
28235         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
28236           alignment != Left
28237         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
28238           call it as well
28239
28240 2005-06-27  Jackson Harper  <jackson@ximian.com>
28241
28242         * TabControl.cs: Move to the left and right with the arrow
28243         keys. These keys don't cycle beyond first and last like
28244         tab. Refresh all the tabs when scrolling them to the left or
28245         right.
28246
28247 2005-06-27  Jackson Harper  <jackson@ximian.com>
28248
28249         * TabControl.cs:
28250           - ToString: Added method
28251           - CreateParams: Remove TODO and comment
28252           - OnKeyDown: Cycle through bounds properly.
28253           - SelectedIndex: Scroll to the right or left if we need to
28254           display the newly selected tab.
28255
28256 2005-06-23  Jackson Harper  <jackson@ximian.com>
28257
28258         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
28259         set.
28260
28261 2005-06-23  Jackson Harper  <jackson@ximian.com>
28262
28263         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
28264         CTRL-SHIFT-TAB, and HOME, END are there any others?
28265
28266 2005-06-23  Jackson Harper  <jackson@ximian.com>
28267
28268         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
28269
28270 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
28271         
28272         * DataGridTextBoxColumn.cs: fixes and enhancements
28273         * ThemeWin32Classic.cs: fixes and enhancements
28274         * DataGridBoolColumn.cs:  fixes and enhancements
28275         * DataGridDrawingLogic.cs:  fixes and enhancements
28276         * CurrencyManager.cs: fixes and enhancements
28277         * DataGrid.cs: fixes and enhancements
28278         * DataGridColumnStyle.cs:  fixes and enhancements
28279
28280 2005-06-22  Jackson Harper  <jackson@ximian.com>
28281
28282         * TabControl.cs: Add some missing methods that just call into the
28283         base. Make the TabPageCollection's IList interface behave in the
28284         same manner as the MS implementation.
28285
28286 2005-06-22  Peter Bartok  <pbartok@novell.com> 
28287
28288         * TextControl.cs: Added sanity check
28289         * TextBoxBase.cs: 
28290           - Fixed wrapping behaviour, don't set wrap on single line controls
28291             (this fixes the breakage of colordialog introduced in an earlier
28292              checkin)
28293           - Added rudimentary support for autoscrolling right-aligned controls
28294             (still needs fixing, also, center alignment scroll is missing)
28295
28296 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
28297         
28298         * ScrollBar.cs: Fixes thumbpos on Maximum values
28299
28300 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
28301         
28302         * PropertyGridView.cs: Pass context information to UITypeEditors 
28303
28304 2005-06-21  Peter Bartok  <pbartok@novell.com> 
28305
28306         * TextBoxBase.cs:
28307           - Now calling PositionCaret with absolute space coordinates
28308           - Enabled vertical scrolling
28309           - Better tracking of scrollbar changes, tied into WidthChange
28310             event
28311           - Improved cursor tracking
28312           - Removed debug output
28313         * TextControl.cs:
28314           - PositionCaret coordinates are now works in absolute space, not 
28315             the canvas
28316           - Improved tracking of document size
28317           - Added events for width and height changes
28318
28319 2005-06-21  Peter Bartok  <pbartok@novell.com>
28320
28321         * Form.cs: Set focus to active control when form is activated
28322         * TextControl.cs: 
28323           - Added word-wrap functionality to RecalculateLine() 
28324           - Added some short function descriptions for VS.Net to aid in
28325             writing dependent controls
28326           - Added Caret property, returning the current coords of the caret
28327           - Added ViewPortWidth and ViewPortHeight properties
28328           - Added Wrap property
28329           - Added CaretMoved event
28330           - Removed some old debug code
28331           - Split() can now create soft splits
28332           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
28333           - Added method to format existing text
28334           - Fixed size/alignment calculations to use viewport
28335           - RecalculateDocument now can handle changing line-numbers while
28336             calculating lines
28337
28338         * TextBox.cs:
28339           - Added some wrap logic, we don't wrap if alignment is not left
28340           - Added casts for scrollbar var, base class switched types to
28341             also support RichTextBoxA
28342           - Implemented handling of scrollbar visibility flags
28343
28344         * TextBoxBase.cs:
28345           - Switched scrollbars type to RichTextBoxScrollBars to support
28346             RichTextBox
28347           - Added tracking of canvas width/height
28348           - Switched scrollbars to be not selectable (to keep focus on text)
28349           - Added central CalculateDocument() method to handle all redraw
28350             requirements
28351           - Added ReadOnly support
28352           - Added WordWrap support
28353           - Fixed handling of Enter key (we now treat it as a DialogKey)
28354           - Fixed caret positioning when h or v scroll is not zero
28355           - Fixed placing/generation of vertical scrollbar
28356           - Added CalculateScrollBars() method to allow updating scrollbar
28357             limits and visibility
28358           - Fixed handling of horizontal scroll
28359           - Added handling of vertical scroll
28360           - Implemented auto-'jump' when caret moves to close to a left or
28361             right border and there is text to be scrolled into view (currently
28362             there's the potential for a stack overflow, until a bug in
28363             scrollbar is fixed)
28364
28365 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
28366         
28367         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
28368
28369 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
28370
28371         * Mime.cs:
28372         - added inodes.
28373         - return application/x-zerosize for files with size zero
28374           (if no extension pattern matches).
28375         - check matches collection for strings too.
28376         - return only the first mime type if the name value
28377           collection has more than one mime type.
28378
28379 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
28380         
28381         * PropertyGrid.cs: Cleaned up some TODOs
28382         * PropertyGridView.cs: Added support for UITypeEditors
28383
28384 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
28385         
28386         * DataGrid.cs: clears cached value
28387
28388 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
28389
28390         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
28391         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
28392         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
28393         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
28394         
28395 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
28396
28397         * ThemeWin32Classic.cs: fixes colour
28398
28399 2005-06-15  Peter Bartok  <pbartok@novell.com>
28400
28401         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
28402         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
28403         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
28404         * Control.cs: Added some MWFCategory and MWFDescription attributes
28405         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
28406
28407 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
28408
28409         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
28410         usage
28411
28412 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
28413
28414         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
28415         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
28416         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
28417         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
28418         * DataGrid.cs: default datagrid settings for Default Styles, fixes
28419         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
28420
28421 2005-06-13  Jackson Harper  <jackson@ximian.com>
28422
28423         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
28424         isn't printed when the user enables dropping. (X11 does accept
28425         drops).
28426         
28427 2005-06-13  Jackson Harper  <jackson@ximian.com>
28428
28429         * TreeView.cs: Remove some TODOS.
28430
28431 2005-06-13  Jackson Harper  <jackson@ximian.com>
28432
28433         * Form.cs: Hook into the mdi framework.
28434         * MdiClient.cs: Use the base control collections add method so
28435         parents get setup correctly. Set the default back colour and dock
28436         style.
28437         * MdiChildContext.cs: New class, this bad actor handles an
28438         instance of an MDI window. Right now there is only basic
28439         support. You can drag, close, and resize windows. Minimize and
28440         Maximize are partially implemented.
28441
28442 2005-06-13  Jackson Harper  <jackson@ximian.com>
28443
28444         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
28445         freaky when both vals are negative. NOTE: There are probably other
28446         places in XplatUIX11 that this needs to be done.
28447
28448 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
28449
28450         * DataGrid.cs: implement missing methods, move KeyboardNavigation
28451         * DataGridColumnStyle.cs: fixes signature
28452
28453 2005-06-12  Jackson Harper  <jackson@ximian.com>
28454
28455         * XplatUIX11.cs: Use sizing cursors similar to the ones on
28456         windows.
28457
28458 2005-06-11  Jackson Harper  <jackson@ximian.com>
28459
28460         * StatusBarPanel.cs: Signature cleanups. Implement
28461         BeginInit/EndInit.
28462
28463 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
28464
28465         * DataGridTextBoxColumn.cs: Honors aligment
28466         * GridColumnStylesCollection.cs: Contains is case unsensitive
28467         * GridTableStylesCollection.cs: several fixes
28468         * DataGridTableStyle.cs: default column creation
28469         * DataGridDrawingLogic.cs: fixes
28470         * CurrencyManager.cs: ListName property
28471         * DataGrid.cs: multiple styles support
28472         * DataGridColumnStyle.cs: fixes
28473         
28474
28475 2005-06-10  Peter Bartok  <pbartok@novell.com>
28476
28477         * Control.cs(Select): Moved SetFocus call to avoid potential
28478           loops if controls change the active control when getting focus
28479         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
28480           the up/down buttons
28481
28482 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
28483
28484         * ImageListConverter.cs: Implemented
28485
28486 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
28487
28488         * MonthCalendar.cs: Wired in NumericUpDown control for year
28489
28490 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
28491
28492         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
28493           DoubleClick events, since they are not meant to be fired.
28494
28495 2005-06-09  Peter Bartok  <pbartok@novell.com>
28496
28497         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
28498           Jonathan's standalone controls into MWF, implemented missing
28499           events, attributes and methods; added xxxAccessible classes
28500         * AccessibleObject.cs: Made fields internal so other classes
28501           can change them if needed
28502
28503 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
28504
28505         * UpDownBase.cs: Complete implementation
28506         * NumericUpDown.cs: Complete implementation
28507         * DomainUpDown.cs: Complete implementation
28508
28509 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
28510
28511         * DataGridTextBoxColumn.cs: drawing fixes
28512         * DataGridCell.cs: fixes ToString method to match MSNet
28513         * DataGridTableStyle.cs: fixes
28514         * DataGridBoolColumn.cs: fixes, drawing
28515         * DataGridDrawingLogic.cs: fixes, new methods
28516         * DataGridTextBox.cs: Keyboard and fixes
28517         * DataGrid.cs:
28518                 - Keyboard navigation
28519                 - Scrolling fixes
28520                 - Row selection (single, multiple, deletion, etc)
28521                 - Lots of fixes
28522         
28523 2005-06-07  Jackson Harper  <jackson@ximian.com>
28524
28525         * ThemeWin32Classic.cs: Clear the background area when drawing
28526         buttons.
28527
28528 2005-06-06  Peter Bartok  <pbartok@novell.com>
28529
28530         * ImageListStreamer.cs: Fixed signature for GetData
28531         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
28532         * ComboBox.cs:
28533           - Added missing ChildAccessibleObject class
28534           - Added missing OnXXXFocus overrides, switched to using those
28535             instead of the event handler
28536         * Control.cs:
28537           - Added Parent property for ControlAccessibleObject
28538           - Fixed signatures
28539           - Fixed attributes
28540           - Added ResetBindings()
28541         * ListBindingConverter.cs: Implemented some methods
28542         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
28543         * ImageList.cs: Implemented basic handle scheme, removed TODOs
28544         * ContainerControl.cs: Fixed signature, now subscribing to the
28545           ControlRemoved event instead of overriding the handler, LAMESPEC
28546         * CurrencyManager.cs: Added missing attribute
28547         * MonthCalendar.cs: Added missing properties
28548
28549 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
28550
28551         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
28552         
28553 2005-06-06  Gaurav Vaish and Ankit Jain
28554
28555         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
28556         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
28557         
28558 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
28559
28560         * Control.cs: fixes CreateParams Width / Height.
28561
28562 2005-06-05  Peter Bartok  <pbartok@novell.com>
28563
28564         * Win32DnD.cs: Removed compilation warnings
28565
28566 2005-06-05  Peter Bartok  <pbartok@novell.com>
28567
28568         * Control.cs (CreateParams): Since we don't know if one of the
28569           properties we use is overridden, lets make sure if we fail accessing
28570           we continue with a backup plan
28571
28572 2005-06-05  Peter Bartok  <pbartok@novell.com>
28573
28574         * Win32DnD.cs:
28575           - Removed debug output
28576           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
28577             struct
28578           - Plugged resource leak
28579         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
28580           MS size
28581
28582 2005-06-05  Peter Bartok  <pbartok@novell.com>
28583
28584         * XplatUIWin32.cs: Removed DnD code
28585         * Win32DnD.cs: Implemented drop source and drop target functionality
28586
28587 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28588
28589         * UpDownBase.cs: remove duplicate addition of event, enable some code
28590         that was commented out.
28591         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
28592         Validate input when a key is pressed. It works fine now for every
28593         combination of Hexadecimal. Only missing some drawing love when sharing
28594         space with other controls.
28595
28596 2005-06-04  Peter Bartok  <pbartok@novell.com>
28597
28598         * Control.cs:
28599           - We need to pass a window for DragDrop, so enable callback events
28600           - Added DnD callback events when being a DragSource
28601         * XplatUI.cs (StartDrag): Added window handle argument
28602         * XplatUIDriver.cs (StartDrag): Added window handle argument
28603         * QueryContinueDragEventArgs: Made fields internally accessible so
28604           drivers can set them
28605         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
28606           can set them
28607
28608 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
28609
28610         * DataGridTextBoxColumn.cs: column text editing
28611         * DataGridTableStyle.cs: Respect columns styles created by the user
28612         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
28613         * DataGridBoolColumn.cs: bool column editing
28614         * DataGrid.cs: fixes to scrolling, properties, etc
28615         * DataGridTextBox.cs: handle keyboard
28616         * DataGridColumnStyle.cs: fixes
28617
28618 2005-06-02  Jackson Harper  <jackson@ximian.com>
28619
28620         * ImageListStreamer.cs: Somewhat broken implementation of
28621         GetObjectData. The RLE needs some work to match MS properly.
28622
28623 2005-06-02  Jackson Harper  <jackson@ximian.com>
28624
28625         * X11Dnd.cs: Attempting to keep at least one file in MWF
28626         monostyled.
28627
28628 2005-06-02  Peter Bartok  <pbartok@novell.com>
28629
28630         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
28631           that way
28632
28633 2005-06-02  Peter Bartok  <pbartok@novell.com>
28634
28635         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
28636         * XplatUI.cs: Added DoDragDrop() method
28637         * XplatUIDriver.cs: Added DoDragDrop() method
28638
28639 2005-06-02  Jackson Harper  <jackson@ximian.com>
28640
28641         * Splitter.cs: Implement BorderStyle.
28642
28643 2005-06-02  Jackson Harper  <jackson@ximian.com>
28644
28645         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
28646         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
28647         X11 using XDND.
28648
28649 2005-06-02  Peter Bartok  <pbartok@novell.com>
28650
28651         * DataObject.cs:
28652           - Added Data setter
28653           - Fixed broken insertion code for SetData, now also
28654             overwrites any existing entry of the same format name
28655         * Hwnd.cs: Added list of pointers that automatically gets
28656           freed when the window is disposed
28657         * XplatUI.cs: Call driver initialization method when loading
28658           a driver
28659         * Control.cs:
28660           - OnDragLeave takes EventArgs, not DragEventArgs
28661           - Added setting of WS_EX_ACCEPTFILES style when dropping is
28662             supported
28663           - Forces style update when drop state changes
28664         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
28665           not perfect since we cannot (yet) call the IDataObject.GetData()
28666           method, we keep getting 0x80004005 error, dunno why)
28667
28668 2005-06-02  Peter Bartok  <pbartok@novell.com>
28669
28670         * DragEventArgs.cs: Make fields internal so we can cache the
28671           object and re-set the fields from XplatUI
28672
28673 2005-06-02  Jackson Harper  <jackson@ximian.com>
28674
28675         * Control.cs: Add some internal methods so the DnD subsystem can
28676         raise DnD events. Also call into the driver when AllowDrop is set.
28677         * XplatUI.cs:
28678         * XplatUIDriver.cs: New method for setting whether or not a window
28679         is allowed to accept drag and drop messages.
28680                 
28681 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
28682         
28683         * ScrollBar.cs: Make sure that values sent in Scroll events
28684         are always between Maximum and Minimum.
28685
28686 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
28687
28688         * Menu.cs: Call MenuChanged when menuitem visibility has been
28689         changed.
28690         * MenuItem.cs: Rebuild menu when item is (not) visible.
28691         * MainMenu.cs: MainMenu has special MenuChanged.
28692         * Theme.cs: Caption and FrameBorderSize are not fixed.
28693         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
28694         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
28695         * XplatUIX11.cs,
28696         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
28697         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
28698
28699 2005-05-30  Jackson Harper  <jackson@ximian.com>
28700
28701         * DataFormat.cs: We can't statically initialize this stuff because
28702         it calls into the xplatui and could create a loop. So we lazy init
28703         it.
28704
28705 2005-05-28  Jackson Harper  <jackson@ximian.com>
28706
28707         * Control.cs: Proper implementation of Product(Name/Version).
28708
28709 2005-05-27  Jackson Harper  <jackson@ximian.com>
28710
28711         * DataObject.cs: Dont crash if no data is found.
28712
28713 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
28714         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
28715                 as per status page, guessing it should be set to true
28716
28717 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
28718
28719         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
28720         * DataGridTableStyle.cs: set proper formatting text, def header text
28721         * ThemeWin32Classic.cs: new themable paramaters
28722         * DataGridBoolColumn.cs: paint check box, get data, fixes
28723         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
28724         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
28725         * DataGridColumnStyle.cs: fixes
28726         * Theme.cs: new themable paramaters
28727                 
28728 2005-05-26  Peter Bartok  <pbartok@novell.com>
28729
28730         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
28731
28732 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
28733         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
28734
28735 2005-05-24  Peter Bartok  <pbartok@novell.com>
28736
28737         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
28738           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
28739           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
28740           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
28741           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
28742           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
28743           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
28744           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
28745           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
28746           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
28747           missing attributes, etc
28748         * DataGridPreferredColumnWidthTypeConverter.cs: Added
28749
28750 2005-05-24  Peter Bartok  <pbartok@novell.com>
28751
28752         * Help.cs: Added, implemented trivial functions, throws up MessageBox
28753           when user tries to get help
28754         * DataObject.cs, DataFormats.cs, LinkArea.cs,
28755           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
28756           to suppress warnings
28757         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
28758           avoid unreachable code warning
28759
28760 2005-05-20  Peter Bartok  <pbartok@novell.com>
28761
28762         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
28763
28764 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
28765
28766         * DataGridTextBoxColumn.cs: Basic painting methods
28767         * DataGridTableStyle.cs: Set table style in the column
28768         * ThemeWin32Classic.cs: Use Theme for colors
28769         * DataGridDrawingLogic.cs: Implement more drawing
28770         * DataGrid.cs: drawing, theming, enhacements, fixes
28771         * DataGridColumnStyle.cs: fixes, drawing
28772         * Theme.cs: theming for Datagrid
28773
28774 2005-05-20  Peter Bartok  <pbartok@novell.com>
28775
28776         * Cursor.cs: Implemented GetObjectData() method
28777
28778 2005-05-20  Peter Bartok  <pbartok@novell.com>
28779
28780         * Cursors.cs: Added setting of cursor name
28781         * Cursor.cs:
28782           - Implemented constructors
28783           - Implemented Draw and DrawStretched
28784           - Implemented Current property
28785           - Implemented == and != operators
28786           - Implemented Dispose()
28787           - Implemented ToString
28788           - Added missing attributes
28789         * XplatUIX11.cs:
28790           - Added missing reset for OverrideCursor when DoEvents is called
28791           - Fixed creation of cursor, logic was wrong
28792         * XplatUIWin32.cs:
28793           - Added missing reset for OverrideCursor when DoEvents is called
28794           - Fixed creation of cursor, bit arrays were swapped
28795         * Clipboard.cs: Removed obsolete MonoTODO attribute
28796
28797 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
28798
28799         * ComboBox.cs: fixes OnSelectedItemChanged
28800         * ControlBindingsCollection.cs: fixes item range check
28801
28802 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
28803
28804         * UpDownBase.cs:
28805                 - Calc preferred height properly
28806                 - Implement missing properties
28807                 
28808         * NumericUpDown.cs: Implement missing events
28809
28810 2005-05-19  Jackson Harper  <jackson@ximian.com>
28811
28812         * TabControl.cs: New method that resizes the tab pages before
28813         redrawing them. This as needed as the control is double buffered
28814         and sizing will not be recalculated unless ResizeTabPages is
28815         called.
28816         * TabPage.cs: Set base.Text instead of Text in the constructor so
28817         that UpdateOwner does not get called. Use the new Redraw method of
28818         TabControl instead of Refresh so the sizing is recalculated.
28819         * ThemeWin32Classic.cs: Draw the text for button tabs.
28820
28821 2005-05-19  Jackson Harper  <jackson@ximian.com>
28822
28823         * Control.cs: Paint control background images. Fix typo where
28824         PaintControlBackground was not getting called correctly.
28825
28826 2005-05-19  Peter Bartok  <pbartok@novell.com>
28827
28828         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
28829           I can investigate, apparently I broke FileDialog
28830
28831 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
28832
28833         * AxHost.cs: Some simple properties.
28834         * Control.cs: window must be accessible after ctor.
28835         * Form.cs: Added TransparencyKey property.
28836         * TextBoxBase.cs: Implemented Clear. Text property can be null.
28837         * XplatUIWin32.cs: SetBorderStyle implemented.
28838
28839 2005-05-18  Peter Bartok  <pbartok@novell.com>
28840
28841         * DataObject.cs: Entries are not global but particular to the
28842           DataObject, now it behaves that way
28843         * XplatUIWin32.cs: Implemented Clipboard methods
28844         * Clipboard.cs: Implemented
28845         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
28846         * XplatUIOSX.cs: Updated to final clipboard prototypes
28847         * XplatUIX11.cs: Implemented Clipboard methods
28848         * XplatUIDriver.cs: Updated to final clipboard prototypes
28849         * XplatUIStructs.cs:
28850           - Added BITMAPINFOHEADER struct
28851           - Added ClipboardFormats enum
28852         * X11Structs.cs:
28853           - Added ClipboardStruct
28854           - Added Atom enum items for clipboard types
28855           - Fixed atom types for Selection event structures
28856         * DataFormats.cs:
28857           - Added internal properties and methods for drivers to enumerate
28858             all known formats
28859           - Switched initialization method to allow drivers to assign their
28860             own IDs even for the MS predefined clipboard IDs
28861         * XplatUI.cs: Updated to final clipboard interface
28862
28863 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
28864         * PropertyGridView.cs: Fixed compiler warnings.
28865
28866 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
28867         * PropertyGrid.cs: Added some event calls
28868         * PropertyGridView.cs: Change drawing code to use double buffering
28869         * PropertyGridTextBox.cs: Changed Text property name
28870         * GridItem.cs: Added Bounds property.
28871         * GridEntry.cs: Added Bounds property.
28872
28873 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
28874
28875         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
28876         since GetType() may not return the correct type if the object is
28877         a remoting proxy.
28878
28879 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
28880
28881         * TreeNodeCollection.cs: fixes get/set item ranges
28882         
28883 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
28884
28885         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
28886                 
28887 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
28888
28889         * ComboBox.cs: Fix item range comparation
28890         * ListView.cs: Fix item range comparation
28891
28892 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
28893
28894         * FontDialog.cs:
28895           - Clear example panel when OnPaint is called
28896           - Better solution for displaying the example panel text
28897           - Select default indexes in the ListBoxes
28898
28899 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
28900
28901         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
28902
28903 2005-05-11  Peter Bartok  <pbartok@novell.com>
28904
28905         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
28906         * SelectionRangeConverter.cs: Implemented
28907         * PropertyGrid.cs: Fixed attribute value
28908         * Control.cs:
28909           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
28910           - Added Sebastien Pouliot's CAS Stack Propagation fixes
28911         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
28912           that's common to all drivers. First methods to go there are
28913           Sebastien Pouliot's CAS Stack Propagation helper methods
28914         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
28915           Sebastien Pouliot for CAS Stack Propagation
28916
28917 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
28918
28919         * OSXStructs.cs:
28920           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
28921
28922 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
28923
28924         * DataGridTextBoxColumn.cs: fixed some members
28925         * GridColumnStylesCollection.cs: indexed column is case insensitive
28926         * DataGridTableStyle.cs: fixes
28927         * ThemeWin32Classic.cs: add new theme parameter
28928         * Theme.cs: add new theme parameter
28929         * DataGridDrawingLogic.cs: Datagrid's drawing logic
28930         * DataGrid.cs: fixes, new internal properties, etc.
28931         * DataGridColumnStyle.cs: allows to set grid value
28932         *
28933
28934 2005-05-10  Peter Bartok  <pbartok@novell.com>
28935
28936         * AccessibleObject.cs:
28937           - Removed MonoTODO attribute on help, method is correct
28938           - Fixed Bounds property
28939         * AxHost.cs: Moved MonoTODO
28940         * ButtonBase.cs: Now setting AccessibleObject properties
28941         * RadioButton.cs: Setting proper AccessibleObject role
28942         * CheckBox.cs: Setting proper AccessibleObject role
28943         * ControlBindingsCollection.cs: Added properties, methods and attributes
28944         * DataFormats.cs: Fixed awkward internal API, and changed to enable
28945           userdefined DataFormats.Format items as well
28946         * ListControl.cs: Removed data_member from the public eye
28947         * OpenFileDialog.cs:
28948           - Made class sealed
28949           - Added missing attributes
28950         * SaveFileDialog.cs: Added missing attributes
28951         * ImageListStreamer.cs: Fixed code that caused warnings
28952         * LinkLabel.cs: Removed unreachable code
28953         * TreeView.cs: Fixed code that caused warnings
28954         * PropertyGridView.cs: Fixed code that caused warnings
28955         * GridColumnStylesCollection.cs: Added missing attributes
28956         * GridTableStylesCollection: Added missing attribute
28957         * PropertyManager: Added .ctor
28958         * SecurityIDType: Added
28959         * DataObject.cs: Implemented class
28960         * LinkArea.cs: Added missing attribute
28961
28962 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
28963
28964         * RadioButton.cs: call base method to allow to fire OnClick event
28965         * UpDownBase.cs: OnMouseUp call base method
28966         * CheckedListBox.cs: call base method before returning
28967         * TrackBar.cs: call base method before returning
28968         
28969
28970 2005-05-10  Peter Bartok  <pbartok@novell.com>
28971
28972         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
28973           for messages
28974
28975 2005-05-10  Peter Bartok  <pbartok@novell.com>
28976
28977         * DataFormats.cs: Implemented
28978         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
28979           XplatUIX11.cs: Added Clipboard APIs
28980         * XplatUIWin32.cs: Implemented Clipboard APIs
28981         * FolderBrowserDialog.cs: Added missing event, attributes
28982
28983 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
28984
28985         * CheckBox.cs: call base method to allow to fire OnClick event
28986
28987 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
28988
28989         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
28990
28991 2005-05-06  Peter Bartok  <pbartok@novell.com>
28992
28993         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
28994         * Screen.cs: Implemented
28995         * HelpNavigator.cs: Added
28996         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
28997           property
28998         * HelpProvider.cs: Implemented all we can do until we have a CHM
28999           help library (which means that "What's This" does work now)
29000
29001 2005-05-06  Jackson Harper  <jackson@ximian.com>
29002
29003         * XplatUIX11.cs: Fix waking up the main loop.
29004                 
29005 2005-05-05  Peter Bartok  <pbartok@novell.com>
29006
29007         * XplatUI.cs: Updated revision
29008         * Form.cs: Removed enless loop
29009         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
29010         * Label.cs (OnPaint): Added call to base.OnPaint()
29011         * ToolTip.cs: Made ToolTipWindow reusable for other controls
29012         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
29013         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
29014         * AxHost.cs: Added
29015         * ButtonBase.cs: Moved base.OnPaint() call to end of method
29016         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
29017           to ToolTip.ToolTipWindow for drawing and size methods; this allows
29018           reuse of ToolTipWindow by other controls
29019         * SizeGrip.cs: Moved base.OnPaint() call to end of method
29020         * XplatUIX11.cs: Now clipping drawing area (experimental)
29021         * PictureBox.cs: Moved base.OnPaint() call to end of method
29022         * Theme.cs: Fixed ToolTip abstracts to match new format
29023         * ErrorProvider.cs: Implemented
29024
29025 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
29026
29027         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
29028         * LinkLabel.cs:
29029                 - Adds cursors
29030                 - Handles focus
29031                 - Implements LinkBehavior
29032                 - Fixes many issues
29033
29034 2005-05-03  Jackson Harper  <jackson@ximian.com>
29035
29036         * ListView.cs: Calculate the scrollbar positioning on resize and
29037         paint, so they get put in the correct place.
29038
29039 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
29040
29041         * ColorDialogs.cs: The small color panels are now handled by
29042           SmallColorControl. This fixes drawing of the focus rectangle
29043           and adds a 3D border.
29044
29045 2005-05-03  Peter Bartok  <pbartok@novell.com>
29046
29047         * Control.cs: Modified version of Jonathan Chamber's fix for
29048           double-buffering
29049
29050 2005-05-03  Jackson Harper  <jackson@ximian.com>
29051
29052         * ListView.cs: Remove redraw variable. Control now handles whether
29053         or not a redraw needs to be done, and will only raise the paint
29054         event if redrawing is needed.
29055
29056 2005-05-03  Jackson Harper  <jackson@ximian.com>
29057
29058         * Splitter.cs: No decorations for the splitter form. Cache the
29059         hatch brush.
29060
29061 2005-05-03  Jackson Harper  <jackson@ximian.com>
29062
29063         * TreeView.cs: Use dashed lines to connect nodes. Use the
29064         ControlPaint method for drawing the focus rect instead of doing
29065         that in treeview.
29066
29067 2005-05-02  Peter Bartok  <pbartok@novell.com>
29068
29069         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
29070
29071 2005-04-29  Jackson Harper  <jackson@ximian.com>
29072
29073         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
29074         entire image buffer. Just clear the clipping rectangle.
29075
29076 2005-04-29  Jackson Harper  <jackson@ximian.com>
29077
29078         * ThemeWin32Classic.cs: Don't draw list view items that are
29079         outside the clipping rectangle.
29080
29081 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
29082
29083         * ListBox.cs: added horizontal item scroll
29084
29085 2005-04-29  Jackson Harper  <jackson@ximian.com>
29086
29087         * ThemeWin32Classic.cs: Remove some old debug code that was
29088         causing flicker with the new double buffering code.
29089
29090 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
29091
29092         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
29093         behave like combobox and comboboxlist (still not sure if this is
29094         correct though).
29095
29096 2005-04-28  Jackson Harper  <jackson@ximian.com>
29097
29098         * ThemeWin32Classic.cs: Don't fill the middle of progress
29099         bars. This fills areas outside of the clip bounds that don't need
29100         to be filled.
29101
29102 2005-04-28  Jackson Harper  <jackson@ximian.com>
29103
29104         * Control.cs: Don't expose functionality to touch the image buffers.
29105         * ProgressBar.cs:
29106         * ListView.cs: We do not need to (and no longer can) manipulate
29107         the image buffers directly. All of this is handled by Control.
29108
29109 2005-04-28  Peter Bartok  <pbartok@novell.com>
29110
29111         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
29112           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
29113           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
29114
29115 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
29116
29117         * Combobox:
29118                 - Adjust control's height for non-simple comboboxes (bug fix)
29119                 - Remove dead code
29120         * MenuAPI.cs: remove unused var
29121         * ScrollBar.cs: remove unsed var
29122                  
29123         * ListBox.cs: unselect items when clearing
29124
29125 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
29126
29127         * ListControl.cs: honors OnPositionChanged and default Selected Item
29128         * ListBox.cs: unselect items when clearing
29129
29130 2005-04-27  Jackson Harper  <jackson@ximian.com>
29131
29132         * X11Keyboard.cs: Initialize a default keyboard and give a warning
29133         if a "correct" keyboard is not found. This will make us not crash,
29134         but might give some users bad keyboard layouts...seems to be the
29135         same thing rewind does.
29136
29137 2005-04-27  Jackson Harper  <jackson@ximian.com>
29138
29139         * BindingManagerBase.cs: Attach the current/position changed
29140         handlers to their respective events.
29141
29142 2005-04-27  Jackson Harper  <jackson@ximian.com>
29143
29144         * Control.cs: Make sure that the first WM_PAINT does a full draw,
29145         not just a blit.
29146         * ThemeWin32Classic.cs: Don't fill the background for picture
29147         boxes. This could overright user drawing.
29148         * ComboBox.cs: Just fill the clipping rect not the entire client
29149         rect when drawing the background. This prevents pieces of the
29150         image buffer from getting overwritten and is theoretically faster.
29151
29152 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
29153
29154         * ComboBox.cs: Databinding support fixes, fire missing events
29155         * ListControl.cs: implement missing methods and properties, fixes
29156         * ThemeWin32Classic.cs: Databiding support on Drawing
29157         * CheckedListBox.cs: Databinding support fixes, fire missing events
29158         * ListBox.cs: Databinding support fixes, fire missing events
29159         
29160 2005-04-25  Peter Bartok  <pbartok@novell.com>
29161
29162         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
29163
29164 2005-04-25  Jackson Harper  <jackson@ximian.com>
29165
29166         * TreeView.cs: Use the horizontal scrollbars height not width when
29167         determining how much of the client area is available.
29168
29169 2005-04-25  Jackson Harper  <jackson@ximian.com>
29170
29171         * Control.cs: Double buffering is handled differently now. As per
29172         the spec, the extra buffer is created in the WM_PAINT message and
29173         passed down to the control's drawing code.
29174         * GroupBox.cs:
29175         * Label.cs:
29176         * CheckBox.cs:
29177         * ProgressBar.cs:
29178         * RadioButton.cs:
29179         * ColorDialog.cs:
29180         * ComboBox.cs:
29181         * PropertyGridView.cs:
29182         * UpDownBase.cs:
29183         * MessageBox.cs:
29184         * MenuAPI.cs:
29185         * ListView.cs:
29186         * ButtonBase.cs:
29187         * SizeGrip.cs:
29188         * ScrollBar.cs:
29189         * ListBox.cs:
29190         * TrackBar.cs:
29191         * ToolBar.cs:
29192         * PictureBox.cs:
29193         * DateTimePicker.cs:
29194         * StatusBar.cs:
29195         * TreeView.cs: Update to new double buffering system.
29196         * MonthCalendar.cs: Uncomment block, as Capture is now
29197         working. Update to new double buffering
29198         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
29199         * PaintEventArgs.cs: New internal method allows us to set the
29200         graphics object. This is used for double buffering.
29201         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
29202         rectangle. The internal paint_area var has been removed from
29203         StatusBar. The clipping rect should be used instead.
29204         * Theme.cs: Give the PictureBox drawing method a clipping rect.
29205         * TabPage.cs: The RefreshTabs method was removed, so just call the
29206         tab controls Refresh method now.
29207         * TabControl.cs: Update to new double buffering. Make sure the
29208         handle is created before sizing the tab pages, otherwise we will
29209         get stuck in a loop.
29210
29211 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
29212
29213         * LinkLabel.cs: Fix typo, bug #74719; patch
29214           from Borja Sanchez Zamorano
29215
29216 2005-04-22  Jackson Harper  <jackson@ximian.com>
29217
29218         * TreeNode.cs: Implement Handle stuff.
29219         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
29220
29221 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
29222
29223         * DataGridTextBoxColumn.cs: call base constructors, fixes
29224         * GridColumnStylesCollection.cs: missing events, methods, and functionality
29225         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
29226         * DataGridTableStyle.cs: implements create default column styles
29227         * DataGridBoolColumn.cs: which types can handle
29228         * DataGrid.cs: missing methods, fixes, new functionality
29229         * DataGridColumnStyle.cs: fixes
29230
29231 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
29232         * FolderBrowserDialog.cs:
29233         - Use a thread to fill the TreeView
29234         - Adjusted some sizes
29235
29236 2005-04-19  Peter Bartok  <pbartok@novell.com>
29237
29238         * LinkLabel.cs: (Re-)create the pieces when setting the Text
29239           property. Fixes #74360.
29240
29241 2005-04-19  Jackson Harper  <jackson@ximian.com>
29242
29243         * XEventQueue.cs: Lock when getting the lockqueue size.
29244         * PictureBox.cs: Call base OnPaint
29245         
29246 2005-04-19  Peter Bartok  <pbartok@novell.com>
29247
29248         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
29249           messages were no longer being processed (this broke BeginInvoke)
29250
29251           
29252 2005-04-18  Jackson Harper  <jackson@ximian.com>
29253
29254         * TreeView.cs: buglet that caused node images to get drawn
29255         regardless of whether or not they were in the clipping rectangle.
29256
29257 2005-04-18  Jackson Harper  <jackson@ximian.com>
29258
29259         * CurrencyManager.cs: There are four rules for GetItemProperties:
29260         - If the type is an array use the element type of the array
29261         - If the type is a typed list, use the type
29262         - If the list contains an Item property that is not an object, use
29263         that property
29264         - use the first element of the list if there are any elements in
29265         the list.
29266         
29267 2005-04-17  Jackson Harper  <jackson@ximian.oom>
29268
29269         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
29270         click. This handles offsets for scrolling properly and reduces
29271         memory. Also fixed GetNode to not offset now that TopNode works
29272         properly.
29273         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
29274         
29275 2005-04-17  Jackson Harper  <jackson@ximian.com>
29276
29277         * CursorConverter.cs: Initial implementation.
29278
29279 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
29280
29281         * ListControl.cs: work towards complex data binding support on ListControl
29282         * CurrencyManager.cs: work towards complex data binding support on ListControl
29283         * ListBox.cs: work towards complex data binding support on ListControl
29284
29285
29286 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
29287
29288         * GridTableStylesCollection.cs: fixes name and constructor
29289         * DataGridTableStyle.cs: fixes
29290         * DataGridBoolColumn.cs: fixes names and constructors
29291         * DataGrid.cs: define methods and properties. Some init implementations
29292         * DataGridCell.cs: define methods and properties. Some init implementations
29293         * GridTablesFactory.cs: Define methods and properties
29294
29295 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
29296
29297         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
29298         graphics port changes.  We still want the coordinates in global screen
29299         coordinates.
29300
29301 2005-04-14  Jackson Harper  <jackson@ximian.com>
29302
29303         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
29304         check plus minus or checkbox clicks unless those features are enabled.
29305
29306 2005-04-14  Jackson Harper  <jackson@ximian.com>
29307
29308         * TreeView.cs: Add methods for setting the top and bottom visible
29309         nodes. TreeNode::EnsureVisible uses these methods.
29310         * TreeNode.cs: Implement EnsureVisible
29311
29312 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
29313
29314         * Form.cs: Pospone menu assignation if the window has not been created yet
29315         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
29316         size and position
29317
29318 2005-04-12  Jackson Harper  <jackson@ximian.com>
29319
29320         * TreeView.cs: Set the TopNode properly when scrolling
29321         occurs. This has the added benifit of reducing the amount of
29322         walking that needs to be done when drawing. Also removed an old
29323         misleading TODO.
29324         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
29325         
29326 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
29327
29328         * Timer.cs: fixes interval setting when the timer is already enabled
29329         
29330 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
29331
29332         * FolderBrowserDialog.cs: First approach
29333
29334 2005-04-09  Peter Bartok  <pbartok@novell.com>
29335
29336         * FolderBrowserDialog: Added
29337
29338 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
29339
29340         * LinkLabel.cs: move drawing code into the theme
29341         * ThemeWin32Classic.cs: drawing code and painting background bugfix
29342         * Theme.cs: define DrawLinkLabel method
29343
29344 2005-04-05  Jackson Harper  <jackson@ximian.com>
29345
29346         * BindingContext.cs: Use weak references so these bad actors don't
29347         stay alive longer then they need to.
29348
29349 2005-04-05  Jackson Harper  <jackson@ximian.com>
29350
29351         * ListControl.cs: Basic implementation of complex databinding.
29352         * ComboBox.cs:
29353         * ListBox.cs: Add calls to ListControl databinding methods.
29354
29355 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
29356
29357         * FileDialog.cs:
29358           - Don't change PopupButtonState to Normal when the
29359             PopupButton gets pressed several times.
29360           - Renamed ButtonPanel to PopupButtonPanel
29361
29362 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
29363
29364         * ColorDialog.cs: Use cached objects instead of creating them
29365         * LinkLabel.cs: Use cached objects instead of creating them
29366         * Splitter.cs: Use cached objects instead of creating them
29367         * FontDialog.cs: Use cached objects instead of creating them
29368         * PropertyGridView.cs: Use cached objects instead of creating them
29369         * MessageBox.cs: Use cached objects instead of creating them
29370         * FileDialog.cs: Use cached objects instead of creating them
29371         * ThemeWin32Classic.cs: Use cached objects instead of creating them
29372         * TreeView.cs: Use cached objects instead of creating them
29373         
29374 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
29375
29376         * Control.cs: use Equals to compare the font since no == op
29377         * ScrollBar.cs: use Equals to compare the font since no == op
29378
29379 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
29380
29381         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
29382
29383 2005-04-01  Jackson Harper  <jackson@ximian.com>
29384
29385         * Binding.cs: Implement IsBinding.
29386         * BindingManagerBase.cs:
29387         * PropertyManager.cs:
29388         * CurrencyManager.cs: Add IsSuspended property.
29389
29390 2005-04-01  Jackson Harper  <jackson@ximian.com>
29391
29392         * Binding.cs: Had some IsAssignableFrom calls backwards.
29393
29394 2005-04-01  Jackson Harper  <jackson@ximian.com>
29395
29396         * Binding.cs: Handle null data members when pulling data.
29397         * PropertyManager.cs: Handle the data member being a property that
29398         does not exist.
29399
29400 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
29401
29402         * DataGridTextBoxColumn.cs: fixes signature
29403         * DataGrid.cs: calls right constructor
29404
29405 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
29406
29407         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
29408         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
29409         * GridTableStylesCollection.cs: implements GridTableStylesCollection
29410         * DataGridTableStyle.cs: implements DataGridTableStyle
29411         * DataGridBoolColumn.cs: implements DataGridBoolColumn
29412         * DataGridTextBox.cs: implements DataGridTextBox
29413         * DataGridColumnStyle.cs: implements DataGridColumnStyle
29414
29415 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
29416
29417         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
29418
29419 2005-03-29  Peter Bartok  <pbartok@novell.com>
29420
29421         * Application.cs:
29422           - Properly implemented CompanyName property
29423           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
29424             returns a path that includes CompanyName, ProductName and
29425             Version (fixes bug #70330)
29426
29427 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
29428
29429         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
29430           fixes bug #72588.
29431
29432 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
29433
29434         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
29435         
29436           - Added ReadOnly CheckBox
29437           - Further refactoring: moved some code from Open-/SaveFileDialog
29438             to FileDialog
29439
29440 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
29441
29442         * OpenFileDialog.cs: Fixed CheckFileExists
29443         * FileDialog.cs:
29444           Moved FileView and DirComboBox outside FileDialog class.
29445           They can now be used outside FileDialog
29446
29447 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
29448
29449         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
29450         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
29451
29452 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
29453
29454         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
29455           - Added missing CreatePrompt property in SaveDialog
29456           - Overall SaveDialog handling should be better now
29457           - Added non standard ShowHiddenFiles property
29458           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
29459           - Added InitialDirectory and RestoreDirectory support
29460
29461 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
29462
29463         * FileDialog.cs: Made dirComboBox usable
29464
29465 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
29466
29467         * FileDialog.cs: Added Filter support (case sensitiv)
29468
29469 2005-03-24  Jackson Harper  <jackson@ximian.com>
29470
29471         * TabControl.cs: Need a couple more pixels for the lines.
29472
29473 2005-03-23  Jackson Harper  <jackson@ximian.com>
29474
29475         * TabControl.cs: Give the tab page focus when it is selected.
29476
29477 2005-03-23  Jackson Harper  <jackson@ximian.com>
29478
29479         * TabControl.cs: Account for the drawing of tabs borders when
29480         invalidating. If the slider was clicked dont do click detection on
29481         the tabs.
29482
29483 2005-03-23  Jackson Harper  <jackson@ximian.com>
29484
29485         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
29486
29487 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
29488
29489         * CategoryGridEntry.cs: Added
29490         * GridItem.cs: Added helper properties
29491         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
29492         * GridEntry.cs: Updated code for collection
29493         * PropertyGrid.cs: Cleaned up some formatting
29494         * PropertyGridView.cs: Added drop down functionality for enums.
29495         * GridItemCollection.cs: Added enumerator logic
29496         * PropertyGridEntry.cs: Added
29497
29498 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
29499
29500         * FileDialog.cs:
29501           - Removed unnecessary commented code
29502           - Fixed handling for entering the filename manually in the combobox
29503
29504 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
29505
29506         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
29507
29508 2005-03-18  Peter Bartok  <pbartok@novell.com>
29509
29510         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
29511           them being touching the border
29512
29513 2005-03-18  Peter Bartok  <pbartok@novell.com>
29514
29515         * TextControl.cs: Quick hack to center text better
29516
29517 2005-03-18  Peter Bartok  <pbartok@novell.com>
29518
29519         * ControlPaint.cs:
29520           - Don't throw NotImplemented exceptions, just print a notice once
29521             instead (requested by Miguel). This makes running existing SWF
29522             apps a bit easier
29523         * Control.cs:
29524           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
29525           - Added context menu trigger on right click
29526         * Panel.cs: Trigger invalidate on resize
29527         * StatusBar.cs:
29528           - Removed old double-buffer drawing
29529           - Added ResizeRedraw style to force proper update of statusbar
29530         * ListView.cs:
29531           - Removed debug output
29532         * ThemeWin32Classic.cs:
29533           - Fixed drawing of status bar, now draws Text property if there
29534             are no defined panels
29535
29536 2005-03-18  Jackson Harper  <jackson@ximian.com>
29537
29538         * ImageList.cs: When the image stream is set pull all the images
29539         from it.
29540         * ImageListStreamer.cs: Implement reading image list streams.
29541
29542 2005-03-18  Peter Bartok  <pbartok@novell.com>
29543
29544         * ThemeWin32Classic.cs (DrawPictureBox):
29545           - Fixed calculations for centered drawing
29546           - Fixed drawing for normal mode, not scaling the image on normal
29547
29548 2005-03-18  Peter Bartok  <pbartok@novell.com>
29549
29550         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
29551           textbox
29552         * FileDialog.cs:
29553           - Made Open/Save button the accept button for FileDialog
29554           - Tied the cancel button to the IButtonControl cancel button
29555           - Save/Open now properly builds the pathname
29556           - Now handles user-entered text
29557           - Preventing crash on right-click if no item is selected
29558           - Fixed Text property, now uses contents of textbox
29559           - Fixed SelectedText property, now just returns the text part that
29560             is selected in the text box
29561
29562 2005-03-18  Jackson Harper  <jackson@ximian.com>
29563
29564         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
29565         rect, make sure to de-adjust the interior rect after drawing the
29566         tab text.
29567
29568 2005-03-18  Peter Bartok  <pbartok@novell.com>
29569
29570         * MenuAPI.cs: Remove menu *before* executing selected action to
29571           prevent the menu from 'hanging around'
29572           
29573 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
29574
29575         * XplatUIOSX.cs: Implemented WorkingArea property
29576
29577 2005-03-17  Peter Bartok  <pbartok@novell.com>
29578
29579         * XplatUIX11.cs: Fixed menu coord calculations
29580         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
29581           for calculating offsets
29582
29583 2005-03-17  Peter Bartok  <pbartok@novell.com>
29584
29585         * Hwnd.cs: Do not consider menu presence for default client
29586           rectangle location/size
29587         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
29588           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
29589           translation functions
29590         * FileDialog.cs: Fixed (what I presume is a) typo
29591
29592 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
29593
29594         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
29595           X access (avoids X-Async errors)
29596
29597 2005-03-16  Jackson Harper  <jackson@ximian.com>
29598
29599         * TabControl.cs: Raise the SelectedIndexChanged event.
29600
29601 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
29602
29603         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
29604           - Removed vertical ToolBar and replaced it with a custom panel
29605             (desktop and home button already work)
29606           - Added Help button (some controls get resized or relocated then)
29607           - Draw correct text depending on Open or Save.
29608           - Fixed some typos...
29609
29610 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
29611
29612         * ScrollBar.cs:
29613           - Only change Maximum and Minimum when need it (bug fix)
29614
29615 2005-03-15  Peter Bartok  <pbartok@novell.com>
29616
29617         * Form.cs: Use Handle for icon, to trigger creation if
29618           the window does not yet exist
29619         * Control.cs:
29620           - CanSelect: Slight performance improvement
29621           - Focus(): Preventing possible recursion
29622           - Invalidate(): Removed ControlStyle based clear flag setting
29623           - WM_PAINT: fixed logic for calling OnPaintBackground
29624           - WM_ERASEBKGND: Fixed logic, added call to new driver method
29625             EraseWindowBackground if the control doesn't paint background
29626         * XplatUIWin32.cs:
29627           - Moved EraseWindowBackground() method to internal methods
29628           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
29629             is sent via SendMessage on BeginPaint call on Win32
29630         * XplatUIX11.cs:
29631           - Added EraseWindowBackground() method
29632           - No longer sends WM_ERASEBKGND on .Expose, but on call to
29633             PaintEventStart, which more closely matches Win32 behaviour
29634           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
29635           - Fixed SetFocus() to properly deal with client and whole windows
29636         * Hwnd.cs: Added ErasePending property
29637         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
29638         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
29639
29640 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
29641
29642         * XplatUIOSX.cs:
29643           - Fix hard loop when timers exist.
29644           - Fix bugs with middle and right click for 3 button mice.
29645
29646 2005-03-11  Peter Bartok  <pbartok@novell.com>
29647
29648         * XplatUIX11.cs:
29649           - get_WorkingArea: Need to call X directly, GetWindowPos only
29650             returns cached data now
29651           - Added sanity check to GetWindowPos hwnd usage
29652
29653 2005-03-11  Jackson Harper  <jackson@ximian.com>
29654
29655         * BindingManagerBase.cs: This method isn't used anymore as
29656         PullData now updates the data in the control.
29657
29658 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
29659
29660         * Form.cs: fixes menu drawing on X11
29661         * MenuAPI.cs:  fixes menu drawing on X11
29662
29663 2005-03-11  Peter Bartok  <pbartok@novell.com>
29664
29665         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
29666           from Jonathan Gilbert; should fix bug #73606
29667         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
29668           in Screen coordinates. Thanks, Jordi.
29669         * Form.cs: Added missing attribute
29670
29671 2005-03-11  Peter Bartok  <pbartok@novell.com>
29672
29673         * Form.cs:
29674           - Rudimentary Mdi support
29675           - Removed outdated FormParent code
29676           - Implemented lots of missing properties and methods, still missing
29677             transparency support
29678           - Added missing attributes
29679           - Implemented support for MaximumBounds
29680           - Added firing of various events
29681         * XplatUI.cs: Added SetIcon() method
29682         * XplatUIDriver.cs: Added SetIcon() abstract
29683         * XplatUIOSX.cs: Stubbed out SetIcon() method
29684         * XplatUIX11.cs:
29685           - Implemented SetIcon() support
29686           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
29687           - Switched to unix line endings
29688         * XplatUIWin32.cs:
29689           - Made POINT internal so for can access it as part of MINMAX
29690           - Implemented SetIcon() support
29691           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
29692             native Mdi support again, might have to go managed)
29693         * Control.cs: Now fires the StyleChanged event
29694         * MdiClient.cs: Added; still mostly empty
29695
29696 2005-03-10  Peter Bartok  <pbartok@novell.com>
29697
29698         * SaveFileDialog.cs: Added emtpy file
29699
29700 2005-03-08  Peter Bartok  <pbartok@novell.com>
29701
29702         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
29703           in turn triggers OnCreateContro) when creating a handle for the
29704           first time.
29705         * TextControl.cs: Fixed endless loop in certain cases when
29706           replacing the current selection
29707
29708 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
29709
29710         * ScrollBar.cs:
29711           - Honors NewValue changes in Scroll events allowing apps to change it
29712           - Adds First and Last Scroll events
29713           - Fixes Thumb events
29714
29715 2005-03-07  Peter Bartok  <pbartok@novell.com>
29716
29717         * Hwnd.cs: Added DefaultClientRectangle property
29718         * XplatUI.cs: Now using the X11 driver Where() method, which provides
29719           more detailed debug information
29720         * XplatUIX11.cs:
29721           - Fixed size-change feedback loop, where we would pull an old size
29722             off the queue and mistakenly change our window's size to an
29723             earlier value
29724           - Now compressing ConfigureNotify events, to reduce looping and
29725             redraw issues
29726         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
29727           is called
29728
29729 2005-03-07  Jackson Harper  <jackson@ximian.com>
29730
29731         * Binding.cs: Push data pushes from data -> property. Check if the
29732         property is readonly when attempting to set it.
29733
29734 2005-03-07  Jackson Harper  <jackson@ximian.com>
29735
29736         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
29737         instead of IsSubclassOf. Pulling data now sets the value on the
29738         control.
29739         * PropertyManager.cs:
29740         * CurrencyManager.cs: Just need to pull data when updating now,
29741         because PullData will set the value on the control.
29742
29743 2005-03-04  Jackson Harper  <jackson@ximian.com>
29744
29745         * Binding.cs: Implement data type parsing and converting on pulled
29746         data. TODO: Are there more ways the data can be converted?
29747
29748 2005-03-04  Jackson Harper  <jackson@ximian.com>
29749
29750         * Binding.cs: Support <Property>IsNull checks. Also bind to the
29751         controls Validating method so we can repull the data when the
29752         control loses focus.
29753
29754 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
29755
29756         * ColumnHeader.cs:
29757           - Fixes null string format
29758           
29759         * ListView.cs:
29760           - Adds enum type checks
29761           - Fixes redrawing and recalc need after changing some properties
29762           - Fixes on focus_item set after the event
29763           - Fixes adding columns after the control has been created
29764           
29765         * ThemeWin32Classic.cs:
29766           - Fixes CheckBox focus rectangle
29767           - Fixes ColumnHeader drawing
29768
29769
29770 2005-03-03  Jackson Harper  <jackson@ximian.com>
29771
29772         * Binding.cs: Bind to <Property>Changed events so we can detect
29773         when properties are changed and update the data.
29774
29775 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
29776
29777         * ImageList.cs:
29778           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
29779           - Fixes ImageList constructor with ImageList container
29780           - Fixes image scaling (wrong parameters at DrawImage)
29781
29782 2005-02-02  Jackson Harper  <jackson@ximian.com>
29783
29784         * Binding.cs: Make property searches case-insensitive. Eliminate
29785         some duplicated code.
29786
29787 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
29788
29789         * ComboBox.cs:
29790                 - Handle focus event
29791                 - Fix scrollbar events
29792                 - Discard highlighted item if remove it
29793                 - Fixes SelectedItem with strings
29794
29795 2005-03-01  Peter Bartok  <pbartok@novell.com>
29796
29797         * Control.cs:
29798           - Fixed Visible property, now follows (once again) parent chain
29799             to return false if any control in the chain is visible=false
29800           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
29801           - Fixed several places where is_visible instead of Visible was used
29802           - Implemented FIXME related to focus selection when setting focused
29803             control to be invisible
29804
29805         * XplatUIWin32.cs: Now using proper method to find out if window is
29806           visible. Thanks to Jordi for pointing it out
29807
29808 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
29809
29810         * ComboBox.cs: show/hide scrollbar instead of creating it
29811
29812 2005-02-27  Jackson Harper  <jackson@ximian.com>
29813
29814         * CurrencyManager.cs: Add PositionChanged stuff.
29815
29816 2005-02-27  Peter Bartok  <pbartok@novell.com>
29817
29818         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
29819         * XplatUIOSX.cs: Added GetMenuOrigin() stub
29820         * XplatUIWin32.cs: Implemented GetMenuOrigin()
29821         * XplatUIX11.cs:
29822           - Implemented GetMenuDC()
29823           - Implemented GetMenuOrigin()
29824           - Implemented ReleaseMenuDC()
29825           - Implemented generation of WM_NCPAINT message
29826           - Implemented generation and handling of WM_NCCALCSIZE message
29827         * Form.cs: Added debug helper message for Jordi's menu work
29828         * Hwnd.cs:
29829           - Modified ClientRect property; added setter, fixed getter to handle
29830             setting of ClientRect
29831           - Added MenuOrigin property
29832
29833 2005-02-26  Peter Bartok  <pbartok@novell.com>
29834
29835         * XplatUIX11.cs:
29836           - Destroys the caret if a window that's being destroyed contains it
29837           - Ignores expose events coming from the X11 queue for windows that
29838             already are destroyed
29839           - Now uses the proper variable for handling DestroyNotify, before we
29840             marked the wrong window as destroyed
29841           - Improved/added some debug output
29842
29843 2005-02-26  Peter Bartok  <pbartok@novell.com>
29844
29845         * X11Keyboard.cs: Fixes to work on 64bit systems
29846
29847 2005-02-26  Peter Bartok  <pbartok@novell.com>
29848
29849         * Control.cs:
29850           - Now calling OnHandleDestroyed from DestroyHandle()
29851             instead of Dispose()
29852           - Removed bogus call to controls.Remove() from DestroyHandle()
29853
29854 2005-02-26  Peter Bartok  <pbartok@novell.com>
29855
29856         * Control.cs: Properly destroy child windows when our handle is
29857           destroyed
29858
29859 2005-02-25  Peter Bartok  <pbartok@novell.com>
29860
29861         * XplatUI.cs:
29862           - Added 'DriverDebug' define to allow tracing XplatUI API calls
29863           - Alphabetized Static Methods and Subclasses
29864
29865         * XplatUIX11.cs:
29866           - Added XException class to allow custom handling of X11 exceptions
29867           - Created custom X11 error handler, tied into XException class
29868           - Added support for MONO_XEXCEPTIONS env var to allow the user
29869             to either throw an exception on X errors or continue running
29870             after displaying the error
29871           - Added handling of DestroyNotify message
29872           - Added handler for CreateNotify message (still disabled)
29873           - Improved (tried to at least) Where method to provide file and lineno
29874         * X11Structs.cs:
29875           - Added XErrorHandler delegate
29876           - Added XRequest enumeration (to suppor translation of errors)
29877
29878 2005-02-25  Jackson Harper  <jackson@ximian.com>
29879
29880         * PropertyManager.cs: Implement editing features
29881         * CurrencyManager.cs:
29882         * Binding.cs: First attempt at UpdateIsBinding
29883         * BindingManagerBase.cs: Call UpdateIsBinding before
29884         pushing/pulling data.
29885
29886 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
29887
29888         * MenuAPI.cs: Respect disabled items
29889         * ThemeWin32Classic.cs
29890                 - Caches ImageAttributes creation for DrawImageDisabled
29891                 - Fixes vertical menu line drawing
29892                 - Draws disabled arrows in disable menu items
29893
29894 2005-02-24  Peter Bartok  <pbartok@novell.com>
29895
29896         * Hwnd.cs:
29897           - Added UserData property to allow associating arbitrary objects
29898             with the handle
29899           - Fixed leak; now removing Hwnd references from static windows array
29900         * XplatUIWin32.cs:
29901           - Fixed Graphics leak in PaintEventEnd
29902           - Removed usage of HandleData, switched over to Hwnd class
29903         * HandleData.cs: Removed, obsoleted by Hwnd.cs
29904
29905 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
29906
29907         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
29908         * ScrollBar.cs: Fixes bug
29909         * TrackBar.cs: removes death code, clipping, mimize refreshes,
29910          keyboard navigation enhancements
29911
29912 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
29913
29914         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
29915         * GroupBox.cs: Add control styles
29916         * Label.cs: Add control styles
29917         * UpDownBase.cs: Add control styles
29918         * ListBox.cs: Add control styles
29919         * XplatUIWin32.cs: Fixes wrong parameter order
29920
29921
29922 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
29923
29924         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
29925
29926 2005-02-23  Jackson Harper  <jackson@ximian.com>
29927
29928         * PropertyManager.cs: Implement property binding. This doesn't
29929         seem to work yet though as (I think) there are some bugs in
29930         System.ComponentModel.PropertyDescriptor.
29931         * BindingContext.cs: Use new PropertyManager constructor.
29932
29933 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
29934
29935         * ProgressBar.cs: use clip region in ProgressBar
29936         * ThemeWin32Classic.cs: use clip region in ProgressBar
29937
29938 2004-02-22  Jackson Harper  <jackson@ximian.com>
29939
29940         * BindingsCollection.cs: Remove some debug code.
29941
29942 2005-02-22  Jackson Harper  <jackson@ximian.com>
29943
29944         * BindingContext.cs:
29945         * ControlBindingsCollection.cs:
29946         * CurrencyManager.cs:
29947         * Binding.cs:
29948         * BindingManagerBase.cs: Initial implementation
29949         * BindingsCollection.cs: Add an internal contains method that the
29950         BindingManagerBase uses to ensure bindings aren't added twice to
29951         the collection.
29952         * PropertyManager.cs: Stubbed out.
29953         * Control.cs:
29954         * ContainerControl.cs: Hook up databinding
29955         
29956 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
29957
29958         * XplatUIOSX.cs:
29959           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
29960           Fixed Invalidate/Update chain.
29961           Fixed tons of other minor bugs (this is almost a complete rewrite).
29962
29963 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
29964
29965         * ComboBox.cs: do subcontrol creation when the control is created
29966
29967 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
29968
29969         * Label.cs: fixes image drawing (image and imagelist)
29970         * ThemeWin32Classic.cs: cache brushes
29971         
29972 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
29973
29974         * Form.cs: Move menu drawing code to Theme class
29975         * ComboBox.cs: Move ComboBox drawing code to Theme class
29976         * MenuItem.cs: Move menu drawing code to Theme class
29977         * MenuAPI.cs: Move menu drawing code to Theme class
29978         * ThemeWin32Classic.cs: New methods
29979         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
29980         * ListBox.cs: Move Listbox drawing code to Theme class
29981         * Theme.cs: New methods
29982
29983 2005-02-20  Peter Bartok  <pbartok@novell.com>
29984
29985         * Control.cs:
29986           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
29987             only process mnemonics on those)
29988           - Fixed event sequence for key handling; first calling
29989             ProcessKeyEventArgs now
29990         * TextBoxBase.cs:
29991           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
29992             for processing non-character keys
29993           - Fixed WM_CHAR to generate proper event sequence before processing
29994         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
29995           generation
29996
29997 2005-02-19  Peter Bartok  <pbartok@novell.com>
29998
29999         * UserControl.cs: Added TextChanged event; added attributes
30000         * SizeGrip.cs: Implemented resizing and optional display of grip
30001         * Form.cs: Fixed attribute
30002         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
30003           Changed meaning of ScrollWindow bool argument; instead of the
30004           clear attribute (which will be true usually anyway), it gives the
30005           option of moving child controls as well.
30006         * XplatUIX11.cs:
30007           - Changed to match new ScrollWindow argument
30008           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
30009             now handles the implicit parent window a WM puts around us
30010         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
30011           to work)
30012         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
30013         * TreeView.cs: Adjusted to new ScrollWindow arguments
30014
30015 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
30016
30017         * Form.cs: Menu integration with non-client area
30018         * MenuItem.cs: Menu integration with non-client area
30019         * MenuAPI.cs: Menu integration with non-client area
30020
30021 2005-02-18  Peter Bartok  <pbartok@novell.com>
30022
30023         * MethodInvoker.cs: Added
30024         * MdiLayout.cs: Added
30025         * SendKeys.cs: Started implementation
30026         * ErrorIconAlignment.cs: Added
30027
30028 2005-02-18  Peter Bartok  <pbartok@novell.com>
30029
30030         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
30031         * Form.cs: Added handling for Menu-related Non-client messages
30032
30033 2005-02-17  Peter Bartok  <pbartok@novell.com>
30034
30035         * UpDownBase.cs: Fixed typo, compilation errors
30036         * DomainUpDown.cs: Fixed attribute value
30037
30038 2005-02-16  Miguel de Icaza  <miguel@novell.com>
30039
30040         * UpDownBase.cs: Attach entry events.
30041         Propagate events.
30042         Add ForeColor property, Focused, InterceptArrowKeys (interception
30043         does not work yet).
30044
30045 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
30046
30047         * Form.cs:
30048                 - Redraw non client are on Setmenu
30049                 - Calc proper menu starting point
30050
30051 2005-02-17  Peter Bartok  <pbartok@novell.com>
30052
30053         * Application.cs: Fixed message_filter check
30054
30055 2005-02-17  Peter Bartok  <pbartok@novell.com>
30056
30057         * Application.cs: Now calls registered message filters
30058         * DockStyle.cs: Fixed attribute
30059         * Form.cs: Fixed attribute
30060         * Menu.cs: Fixed attribute
30061         * ToolTip.cs: Fixed attribute
30062         * TreeNode.cs: Added missing attributes and arranged in regions
30063         * PropertyGrid.cs: Fixed signatures
30064         * TreeNodeCollection.cs: Added attributes
30065         * Splitter.cs: Added missing attributes; arranged into regions
30066         * TabPage.cs: Added missing attributes; arranged into regions
30067         * TextBoxBase.cs: Added missing attributes
30068         * TextBox.cs: Added missing attributes
30069         * ArrangeDirection.cs: Added missing attributes
30070         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
30071         * ToolBarButton.cs: Fixed attributes
30072         * AnchorStyles.cs: Fixed attribute
30073         * TrackBar.cs: Fixed attributes
30074         * TabControl.cs: Added missing attributes and arranged into regions
30075         * ToolBar.cs: Fixed attribute
30076         * StatusBar.cs: Fixed signature, organized into regions and added
30077           attributes
30078         * StatusBarPanel.cs: Fixed attributes
30079         * ContentsResizedEventArgs.cs: Implemented
30080         * ContentsResizedEventHandler.cs: Implemented
30081         * DateBoldEventArgs.cs: Implemented
30082         * DateBoldEventHandler.cs: Implemented
30083         * UpDownEventArgs.cs: Implemented
30084         * UpDownEventHandler.cs: Implemented
30085         
30086 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
30087
30088         * Form.cs: first Menu NC refactoring
30089         * MenuAPI.cs: first Menu NC refactoring
30090         
30091 2005-02-16  Peter Bartok  <pbartok@novell.com>
30092
30093         * ImeMode.cs: Added missing attributes
30094         * Menu.cs: Fixed attribute
30095         * GroupBox.cs: Fixed attribute
30096         * Label.cs: Fixed attribute
30097         * ColorDialog.cs (RunDialog): Removed TODO attribute
30098         * ComboBox.cs: Fixed attributes
30099         * ListControl.cs: Added missing attributes
30100         * PropertyGrid.cs: Fixed attributes
30101         * Control.cs: Fixed attributes
30102         * ListViewItem.cs: Added TypeConverter attribute
30103         * NotifyIcon.cs: Fixed attributes
30104         * ListView.cs: Fixed attributes
30105         * ButtonBase.cs: Fixed attribute
30106         * ImageList.cs: Added missing attributes
30107         * ContainerControl.cs: Fixed signature
30108         * CheckedListBox.cs: Fixed attribute; added missing attributes
30109         * Panel.cs: Fixed attributes
30110         * PropertyTabChangedEventArgs.cs: Added missing attribute
30111         * PropertyValueChangedEventArgs.cs: Added missing attribute
30112         * Binding.cs: Fixed attribute
30113         * ListViewItemConverter: Implemented ListViewSubItemConverter class
30114         * ListBox.cs: Fixed attribute; added missing attributes;
30115         * ScrollableControl.cs: Added missing attributes
30116         * PictureBox.cs: Added missing attributes; implemented missing property
30117         * DateTimePicker.cs: Added missing attributes
30118         * Theme.cs (ToolWindowCaptionHeight): Fixed type
30119         * MonthCalendar.cs: Fixed attributes
30120         * StatusBarPanel.cs: Added missing attributes
30121         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
30122
30123 2005-02-16  Peter Bartok  <pbartok@novell.com>
30124
30125         * TextBoxBase.cs: The previous method to enforce height yet remember
30126           the requested high was less than ideal, this is an attempt to do
30127           it better.
30128         * Control.cs: Added comment about possible problem
30129         * Copyright: Updated format
30130         * GridItemType.cs: Fixed swapped values
30131
30132 2005-02-15  Jackson Harper  <jackson@ximian.com>
30133
30134         * BaseCollection.cs: Use property so we never access an
30135         uninitialized list. Also initialize the list in the property.
30136
30137 2005-02-15  Peter Bartok  <pbartok@novell.com>
30138
30139         * GroupBox.cs (ProcessMnemonic): Implemented
30140         * Label.cs (ProcessMnemonic): Implemented
30141         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
30142           hotkeys
30143
30144 2005-02-15  Peter Bartok  <pbartok@novell.com>
30145
30146         * RadioButton.cs (ProcessMnemonic): Implemented
30147         * CheckBox.cs (ProcessMnemonic): Implemented
30148         * Control.cs:
30149           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
30150             handling
30151           - Added internal method to allow calling ProcessMnemonic from other
30152             controls
30153         * ContainerControl.cs:
30154           - Started support for handling validation chain handling
30155           - Implemented ProcessMnemonic support
30156           - Added Select() call to Active, to make sure the active control
30157             receives focus
30158         * Form.cs: Setting toplevel flag for Forms (this was lost in the
30159           FormParent rewrite)
30160         * ThemeWin32Classic.cs:
30161           - DrawCheckBox(): Fixed stringformat to show hotkeys
30162           - DrawRadioButton(): Fixed stringformat to show hotkeys
30163         * CommonDialog.cs: Removed WndProc override, not needed
30164
30165 2005-02-14  Peter Bartok  <pbartok@novell.com>
30166
30167         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
30168           missed those in the rewrite
30169
30170 2005-02-14  Miguel de Icaza  <miguel@novell.com>
30171
30172         * NumericUpDown.cs (Increment, ToString): Add.
30173         (DecimalPlaces): implement.
30174         
30175         Add attributes.
30176         
30177         * UpDownBase.cs: Add the designer attributes.
30178
30179 2005-02-13  Peter Bartok  <pbartok@novell.com>
30180
30181         * Panel.cs: Removed border_style, now in Control
30182         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
30183           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
30184
30185 2005-02-13  Peter Bartok  <pbartok@novell.com>
30186
30187         * MouseButtons.cs: Added missing attributes
30188         * XplatUIStructs.cs: Added enumeration for title styles
30189         * LeftRightAlignment.cs: Added missing attributes
30190         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
30191           it compatible with Graphics.FromHwnd()
30192         * SelectedGridItemChangedEventArgs.cs: Fixed property type
30193         * Keys.cs: Added missing attributes
30194         * SelectionRange.cs: Added missing attributes
30195         * SelectionRangeConverter.cs: Added
30196         * XplatUI.cs:
30197           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
30198             ReleaseMenuDC methods
30199           - Renamed ReleaseWindow to UngrabWindow
30200           - Added proper startup notice to allow version identification
30201         * Form.cs:
30202           - Added missing attributes
30203           - Removed FormParent concept
30204         * Label.cs: Removed border_style field, now in Control
30205         * RadioButton.cs: Now properly selects RadioButton when focus is
30206           received
30207         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
30208         * Control.cs:
30209           - Added missing attributes
30210           - Added borderstyle handling
30211           - Removed FormParent concept support
30212           - Fixed calls to XplatUI to match changed APIs
30213           - Fixed bug that would case us to use disposed Graphics objects
30214           - Removed unneeded internal methods
30215           - PerformLayout(): Fixed to handle DockStyle.Fill properly
30216           - SelectNextControl(): Fixed to properly check common parents
30217         * TextBoxBase.cs: Removed border_style field (now in Control)
30218         * MessageBox.cs:
30219           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
30220             fixed calculations for form size
30221           - Added support for localized strings and icons
30222           - Improved form size calculations, added border
30223         * ListView.cs: Removed border_style field (now in Control)
30224         * X11Structs.cs: Moved several structs from X11 driver here
30225         * X11Keyboard.cs: Changed debug message
30226         * Application.cs: Removed FormParent concept support
30227         * CommonDialog.cs:
30228           - Resetting end_modal flag
30229           - Removed FormParent concept support
30230         * NativeWindow.cs: Removed FormParent concept support
30231         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
30232           Client area and Non-Client whole window to allow support for WM_NC
30233           messages
30234         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
30235           prevent using it until it supports Hwnd as per Geoff Norton's request
30236         * ToolBar.cs: Fixed drawing, was not doing proper drawing
30237         * PictureBox.cs: Removed border_style field, now in Control
30238         * XplatUIWin32.cs: Added new driver methods
30239
30240 2005-02-12  Peter Bartok  <pbartok@novell.com>
30241
30242         * OpacityConverter.cs: Implemented
30243         * Hwnd.cs: Internal class to support drivers that need to emulate
30244           client area/non-client area window behaviour
30245
30246 2005-02-11  Peter Bartok  <pbartok@novell.com>
30247
30248         * KeysConverter.cs: Implemented
30249
30250 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
30251
30252         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
30253         * LinkLabel: Added missing attributes
30254         * MainMenu.cs: fixes ToString
30255         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
30256         * ListBox.cs: fixes event position
30257         * TrackBar.cs: adds missing attributes and events
30258         
30259 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
30260
30261         * MenuItem.cs: Use SystemInformation and bug fixes
30262         * MenuAPI.cs: Use SystemInformation and bug fixes
30263
30264 2005-02-09  Jackson Harper  <jackson@ximian.com>
30265
30266         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
30267         their keystate otherwise things like VK_MENU get stuck "on".
30268
30269 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
30270
30271         * ListBox.cs: Fixes AddRange bug
30272         
30273 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
30274
30275         * ProgressBar.cs
30276                 - Add missing attributes
30277                 - Add missing method
30278                 
30279         * CheckedListBox.cs: Added missing attributes
30280                 - Add missing attributes
30281                 - Remove extra method
30282         
30283         * ComboBox.cs: Added missing attributes
30284         * VScrollBar.cs: Added missing attributes
30285         * ScrollBar.cs:  Added missing attributes
30286         * ListBox.cs: Fixes signature, add missing consts
30287         * LinkArea.cs:   Added missing attributes
30288         
30289
30290 2005-02-08  Peter Bartok  <pbartok@novell.com>
30291
30292         * Menu.cs: Added missing attributes
30293         * MainMenu.cs: Added missing attributes
30294         * GroupBox.cs: Added missing attributes
30295         * Label.cs: Added missing attributes
30296         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
30297         * ColorDialog.cs:
30298           - Added Instance and Options properties
30299           - Added missing attributes
30300         * Cursor.cs: Made Serializable
30301         * NotifyIcon: Added missing attributes
30302         * MenuItem.cs: Added missing attributes
30303         * TextBoxBase.cs: Implemented AppendText() and Select() methods
30304         * Panel.cs: Added Missing attributes
30305         * MonthCalendar.cs: Fixed CreateParams
30306
30307 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
30308         
30309         * LinkLabel.cs:
30310                 - Fixes signature
30311                 - Fixes issues with links
30312                 - Adds the class attributes
30313
30314 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
30315         
30316         * ComboBox.cs:
30317                 - Fixes button when no items available in dropdown
30318                 - Fixes repainting problems
30319                 - Adds the class attributes
30320                 
30321 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
30322
30323         * XplatUIOSX.cs: Detect the menu bar and title bar height from
30324         the current theme.  Cache these on startup.
30325
30326 2005-02-07  Jackson Harper  <jackson@ximian.com>
30327
30328         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
30329         the scrollbar buttons when they are depressed.
30330
30331 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
30332
30333         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
30334         Get the display size from the main displayid.  We currently dont
30335         support multiple display configurations.
30336
30337 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
30338
30339         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
30340
30341 2005-02-07  Miguel de Icaza  <miguel@novell.com>
30342
30343         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
30344
30345 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
30346
30347         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
30348
30349 2005-02-04  Jackson Harper  <jackson@ximian.com>
30350
30351         * ThemeWin32Classic.cs: Respect the clipping rect when
30352         drawing. Only fill the intersection of clips and rects so there
30353         isn't a lot of large fills.
30354         * ScrollBar.cs: Pass the correct clipping rect to the theme
30355         engine. Remove some debug code.
30356
30357 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
30358         
30359         * DateTimePicker.cs:
30360                 - Fixed crash on DateTime.Parse, use Constructor instead
30361
30362 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
30363         
30364         * MenuItem.cs:
30365         * MenuAPI.cs:
30366                 - Owner draw support (MeasureItem and DrawItem)
30367
30368 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
30369         
30370         *  Menu.cs:
30371                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
30372                 - Fixes MenuItems.Add range
30373         * MenuItem.cs:
30374                 - MergeMenu and Clone and CloneMenu functions
30375
30376 2005-02-03  Jackson Harper  <jackson@ximian.com>
30377
30378         * ScrollBar.cs: Make abstract
30379         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
30380         is abstract.
30381
30382 2005-02-03  Jackson Harper  <jackson@ximian.com>
30383
30384         * ScrollBar.cs: First part of my scrollbar fixups. This removes
30385         all the unneeded refreshes and uses invalidates with properly
30386         computed rects.
30387
30388 2005-02-03  Peter Bartok  <pbartok@novell.com>
30389
30390         * ComponentModel.cs: Added
30391         * IDataGridEditingService.cs: Added
30392         * Timer.cs: Added missing attributes
30393         * ToolTip.cs: Added missing attributes
30394
30395 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
30396
30397         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
30398
30399 2005-02-03  Peter Bartok  <pbartok@novell.com>
30400
30401         * ListBox.cs: Added missing attributes
30402
30403 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
30404         
30405         * ListBox.cs:
30406                 - Fixes font height after font change
30407                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
30408                 
30409 2005-02-02  Peter Bartok  <pbartok@novell.com>
30410
30411         * HandleData.cs: Introduced static methods to allow class
30412           to be more self-contained and track it's own HandleData objects
30413         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
30414           HandleData to use new static methods
30415
30416 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
30417
30418         * Combobox.cs:
30419                 - Fixes default size and PreferredHeight
30420                 - Missing events
30421                 - ObjectCollection.Insert implementation
30422                 
30423         * ListControl.cs
30424                 - Fixes signature
30425         * ListBox.cs:
30426                 - Several fixes
30427                 - ObjectCollection.Insert implementation
30428                 - No selection after clean
30429                 - Small fixes
30430
30431 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
30432
30433         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
30434
30435 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
30436
30437         * Combobox.cs:
30438                 - Caches ItemHeight calculation for OwnerDrawVariable
30439                 - Handles dropdown properly
30440                 - Fixes several minor bugs
30441
30442 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
30443
30444         * ListBox.cs:
30445                 - Fixes 71946 and 71950
30446                 - Fixes changing Multicolumn on the fly
30447                 - Fixes keyboard navigation on Multicolumn listboxes
30448
30449 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
30450         
30451         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
30452         crash reporter log.
30453
30454 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
30455
30456         * XplatUIOSX.cs: Allow applications to actually exit.
30457
30458 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
30459
30460         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
30461         their parent at creation time rather than lazily later.  Fixes a major
30462         regression we were experiencing.
30463
30464 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
30465
30466         * ThemeWin32Classic.cs: more date time picker painting fixes
30467         * DateTimePicker.cs: more monthcalendar drop down fixes
30468         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
30469
30470 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
30471
30472         * ScrollBar.cs:
30473                 - When moving the thumb going outside the control should stop the moving
30474                 - Adds the firing of missing events
30475                 - Fixes no button show if Size is not specified
30476                 - End / Home keys for keyboard navigation
30477
30478 2005-01-30  Peter Bartok  <pbartok@novell.com>
30479
30480         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
30481           sanity check to prevent theoretical loop
30482         * XplatUIWin32.cs (SetVisible): Removed debug output
30483         * XplatUIX11.cs (SystrayChange): Added sanity check
30484         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
30485         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
30486           behaviour, valid until the X11 client window rewrite is done
30487         * TextBox.cs (ctor): Setting proper default foreground and background
30488           colors
30489
30490 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
30491
30492         * Theme: Added DrawDateTimePicker to interface
30493         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
30494         * DateTimePicker.cs: Created (still needs keys and painting code)
30495         * DateTimePickerFormat.cs: added
30496         * MonthCalendar.cs: fixed CreateParams for popup window mode
30497           
30498 2005-01-29  Peter Bartok  <pbartok@novell.com>
30499
30500         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
30501           this should also the calculations for ligher/darker
30502         * Theme.cs: Fixed defaults for ScrollBar widths/heights
30503
30504 2005-01-29  Peter Bartok  <pbartok@novell.com>
30505
30506         * ArrangeDirection.cs: Added
30507         * ArrangeStartingPositon.cs: Added
30508         * SystemInformation.cs: Implemented
30509         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
30510           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
30511           used by SystemInformation class
30512         * X11Strucs.cs: Added XSizeHints structure
30513         * MenuAPI.cs:
30514           - Fixed CreateParams to make sure the menu window is always visible
30515           - TrackPopupMenu: Added check to make sure we don't draw the
30516             menu offscreen
30517
30518 2005-01-29  Peter Bartok  <pbartok@novell.com>
30519
30520         * HandleData.cs: Added method for altering invalid area
30521         * TextBoxBase.cs: Implemented TextLength
30522
30523 2005-01-28  Peter Bartok  <pbartok@novell.com>
30524
30525         * XplatUIX11.cs: Improvement over last patch, not sending
30526           the WM_PAINT directly anymore, instead we scroll any pending
30527           exposed areas and let the system pick out the WM_PAINT later
30528
30529 2005-01-28  Peter Bartok  <pbartok@novell.com>
30530
30531         * SWF.csproj: Deleted, no longer used. Instead,
30532           Managed.Windows.Forms/SWF.csproj should be used
30533         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
30534           directly, to avoid a potential race condition with the next
30535           scroll
30536
30537 2005-01-28  Peter Bartok  <pbartok@novell.com>
30538
30539         * XplatUI.cs: Made class internal
30540
30541 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
30542
30543         * CheckedListBox.cs:
30544                 - Draw focus
30545                 - Fixed Drawing
30546                 - Missing methods and events
30547
30548 2005-01-27  Peter Bartok  <pbartok@novell.com>
30549
30550         * Application.cs (Run): Don't use form if we don't have one
30551
30552 2005-01-27  Peter Bartok  <pbartok@novell.com>
30553
30554         * TextBoxBase.cs (get_Lines): Fixed index off by one error
30555
30556 2005-01-27  Peter Bartok  <pbartok@novell.com>
30557
30558         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
30559         * GridItem.cs: Added; Patch by Jonathan S. Chambers
30560         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
30561         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
30562         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
30563         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
30564         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
30565         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
30566         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
30567         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
30568         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
30569         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
30570
30571 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
30572
30573         * Combobox.cs:
30574                 - Draw focus on Simple Combobox
30575                 - Fixes drawing issues
30576                 - fixes 71834
30577
30578 2005-01-27  Peter Bartok  <pbartok@novell.com>
30579
30580         * Form.cs:
30581           - Place window in default location, instead of hardcoded 0/0
30582           - Send initial LocationChanged event
30583         * Control.cs:
30584           - UpdateBounds after creation to find out where the WM placed us
30585           - Make sure that if the ParentForm changes location the Form
30586             is notified
30587         * XplatUIX11.cs: XGetGeometry will not return the coords relative
30588             to the root, but to whatever the WM placed around us.
30589             Translate to root coordinates before returning toplevel
30590             coordinates
30591         * XplatUIWin32.cs: Removed debug output
30592         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
30593           flag to GetWindowPos, to allow translation of coordinates on X11
30594
30595 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
30596
30597         * ListBox.cs: connect LostFocus Event
30598
30599 2005-01-27  Peter Bartok  <pbartok@novell.com>
30600
30601         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
30602           XplatUIX11.cs: Extended the Systray API
30603         * Form.cs: Removed debug output
30604         * Application.cs: Fixed focus assignment, always need to call
30605           XplatUI.Activate() since Form.Activate() has rules that may
30606           prevent activation
30607         * NotifyIcon.cs: Should be complete now
30608         * ToolTip.cs: Worked around possible timer bug
30609
30610 2005-01-27  Jackson Harper  <jackson@ximian.com>
30611
30612         * TabControl.cs:
30613         - Only invalidate the effected tabs when the
30614         selected index changes. This reduces drawing and gets rid of some
30615         flicker.
30616         - Only refresh if the tabs need to be shifted, otherwise only
30617         invalidate the slider button.
30618         - On windows the tabs are not filled to right if the slider is
30619         visible.
30620         
30621 2005-01-27  Jackson Harper  <jackson@ximian.com>
30622
30623         * TabControl.cs: Only refresh on mouseup if we are showing the
30624         slider. Also only invalidate the button whose state has changed.
30625
30626 2005-01-26  Peter Bartok  <pbartok@novell.com>
30627
30628         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
30629         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
30630           and SystrayRemove() methods
30631         * XplatUIOSX.cs: Stubbed Systray methods
30632         * XplatUIX11.cs:
30633           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
30634             methods
30635           - Fixed broken XChangeProperty calls (marshalling messed up things)
30636         * X11Structs.cs: Added enums and structs required for Size hinting
30637         * NotifyIcon.cs: Added & implemented
30638
30639 2005-01-26  Jackson Harper  <jackson@ximian.com>
30640
30641         * TabControl.cs: Space vertically layed out tabs properly.
30642
30643 2005-01-26  Peter Bartok  <pbartok@novell.com>
30644
30645         * Form.cs (CreateClientParams): Always set the location to 0,0
30646           since we're a child window.
30647
30648         * Control.cs (SetVisibleCore): Always explicitly setting the location
30649           of a toplevel window, apparently X11 doesn't like to move windows
30650           while they're not mapped.
30651
30652 2005-01-26  Jackson Harper  <jackson@ximian.com>
30653
30654         * TabControl.cs: Implement FillToRight size mode with vertically
30655         rendered tabs.
30656
30657 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
30658
30659         * ControlPaint.cs, ThemeWin32Classic.cs
30660                 - Fixes DrawFocusRectangle
30661
30662 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
30663
30664         * MenuAPI.cs:
30665                 - MenuBar tracking only starts when item is first clicked
30666                 - Fixes menu hidding for multiple subitems
30667                 - Unselect item in MenuBar when item Executed
30668                 - Fixes bug 71495
30669
30670 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
30671
30672         * ListControl.cs:
30673                 - IsInputKey for ListBox
30674         * ListBox.cs:
30675                 - Focus item
30676                 - Shift and Control item selection
30677                 - Implement SelectionMode.MultiExtended
30678                 - Fixes RightToLeft
30679         * ComboBox.cs:
30680                 - IsInputKey implemented
30681                 - Do not generate OnTextChangedEdit on internal txt changes
30682                 
30683 2005-01-23  Peter Bartok  <pbartok@novell.com>
30684
30685         * AccessibleObject.cs: Partially implemented Select()
30686         * MonthCalendar.cs: Added missing attributes and events
30687         * Form.cs: Fixed CreateParams behaviour, now controls derived from
30688           form can properly override CreateParams.
30689         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
30690           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
30691           Control performs Invalidate & Update
30692         * NativeWindow (CreateHandle): Added special handling for Form
30693           and Form.FormParent classes to allow overriding of From.CreateParams
30694         * Control.cs:
30695           - ControlNativeWindow: Renamed 'control' variable to more intuitive
30696             name 'owner'
30697           - ControlNativeWindow: Added Owner property
30698           - Removed usage of Refresh() on property changes, changed into
30699             Invalidate(), we need to wait until the queue is processed for
30700             updates, direct calls might cause problems if not all vars for
30701             Paint are initialized
30702           - Added call to UpdateStyles() when creating the window, to set any
30703             styles that CreateWindow might have ignored.
30704           - Added support for Form CreateParent overrides to UpdateStyles()
30705         * MessageBox.cs: Removed no longer needed FormParent override stuff,
30706           CreateParams are now properly overridable
30707         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
30708           CreateParams are now properly overridable
30709
30710 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
30711
30712         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
30713         OnTextBoxChanged.
30714
30715         Capture LostFocus and OnTextBoxChanged.  The later introduces a
30716         recursive invocation that I have not figured out yet.
30717
30718         Reset the timer when not using (it was accumulating).
30719
30720
30721         (OnTextBoxChanged): Set UserEdit to true here to track whether the
30722         user has made changes that require validation.
30723
30724         Reset changing to avoid loops.
30725
30726 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
30727
30728         * NumericUpDown.cs: Display value at startup.
30729
30730         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
30731         ValidateEditText.
30732
30733         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
30734         filled in.  Added some basic parsing of text.
30735
30736         Still missing the OnXXX method overrides, and figuring out the
30737         events that must be emitted.
30738
30739         * UpDownBase.cs: Handle UserEdit on the Text property.
30740         
30741 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
30742
30743         * ComboBox.cs:
30744           - Fixes IntegralHeight
30745           - ToString method
30746
30747 2005-01-21  Jackson Harper  <jackson@ximian.com>
30748
30749         * TabControl.cs: Set the SelectedIndex property when SelectedTab
30750         is set so that the page visibility is updated and the tabs are
30751         sized correctly.
30752
30753 2005-01-21  Jackson Harper  <jackson@ximian.com>
30754
30755         * TabControl.cs: Use cliping rectangle for blitting. Give the
30756         theme the clipping rect so we can do clipping while
30757         drawing. Remove some debug code.
30758
30759 2005-01-21  Jackson Harper  <jackson@ximian.com>
30760
30761         * TabPage.cs: Add a new method so tab pages can force the tab
30762         control to recalculate the tab page sizes.
30763         * TabControl.cs: UpdateOwner needs to make the tab control recalc
30764         sizes.
30765
30766 2005-01-20  Jackson Harper  <jackson@ximian.com>
30767
30768         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
30769
30770 2005-01-20  Jackson Harper  <jackson@ximian.com>
30771
30772         * TreeView.cs: Set the bounds for nodes properly. They were
30773         getting screwed up when checkboxes were not enabled, but images
30774         were.
30775
30776 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
30777
30778         * ListBox.cs:
30779                 - Owner draw support
30780                 - Fixes
30781                 
30782 2005-01-20  Jackson Harper  <jackson@ximian.com>
30783
30784         * XplatUIStructs.cs: More misc keys
30785         * X11Keyboard.cs: Ignore some control keys.
30786
30787 2005-01-20  Jackson Harper  <jackson@ximian.com>
30788
30789         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
30790         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
30791
30792 2005-01-19  Peter Bartok  <pbartok@novell.com>
30793
30794         * Control.cs: Un-selecting the control when it is loosing focus
30795
30796 2005-01-19  Jackson Harper  <jackson@ximian.com>
30797
30798         * TreeView.cs: Hook up to the text controls leave event so we can
30799         end editing when the users clicks outside the text box.
30800         
30801 2005-01-19  Jackson Harper  <jackson@ximian.com>
30802
30803         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
30804         get set in the conversion array.
30805
30806 2005-01-19  Peter Bartok  <pbartok@novell.com>
30807
30808         * Application.cs (ModalRun): Added a call to CreateControl to ensure
30809           focus is properly set
30810         * Button.cs:
30811           - Added missing attributes
30812           - removed styles, those are already set in the base class
30813         * ButtonBase.cs:
30814           - Added missing attributes
30815           - Added clip window styles
30816         * CheckBox.cs: Added missing attributes
30817         * CommonDialog.cs:
30818           - FormParentWindow.CreateParams: Added required clip styles
30819         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
30820           also filters modifier keys
30821         * MessageBox.cs:
30822           - Added assignment of Accept and Cancel button to enable Enter
30823             and Esc keys in MessageBox dialogs
30824           - FormParentWindow.CreateParams: Added required clip styles
30825         * RadioButton.cs: Added missing attributes
30826         * TextControl.cs: No longer draws selection if control does not
30827           have focus
30828         * TextBoxBase.cs:
30829           - Now draws simple rectangle around test area to make it obvious
30830             there's a control. This is a hack until we properly support borders
30831           - A few simple fixes to support selections better, now erases selected
30832             text when typing, and resets selection when using movement keys
30833
30834 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
30835
30836         * UpDownBase.cs: Added some new properties.
30837
30838         * DomainUpDown.cs: Implement a lot to get my test working.
30839
30840 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
30841
30842         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
30843
30844 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
30845
30846         * OSXStructs (WindowAttributes): Fixed csc complaints
30847
30848 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
30849
30850         * XplayUIOSX.cs:
30851           OSXStructs.cs: Initial refactor to move enums and consts into
30852           OSXStructs and use them in the driver for greater readability.
30853
30854 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
30855
30856         * XplatUIOSX.cs: Initial support for Standard Cursors.
30857         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
30858
30859 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
30860
30861         * ComboBox.cs: ability to change style when the ctrl is already
30862         created, missing methods and events, bug fixes, signature fixes
30863
30864 2005-01-19  Peter Bartok  <pbartok@novell.com>
30865
30866         * Cursors.cs (ctor): Added ctor to fix signature
30867
30868 2005-01-18  Peter Bartok  <pbartok@novell.com>
30869
30870         * Button.cs: Implemented DoubleClick event
30871         * ButtonBase.cs:
30872           - Fixed keyboard handling to behave like MS, where the press of
30873             Spacebar is equivalent to a mousedown, and the key release is
30874             equivalent to mouseup. Now a spacebar push will give the same
30875             visual feedback like a mouse click.
30876           - Added missing attributes
30877           - Added ImeModeChanged event
30878           - Added support for generating DoubleClick event for derived classes
30879         * CheckBox.cs:
30880           - Implemented DoubleClick event
30881           - Added missing attributes
30882         * CommonDialog.cs: Added missing attribute
30883         * ContextMenu.cs: Added missing attributes
30884         * RadioButton.cs:
30885           - AutoChecked buttons do not allow to be unselected when clicked
30886             (otherwise we might end up with no selected buttons in a group)
30887           - Added missing attributes
30888           - Implemented DoubleClickEvent
30889         * ThreadExceptionDialog.cs: Enabled TextBox code
30890
30891 2005-01-18  Peter Bartok  <pbartok@novell.com>
30892
30893         * Form.cs: Removed debug output
30894         * Button.cs: Added support for DoubleClick method
30895
30896 2005-01-18  Peter Bartok  <pbartok@novell.com>
30897
30898         * Form.cs:
30899           - Added method to parent window that allows triggering size
30900             calculations when a menu is added/removed
30901           - set_Menu: Cleaned up mess from early days of Form and Control,
30902             now properly triggers a recalc when a menu is added/removed
30903           - Added case to select form itself as focused form if no child
30904             controls exist
30905           - Added PerformLayout call when showing dialog, to ensure properly
30906             placed controls
30907         * Control.cs:
30908           - Select(): Made internal so Form can access it
30909           - Focus(): Only call Xplat layer if required (avoids loop), and sets
30910             status
30911         * Application.cs (Run): Removed hack and calls PerformLayout instead
30912           to trigger calculation when Form becomes visible
30913
30914 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
30915
30916         * ComboBox.cs: fixes for ownerdraw
30917
30918 2005-01-18  Peter Bartok  <pbartok@novell.com>
30919
30920         * TextControl.cs:
30921           - Sentinel is no longer static, each Document gets it's own, this
30922             avoids locking or alternatively overwrite problems when more
30923             than one text control is used simultaneously.
30924           - Switched to use Hilight and HilightText brushes for text selection
30925
30926         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
30927
30928 2005-01-18  Peter Bartok  <pbartok@novell.com>
30929
30930         * Control.cs:
30931           - Hooked up the following events:
30932                 o ControlAdded
30933                 o ControlRemoved
30934                 o HandleDestroyed
30935                 o ImeModeChanged
30936                 o ParentChanged
30937                 o TabStopChanged
30938                 o Invalidated
30939                 o SystemColorsChanged
30940                 o ParentFontChanged
30941                 o Move
30942           - Removed debug output
30943           - Added a call to the current theme's ResetDefaults when a color change
30944             is detected
30945         * Form.cs: Now setting the proper ImeMode
30946         * Theme.cs: Defined a method to force recreation of cached resources
30947           and rereading of system defaults (ResetDefaults())
30948         * ThemeWin32Classic.cs: Added ResetDefaults() stub
30949
30950 2005-01-17  Peter Bartok  <pbartok@novell.com>
30951
30952         * Control.cs: Added missing attributes
30953
30954 2005-01-17  Jackson Harper  <jackson@ximian.com>
30955
30956         * TreeNode.cs: Implement editing. Add missing properties selected
30957         and visible.
30958         * TreeView.cs: Implement node editing. Also some fixes to use
30959         Invalidate (invalid area) instead of Refresh when selecting.
30960
30961 2005-01-17  Peter Bartok  <pbartok@novell.com>
30962
30963         * Control.cs:
30964           - Implemented InvokeGotFocus() method
30965           - Implemented InvokeLostFocus() method
30966           - Implemented InvokePaint() method
30967           - Implemented InvokePaintBackground() method
30968           - Implemented InvokeClick() method
30969           - Implemented FindForm() method
30970           - Implemented RectangleToClient() method
30971           - Implemented ClientToRectangle() method
30972           - Implemented ResetBackColor() method
30973           - Implemented ResetCursor() method
30974           - Implemented ResetFont() method
30975           - Implemented ResteForeColor() method
30976           - Implemented ResetImeMode() method
30977           - Implemented ResetLeftToRight() method
30978           - Implemented ResetText() method
30979           - Implemented Scale() methods
30980           - Implemented ScaleCore() method
30981           - Implemented Update() method
30982           - Removed unused variables
30983           - Stubbed AccessibilityNotifyClients and
30984             ControlAccessibleObject.NotifyClients() methods (dunno what to do
30985             with those yet)
30986           - Now setting proper default for RightToLeft property
30987           - Fixed bug in SetClientSizeCore that would cause windows to get
30988             really big
30989           - Now sending Click/DoubleClick events
30990           - Now selecting controls when left mouse button is clicked on
30991             selectable control
30992         * AccessibleEvents.cs: Added
30993         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
30994         * XplatUIOSX.cs: Stubbed UpdateWindow() method
30995         * XplatUIWin32.cs: Implemented UpdateWindow() method
30996         * XplatUIX11.cs: Implemented UpdateWindow() method
30997         * Form.cs: Removed stray semicolon causing CS0162 warning
30998         * ThemeWin32Classic.cs: Fixed unused variable warnings
30999         * ScrollableControl.cs: Now calls base method for ScaleCore
31000         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
31001           style to avoid interference with internal click handler (which is
31002           different than standard Control click handling)
31003         * RadioButton.cs:
31004           - Now unchecks all sibling radio buttons when control is
31005             selected (Fixes #68756)
31006           - Removed internal tabstop variable, using the one inherited from
31007             Control
31008
31009 2005-01-17  Jackson Harper  <jackson@ximian.com>
31010
31011         * NavigateEventArgs.cs: Fix base type.
31012         * LinkLabel.cs: Sig fix
31013         
31014 2005-01-17  Jackson Harper  <jackson@ximian.com>
31015
31016         * TreeView.cs: Only invalidate the effected nodes bounds when
31017         selecting nodes.
31018
31019 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
31020
31021         * XplatUIWin32.cs: fixes Win32 marshaling
31022         * XplatUIX11.cs: fixes method signature
31023
31024 2005-01-17  Peter Bartok  <pbartok@novell.com>
31025
31026         * XplatUIX11.cs: Clean up resources when we no longer need them
31027
31028 2005-01-17  Peter Bartok  <pbartok@novell.com>
31029
31030         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
31031           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
31032           and DestroyCursor() methods.
31033         * Cursor.cs: Partially implemented, now supports standard cursors;
31034           still contains some debug code
31035         * Cursors.cs: Implemented class
31036         * Control.cs:
31037           - WndProc(): Added handling of WM_SETCURSOR message, setting the
31038             appropriate cursor
31039           - Implemented Cursor property
31040           - Replaced break; with return; more straightforwar and possibly
31041             faster
31042           - Now properly setting the result for WM_HELP
31043         * X11Structs.cs: Added CursorFontShape enum
31044         * XplatUIStructs.cs:
31045           - Added StdCursor enum (to support DefineStdCursor() method)
31046           - Added HitTest enum (to support sending WM_SETCURSOR message)
31047         * XplatUIX11.cs:
31048           - Now sends the WM_SETCURSOR message
31049           - Implemented new cursor methods
31050         * XplatUIOSX.cs: Stubbed new cursor methods
31051         * XplatUIWin32.cs:
31052           - Implemented new cursor methods
31053           - Added GetSystemMetrics function and associated enumeration
31054
31055 2005-01-15  Peter Bartok  <pbartok@novell.com>
31056
31057         * Control.cs:
31058           - WndProc(): Now handles EnableNotifyMessage
31059           - SelectNextControl(): Fixed bug where if no child or sibling
31060             controls exist we looped endlessly
31061
31062 2005-01-14  Jackson Harper  <jackson@ximian.com>
31063
31064         * TreeView.cs: Recalculate the tab pages when a new one is added
31065         so that the proper bounding rects are created.
31066
31067 2005-01-14  Jackson Harper  <jackson@ximian.com>
31068
31069         * TreeView.cs: Draw a gray box instead of a grip in the lower
31070         right hand corner when there are both horizontal and vertical
31071         scroll bars.
31072
31073 2005-01-14  Jackson Harper  <jackson@ximian.com>
31074
31075         * Control.cs: When erasing backgrounds use FromHwnd instead of
31076         FromHdc when there is a NULL wparam. This occurs on the X driver.
31077         * XplatUIX11.cs: Set the wparam to NULL.
31078
31079 2005-01-13  Jackson Harper  <jackson@ximian.com>
31080
31081         * PictureBox.cs: Implement missing methods (except ToString, need
31082         to test that on windows) and events. When visibility is changed we
31083         need to redraw the image because the buffers are killed. When size
31084         is changed refresh if the sizemode needs it.
31085
31086 2005-01-13  Peter Bartok  <pbartok@novell.com>
31087
31088         * Control.cs (SelectNextControl): Was using wrong method to select
31089           a control
31090
31091 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
31092
31093         * ComboBox.cs: fixes dropstyle
31094
31095 2005-01-13  Peter Bartok  <pbartok@novell.com>
31096
31097         * Form.cs:
31098           - Implemented Select() override
31099           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
31100           - Now sets keyboard focus on startup
31101         * Control.cs (SelectNextControl): Now properly handles directed=true
31102         * TextBoxBase.cs:
31103           - WndProc: Now passes tab key on to base if AcceptTabChar=false
31104           - Added (really bad) focus rectangle (mostly for testing)
31105         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
31106           to enforce redraw on focus changes
31107         * ContainerControl.cs:
31108           - Fixed detection of Shift-Tab key presses
31109           - Fixed traversal with arrow keys
31110         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
31111           gonna keep this or if it's complete yet
31112         
31113 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
31114
31115         * ComboBox.cs: missing properties, fixes
31116
31117 2005-01-13  Peter Bartok  <pbartok@novell.com>
31118
31119         * Panel.cs (ctor): Setting Selectable window style to off
31120         * Splitter.cs (ctor): Setting Selectable window style to off
31121         * GroupBox.cs (ctor): Setting Selectable window style to off
31122         * Label.cs (ctor): Setting Selectable window style to off
31123
31124 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
31125
31126         * UpDownBase.cs (InitTimer): If the timer has been already
31127         created, enable it.
31128
31129         Use a TextBox instead of a Label.
31130
31131 2005-01-12  Jackson Harper  <jackson@ximian.com>
31132
31133         * TreeView.cs: Refresh the tree after sorting the nodes. Always
31134         draw the connecting node lines (when ShowLines is true).
31135         * TreeNode.cs: The nodes index can now be updated. This is used
31136         when a node collection is sorted.
31137         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
31138         insert or an existing unsorted node collection can be sorted.
31139         
31140 2005-01-12  Peter Bartok  <pbartok@novell.com>
31141
31142         * ContainerControl.cs: Implemented ProcessDialogKeys()
31143
31144 2005-01-12  Peter Bartok  <pbartok@novell.com>
31145
31146         * Control.cs:
31147           - Implemented SelectNextControl() method
31148           - Several focus related bug fixes
31149           - Fixed Docking calculations to match MS documentation and
31150             behaviour
31151
31152 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
31153
31154         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
31155         bug fixes
31156
31157 2005-01-12  Peter Bartok  <pbartok@novell.com>
31158
31159         * Control.cs:
31160           - Fixed broken Contains() method
31161           - Implemented GetNextControl() method. Finally. This is the pre-
31162             requisite for focus handling.
31163
31164 2005-01-12  Peter Bartok  <pbartok@novell.com>
31165
31166         * OSXStrucs.cs: Added
31167
31168 2005-01-12  Peter Bartok  <pbartok@novell.com>
31169
31170         * XplatUIWin32.cs:
31171           - Removed PeekMessageFlags
31172           - Implemented SetWindowStyle() method
31173         * XplatUIStructs.cs: Added PeekMessageFlags
31174         * X11Structs: Added missing border_width field to XWindowChanges struct
31175         * XplatUIX11.cs:
31176           - PeekMessage: Now throws exception if flags which are not yet
31177             supported are passed
31178           - Implemented SetWindowStyle() method
31179           - Fixed SetZOrder to handle AfterHwnd properly
31180         * XplatUI.cs: Added SetWindowStyle() method
31181         * XplatUIDriver.cs: Added SetWindowStyle() abstract
31182         * Control.cs:
31183           - Implemented UpdateStyles() method
31184           - Implemented UpdateZOrder() method
31185         * XplatUIOSX.cs: Added SetWindowStyle() stub
31186
31187 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
31188
31189         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
31190         button mouse).
31191
31192
31193 2005-01-11  Jackson Harper  <jackson@ximian.com>
31194
31195         * TreeView.cs: Still need to draw lines to siblings even if out of
31196         the current node is out of the clip.
31197
31198 2005-01-11  Jackson Harper  <jackson@ximian.com>
31199
31200         * TreeView.cs: When setting the hbar/vbar/grip position use
31201         SetBounds so that perform layout is only called once. Also suspend
31202         and resume layout so layout is only done once for all controls.
31203         - Removed some debug fluff
31204         * SizeGrip.cs: Call base implmentation in overriding methods.
31205         - When visibility is changed the drawing buffers are killed so we
31206         need to redraw.
31207
31208 2005-01-11  Jackson Harper  <jackson@ximian.com>
31209
31210         * TreeView.cs: Calculate the open node count while drawing. This
31211         saves us an entire tree traversal for every paint operation. Use
31212         a member var for the open node count so less vars are passed around.
31213
31214 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
31215
31216         * MonthCalendar.cs:
31217         - fixed selection to use mousemove, not mouse polling on timer
31218         * ThemeWin32Classic.cs
31219         - removed redundant unused variable "no_more_content"
31220         
31221 2005-01-11  Peter Bartok  <pbartok@novell.com>
31222
31223         * XplatUIX11.cs (DoEvents): Needs to return when no more events
31224           are pending, so it now calls PeekMessage instead of GetMessage;
31225           implemented a incomplete version of PeekMessage
31226         
31227 2005-01-11  Peter Bartok  <pbartok@novell.com>
31228
31229         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
31230           I18n issues
31231         * TextBoxBase.cs: Added sending of TextChanged event
31232
31233 2005-01-10  Jackson Harper  <jackson@ximian.com>
31234
31235         * TreeView.cs: Try not to draw outside the clipping rectangle on
31236         each node element.
31237
31238 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
31239
31240         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
31241
31242 2005-01-10  Jackson Harper  <jackson@ximian.com>
31243
31244         * TreeView.cs:
31245         - Implement fast scrolling. Now only the newly
31246         exposed nodes are drawn and the old image is moved using the
31247         XplatUI::ScrollWindow method.
31248         - Factor in height of nodes when calculating whether or not the
31249         node is in the clipping rect.
31250
31251 2005-01-10  Jackson Harper  <jackson@ximian.com>
31252
31253         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
31254
31255 2005-01-10  Peter Bartok  <pbartok@novell.com>
31256
31257         * Application.cs: Added temporary hack to resolve all our resize
31258           required issues on startup. This will get fixed properly at
31259           some point in the future
31260
31261 2005-01-10  Jackson Harper  <jackson@ximian.com>
31262
31263         * SizeGrip.cs: New internal class that is used as a sizing
31264         grip control...hence the name.
31265
31266 2005-01-10  Peter Bartok  <pbartok@novell.com>
31267
31268         * Control.cs: Implemented proper TabIndex handling, now assigning
31269           a tabindex when a control is added to a container
31270         * GroupBox.cs (ctor): Now sets the Container style bit, required
31271           for Control.GetNextControl()
31272
31273 2005-01-09  Jackson Harper  <jackson@ximian.com>
31274
31275         * TextBoxBase.cs: Clear window when scrolling (fixes build).
31276
31277 2005-01-09  Peter Bartok <pbartok@novell.com>
31278
31279         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
31280           XplatUIX11.cs: Added ability to control ScrollWindow expose and
31281           an overload for ScrollWindow to allow only scrolling a rectangle
31282
31283 2005-01-09  Peter Bartok <pbartok@novell.com>
31284
31285         * Form.cs:
31286           - Implemented SetDesktopBounds method
31287           - Implemented SetDesktopLocation method
31288
31289 2005-01-08  Jackson Harper  <jackson@ximian.com>
31290
31291         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
31292         the node count has changed, this removes to VScroll::Refresh calls
31293         when drawing.
31294
31295 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
31296
31297         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
31298
31299 2005-01-07  Jackson Harper  <jackson@ximian.com>
31300
31301         * TreeNode.cs: Just update the single node when it is
31302         checked. Don't refresh after toggling, the Expand/Collapse already
31303         handles this.
31304         * TreeView.cs: Respect clipping a little more when drawing. Try
31305         not to redraw things that don't need to be redrawn. Just hide the
31306         scrollbars when they are no longer needed instead of removing
31307         them, so they don't have to be created again and again.
31308         
31309 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
31310
31311         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
31312         coordinates to window space to place the caret properly, FIXED.
31313         Implement GetWindowState & SetWindowState
31314
31315 2005-01-06  Peter Bartok <pbartok@novell.com>
31316
31317         * Form.cs:
31318           - Implemented ClientSize property
31319           - Implemented DesktopBounds property
31320           - Implemented DesktopLocation property
31321           - Implemented IsRestrictedWindow property
31322           - Implemented Size property
31323           - Implemented TopLevel property
31324           - Implemented FormWindowState property
31325         * Control.cs:
31326           - Implemented GetTopLevel() method
31327           - Implemented SetTopLevel() method
31328         * X11Structs.cs (Atom):
31329           - Added AnyPropertyType definition
31330           - Added MapState definiton and updated XWindowAttribute struct
31331         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
31332         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
31333         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
31334         * XplatUIWin32.cs:
31335           - Implemented GetWindowState() and SetWindowState() methods
31336           - Fixed Win32GetWindowLong return type
31337         * XplatUIX11.cs:
31338           - Introduced central function for sending NET_WM messages
31339           - Implemented GetWindowState() and SetWindowState() methods
31340         * TextBoxBase.cs (set_Lines):
31341           - Now uses Foreground color for text added via Text property (Duh!)
31342           - Added code to remember programmatically requested size (fixes
31343             behaviour when Multiline is set after Size)
31344           - Added AutoSize logic
31345
31346 2005-01-06  Jackson Harper  <jackson@ximian.com>
31347
31348         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
31349
31350 2005-01-06  Jackson Harper  <jackson@ximian.com>
31351
31352         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
31353         set to less then 0.
31354
31355 2005-01-06  Jackson Harper  <jackson@ximian.com>
31356
31357         * ScrollableControl.cs: Lazy init the scrollbars.
31358         
31359 2005-01-06  Jackson Harper  <jackson@ximian.com>
31360
31361         * Theme.cs: Speed up getting pens and solid brushes, by using
31362         their ARGB as a hash instead of tostring and not calling Contains.
31363
31364 2005-01-06  Peter Bartok <pbartok@novell.com>
31365
31366         * Form.cs:
31367           - Implemented OnActivated and OnDeactivate event trigger
31368           - Implemented Activate() method
31369           - Fixed ShowDialog() to activate the form that was active before
31370             the dialog was shown
31371         * XplatUIX11.cs:
31372           - Added global active_window var that tracks the currently active
31373             X11 window
31374           - Now always grabs Property changes from the root window to always
31375             catch changes on the active window property
31376           - Added code to PropertyNotify handler to send Active/Inactive
31377             messages when state changes. This puts X11 and Win32 en par on
31378             WM_ACTIVATE notifications (except for double notifications when
31379             the user clicks away from our modal window to another one of our
31380             windows)
31381
31382 2005-01-05  Jackson Harper  <jackson@ximian.com>
31383
31384         * ImageList.cs: Implment ctor
31385
31386 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
31387
31388         * XplatUIOSX.cs: Implement Activate/SetTopmost
31389
31390 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
31391
31392         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
31393
31394 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
31395
31396         * XplatUIOSX.cs: Implement GetActive/SetFocus.
31397
31398 2005-01-05  Peter Bartok <pbartok@novell.com>
31399
31400         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
31401           XplatUIOSX.cs: Added GetActive method to return the currently
31402           active window for the application (or null, if none is active)
31403         * Form.cs:
31404           - Implemented ActiveForm
31405           - Commented out owner assignment for modal dialogs (causes problems
31406             on Win32, since the owner will be disabled)
31407           - Reworked some Active/Focus handling (still incomplete)
31408         * CommonDialog.cs: Commented out owner assignment for modal dialogs
31409           (causes problems on Win32, since the owner will be disabled)
31410         * IWin32Window: Added ComVisible attribute
31411
31412 2005-01-05  Peter Bartok <pbartok@novell.com>
31413
31414         * ToolTip.cs (WndProc): Enable setting focus now that we have the
31415           required XplatUI functions.
31416
31417 2005-01-05  Peter Bartok <pbartok@novell.com>
31418
31419         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
31420           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
31421           to implement focus and activation handling; still incomplete and
31422           with debug output
31423
31424 2005-01-04  Peter Bartok <pbartok@novell.com>
31425
31426         * TextBoxBase.cs: Changed access level for Document property to
31427           match switch to internal for TextControl
31428
31429 2005-01-04  Peter Bartok <pbartok@novell.com>
31430
31431         * AccessibleObject: Added ComVisible attribute
31432
31433 2005-01-04  Jackson Harper  <jackson@ximian.com>
31434
31435         * X11Keyboard.cs: Remove unneeded var.
31436
31437 2005-01-04  Jackson Harper  <jackson@ximian.com>
31438
31439         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
31440         but PAINT.
31441         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
31442         ClientMessage. This makes apps exit cleanly (more often).
31443         
31444 2005-01-04  Jackson Harper  <jackson@ximian.com>
31445
31446         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
31447         handling focus, return correct colors and fonts,
31448         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
31449         handle selection, horizontal scrolling, and mouse interaction.
31450
31451 2005-01-04  Peter Bartok <pbartok@novell.com>
31452
31453         * ICommandExecutor.cs: Added
31454         * IDataGridColumnStyleEditingNotificationService.cs: Added
31455         * IFeatureSupport.cs: Added
31456         * IFileReaderService.cs: Added
31457         * IDataObject.cs: Added ComVisible attribute
31458         * AmbientProperties.cs: Added
31459         * BaseCollection.cs: Added missing attributes
31460         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
31461         * BaseCollection.cs: Added missing attributes
31462         * Binding.cs: Added TypeConverter attribute
31463         * BindingContext.cs: Added DefaultEvent attribute
31464         * BindingsCollection.cs: Added DefaultEvent attribute
31465         * Button.cs: Added DefaultValue attribute
31466         * DragEventArgs.cs: Added ComVisible attribute
31467         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
31468         * KeyEventArgs.cs: Added ComVisible attribute
31469         * KeyPressEventArgs.cs: Added ComVisible attribute
31470         * MouseEventArgs.cs: Added ComVisible attribute
31471         * NavigateEventArgs.cs: Added
31472         * NavigateEventHandler.cs: Added
31473         * FeatureSupport.cs: Added
31474         * OSFeature.cs: Added
31475         * Theme.cs: Added abstract Version property to support OSFeature
31476         * ThemeWin32Classic.cs: Added Version property to
31477           support OSFeature.Themes
31478         * ProgressBar.cs: Removed OnPaintBackground override, not required since
31479           the proper styles to avoid background drawing are set, also doesn't
31480           match MS signature
31481         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
31482         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
31483         * ScrollEventArgs.cs: Added ComVisible attribute
31484         * SplitterEventArgs.cs: Added ComVisible attribute
31485         * AccessibleSelection.cs: Added Flags attribute
31486         * Appearance.cs: Added ComVisible attribute
31487         * Border3DSide.cs: Added ComVisible attribute
31488         * Border3DStyle.cs: Added ComVisible attribute
31489         * BorderStyle.cs: Added ComVisible attribute
31490         * DragAction.cs: Added ComVisible attribute
31491         * ErrorBlinkStyle.cs: Added
31492         * ScrollEventType.cs: Added ComVisible attribute
31493         * AnchorStyles.cs: Added Editor attribute
31494         * DockStyle.cs: Added Editor attribute
31495         * HorizontalAlignment.cs: Added ComVisible attribute
31496         * HelpEventArgs.cs: Added ComVisible attribute
31497         * PaintEventArgs.cs: Added IDisposable
31498
31499 2005-01-04  Peter Bartok <pbartok@novell.com>
31500
31501         * TextControl.cs: Switched Line, LineTag and Document classes to
31502           internal
31503
31504 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
31505
31506         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
31507         Simple mode, fixes, IntegralHeight, etc.
31508
31509 2005-01-04  Peter Bartok <pbartok@novell.com>
31510
31511         * TextBoxBase.cs: Using proper font variable now
31512
31513 2005-01-04  Peter Bartok <pbartok@novell.com>
31514
31515         * Form.cs (ShowDialog): Set parent to owner, if provided
31516         * GroupBox.cs: Removed unused vars
31517         * TextControl.cs:
31518           - Added GetHashCode() for Document and LineTag classes
31519           - Removed unused variables
31520           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
31521             to allow translation between continuous char position and line/pos
31522         * CheckBox.cs: Removed vars that are provided by base class
31523         * RadioButton.cs: Removed vars that are provided by base class, added
31524           new keyword where required
31525         * LinkLabel.cs: Added new keyword where required
31526         * Control.cs (WndProc): Removed unused variable
31527         * TextBoxBase.cs:
31528           - Finished SelectionLength property
31529           - Implemented SelectionStart property
31530           - Implemented Text property
31531           - Removed unused vars
31532         * MessageBox.cs: Added new keyword where required
31533         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
31534           WndProc signature
31535         * MenuAPI.cs: Added new keyword where required
31536         * ButtonBase.cs: Removed vars that are provided by base class, added
31537           new keyword where required
31538         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
31539           argument to double, to allow compiling with csc 2.0 (Atsushi ran
31540           into this)
31541         * Application.cs (Run): Now triggers the ThreadExit event
31542         * CommonDialog.cs: Added new keyword where required; now properly sets
31543           parent (owner) for dialog
31544         * XplatUIX11.cs: Commented out unused vars
31545         * StatusBar.cs: Fixed signature for Text property
31546         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
31547
31548 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
31549
31550         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
31551         TrackBar.cs, MonthCalendar.cs: remove unused vars
31552
31553 2005-01-03  Jackson Harper  <jackson@ximian.com>
31554
31555         * ThemeWin32Classic.cs:
31556         * X11Keyboard.cs: Remove unused vars.
31557
31558 2005-01-03  Peter Bartok  <pbartok@novell.com>
31559
31560         * TextBox.cs:
31561           - set_Text: Tied into TextControl
31562           - set_TextAlignment: Tied into TextControl
31563         * TextControl.cs:
31564           - Added alignment properties and implemented alignment handling
31565             and drawing (still has a bug, not generating proper expose events)
31566           - Added new Line() constructor to allow passing the line alignment
31567           - Fixed selection setting, properly handling end<start now
31568           - Added aligment considerations to RecalculateDocument()
31569         * TextBoxBase.cs:
31570           - Now properly enforces control height for single line controls
31571           - Added support for CharacterCasing
31572           - Added IsInputKey override
31573           - Fixed Keys.Enter logic
31574           - Added SetBoundsCore override
31575           - Fixed mouse selection handling
31576
31577 2005-01-03  Jackson Harper  <jackson@ximian.com>
31578
31579         * TreeView.cs:
31580           - Collapse and uncheck all nodes when CheckBoxes is disabled.
31581           - Checkboxes are always aligned to the bottom of the node,
31582           regardless of item height.
31583           - Use the node bounds to draw the text so we can center it when
31584           the item height is greater then the font height.
31585           - Node::Bounds are only the text part of the node.
31586         * TreeNode.cs: New method to combine collapsing and unchecking all
31587           nodes recursively.
31588
31589 2005-01-02  Jackson Harper  <jackson@ximian.com>
31590
31591         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
31592         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
31593         tree when a check is changed. TODO: Only refresh the checked node.
31594
31595 2004-12-30  Jackson Harper  <jackson@ximian.com>
31596
31597         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
31598         * TreeNode.cs: When collapsing make sure to never collapse the
31599         root node.
31600
31601 2004-12-29  Jackson Harper  <jackson@ximian.com>
31602
31603         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
31604         
31605 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
31606
31607         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
31608
31609 2004-12-28  Peter Bartok  <pbartok@novell.com>
31610
31611         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
31612           not yet assigned
31613
31614 2004-12-28  Peter Bartok  <pbartok@novell.com>
31615
31616         * Control.cs (WndProc): Added WM_HELP handler, now generates
31617           HelpRequested event
31618         * Form.cs: Added HelpButton property and required support code
31619         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
31620
31621 2004-12-28  Peter Bartok  <pbartok@novell.com>
31622
31623         * CommonDialog.cs:
31624           - Made DialogForm.owner variable internal
31625           - Added check to ensure owner form is set before setting
31626             owner properties in CreateParams
31627
31628 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
31629
31630         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
31631           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
31632           GetCursorPos.  Fix major visibility issues.  Rework the windowing
31633           system to support borderless/titleless windows (implements menus).
31634           Fix GetWindowPos.  Implement initial background color support for
31635           views.
31636
31637 2004-12-28  Peter Bartok  <pbartok@novell.com>
31638
31639         * Form.cs (get_CreateParams): Make sure we have an owner before using
31640           the owner variable. Implement proper default if no owner exists
31641
31642 2004-12-28  Peter Bartok  <pbartok@novell.com>
31643
31644         * In preparation for making Managed.Windows.Forms the default build target
31645           for System.Windows.Forms, the following stubbed files were added.
31646           Dialogs are currently being implemented by contributors and are only
31647           short-term place holders.
31648         * ColorDialog.cs: Initial check-in (minmal stub)
31649         * DataGrid.cs: Initial check-in (minimal stub)
31650         * DataGridLineStyle.cs: Initial check-in (minimal stub)
31651         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
31652         * DataGridTableStyle.cs: Initial check-in (minimal stub)
31653         * FontDialog.cs: Initial check-in (minimal stub)
31654         * FileDialog.cs: Initial check-in (minimal stub)
31655         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
31656         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
31657         * OpenFileDialog: Initial check-in (minimal stub)
31658         * IComponentEditorPageSite.cs: Initial check-in
31659         * Splitter.cs: Initial check-in (for Jackson)
31660         * SplitterEventArgs.cs: Initial check-in (for Jackson)
31661         * SplitterEventHandler.cs: Initial check-in (for Jackson)
31662         * TextBox.cs: Initial check-in; still needs some wiring to
31663           TextControl backend
31664         * Form.cs: Implemented ControlBox property
31665         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
31666         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
31667         * TextControl.cs: Added selection functionality; added todo header
31668         * TextBoxBase.cs:
31669           - Implemented Lines property
31670           - Implemented TextHeight property
31671           - Implemented SelectedText property
31672           - Implemented SelectionLength property
31673           - Implemented SelectAll method
31674           - Implemented ToString method
31675           - Removed and cleaned up some debug code
31676           - Implemented (still buggy) mouse text selection
31677
31678 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
31679
31680         * ComboBox.cs: Complete DropDownList implementation, fixes.
31681
31682 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
31683
31684         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
31685         * ComboBoxStyle.cs: ComboBoxStyle enum
31686         * ComboBox.cs: Initial work on ComboBox control
31687
31688 2004-12-21  Peter Bartok  <pbartok@novell.com>
31689
31690         * Control.cs (ctor, CreateParams): Moved setting of is_visible
31691           forward so that anything that creates a window gets the default,
31692           also no longer uses Visible property in CreateParams to avoid
31693           walking up the parent chain and possibly get the wrong visible
31694           status. Fixed IsVisible to no longer walk up to the parent.
31695
31696 2004-12-21  Peter Bartok  <pbartok@novell.com>
31697
31698         * Form.cs (ShowDialog): Unset modality for the proper window
31699  
31700 2004-12-20  Peter Bartok  <pbartok@novell.com>
31701
31702         * CommonDialog.cs: Initial check-in
31703
31704 2004-12-20  Peter Bartok  <pbartok@novell.com>
31705
31706         * Control.cs (Visible): Now uses the parent window instead of the
31707           client area window for the property
31708
31709         * Form.cs
31710           - ShowDialog(): Now uses the proper window for modality
31711           - The default visibility state for the form parent is now false. This
31712             will prevent the user from seeing all the changes to the form and
31713             its controls before the application hits Application.Run()
31714           - Removed some stale commented out code
31715
31716         * NativeWindow.cs:
31717           - Added FindWindow() method to have a method to check for existence
31718             of a window handle
31719           - Added ability to override default exception handling (for example
31720             when debugging with VS.Net; to do this the ExternalExceptionHandler
31721             define must be set
31722           - Removed some useless debug output
31723
31724         * XplatUIX11.cs:
31725           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
31726             not working as expected
31727           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
31728             property to allow switching back to the modal window if focus is
31729             given to another one of our windows (Application Modal)
31730           - Now only sets override_redirect if we create a window
31731             without WS_CAPTION
31732           - Moved EventMask selection before mapping of newly created window
31733             so we can catch the map event as well
31734           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
31735           - Added various Atom related DllImports
31736           - Implemented Exit() method
31737           - .ctor() : No longer shows window if WS_VISIBLE is not defined
31738             in the CreateParams
31739
31740         * MessageBox.cs: Now properly deals with the FormParent window by
31741           providing an override the FormParent CreateParams property to
31742           set as POPUP instead of OVERLAPPED window.
31743
31744 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
31745
31746         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
31747         Minor code cleanup.
31748
31749 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
31750         
31751         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
31752
31753 2004-12-18  Peter Bartok  <pbartok@novell.com>
31754
31755         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
31756           implementing SetModal() method
31757
31758 2004-12-18  Peter Bartok  <pbartok@novell.com>
31759
31760         * X11Structs.cs (XGCValues): Fixed type of function element
31761         * XplatUI.cs: Added ScrollWindow() method
31762         * XplatUIDriver.cs: Added ScrollWindow() abstract
31763         * XplatUIWin32.cs: Implemented ScrollWindow() method
31764         * XplatUIX11.cs: Implemented ScrollWindow() method
31765         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
31766
31767 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
31768
31769         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
31770         Some more keyboard support (INCOMPLETE)
31771
31772 2004-12-17  Peter Bartok  <pbartok@novell.com>
31773
31774         * TextControl.cs:
31775         - Added color attribute to line tags.
31776         - Added color argument to all functions dealing with tags
31777         - Added color argument support to various functions
31778         - Fixed miss-calculation of baseline/shift in certain circumstances
31779
31780         * TextBoxBase.cs: Added new color option to test code
31781
31782 2004-12-17  Jackson Harper  <jackson@ximian.com>
31783
31784         * TreeNode.cs:
31785         * MonthCalendar.cs: Signature fixes
31786
31787 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
31788
31789         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
31790         keyboard event moved it.  Create a new graphics context for each paint resolves this
31791
31792 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
31793
31794         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
31795         Make caret exist and go blink blink.  Initial keyboard support.
31796         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
31797         works.
31798
31799 2004-12-17  Jackson Harper  <jackson@ximian.com>
31800
31801         * XplatUIStructs.cs: Updated set of virtual keycodes.
31802         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
31803
31804 2004-12-17  Jackson Harper  <jackson@ximian.com>
31805
31806         * XplatUIX11.cs: Prune old keyboard code.
31807
31808 2004-12-17  Jackson Harper  <jackson@ximian.com>
31809
31810         * XplatUIX11.cs: When generating mouse wparams get the modifier
31811         keys from the ModifierKeys property.
31812
31813 2004-12-17  Jackson Harper  <jackson@ximian.com>
31814
31815         * X11Keyboard.cs: Send up/down input when generating
31816         messages. Remove some unused vars.
31817
31818 2004-12-17  Jackson Harper  <jackson@ximian.com>
31819
31820         * TabControl.cs:
31821         * TreeView.cs: get rid of warnings.
31822
31823 2004-12-17  Jackson Harper  <jackson@ximian.com>
31824
31825         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
31826
31827 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
31828
31829         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
31830           CheckedListBox.cs: Implementation
31831
31832 2004-12-17  Peter Bartok  <pbartok@novell.com>
31833
31834         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
31835
31836 2004-12-16  Peter Bartok  <pbartok@novell.com>
31837
31838         * TextControl.cs:
31839           - InsertCharAtCaret(): Fixed start pos fixup
31840           - CaretLine_get: No longer derives the line from the tag, the tag
31841             could be stale if lines in the document have been added or deleted
31842           - RebalanceAfterDelete(): Fixed bug in balancing code
31843           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
31844           - Line.Streamline(): Now can also elminate leading empty tags
31845           - DumpTree(): Added a few more tests and prevented exception on
31846             uninitialized data
31847           - Added Debug section for Combining lines
31848           - Delete(): Now copies all remaining properties of a line
31849           
31850         * TextBoxBase.cs:
31851           - Left mousebutton now sets the caret (and middle button still acts
31852             as formatting tester, which must go away soon)
31853           - Added Debug section for Deleting/Combining lines
31854           - Fixed calculations for UpdateView after Combining lines
31855
31856 2004-12-16  Peter Bartok  <pbartok@novell.com>
31857
31858         * TextControl.cs: Now properly aligns text on a baseline, using the
31859           new XplatUI.GetFontMetrics() method. Simplified several calculations
31860         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
31861           defined
31862
31863 2004-12-16  Peter Bartok  <pbartok@novell.com>
31864
31865         * XplatUI.cs: Added GetFontMetrics() method
31866         * XplatUIDriver.cs: Added GetFontMetrics() abstract
31867         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
31868           into libgdiplus, our private GetFontMetrics function
31869         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
31870         * XplatUIWin32.cs: Implemented GetFontMetrics() method
31871
31872 2004-12-16  Jackson Harper  <jackson@ximain.com>
31873
31874         * XplatUIStruct.cs: Add enum for dead keys
31875         * X11Keyboard.cs: Map and unmap dead keys.
31876
31877 2004-12-16  Jackson Harper  <jackson@ximian.com>
31878
31879         * X11Keyboard.cs: Detect and use the num lock mask.
31880
31881 2004-12-16  Peter Bartok  <pbartok@novell.com>
31882
31883         * Control.cs (CreateGraphics): Added check to make sure the
31884           handle of the window exists before calling Graphics.FromHwnd()
31885
31886 2004-12-16  Peter Bartok  <pbartok@novell.com>
31887
31888         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
31889           contains a lot of code that's not supposed to be there for the
31890           real thing, but required for developing/testing the textbox
31891           backend.
31892
31893 2004-12-16  Peter Bartok  <pbartok@novell.com>
31894
31895         * TextControl.cs:
31896         - Fixed Streamline method
31897         - Added FindTag method to Line
31898         - Added DumpTree method for debugging
31899         - Added DecrementLines() method for deleting lines
31900         - Fixed UpdateView to update the cursor to end-of-line on single-line
31901           updates
31902         - Added PositionCaret() method
31903         - Fixed MoveCaret(LineDown) to move into the last line, too
31904         - Added InsertChar overload
31905         - Fixed InsertChar tag offset calculations
31906         - Added DeleteChar() method
31907         - Added Combine() method for folding lines
31908         - Fixed Delete() method, no longer allocates wasted Line object and
31909           now copies all properties when swapping nodes
31910         - Delete() method now updates document line counter
31911
31912 2004-12-15  Jackson Harper  <jackson@ximian.com>
31913
31914         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
31915         * X11Keyboard.cs: Expose the currently selected modifier keys
31916         through a property.
31917
31918 2004-12-15  Peter Bartok  <pbartok@novell.com>
31919
31920         * TextControl.cs: Initial check-in. Still incomplete
31921
31922 2004-12-15  Jackson Harper  <jackson@ximian.com>
31923
31924         * TreeNode.cs:
31925         * TreeView.cs: Fix build on csc (second time today ;-))
31926
31927 2004-12-15  Jackson Harper  <jackson@ximian.com>
31928
31929         * TreeView.cs: Store the treenodes plus/minus box bounds when it
31930         is calculated and use this for click testing.
31931         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
31932
31933 2004-12-15  Jackson Harper  <jackson@ximian.com>
31934
31935         * TreeView.cs: Pass the nodes image index to the image list when
31936         drawing that image.
31937
31938 2004-12-15  Jackson Harper  <jackson@ximian.com>
31939
31940         * X11Keyboard.cs: Set messages hwnd.
31941         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
31942         post_message calls.
31943
31944 2004-12-15  Jackson Harper  <jackson@ximian.com>
31945
31946         * X11Keyboard.cs: Fix to compile with csc.
31947         
31948 2004-12-15  Jackson Harper  <jackson@ximian.com>
31949
31950         * X11Structs.cs: Add key mask values
31951         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
31952         * X11Keyboard.cs: New file - Extrapolates and interpolates key
31953         down/up foo into WM_CHAR foo
31954         * KeyboardLayouts.cs: Common keyboard layouts
31955         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
31956         post messages into the main queue.
31957
31958 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
31959
31960         * Button.cs: implement ProcessMnemonic
31961         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
31962           brushes everytime
31963         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
31964         * ButtonBase.cs: Show HotkeyPrefix (not the &)
31965
31966 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
31967         
31968         * MonthCalendar.cs: Implemented click-hold for next/previous month
31969           and date selection
31970           
31971 2004-12-11  Peter Bartok  <pbartok@novell.com>
31972
31973         * X11Structs.cs:
31974           - Added XKeyboardState (moved from XplatUIX11.cs)
31975           - Added XCreateGC related enums and structures
31976           - Added GXFunction for XSetFunction
31977
31978         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
31979
31980         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
31981           CaretVisible() calls
31982
31983         * ToolTip.cs: Added code to prevent stealing focus from app windows
31984
31985         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
31986           DestroyCaret, SetCaretPos and CaretVisible)
31987
31988         * XplatUIX11.cs:
31989           - Added implementation for caret functions
31990           - Moved hover variables into a struct, to make it a bit easier
31991             on the eyes and to debug
31992           - Removed XKeyboardState (moved to XplatUIX11.cs)
31993           - Moved Keyboard properties into the properties region
31994
31995         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
31996           call to get a graphics context for our control
31997
31998         * XplatUIOSX.cs: Added empty overrides for the new caret functions
31999
32000         * TreeView.cs: Fixed bug. No matter what color was set it would always
32001           return SystemColors.Window
32002
32003         * XplatUIWin32.cs: Implemented caret overrides
32004
32005 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
32006
32007         * ListBox.cs: fire events, implement missing methods and properties,
32008         sorting.
32009
32010 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
32011
32012         * MonthCalendar.cs: invalidation bug fixing
32013         * ThemeWin32Classic.cs: paint fixing
32014
32015 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
32016
32017         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
32018         prepare the CGContextRef there now.
32019
32020 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
32021
32022         * MonthCalendar.cs:
32023           - optimisationL only invalidate areas that have changed
32024         * ThemeWin32Classic.cs:
32025           - only paint parts that intersect with clip_area
32026
32027 2004-12-09  Peter Bartok  <pbartok@novell.com>
32028
32029         * Application.cs: Undid changes from r37004 which cause problems
32030         on X11
32031
32032 2004-12-09  Ravindra  <rkumar@novell.com>
32033
32034         * ToolBar.cs: Added support for displaying ContextMenu
32035         attached to a button on ToolBar.
32036         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
32037         property.
32038
32039 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
32040
32041         * Label.cs: autosize works in text change and removes unnecessary
32042         invalidate
32043
32044 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
32045
32046         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
32047         remove warnings
32048
32049 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
32050
32051         * XplatUIOSX.cs: Added mouse move/click/grab support
32052         Remove some debugging WriteLines not needed anymore.
32053         Add window resizing/positioning.
32054         Fix visibility on reparenting.
32055
32056 2004-12-08  Peter Bartok  <pbartok@novell.com>
32057
32058         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
32059
32060 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
32061
32062         * XplatUIOSX.cs: Initial checkin
32063         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
32064
32065 2004-12-03  Ravindra <rkumar@novell.com>
32066
32067         * ListView.cs: Added some keybindings and fixed scrolling.
32068         ScrollBars listen to ValueChanged event instead of Scroll
32069         Event. This would let us take care of all changes being
32070         done in the scrollbars' values programmatically or manually.
32071         * ListView.cs (CanMultiselect): Added a check for shift key.
32072         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
32073         * ListViewItem.cs (Clone): Fixed. We need to make a copy
32074         of ListViewSubItemCollection as well.
32075
32076 2004-12-06  Peter Bartok <pbartok@novell.com>
32077
32078         * Control.cs (Parent): Added check and exception to prevent
32079         circular parenting
32080
32081 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
32082
32083         * ListBox.cs: implemented clipping, selection single and multiple,
32084         bug fixing
32085
32086 2004-12-03  Ravindra <rkumar@novell.com>
32087
32088         * ListView.cs (ListView_KeyDown):
32089         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
32090         when CTRL key is pressed.
32091         * ListViewItem.cs (Selected): Fixed setting the property.
32092
32093 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
32094
32095         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
32096
32097         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
32098         MinimizeBox, ShowInTaskbar, TopMost properties.
32099
32100         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
32101         will be implemented).
32102
32103 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
32104
32105         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
32106
32107         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
32108         tests.
32109         
32110         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
32111         
32112         * TreeView.cs: BackColor is Colors.Window.
32113
32114 2004-12-01  Jackson Harper  <jackson@ximian.com>
32115
32116         * TreeView.cs: When resizing the tree if the user is making it
32117         smaller we don't get expose events, so we need to handle adding
32118         the horizontal scrollbar in the size changed handler as well as
32119         the expose handler.
32120
32121 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
32122
32123         * DrawItemState.cs: fixes wrong enum values
32124
32125 2004-12-01  Jackson Harper  <jackson@ximian.com>
32126
32127         * TreeView.cs: Resize the hbar as well as the vbar on resize.
32128
32129 2004-12-01  Jackson Harper  <jackson@ximian.com>
32130
32131         * NodeLabelEditEventArgs.cs:
32132         * NodeLabelEditEventHandler.cs:
32133         * OpenTreeNodeEnumerator.cs:
32134         * TreeNode.cs:
32135         * TreeNodeCollection.cs:
32136         * TreeView.cs:
32137         * TreeViewAction.cs:
32138         * TreeViewCancelEventArgs.cs:
32139         * TreeViewCancelEventHandler.cs:
32140         * TreeViewEventArgs.cs:
32141         * TreeViewEventHandler.cs: Initial implementation.
32142
32143 2004-12-01  Ravindra <rkumar@novell.com>
32144
32145         * ListView.cs (CalculateListView): Fixed scrolling related
32146         calculations. Also, removed some debug statements from other
32147         places.
32148         * ListViewItem.cs: Changed access to 'selected' instance variable
32149         from private to internal.
32150         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
32151
32152 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
32153
32154         * ThemeWin32Classic.cs: remove cache of brush and pens for
32155         specific controls and use the global system, fixes scrollbutton
32156         bugs (for small sizes, disabled, etc)
32157         
32158         * ScrollBar.cs: does not show the thumb for very small controls
32159         (as MS) and allow smaller buttons that the regular size
32160
32161 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
32162
32163         * UpDownBase.cs: Add abstract methods for the interface.
32164         Add new virtual methods (need to be hooked up to TextEntry when it
32165         exists).
32166         Add override methods for most features.
32167         Computes the size, forces the height of the text entry.
32168
32169         * NumericUpDown.cs: Put here the current testing code.
32170
32171         * Set eol-style property on all files that do not have mixed line
32172         endings, to minimize the future problems.  There are still a few
32173         files with mixed endings, and someone should choose whether they
32174         want to move it or not.
32175
32176 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
32177
32178         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
32179         System.Colors
32180         
32181 2004-11-30  Ravindra <rkumar@novell.com>
32182
32183         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
32184         drawing and replaced use of SystemColors by theme colors.
32185         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
32186         * ListView.cs (ListViewItemCollection.Add): Throw exception when
32187         same ListViewItem is being added more than once.
32188
32189 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
32190
32191         * MonthCalendar.cs:
32192           - ControlStyles love to make the control not flicker
32193           
32194 2004-11-30  Peter Bartok  <pbartok@novell.com>
32195
32196         * CharacterCasing.cs: Added
32197
32198 2004-11-29  Peter Bartok  <pbartok@novell.com>
32199
32200         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
32201           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
32202           I am removing these files as they conflict with already completed
32203           work. While it is fantastic to get contributions to MWF, I
32204           respectfully ask that everyone please coordinate their contributions
32205           through mono-winforms-list or #mono-winforms at this time. We're
32206           explicitly avoiding stubbing and don't want controls that don't have
32207           their basic functionality implemented in svn. Please also see
32208           http://www.mono-project.com/contributing/winforms.html
32209
32210
32211 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
32212
32213         * Application.cs (ModalRun): Don't hang after exit.
32214
32215         * Theme.cs: New TreeViewDefaultSize property.
32216
32217         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
32218         with less hardcoded SystemColors constant.
32219         Implemented TreeViewDefaultSize.
32220
32221         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
32222         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
32223
32224
32225 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
32226
32227         * MonthCalendar.cs:
32228           - Fix NextMonthDate and PrevMonthDate click moving calendar
32229
32230 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
32231
32232         * MonthCalendar.cs:
32233           - Fix usage of ScrollChange Property when scrolling months
32234
32235 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
32236
32237         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
32238          - Fixes menu destroying
32239          - Support adding and removing items on already created menus
32240
32241 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
32242
32243         * MonthCalendar.cs:
32244           - Re-worked all bolded dates handling to match win32
32245         * ThemeWin32Classic.cs:
32246           - Fixed rendering with bolded dates
32247
32248 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
32249
32250         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
32251         - Horizontal scroolbar
32252         - Multicolumn
32253         - Fixes
32254
32255
32256 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
32257
32258         * MonthCalendar.cs:
32259           - Fix Usage of MaxSelectionCount from SelectionRange
32260           - Fixed Shift + Cursor Selection
32261           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
32262           - Fixed normal cursor selection to be compat with win32
32263           - Fixed Shift + Mouse Click selection
32264
32265 2004-11-24  Peter Bartok <pbartok@novell.com>
32266
32267         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
32268         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
32269         * XplatUIX11.cs:
32270           - CreatedKeyBoardMsg now updates keystate with Alt key
32271           - Added workaround for timer crash to CheckTimers, Jackson will
32272             develop a proper fix and check in later
32273           - Implemented DispatchMessage
32274           - Removed calling the native window proc from GetMessage (call
32275             now moved to DispatchMessage)
32276
32277         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
32278           the keydata (Fixes bug #69831)
32279
32280         * XplatUIWin32.cs:
32281           - (DispatchMessage): Switched to return IntPtr
32282           - Added DllImport for SetFocus
32283
32284 2004-11-24  Ravindra <rkumar@novell.com>
32285
32286         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
32287         background drawing.
32288         * ListViewItem.cs: Fixed various properties, calculations
32289         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
32290         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
32291         and some internal properties. Fixed MouseDown handler and Paint
32292         method.
32293
32294 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
32295
32296         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
32297
32298 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
32299
32300         * ContainerControl.cs: correct accidental check in of local changes
32301
32302 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
32303
32304         * ThemeWin32Classic.cs:
32305                 - Fixed Drawing Last month in grid (sometimes not showing)
32306         * MonthCalendar.cs:
32307                 - Fixed title width calculation bug (makeing title small)
32308
32309 2004-11-23  Peter Bartok <pbartok@novell.com>
32310
32311         * XplatUIX11.cs:
32312           - Added generation of WM_MOUSEHOVER event
32313           - Added missing assignment of async_method atom
32314           - Fixed WM_ERASEBKGND; now only redraws the exposed area
32315
32316 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
32317
32318         * ThemeWin32Classic.cs:
32319                 - Fixed Drawing of today circle when showtodaycircle not set
32320                 - fixed drawing of first and last month in the grid (gay dates)
32321         * MonthCalendar.cs:
32322                 - Fixed Drawing of today circle
32323                 - Fixed drawing of grady dates
32324                 - Fixed HitTest for today link when ShowToday set to false
32325                 - Fixed DefaultSize to obey ShowToday
32326
32327 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
32328
32329         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
32330         * System.Windows.Forms/Theme.cs
32331         * MonthCalendar.cs: added for MonthCalendar
32332         * SelectionRange.cs: added for MonthCalendar
32333         * Day.cs: added for MonthCalendar: added for MonthCalendar
32334         * DateRangeEventArgs.cs: added for MonthCalendar
32335         * DateRangeEventHandler.cs: added for MonthCalendar
32336
32337 2004-11-22  Ravindra <rkumar@novell.com>
32338
32339         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
32340         property.
32341
32342 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
32343
32344         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
32345         event handler.
32346         
32347         * NumericUpDown.cs: Added new implementation.
32348         * UpDownBase.cs: Added new implementation.
32349
32350         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
32351         implementations.
32352         
32353         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
32354         implementations.
32355
32356         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
32357         methods.
32358
32359 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
32360
32361         * Timer.cs  (Dispose): Should call the base dispose when
32362         overriding.
32363
32364 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
32365
32366         * ScrollBar.cs: updates thumb position when max, min or increment
32367         is changed
32368
32369 2004-11-21  Ravindra <rkumar@novell.com>
32370
32371         * ListView.cs: Implemented item selection, activation and
32372         column header style. Fixed properties to do a redraw, if
32373         required. Added support for MouseHover, DoubleClick, KeyDown
32374         and KeyUp event handling and some minor fixes.
32375         * ListViewItem.cs: Fixed constructor.
32376         * ThemeWin32Classic.cs: Improved drawing for ListView.
32377
32378 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
32379
32380         * ThemeWin32Classic.cs: initial listbox drawing code
32381         * DrawMode.cs: new enumerator
32382         * ListControl.cs: stubbed class
32383         * ListBox.cs: initial implementation
32384         * Theme.cs: new methods definitions
32385         * SelectionMode.cs: new enumerator
32386
32387 2004-11-17  Peter Bartok  <pbartok@novell.com>
32388
32389         * XplatUIWin32.cs: Added double-click events to the class style
32390         * Control.cs (WndProc):
32391           - Added handling of click-count to MouseDown/ MouseUp events.
32392           - Added handling of middle and right mouse buttons
32393           - Removed old debug code
32394
32395 2004-11-17  Jackson Harper  <jackson@ximian.com>
32396
32397         * XplatUIX11.cs: Use the new Mono.Unix namespace.
32398
32399 2004-11-17  Ravindra <rkumar@novell.com>
32400
32401         * ListView.cs: Added event handling for MouseMove/Up/Down.
32402         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
32403         * ThemeWin32Classic.cs: We need to clear the graphics context and
32404         draw column header in a proper state.
32405
32406
32407 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
32408
32409         *  Menu.cs: fixes signature
32410
32411 2004-11-16  Peter Bartok  <pbartok@novell.com>
32412
32413         * XplatUIX11.cs (GetMessage): Implemented generation of
32414           double click mouse messages
32415
32416 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
32417
32418         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
32419         not by menu
32420
32421 2004-11-11  Peter Bartok  <pbartok@novell.com>
32422
32423         * HandleData.cs: Added Visible property
32424         * XplatUIX11.cs (IsVisible): Now uses Visible property from
32425           HandleData
32426         * XplatUIX11.cs: Removed old debug leftovers
32427         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
32428         * Control.cs (WndProc): Removed old debug leftovers,
32429           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
32430           needed WM_SIZE handling
32431
32432 2004-11-11  Jackson Harper  <jackson@ximian.com>
32433
32434         * OwnerDrawPropertyBag.cs:
32435         * TreeViewImageIndexConverter.cs: Initial implementation
32436
32437 2004-11-10  Jackson Harper  <jackson@ximian.com>
32438
32439         * ThemeWin32Classic.cs:
32440         * TabControl.cs: instead of moving tabs by the slider pos just
32441         start drawing at the tab that is offset by the slider. This way
32442         scrolling always moves by exactly one tab.
32443
32444 2004-11-10  Jackson Harper  <jackson@ximian.com>
32445
32446         * TabControl.cs: You can only scroll left when the slider has
32447         already ben moved right.
32448         
32449 2004-11-10  Jackson Harper  <jackson@ximian.com>
32450
32451         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
32452         the clip area.
32453         
32454 2004-11-10  Jackson Harper  <jackson@ximian.com>
32455
32456         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
32457         clip area.
32458         
32459 2004-11-09  Jackson Harper  <jackson@ximian.com>
32460
32461         * TabControl.cs (CalcXPos): New helper method so we can determine
32462         the proper place to start drawing vertical tabs.
32463         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
32464         
32465 2004-11-09  Jackson Harper  <jackson@ximian.com>
32466
32467         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
32468         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
32469         and Bottom, left and right are illegal values for this and
32470         multiline is enabled when the alignment is set to left or right.
32471         (DrawTab): Each alignment block should draw the text itself now
32472         because Left requires special love. Also add rendering for Left
32473         aligned tabs.
32474         
32475 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
32476
32477         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
32478         does not destroy the windows, removes debugging messages
32479
32480 2004-11-09  jba  <jba-mono@optusnet.com.au>
32481
32482         * ThemeWin32Classic.cs
32483         (DrawButtonBase): Fix verticle text rect clipping in windows
32484         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
32485         rendering and incorrect text rect clipping
32486         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
32487         rendering and incorrect text rect clipping
32488         
32489 2004-11-08  Jackson Harper  <jackson@ximian.com>
32490
32491         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
32492         bottom when they are bottom aligned so the bottoms of the tabs get
32493         displayed.
32494         * TabControl.cs (DropRow): Move rows up instead of down when the
32495         tab control is bottom aligned.
32496
32497 2004-11-08 13:59  pbartok
32498
32499         * XplatUIX11.cs:
32500           - Added handling for various window styles
32501           - Added handling for popup windows
32502           - Added SetTopmost handling
32503
32504 2004-11-08 13:55  pbartok
32505
32506         * XplatUIWin32.cs:
32507           - Added argument to SetTopmost method
32508           - Fixed broken ClientToScreen function
32509
32510 2004-11-08 13:53  pbartok
32511
32512         * XplatUIStructs.cs:
32513           - Added missing WS_EX styles
32514
32515 2004-11-08 13:53  pbartok
32516
32517         * XplatUI.cs, XplatUIDriver.cs:
32518           - Added argument to SetTopmost
32519
32520 2004-11-08 13:52  pbartok
32521
32522         * X11Structs.cs:
32523           - Added XSetWindowAttributes structure
32524           - Improved XWindowAttributes structure
32525           - Added SetWindowValuemask enum
32526           - Added window creation arguments enum
32527           - Added gravity enum
32528           - Added Motif hints structure
32529           - Added various Motif flags and enums
32530           - Added PropertyMode enum for property functions
32531
32532 2004-11-08 13:50  pbartok
32533
32534         * Form.cs:
32535           - Fixed arguments for updated SetTopmost method
32536
32537 2004-11-08 13:49  pbartok
32538
32539         * ToolTip.cs:
32540           - Fixed arguments for updated SetTopmost function
32541           - Fixed usage of PointToClient
32542
32543 2004-11-08 13:44  pbartok
32544
32545         * MenuAPI.cs:
32546           - Added Clipping of children and siblings
32547
32548 2004-11-08 13:41  pbartok
32549
32550         * MainMenu.cs:
32551           - Removed SetMenuBarWindow call. We do this in Form.cs
32552
32553 2004-11-08 13:40  jackson
32554
32555         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
32556           scrolling jimmi in the correct location with bottom aligned tabs
32557
32558 2004-11-08 13:36  pbartok
32559
32560         * ContainerControl.cs:
32561           - Implemented BindingContext
32562           - Implemented ParentForm
32563
32564 2004-11-08 12:46  jackson
32565
32566         * TabControl.cs: Put bottom rendered tabs in the right location
32567
32568 2004-11-08 07:15  jordi
32569
32570         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
32571           removes dead code
32572
32573 2004-11-05 17:30  jackson
32574
32575         * TabControl.cs: When selected tabs are expanded make sure they
32576           don't go beyond the edges of the tab control
32577
32578 2004-11-05 14:57  jackson
32579
32580         * TabControl.cs: Reset show_slider so if the control is resized to
32581           a size where it is no longer needed it's not displayed anymore
32582
32583 2004-11-05 13:16  jackson
32584
32585         * TabControl.cs: Make tab pages non visible when added to the
32586           control
32587
32588 2004-11-05 12:42  jackson
32589
32590         * TabControl.cs: Implement SizeMode.FillToRight
32591
32592 2004-11-05 12:16  jackson
32593
32594         * Control.cs: Do not call CreateHandle if the handle is already
32595           created
32596
32597 2004-11-05 11:46  jackson
32598
32599         * TabControl.cs: Remove superflous call to CalcTabRows
32600
32601 2004-11-05 09:07  jackson
32602
32603         * XplatUIX11.cs: Update for Mono.Posix changes
32604
32605 2004-11-05 07:00  ravindra
32606
32607         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
32608           scrolling.
32609
32610 2004-11-04 22:47  jba
32611
32612         * ThemeWin32Classic.cs:
32613           - Fix Button rendering for FlatStyle = Flat or Popup
32614           - Fix RadioButton and CheckBox rendering when Appearance = Button
32615             (normal and flatstyle).
32616           - Correct outer rectangle color when drawing focus rectangle
32617           - Adjust button bounds to be 1 px smaller when focused
32618           - Make button not draw sunken 3d border when pushed (windows compat)
32619           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
32620           - Offset the text in RadioButton and Checkbox when being rendered as
32621           a button.
32622           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
32623           radiobuttons
32624           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
32625           - Fixed disabled text rendering for normally rendered radiobuttons
32626
32627 2004-11-04 10:26  jackson
32628
32629         * TabControl.cs: Recalculate tab rows when resizing
32630
32631 2004-11-04 07:47  jordi
32632
32633         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
32634           collection completion, drawing issues, missing features
32635
32636 2004-11-04 05:03  ravindra
32637
32638         * ScrollBar.cs:
32639                 - We need to recalculate the Thumb area when
32640                 LargeChange/maximum/minimum values are changed.
32641           - We set the 'pos' in UpdatePos() method to minimum, if it's less
32642                 than minimum. This is required to handle the case if large_change is
32643                 more than max, and use LargeChange property instead of large_change
32644                 variable.
32645           - We return max+1 when large_change is more than max, like MS does.
32646
32647 2004-11-04 04:29  ravindra
32648
32649         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
32650                 - Changed default value signatures (prefixed all with ListView).
32651                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
32652                 ListView.
32653           - Fixed calculations for ListViewItem and implemented Clone()
32654           method.
32655
32656 2004-11-04 04:26  ravindra
32657
32658         * Theme.cs, ThemeWin32Classic.cs:
32659                 - Changed default ListView values signatures (prefixed all with
32660                 ListView).
32661           - Fixed default size values for VScrollBar and HScrollBar.
32662                 - Fixed DrawListViewItem method.
32663
32664 2004-11-04 04:05  ravindra
32665
32666         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
32667
32668 2004-11-04 04:04  ravindra
32669
32670         * ImageList.cs: Implemented the missing overload for Draw method.
32671
32672 2004-11-03 19:29  jackson
32673
32674         * TabControl.cs: Handle dropping rows on selection properly
32675
32676 2004-11-03 11:59  jackson
32677
32678         * TabControl.cs: remove debug code
32679
32680 2004-11-03 11:52  jackson
32681
32682         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
32683           the scrolly widgerywoo
32684
32685 2004-11-02 13:52  jackson
32686
32687         * TabControl.cs: Resize the tab pages and tabs when the tab control
32688           is resized
32689
32690 2004-11-02 13:40  jackson
32691
32692         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
32693           selected tab to the bottom
32694
32695 2004-11-02 13:39  jackson
32696
32697         * TabPage.cs: Store the tab pages row
32698
32699 2004-11-02 12:33  jordi
32700
32701         * MenuItem.cs: fixes handle creation
32702
32703 2004-11-02 11:42  jackson
32704
32705         * TabControl.cs: signature fix
32706
32707 2004-11-02 08:56  jackson
32708
32709         * TabControl.cs: Calculate whether the tab is on an edge properly.
32710           Remove top secret debugging code
32711
32712 2004-11-01 19:57  jackson
32713
32714         * TabControl.cs: Add click handling, and proper sizing
32715
32716 2004-11-01 19:47  jackson
32717
32718         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
32719           tab controls
32720
32721 2004-11-01 19:39  jackson
32722
32723         * TabPage.cs: add internal property to store the bounds of a tab
32724           page
32725
32726 2004-10-30 04:23  ravindra
32727
32728         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
32729           values.
32730
32731 2004-10-30 04:21  ravindra
32732
32733         * ListView.cs, ListViewItem.cs: Added support for scrolling and
32734           fixed calculations.
32735
32736 2004-10-30 03:06  pbartok
32737
32738         * XplatUIX11.cs:
32739           - Removed extension of DllImported libs
32740
32741 2004-10-29 09:55  jordi
32742
32743         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
32744           navigation, itemcollection completion, menu fixes
32745
32746 2004-10-27 22:58  pbartok
32747
32748         * XplatUIX11.cs:
32749           - Now throws a nice error message when no X display could be opened
32750
32751 2004-10-26 13:51  jordi
32752
32753         * ListView.cs: removes warning
32754
32755 2004-10-26 03:55  ravindra
32756
32757         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
32758           ThemeWin32Classic.cs: Some formatting for my last checkins.
32759
32760 2004-10-26 03:36  ravindra
32761
32762         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
32763           control and default values.
32764
32765 2004-10-26 03:35  ravindra
32766
32767         * Theme.cs: Added some default values for ListView control.
32768
32769 2004-10-26 03:33  ravindra
32770
32771         * ToolBar.cs: ToolBar should use the user specified button size, if
32772           there is any. Added a size_specified flag for the same.
32773
32774 2004-10-26 03:33  ravindra
32775
32776         * ColumnHeader.cs: Added some internal members and calculations for
32777           ColumnHeader.
32778
32779 2004-10-26 03:32  ravindra
32780
32781         * ListViewItem.cs: Calculations for ListViewItem.
32782
32783 2004-10-26 03:31  ravindra
32784
32785         * ListView.cs: Added some internal members and calculations for
32786           ListView.
32787
32788 2004-10-22 13:31  jordi
32789
32790         * MenuAPI.cs: speedup menus drawing
32791
32792 2004-10-22 13:16  jackson
32793
32794         * XplatUIX11.cs: Make sure to update exposed regions when adding an
32795           expose event
32796
32797 2004-10-22 11:49  jackson
32798
32799         * Control.cs: oops
32800
32801 2004-10-22 11:41  jackson
32802
32803         * Control.cs: Check to see if the window should have its background
32804           repainted by X when drawing.
32805
32806 2004-10-22 11:31  jackson
32807
32808         * XplatUIX11.cs: When invalidating areas only use XClearArea if
32809           clear is true, this way we do not get flicker from X repainting the
32810           background
32811
32812 2004-10-22 11:28  jackson
32813
32814         * XEventQueue.cs: Queue properly
32815
32816 2004-10-21 09:38  jackson
32817
32818         * XEventQueue.cs: Fix access modifier
32819
32820 2004-10-21 09:36  jackson
32821
32822         * XEventQueue.cs: Don't loose messages
32823
32824 2004-10-21 09:22  jackson
32825
32826         * XEventQueue.cs: Don't loose messages
32827
32828 2004-10-20 04:15  jordi
32829
32830         * BootMode.cs: enum need it by SystemInfo
32831
32832 2004-10-19 21:58  pbartok
32833
32834         * XplatUIWin32.cs:
32835           - Small sanity check
32836
32837 2004-10-19 21:56  pbartok
32838
32839         * Form.cs:
32840           - Added private FormParentWindow class which acts as the container
32841             for our form and as the non-client area where menus are drawn
32842           - Added/Moved required tie-ins to Jordi's menus
32843           - Fixed/Implemented the FormStartPosition functionality
32844
32845 2004-10-19 21:52  pbartok
32846
32847         * Control.cs:
32848           - Removed unneeded locals
32849           - Added code to all size and location properties to understand and
32850             deal with the parent container of Form
32851
32852 2004-10-19 21:33  pbartok
32853
32854         * Application.cs:
32855           - Fixed to deal with new Form subclasses for menus
32856
32857 2004-10-19 17:48  jackson
32858
32859         * XEventQueue.cs: commit correct version of file
32860
32861 2004-10-19 16:50  jackson
32862
32863         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
32864
32865 2004-10-19 16:15  jordi
32866
32867         * MenuAPI.cs: MenuBarCalcSize returns the height
32868
32869 2004-10-19 08:31  pbartok
32870
32871         * Control.cs:
32872           - Added missing call to PreProcessMessage before calling OnXXXKey
32873           methods
32874
32875 2004-10-19 00:04  ravindra
32876
32877         * ToolTip.cs: Fixed constructor.
32878
32879 2004-10-18 09:31  jordi
32880
32881         * MenuAPI.cs: menuitems in menubars do not have shortcuts
32882
32883 2004-10-18 09:26  jordi
32884
32885         * MenuItem.cs: fixes MenuItem class signature
32886
32887 2004-10-18 08:56  jordi
32888
32889         * MenuAPI.cs: prevents windows from showing in the taskbar
32890
32891 2004-10-18 00:28  ravindra
32892
32893         * ToolTip.cs: Suppressed a warning message.
32894
32895 2004-10-18 00:27  ravindra
32896
32897         * Control.cs: Default value of visible property must be true.
32898
32899 2004-10-17 23:19  pbartok
32900
32901         * ToolTip.cs:
32902           - Complete implementation
32903
32904 2004-10-17 23:19  pbartok
32905
32906         * XplatUIX11.cs:
32907           - Added EnableWindow method
32908           - Added SetModal stub
32909           - Added generation of WM_ACTIVATE message (still needs testing)
32910           - Added SetTopMost stub
32911           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
32912
32913 2004-10-17 23:17  pbartok
32914
32915         * XplatUIWin32.cs:
32916           - Removed VirtualKeys to XplatUIStructs
32917           - Implemented SetTopMost method
32918           - Implemented EnableWindow method
32919           - Bugfix in ScreenToClient()
32920           - Bugfixes in ClientToScreen()
32921
32922 2004-10-17 22:51  pbartok
32923
32924         * XplatUIStructs.cs:
32925           - Added WS_EX styles to WindowStyles enumeration
32926
32927 2004-10-17 22:50  pbartok
32928
32929         * XplatUI.cs, XplatUIDriver.cs:
32930           - Added method for enabling/disabling windows
32931           - Added method for setting window modality
32932           - Added method for setting topmost window
32933
32934 2004-10-17 22:49  pbartok
32935
32936         * ThemeWin32Classic.cs:
32937           - Added ToolTip drawing code
32938
32939 2004-10-17 22:49  pbartok
32940
32941         * Theme.cs:
32942           - Added ToolTip abstracts
32943
32944 2004-10-17 22:47  pbartok
32945
32946         * Form.cs:
32947           - Fixed Form.ControlCollection to handle owner relations
32948           - Added Owner/OwnedForms handling
32949           - Implemented Z-Ordering for owned forms
32950           - Removed unneeded private overload of ShowDialog
32951           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
32952             so I hope)
32953           - Fixed Close(), had wrong default
32954           - Added firing of OnLoad event
32955           - Added some commented out debug code for Ownership handling
32956
32957 2004-10-17 22:16  pbartok
32958
32959         * Control.cs:
32960           - Fixed/implemented flat list of controls
32961
32962 2004-10-17 22:14  pbartok
32963
32964         * Application.cs:
32965           - Added code to simulate modal dialogs on Win32
32966
32967 2004-10-17 16:11  jordi
32968
32969         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
32970           mouse event
32971
32972 2004-10-17 13:39  jordi
32973
32974         * MenuAPI.cs: menu drawing fixes
32975
32976 2004-10-15 09:10  ravindra
32977
32978         * StructFormat.cs: General Enum.
32979
32980 2004-10-15 09:09  ravindra
32981
32982         * SizeGripStyle.cs: Enum for Form.
32983
32984 2004-10-15 09:08  ravindra
32985
32986         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
32987           in Theme for ListView.
32988
32989 2004-10-15 09:06  ravindra
32990
32991         * ColumnHeader.cs: Flushing some formatting changes.
32992
32993 2004-10-15 09:05  ravindra
32994
32995         * ListViewItem.cs: Implemented GetBounds method and fixed coding
32996           style.
32997
32998 2004-10-15 09:03  ravindra
32999
33000         * ListView.cs: Implemented Paint method and fixed coding style.
33001
33002 2004-10-15 07:34  jordi
33003
33004         * MenuAPI.cs: fix for X11
33005
33006 2004-10-15 07:32  ravindra
33007
33008         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
33009                 - Renamed Paint() method to Draw() for clarity. Also, moved
33010                 DrawImage() to OnPaint().
33011
33012 2004-10-15 07:25  ravindra
33013
33014         * CheckBox.cs, RadioButton.cs:
33015                 - Removed Redraw (), we get it from ButtonBase.
33016                 - Implemented Paint (), to do class specific painting.
33017
33018 2004-10-15 07:16  ravindra
33019
33020         * ButtonBase.cs:
33021                 - Redraw () is not virtual now.
33022                 - Added an internal virtual method Paint (), so that
33023                 derived classes can do their painting on their own.
33024                 - Modified OnPaint () to call Paint ().
33025
33026 2004-10-15 06:43  jordi
33027
33028         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
33029           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
33030
33031 2004-10-15 00:30  ravindra
33032
33033         * MessageBox.cs:
33034                 - MessageBox on windows does not have min/max buttons.
33035                 This change in CreateParams fixes this on Windows. We
33036                 still need to implement this windowstyle behavior in
33037                 our X11 driver.
33038
33039 2004-10-14 05:14  ravindra
33040
33041         * ToolBar.cs:
33042                 - Changed Redraw () to do a Refresh () always.
33043                 - Fixed the MouseMove event handling when mouse is pressed,
33044                 ie drag event handling.
33045                 - Replaced the usage of ToolBarButton.Pressed property to
33046                 ToolBarButton.pressed internal variable.
33047
33048 2004-10-14 05:10  ravindra
33049
33050         * ToolBarButton.cs:
33051                 - Added an internal member 'inside' to handle mouse move
33052                 with mouse pressed ie mouse drag event.
33053                 - Changed 'Pressed' property to return true only when
33054                 'inside' and 'pressed' are both true.
33055                 - Some coding style love.
33056
33057 2004-10-14 00:17  ravindra
33058
33059         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
33060           public method.
33061
33062 2004-10-14 00:15  ravindra
33063
33064         * ButtonBase.cs: Redraw () related improvements.
33065
33066 2004-10-14 00:14  ravindra
33067
33068         * MessageBox.cs: Moved InitFormSize () out of Paint method and
33069           removed unnecessary calls to Button.Show () method.
33070
33071 2004-10-13 17:50  pbartok
33072
33073         * XplatUIX11.cs:
33074           - Formatting fix
33075           - Removed destroying of window until we solve the problem of X
33076             destroying the window before us on shutdown
33077
33078 2004-10-13 16:32  pbartok
33079
33080         * ButtonBase.cs:
33081           - Now Redraws on MouseUp for FlatStyle Flat and Popup
33082
33083 2004-10-13 14:18  pbartok
33084
33085         * XplatUIX11.cs:
33086           - Added code to destroy the X window
33087
33088 2004-10-13 14:18  pbartok
33089
33090         * XplatUIWin32.cs:
33091           - Added code to destroy a window
33092
33093 2004-10-13 14:12  pbartok
33094
33095         * ButtonBase.cs:
33096           - Added the Redraw on Resize that got dropped in the last rev
33097
33098 2004-10-13 09:06  pbartok
33099
33100         * ThemeWin32Classic.cs:
33101           - Path from John BouAntoun:
33102             * Fix check rendering (centre correctly for normal style, offset
33103               correctly for FlatStyle).
33104             * Fix border color usage (use backcolor) for FlatStyle.Popup
33105             * Use checkbox.Capture instead of checkbox.is_pressed when
33106               rendering flatstyle states.
33107
33108 2004-10-12 21:48  pbartok
33109
33110         * ThemeWin32Classic.cs:
33111           - Removed all occurences of SystemColors and replaced them with the
33112             matching theme color
33113
33114 2004-10-12 21:41  pbartok
33115
33116         * ThemeWin32Classic.cs:
33117           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
33118             him using the function for flatstyle drawing
33119           - Changed functions to use the new version of CPDrawBorder3D
33120
33121 2004-10-12 21:15  pbartok
33122
33123         * ControlPaint.cs:
33124           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
33125             match MS documentation. They need to return defined colors if the
33126             passed color matches the configured control color. Thanks to John
33127             BouAntoun for pointing this out.
33128
33129 2004-10-12 20:57  pbartok
33130
33131         * Control.cs:
33132           - Fix from John BouAntoun: Raise ForeColorChanged event when text
33133             color is changed
33134
33135 2004-10-12 20:46  pbartok
33136
33137         * CheckBox.cs:
33138           - Fix from John BouAntoun: Now properly sets the Appearance property
33139
33140 2004-10-12 20:45  pbartok
33141
33142         * ThemeWin32Classic.cs:
33143           - Fixes from John BouAntoun: now handles forecolors and backcolors
33144             for flatstyle rendered controls much better; It also fixes normal
33145             checkbox rendering when pushed or disabled.
33146
33147 2004-10-08 02:50  jordi
33148
33149         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
33150           work
33151
33152 2004-10-07 08:56  jordi
33153
33154         * ThemeWin32Classic.cs: Removes deletion of cached brushes
33155
33156 2004-10-06 03:59  jordi
33157
33158         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
33159           XplatUIWin32.cs: removes warnings from compilation
33160
33161 2004-10-05 12:23  jackson
33162
33163         * RadioButton.cs: Fix ctor
33164
33165 2004-10-05 11:10  pbartok
33166
33167         * MessageBox.cs:
33168           - Partial implementation by Benjamin Dasnois
33169
33170 2004-10-05 10:15  jackson
33171
33172         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
33173           by John BouAntoun
33174
33175 2004-10-05 03:07  ravindra
33176
33177         * ToolBar.cs:
33178                 - Removed a private method, Draw ().
33179                 - Fixed the ButtonDropDown event handling.
33180                 - Fixed MouseMove event handling.
33181
33182 2004-10-05 03:04  ravindra
33183
33184         * ThemeWin32Classic.cs:
33185                 - Added DrawListView method and ListViewDefaultSize property.
33186                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
33187                 - Changed DOS style CRLF to Unix format (dos2unix).
33188
33189 2004-10-05 03:03  ravindra
33190
33191         * Theme.cs:
33192                 - Added DrawListView method and ListViewDefaultSize property.
33193
33194 2004-10-05 02:42  ravindra
33195
33196         * ToolBarButton.cs: Added an internal member dd_pressed to handle
33197           clicks on DropDown arrow.
33198
33199 2004-10-04 22:56  jackson
33200
33201         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
33202           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
33203           Control handle the buffers, derived classes should not have to
33204           CreateBuffers themselves.
33205
33206 2004-10-04 21:20  jackson
33207
33208         * StatusBar.cs: The control handles resizing the buffers now.
33209
33210 2004-10-04 21:18  jackson
33211
33212         * Control.cs: When resizing the buffers should be invalidated. This
33213           should be handled in Control not in derived classes.
33214
33215 2004-10-04 14:45  jackson
33216
33217         * TabPage.cs: oops
33218
33219 2004-10-04 02:14  pbartok
33220
33221         * LeftRightAlignment.cs:
33222           - Initial check-in
33223
33224 2004-10-04 01:09  jordi
33225
33226         * ThemeWin32Classic.cs: fixes right button position causing right
33227           button not showing on horizontal scrollbars
33228
33229 2004-10-02 13:12  pbartok
33230
33231         * XplatUIX11.cs:
33232           - Simplified the Invalidate method by using an X call instead of
33233             generating the expose ourselves
33234           - Added an expose when the window background is changed
33235           - Implemented ClientToScreen method
33236
33237 2004-10-02 13:08  pbartok
33238
33239         * XplatUIWin32.cs:
33240           - Added Win32EnableWindow method (test for implementing modal
33241           dialogs)
33242           - Added ClientToScreen method and imports
33243
33244 2004-10-02 13:07  pbartok
33245
33246         * XplatUI.cs, XplatUIDriver.cs:
33247           - Added ClientToScreen coordinate translation method
33248
33249 2004-10-02 13:06  pbartok
33250
33251         * KeyPressEventArgs.cs:
33252           - Fixed access level for constructor
33253
33254 2004-10-02 13:06  pbartok
33255
33256         * NativeWindow.cs:
33257           - Changed access level for the window_collection hash table
33258
33259 2004-10-02 13:05  pbartok
33260
33261         * Form.cs:
33262           - Added KeyPreview property
33263           - Added Menu property (still incomplete, pending Jordi's menu work)
33264           - Implemented ProcessCmdKey
33265           - Implemented ProcessDialogKey
33266           - Implemented ProcessKeyPreview
33267
33268 2004-10-02 13:02  pbartok
33269
33270         * Control.cs:
33271           - Added private method to get the Control object from the window
33272           handle
33273           - Implemented ContextMenu property
33274           - Implemented PointToScreen
33275           - Implemented PreProcessMessage
33276           - Implemented IsInputChar
33277           - Implemented IsInputKey
33278           - Implemented ProcessCmdKey
33279           - Completed ProcessKeyEventArgs
33280           - Fixed message loop to call the proper chain of functions on key
33281           events
33282           - Implemented ProcessDialogChar
33283           - Implemented ProcessDialogKey
33284           - Implemented ProcessKeyMessage
33285           - Implemented ProcessKeyPreview
33286           - Added RaiseDragEvent stub (MS internal method)
33287           - Added RaiseKeyEvent stub (MS internal method)
33288           - Added RaiseMouseEvent stub (MS Internal method)
33289           - Added RaisePaintEvent stub (MS Internal method)
33290           - Added ResetMouseEventArgs stub (MS Internal method)
33291           - Implemented RtlTranslateAlignment
33292           - Implemented RtlTranslateContent
33293           - Implemented RtlTranslateHorizontal
33294           - Implemented RtlTranslateLeftRight
33295           - Added generation of KeyPress event
33296
33297 2004-10-02 05:57  ravindra
33298
33299         * ListViewItem.cs: Added attributes.
33300
33301 2004-10-02 05:32  ravindra
33302
33303         * ListView.cs: Added attributes.
33304
33305 2004-10-01 11:53  jackson
33306
33307         * Form.cs: Implement the Close method so work on MessageBox can
33308           continue.
33309
33310 2004-09-30 14:06  pbartok
33311
33312         * XplatUIX11.cs:
33313           - Bug fixes
33314
33315 2004-09-30 11:34  jackson
33316
33317         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
33318
33319 2004-09-30 07:26  ravindra
33320
33321         * ListViewItemConverter.cs: Converter for ListViewItem.
33322
33323 2004-09-30 07:26  ravindra
33324
33325         * SortOrder.cs: Enum for ListView control.
33326
33327 2004-09-30 07:25  ravindra
33328
33329         * ColumnHeader.cs: Supporting class for ListView control.
33330
33331 2004-09-30 07:24  ravindra
33332
33333         * ListView.cs, ListViewItem.cs: Initial implementation.
33334
33335 2004-09-30 07:20  ravindra
33336
33337         * ItemActivation.cs: Enum for ListView Control.
33338
33339 2004-09-29 20:29  pbartok
33340
33341         * XplatUIX11.cs:
33342           - Added lookup of pixel value for background color; tries to get a
33343             color 'close' to the requested color, it avoids having to create a
33344             colormap.  Depending on the display this could mean the used color
33345             is slightly off the desired color. Might have to change it to a more
33346             resource intensive colormap approach, but it will work as a
33347           workaround to avoid red screens.
33348
33349 2004-09-29 14:27  jackson
33350
33351         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
33352
33353 2004-09-28 12:44  pbartok
33354
33355         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
33356           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
33357           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
33358           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
33359           TrackBar.cs, VScrollBar.cs:
33360           - Streamlined Theme interfaces:
33361             * Each DrawXXX method for a control now is passed the object for
33362               the control to be drawn in order to allow accessing any state the
33363               theme might require
33364
33365             * ControlPaint methods for the theme now have a CP prefix to avoid
33366               name clashes with the Draw methods for controls
33367
33368             * Every control now retrieves it's DefaultSize from the current
33369             theme
33370
33371 2004-09-28 12:17  jackson
33372
33373         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
33374           drawing
33375
33376 2004-09-24 14:57  jackson
33377
33378         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
33379           Gives us a nice little performance boost.
33380
33381 2004-09-24 12:02  jackson
33382
33383         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
33384           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
33385           Control and supporting classes. Initial checkin
33386
33387 2004-09-23 13:08  jackson
33388
33389         * Form.cs: Temp build fixage
33390
33391 2004-09-23 01:39  ravindra
33392
33393         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
33394           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
33395           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
33396           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
33397           EventHandlers needed by ListView Control.
33398
33399 2004-09-22 14:12  pbartok
33400
33401         * ScrollableControl.cs:
33402           - Implemented DockPadding property
33403           - Implemented AutoScroll property
33404           - Implemented AutoScrollMargin property
33405           - Implemented AutoScrollMinSize property
33406           - Implemented AutoScrollPosition property
33407           - Implemented DisplayRectangle property (still incomplete)
33408           - Implemented CreateParams property
33409           - Implemented HScroll property
33410           - Implemented VScroll property
33411           - Implemented OnVisibleChanged property
33412
33413 2004-09-22 14:09  pbartok
33414
33415         * Form.cs:
33416           - Added Form.ControllCollection class
33417           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
33418             RemoveOwnedForm (still incomplete, missing on-top and common
33419             minimize/maximize behaviour)
33420           - Added StartPosition property (still incomplete, does not use when
33421             creating the form)
33422           - Added ShowDialog() methods (still incomplete, missing forcing the
33423             dialog modal)
33424
33425 2004-09-22 14:05  pbartok
33426
33427         * Application.cs:
33428           - Added message loop for modal dialogs
33429
33430 2004-09-22 14:02  pbartok
33431
33432         * GroupBox.cs:
33433           - Fixed wrong types for events
33434
33435 2004-09-22 14:00  pbartok
33436
33437         * Shortcut.cs, FormWindowState.cs:
33438           - Fixed wrong values
33439
33440 2004-09-22 12:01  jackson
33441
33442         * Control.cs: Text is never null
33443
33444 2004-09-20 22:14  pbartok
33445
33446         * XplatUIWin32.cs:
33447           - Fixed accessibility level for Idle handler
33448
33449 2004-09-20 18:54  jackson
33450
33451         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33452           XplatUIX11.cs: New message loop that uses poll so we don't get a
33453           busy loop
33454
33455 2004-09-17 10:43  pbartok
33456
33457         * ScrollBar.cs:
33458           - Fixed behaviour of arrow buttons. Now properly behaves like
33459             Buttons (and like Microsoft's scrollbar arrow buttons)
33460
33461 2004-09-17 10:14  pbartok
33462
33463         * ScrollBar.cs:
33464           - Added missing release of keyboard/mouse capture
33465
33466 2004-09-17 06:18  jordi
33467
33468         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
33469           Theme.cs: Very early menu support
33470
33471 2004-09-16 17:45  pbartok
33472
33473         * XplatUIWin32.cs:
33474           - Fixed sending a window to the front
33475           - Added overload for SetWindowPos to avoid casting
33476
33477 2004-09-16 17:44  pbartok
33478
33479         * Control.cs:
33480           - Added SendToBack and BringToFront methods
33481
33482 2004-09-16 07:00  ravindra
33483
33484         * Copyright: Added Novell URL.
33485
33486 2004-09-16 07:00  ravindra
33487
33488         * ToolBar.cs: Invalidate should be done before redrawing.
33489
33490 2004-09-15 21:19  ravindra
33491
33492         * ColumnHeaderStyle.cs: Enum for ListView Control.
33493
33494 2004-09-15 21:18  ravindra
33495
33496         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
33497           ListView Control.
33498
33499 2004-09-13 18:26  jackson
33500
33501         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
33502           properly
33503
33504 2004-09-13 18:13  jackson
33505
33506         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
33507           a second thread and post messages into the main threads message
33508           queue. This makes timing much more consistent. Both win2K and XP
33509           have a minimum timer value of 15 milliseconds, so we now do this
33510           too.
33511
33512 2004-09-13 15:18  pbartok
33513
33514         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33515           XplatUIX11.cs:
33516           - Added Z-Ordering methods
33517
33518 2004-09-13 10:56  pbartok
33519
33520         * Form.cs:
33521           - Fixed #region names
33522           - Moved properties and methods into their proper #regions
33523
33524 2004-09-13 10:51  pbartok
33525
33526         * Form.cs:
33527           - Added Accept and CancelButton properties
33528           - Added ProcessDialogKey() method
33529
33530 2004-09-13 08:18  pbartok
33531
33532         * IWindowTarget.cs:
33533           - Initial check-in
33534
33535 2004-09-10 21:50  pbartok
33536
33537         * Control.cs:
33538           - Added DoDragDrop() [incomplete]
33539           - Properly implemented 'Visible' handling
33540           - Added SetVisibleCore()
33541           - Implemented FindChildAtPoint()
33542           - Implemented GetContainerControl()
33543           - Implemented Hide()
33544
33545 2004-09-10 19:28  pbartok
33546
33547         * Control.cs:
33548           - Moved methods into their appropriate #regions
33549           - Reordered methods within regions alphabetically
33550
33551 2004-09-10 18:57  pbartok
33552
33553         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
33554           - Added method to retrieve text from window
33555
33556 2004-09-10 18:56  pbartok
33557
33558         * Control.cs:
33559           - Moved some internal functions into the internal region
33560           - Implemented FontHeight
33561           - Implemented RenderRightToLeft
33562           - Implemented ResizeRedraw
33563           - Implemented ShowFocusCues
33564           - Implemented ShowKeyboardCues
33565           - Implemented FromChildHandle
33566           - Implemented FromHandle
33567           - Implemented IsMnemonic
33568           - Implemented ReflectMessage
33569           - All public and protected Static Methods are now complete
33570
33571 2004-09-10 16:54  pbartok
33572
33573         * Control.cs:
33574           - Implemented remaining missing public instance properties
33575           - Alphabetized some out of order properties
33576
33577 2004-09-10 05:51  ravindra
33578
33579         * PictureBox.cs: Added a check for null image.
33580
33581 2004-09-10 00:59  jordi
33582
33583         * GroupBox.cs: remove cvs tag
33584
33585 2004-09-09 05:25  ravindra
33586
33587         * ToolBar.cs: Make redraw accessible from ToolBarButton.
33588
33589 2004-09-09 05:23  ravindra
33590
33591         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
33592           parent redraw.
33593
33594 2004-09-09 02:28  pbartok
33595
33596         * ThemeWin32Classic.cs:
33597           - Improve disabled string look
33598
33599 2004-09-09 01:15  jordi
33600
33601         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
33602           args and handler
33603
33604 2004-09-08 23:56  ravindra
33605
33606         * ItemBoundsPortion.cs: It's enum, not a class!
33607
33608 2004-09-08 23:47  ravindra
33609
33610         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
33611           Enums for Form.
33612
33613 2004-09-08 21:13  ravindra
33614
33615         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
33616           ListView control.
33617
33618 2004-09-08 21:03  ravindra
33619
33620         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
33621           avoid crash.
33622
33623 2004-09-08 21:01  ravindra
33624
33625         * ScrollableControl.cs: Removed unreachable code.
33626
33627 2004-09-08 06:45  jordi
33628
33629         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
33630
33631 2004-09-08 01:00  jackson
33632
33633         * XplatUIX11.cs: Only run the timers when updating the message
33634           queue. This effectively gives X messages a higher priority then
33635           timer messages. Timers still need love though
33636
33637 2004-09-07 14:01  jackson
33638
33639         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
33640           this for us and the handle is no longer valid.
33641
33642 2004-09-07 13:59  jackson
33643
33644         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
33645           loop that manages to not crash. TODO: Add poll and cleanup timers
33646
33647 2004-09-07 11:12  jordi
33648
33649         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
33650
33651 2004-09-07 03:40  jordi
33652
33653         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
33654           fixes, methods, multiple links
33655
33656 2004-09-06 06:55  jordi
33657
33658         * Control.cs: Caches ClientRectangle rectangle value
33659
33660 2004-09-05 02:03  jordi
33661
33662         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
33663           certain situations
33664
33665 2004-09-04 11:10  jordi
33666
33667         * Label.cs: Refresh when font changed
33668
33669 2004-09-02 16:24  pbartok
33670
33671         * Control.cs:
33672           - Added sanity check to creation of double buffer bitmap
33673
33674 2004-09-02 16:24  pbartok
33675
33676         * ButtonBase.cs:
33677           - Fixed selection of text color
33678           - Fixed handling of resize event; now properly recreates double
33679             buffering bitmap
33680           - Added missing assignment of TextAlignment
33681           - Added proper default for TextAlignment
33682
33683 2004-09-02 14:26  pbartok
33684
33685         * RadioButton.cs:
33686           - Added missing RadioButton.RadioButtonAccessibleObject class
33687
33688 2004-09-02 14:26  pbartok
33689
33690         * Control.cs:
33691           - Added missing Control.ControlAccessibleObject class
33692           - Started to implement Select()ion mechanisms, still very incomplete
33693
33694 2004-09-02 14:25  pbartok
33695
33696         * AccessibleObject.cs:
33697           - Added missing methods
33698
33699 2004-09-02 14:23  pbartok
33700
33701         * AccessibleNavigation.cs, AccessibleSelection.cs:
33702           - Initial check-in
33703
33704 2004-09-02 10:32  jordi
33705
33706         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
33707           pool for pens, brushes, and hatchbruses
33708
33709 2004-09-01 15:30  jackson
33710
33711         * StatusBar.cs: Fix typo
33712
33713 2004-09-01 14:44  pbartok
33714
33715         * RadioButton.cs:
33716           - Fixed state
33717
33718 2004-09-01 14:39  pbartok
33719
33720         * Button.cs, RadioButton.cs:
33721           - Functional initial check-in
33722
33723 2004-09-01 14:01  pbartok
33724
33725         * CheckBox.cs:
33726           - Added missing default
33727           - Added missing region mark
33728
33729 2004-09-01 09:10  jordi
33730
33731         * Label.cs: fixes method signatures, new methods, events, fixes
33732           autosize
33733
33734 2004-09-01 07:19  jordi
33735
33736         * Control.cs: Init string variables with an empty object
33737
33738 2004-09-01 04:20  jordi
33739
33740         * Control.cs: fires OnFontChanged event
33741
33742 2004-08-31 20:07  pbartok
33743
33744         * ButtonBase.cs:
33745           - Enabled display of strings
33746
33747 2004-08-31 20:05  pbartok
33748
33749         * Form.cs:
33750           - Added (partial) implementation of DialogResult; rest needs to be
33751             implemented when the modal loop code is done
33752
33753 2004-08-31 19:55  pbartok
33754
33755         * CheckBox.cs:
33756           - Fixed to match the removal of the needs_redraw concept
33757
33758 2004-08-31 19:55  pbartok
33759
33760         * ButtonBase.cs:
33761           - Removed the rather odd split between 'needs redraw' and redrawing
33762           - Now handles the events that require regeneration (ambient
33763             properties and size)
33764
33765 2004-08-31 19:41  pbartok
33766
33767         * Control.cs:
33768           - Added firing of BackColorChanged event
33769           - Added TopLevelControl property
33770           - Fixed handling of WM_ERASEBKGRND message
33771
33772 2004-08-31 12:49  pbartok
33773
33774         * ButtonBase.cs:
33775           - Removed debug
33776           - Minor fixes
33777
33778 2004-08-31 12:48  pbartok
33779
33780         * CheckBox.cs:
33781           - Finished (famous last words)
33782
33783 2004-08-31 04:35  jordi
33784
33785         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
33786           scrolling bugs, adds new methods
33787
33788 2004-08-30 14:42  pbartok
33789
33790         * CheckBox.cs:
33791           - Implemented CheckBox drawing code
33792
33793 2004-08-30 14:42  pbartok
33794
33795         * ButtonBase.cs:
33796           - Made Redraw() and CheckRedraw() virtual
33797           - Improved mouse up/down/move logic to properly track buttons
33798
33799 2004-08-30 09:44  pbartok
33800
33801         * CheckBox.cs:
33802           - Updated to fix broken build. Not complete yet.
33803
33804 2004-08-30 09:28  pbartok
33805
33806         * CheckState.cs:
33807           - Initial checkin
33808
33809 2004-08-30 09:17  pbartok
33810
33811         * Appearance.cs:
33812           - Initial check-in
33813
33814 2004-08-27 16:12  ravindra
33815
33816         * ToolBarButton.cs: Added TypeConverter attribute.
33817
33818 2004-08-27 16:07  ravindra
33819
33820         * ImageIndexConverter.cs: Implemented.
33821
33822 2004-08-27 14:17  pbartok
33823
33824         * Control.cs:
33825           - Removed unneeded stack vars
33826           - First attempt to fix sizing issues when layout is suspended
33827
33828 2004-08-25 15:35  jordi
33829
33830         * ScrollBar.cs: more fixes to scrollbar
33831
33832 2004-08-25 14:04  ravindra
33833
33834         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
33835           Added the missing divider code and grip for ToolBar Control.
33836
33837 2004-08-25 13:20  pbartok
33838
33839         * Control.cs:
33840           - Control now properly passes the ambient background color to child
33841             controls
33842
33843 2004-08-25 13:20  jordi
33844
33845         * ScrollBar.cs: small bug fix regarding bar position
33846
33847 2004-08-25 12:33  pbartok
33848
33849         * Timer.cs:
33850           - Now only calls SetTimer or KillTimer if the enabled state has
33851           changed
33852
33853 2004-08-25 12:33  pbartok
33854
33855         * XplatUIWin32.cs:
33856           - Fixed timer handling, now seems to work
33857           - Improved error message for window creation
33858
33859 2004-08-25 12:32  pbartok
33860
33861         * Control.cs:
33862           - Fixed generation of MouseUp message
33863
33864 2004-08-25 12:29  jordi
33865
33866         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
33867           and fixes for progressbar
33868
33869 2004-08-24 18:43  ravindra
33870
33871         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
33872           in ToolBar control.
33873
33874 2004-08-24 17:15  pbartok
33875
33876         * Panel.cs:
33877           - Added #region
33878           - Added missing events
33879           - Alphabetized
33880
33881 2004-08-24 17:14  pbartok
33882
33883         * StatusBar.cs, PictureBox.cs:
33884           - Now uses Control's CreateParams
33885
33886 2004-08-24 16:36  pbartok
33887
33888         * XplatUIX11.cs:
33889           - Fixed background color handling
33890           - Fixed sending of enter/leave events on a grab
33891
33892 2004-08-24 16:35  pbartok
33893
33894         * X11Structs.cs:
33895           - Refined definitions for CrossingEvent
33896
33897 2004-08-24 12:37  jordi
33898
33899         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
33900           formmating, methods signature, and adds missing events
33901
33902 2004-08-24 12:24  jordi
33903
33904         * Control.cs: fire OnEnabledChanged event
33905
33906 2004-08-24 11:17  pbartok
33907
33908         * XplatUIWin32.cs:
33909           - Implemented SetTimer() and KillTimer()
33910
33911 2004-08-24 11:16  pbartok
33912
33913         * XplatUIX11.cs:
33914           - Now uses Remove instead of Add to kill the timer
33915
33916 2004-08-24 10:16  jackson
33917
33918         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
33919           picture boxes in the theme now. Draw picture box borders and obey
33920           sizing modes
33921
33922 2004-08-24 05:49  jackson
33923
33924         * Timer.cs: Remove top secret debugging code
33925
33926 2004-08-24 05:34  jackson
33927
33928         * PictureBox.cs: Temp hack to make picture boxes draw their full
33929           image
33930
33931 2004-08-24 05:29  jackson
33932
33933         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33934           XplatUIX11.cs: Move timers to the driver level. On X they are
33935           queued by the driver and checked on idle.
33936
33937 2004-08-24 01:07  jackson
33938
33939         * XplatUIX11.cs: Use a queue for async messages instead of passing
33940           them as ClientMessages since that was totally broken. Also simply
33941           check for events and return an idle message if none are found. This
33942           gives us an idle handler, and prevents deadlocking when no messages
33943           are in the queue.
33944
33945 2004-08-23 18:19  ravindra
33946
33947         * XplatUIWin32.cs: Removed the unwanted destructor.
33948
33949 2004-08-23 17:27  pbartok
33950
33951         * ButtonBase.cs:
33952           - Finishing touches. Works now, just needs some optimizations.
33953
33954 2004-08-23 16:53  jordi
33955
33956         * ScrollBar.cs: small fix
33957
33958 2004-08-23 16:45  pbartok
33959
33960         * Application.cs:
33961           - Removed debug output
33962           - Simplifications
33963
33964 2004-08-23 16:43  jordi
33965
33966         * ScrollBar.cs: [no log message]
33967
33968 2004-08-23 16:10  pbartok
33969
33970         * Form.cs:
33971           - Fixed handling of WM_CLOSE message
33972           - Removed debug output
33973
33974 2004-08-23 16:09  pbartok
33975
33976         * Application.cs:
33977           - Added handling of Idle event
33978           - Added handling of form closing
33979           - Fixed reporting of MessageLoop property
33980           - Removed some unneeded code, should provide a bit of a speedup
33981
33982 2004-08-23 15:22  pbartok
33983
33984         * Control.cs:
33985           - Added InitLayout() method
33986           - Added code to properly perform layout when Anchor or Dock property
33987             is changed
33988           - Changed 'interpretation' of ResumeLayout. MS seems to have a
33989             LAMESPEC, tried to do it in a way that makes sense
33990
33991 2004-08-23 14:10  jordi
33992
33993         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
33994           properties and methods
33995
33996 2004-08-23 13:55  pbartok
33997
33998         * Control.cs:
33999           - Properly fixed Jordi's last fix
34000           - Now uses Cursor's Position property instead of calling XplatUI
34001           directly
34002
34003 2004-08-23 13:44  jordi
34004
34005         * PaintEventHandler.cs: Adding missing attribute
34006
34007 2004-08-23 13:39  pbartok
34008
34009         * Cursor.cs:
34010           - Implemented Position property
34011
34012 2004-08-23 13:39  pbartok
34013
34014         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
34015           - Added method to move mouse cursor
34016
34017 2004-08-23 13:39  pbartok
34018
34019         * XplatUIX11.cs:
34020           - Fixed setting of background color
34021           - Added method to move mouse cursor
34022
34023 2004-08-23 13:16  jordi
34024
34025         * Control.cs: avoids null exception
34026
34027 2004-08-22 17:46  jackson
34028
34029         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
34030           PictureBox
34031
34032 2004-08-22 17:40  jackson
34033
34034         * XplatUIX11.cs: Add some missing locks
34035
34036 2004-08-22 15:10  pbartok
34037
34038         * Control.cs, Form.cs:
34039           - Removed OverlappedWindow style from Control, instead it's default
34040             now is child
34041           - Made form windows OverlappedWindow by default
34042
34043 2004-08-22 13:34  jackson
34044
34045         * ScrollBar.cs: Update the position through the Value property so
34046           the OnValueChanged event is raised.
34047
34048 2004-08-22 12:04  pbartok
34049
34050         * SWF.csproj:
34051           - Added Cursor.cs and UserControl.cs
34052
34053 2004-08-22 12:03  pbartok
34054
34055         * Cursor.cs:
34056           - Started implementation, not usable yet
34057
34058 2004-08-22 12:00  pbartok
34059
34060         * UserControl.cs:
34061           - Implemented UserControl (complete)
34062
34063 2004-08-21 19:20  ravindra
34064
34065         * ToolBar.cs: Correcting the formatting mess of VS.NET.
34066
34067 2004-08-21 18:49  ravindra
34068
34069         * ToolBar.cs: Probably this completes the missing attributes in
34070           toolbar control.
34071
34072 2004-08-21 18:03  ravindra
34073
34074         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
34075           Fixed toolbar control signatures.
34076
34077 2004-08-21 16:32  pbartok
34078
34079         * LinkLabel.cs:
34080           - Signature Fixes
34081
34082 2004-08-21 16:30  pbartok
34083
34084         * Label.cs:
34085           - Signature fixes
34086
34087 2004-08-21 16:19  pbartok
34088
34089         * Control.cs, Label.cs:
34090           - Signature fixes
34091
34092 2004-08-21 15:57  pbartok
34093
34094         * ButtonBase.cs:
34095           - Added loads of debug output for development
34096           - Fixed typo in method name
34097
34098 2004-08-21 15:52  pbartok
34099
34100         * ToolBarButtonClickEventArgs.cs:
34101           - Added missing base class
34102
34103 2004-08-21 14:53  pbartok
34104
34105         * Control.cs:
34106           - Updated to match new GrabWindow signature
34107
34108 2004-08-21 14:51  pbartok
34109
34110         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34111           - Added method to get default display size
34112
34113 2004-08-21 14:23  pbartok
34114
34115         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34116           - Added method to query current grab state
34117           - Added argument to allow confining a grab to a window
34118
34119 2004-08-21 14:22  pbartok
34120
34121         * Keys.cs:
34122           - Added [Flags] attribute so that modifiers can be used in bitwise
34123           ops
34124
34125 2004-08-21 14:21  pbartok
34126
34127         * TrackBar.cs, ScrollBar.cs:
34128           - Replaced direct XplatUI calls with their Control counterpart
34129
34130 2004-08-21 13:32  pbartok
34131
34132         * Control.cs:
34133           - Implemented Created property
34134
34135 2004-08-21 13:28  pbartok
34136
34137         * Control.cs:
34138           - Implemented ContainsFocus
34139
34140 2004-08-21 13:26  pbartok
34141
34142         * Control.cs:
34143           - Implemented CausesValidation
34144
34145 2004-08-21 13:21  pbartok
34146
34147         * Control.cs:
34148           - Implemented CanFocus
34149           - Implemented CanSelect
34150           - Implemented Capture
34151
34152 2004-08-21 12:35  pbartok
34153
34154         * XplatUIWin32.cs:
34155           - Fixed bug with Async message handling
34156           - Implemented getting the ModifierKeys
34157
34158 2004-08-21 12:32  jackson
34159
34160         * AsyncMethodResult.cs: Make sure we have the mutex before we
34161           release it. Fixes BeginInvoke on windows
34162
34163 2004-08-21 11:31  pbartok
34164
34165         * XplatUIWin32.cs, XplatUIX11.cs:
34166           - Drivers now return proper mouse state
34167
34168 2004-08-21 10:54  jackson
34169
34170         * Control.cs: Implement EndInvoke
34171
34172 2004-08-21 10:48  jackson
34173
34174         * Timer.cs: Remove unneeded finalizer
34175
34176 2004-08-20 19:52  ravindra
34177
34178         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
34179           in mouse event handling in the ToolBar control.
34180
34181 2004-08-20 19:50  ravindra
34182
34183         * ImageList.cs: Changed draw method to use the arguments passed in
34184           to draw the image.
34185
34186 2004-08-20 18:58  pbartok
34187
34188         * XplatUIStructs.cs:
34189           - Added private message for async communication
34190
34191 2004-08-20 17:38  ravindra
34192
34193         * Control.cs: Made RightToLeft property virtual and removed a
34194           Console.WriteLine.
34195
34196 2004-08-20 14:39  jordi
34197
34198         * ThemeGtk.cs: use style_attach
34199
34200 2004-08-20 14:39  pbartok
34201
34202         * XplatUIWin32.cs:
34203           - Added jackson's Async code from X11 to Win32
34204
34205 2004-08-20 14:09  pbartok
34206
34207         * SWF.csproj:
34208           - Added all new files
34209
34210 2004-08-20 14:09  pbartok
34211
34212         * Control.cs:
34213           - Added call to set window background color
34214
34215 2004-08-20 14:03  pbartok
34216
34217         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
34218           - Added method for setting the window background
34219
34220 2004-08-20 14:02  pbartok
34221
34222         * XplatUIWin32.cs:
34223           - Added method for setting the background color
34224           - Added handling for erasing the window background
34225
34226 2004-08-20 13:45  jordi
34227
34228         * TrackBar.cs: fixes timer, new properties and methods
34229
34230 2004-08-20 13:34  jackson
34231
34232         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
34233           correct thread
34234
34235 2004-08-20 13:22  jackson
34236
34237         * Timer.cs: Timer Tick events are now handed through Controls Async
34238           mechanism so the callbacks are executed in the same thread as X
34239
34240 2004-08-20 13:19  jackson
34241
34242         * XplatUIDriver.cs: Expose functionality to send async messages
34243           through the driver
34244
34245 2004-08-20 13:18  jackson
34246
34247         * Control.cs: Implement Begininvoke
34248
34249 2004-08-20 13:14  jackson
34250
34251         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
34252           messages through the driver
34253
34254 2004-08-20 13:12  jackson
34255
34256         * XplatUIX11.cs: Lock before all X operations. Also added Async
34257           method functionality through XSendEvent
34258
34259 2004-08-20 13:11  jackson
34260
34261         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
34262           This will screw up on 64 bit systems)
34263
34264 2004-08-20 13:10  jackson
34265
34266         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
34267           Async messages through X/Win32
34268
34269 2004-08-19 19:39  pbartok
34270
34271         * XplatUIX11.cs:
34272           - Updated code to match new HandleData.DeviceContext type
34273
34274 2004-08-19 19:38  pbartok
34275
34276         * HandleData.cs:
34277           - Made DeviceContext a generic object to allow usage from various
34278           drivers
34279           - Added support for queueing Windows messages
34280
34281 2004-08-19 19:37  pbartok
34282
34283         * XplatUIWin32.cs:
34284           - Added generation of MouseEnter, MouseLeave and MouseHover events
34285           - Added cleanup on EndPaint
34286
34287 2004-08-19 19:17  pbartok
34288
34289         * Control.cs:
34290           - Added handling of WM_MOUSEHOVER
34291           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
34292           code
34293
34294 2004-08-19 18:55  jordi
34295
34296         * ThemeGtk.cs: fixes button order
34297
34298 2004-08-19 18:12  jordi
34299
34300         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
34301
34302 2004-08-19 17:09  pbartok
34303
34304         * Control.cs:
34305           - Added Right property
34306           - Added RightToLeft property
34307
34308 2004-08-19 16:27  jordi
34309
34310         * ThemeGtk.cs: experimental GTK theme support
34311
34312 2004-08-19 16:26  jordi
34313
34314         * ITheme.cs, Theme.cs: move themes from an interface to a class
34315
34316 2004-08-19 16:25  jordi
34317
34318         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
34319           theme enhancaments
34320
34321 2004-08-19 16:04  pbartok
34322
34323         * XplatUIX11.cs:
34324           - Added colormap basics
34325           - Added a way to re-initialize with a different display handle
34326           - Fixed setting of the window background color
34327           - Added various X11 imports related to colors and colormaps
34328
34329 2004-08-19 15:51  pbartok
34330
34331         * X11Structs.cs:
34332           - Removed packing hints (Paolo suggested this a while back)
34333           - fixed colormap type
34334           - Added default Atom types
34335           - Added Screen and color structs and enums
34336
34337 2004-08-19 15:39  pbartok
34338
34339         * ImageList.cs:
34340           - Added missing Draw() method
34341           - Added missing RecreateHandle event
34342
34343 2004-08-19 15:30  pbartok
34344
34345         * Form.cs:
34346           - Added handling of WM_CLOSE
34347
34348 2004-08-18 13:16  jordi
34349
34350         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
34351           a table
34352
34353 2004-08-18 09:56  jordi
34354
34355         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
34356
34357 2004-08-17 15:31  ravindra
34358
34359         * SWF.csproj: Updated project.
34360
34361 2004-08-17 15:25  pbartok
34362
34363         * Control.cs:
34364           - Drawing improvement; don't call UpdateBounds if we are not visible
34365             (or have been minimized)
34366
34367 2004-08-17 15:24  pbartok
34368
34369         * XplatUIWin32.cs:
34370           - Finished IsVisible
34371           - Added Win32GetWindowPlacement
34372
34373 2004-08-17 15:08  jackson
34374
34375         * Panel.cs: Initial checkin of the Panel
34376
34377 2004-08-17 14:25  pbartok
34378
34379         * Control.cs:
34380           - Fixed broken handling of default window sizes
34381
34382 2004-08-17 13:29  jackson
34383
34384         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
34385           has a large startup time.
34386
34387 2004-08-17 10:25  jackson
34388
34389         * HandleData.cs: union areas properly
34390
34391 2004-08-17 10:12  jackson
34392
34393         * HandleData.cs: union areas properly
34394
34395 2004-08-16 20:00  ravindra
34396
34397         * ToolBar.cs, ToolBarButton.cs: Added attributes.
34398
34399 2004-08-16 18:48  ravindra
34400
34401         * ToolBar.cs: Added attributes.
34402
34403 2004-08-16 17:17  ravindra
34404
34405         * SWF.csproj: Updated project.
34406
34407 2004-08-16 17:16  jackson
34408
34409         * XplatUIX11.cs: Check for more expose events before sending a
34410           WM_PAINT so they can all be grouped together. This makes dragging a
34411           window across another window redraw in a sane way.
34412
34413 2004-08-16 15:47  pbartok
34414
34415         * Control.cs:
34416           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
34417             support OnMouseEnter/Leave()
34418           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
34419             exposure handling
34420
34421 2004-08-16 15:46  pbartok
34422
34423         * XplatUIStructs.cs, XplatUIX11.cs:
34424           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
34425           OnMouseEnter/Leave()
34426
34427 2004-08-16 15:34  jackson
34428
34429         * XplatUIX11.cs: Group multiple expose events in HandleData, make
34430           sure messages get the message field set to WM_NULL if they are not
34431           handled.
34432
34433 2004-08-16 15:24  jackson
34434
34435         * HandleData.cs: HandleData is used for storing message information
34436           for window handles
34437
34438 2004-08-15 17:23  ravindra
34439
34440         * ColorDepth.cs: Added attribute.
34441
34442 2004-08-15 17:23  ravindra
34443
34444         * SWF.csproj: Updated project for ToolBar Control.
34445
34446 2004-08-15 17:20  ravindra
34447
34448         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
34449           control and also dos2unix format.
34450
34451 2004-08-15 17:13  ravindra
34452
34453         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
34454           ToolBarButtonClickEventArgs.cs,
34455           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
34456           ToolBarTextAlign.cs: First Implementation of ToolBar control.
34457
34458 2004-08-15 15:31  pbartok
34459
34460         * ButtonBase.cs:
34461           - First (mostly) working version
34462
34463 2004-08-13 16:15  pbartok
34464
34465         * Control.cs:
34466           - Fixed Anchor default
34467
34468 2004-08-13 15:43  pbartok
34469
34470         * Control.cs:
34471           - Changed GetCursorPos signature
34472
34473 2004-08-13 15:42  pbartok
34474
34475         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
34476           - Changed signature for GetCursorPos
34477
34478 2004-08-13 15:25  pbartok
34479
34480         * XplatUIX11.cs:
34481           - Cleanup
34482           - Fixed resizing/exposure handling
34483
34484 2004-08-13 15:22  jordi
34485
34486         * ThemeWin32Classic.cs: removes redundant code and fixes issues
34487           with tickposition
34488
34489 2004-08-13 14:55  jordi
34490
34491         * TrackBar.cs: change from wndproc to events
34492
34493 2004-08-13 13:00  jordi
34494
34495         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34496           XplatUIX11.cs: implements PointToClient (ScreenToClient)
34497
34498 2004-08-13 12:53  pbartok
34499
34500         * XplatUIWin32.cs:
34501           - Changed GetWindowPos to also provide client area size
34502           - Fixed broken prototypes for several win32 functions
34503
34504 2004-08-13 12:53  pbartok
34505
34506         * XplatUI.cs, XplatUIDriver.cs:
34507           - Changed GetWindowPos to also provide client area size
34508
34509 2004-08-13 12:52  pbartok
34510
34511         * XplatUIX11.cs:
34512           - Added generation of WM_POSCHANGED
34513           - Changed GetWindowPos to also provide client area size
34514
34515 2004-08-13 12:52  pbartok
34516
34517         * Control.cs:
34518           - Added Dispose() and destructor
34519           - Fixed resizing and bounds calculation
34520           - Fixed Layout
34521           - Added memory savings for invisible windows
34522
34523 2004-08-13 12:46  jordi
34524
34525         * TrackBar.cs: adds timer and grap window
34526
34527 2004-08-13 10:25  jackson
34528
34529         * Timer.cs: SWF Timer
34530
34531 2004-08-12 16:59  pbartok
34532
34533         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34534           - Implemented method to get current mouse position
34535
34536 2004-08-12 14:29  jordi
34537
34538         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
34539           enhancement, fix mouse problems, highli thumb, etc
34540
34541 2004-08-12 13:31  pbartok
34542
34543         * Control.cs:
34544           - Fixed Anchoring bugs
34545
34546 2004-08-12 13:01  jackson
34547
34548         * StatusBar.cs: Don't forget things
34549
34550 2004-08-12 12:54  jackson
34551
34552         * ThemeWin32Classic.cs: Handle owner draw status bars
34553
34554 2004-08-12 12:54  jackson
34555
34556         * StatusBar.cs: Implement missing properties, events, and methods.
34557           Handle mouse clicking
34558
34559 2004-08-12 10:19  jackson
34560
34561         * StatusBarPanelClickEventArgs.cs,
34562           StatusBarPanelClickEventHandler.cs: Classes for handling status
34563           bar panel click events
34564
34565 2004-08-12 10:10  jackson
34566
34567         * Control.cs: Add missing properties
34568
34569 2004-08-12 09:46  pbartok
34570
34571         * BindingsManagerBase.cs:
34572           - Name changed to BindingManagerBase.cs
34573
34574 2004-08-12 09:25  jordi
34575
34576         * ScrollableControl.cs: calls ctrlbase instead of exeception
34577
34578 2004-08-11 16:28  pbartok
34579
34580         * InputLanguageChangingEventArgs.cs:
34581           - Never check in before compiling. Fixes the last check-in
34582
34583 2004-08-11 16:26  pbartok
34584
34585         * InputLanguageChangingEventArgs.cs:
34586           - More signature fixes
34587
34588 2004-08-11 16:20  pbartok
34589
34590         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
34591           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
34592           ImageListStreamer.cs, InputLanguage.cs,
34593           InputLanguageChangedEventArgs.cs,
34594           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
34595           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
34596           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
34597           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34598           - Signature fixes
34599
34600 2004-08-11 16:16  pbartok
34601
34602         * Application.cs:
34603           - Fixed Signature
34604           - Added .Net 1.1 method
34605
34606 2004-08-11 15:25  pbartok
34607
34608         * SWF.csproj:
34609           - Fixed BindingManagerBase.cs filename
34610
34611 2004-08-11 15:22  pbartok
34612
34613         * BindingManagerBase.cs:
34614           - Was checked in with wrong filename
34615
34616 2004-08-11 14:50  pbartok
34617
34618         * SWF.csproj:
34619           - Updated
34620
34621 2004-08-11 13:41  jordi
34622
34623         * XplatUIWin32.cs: Fixes ClientRect
34624
34625 2004-08-11 13:19  pbartok
34626
34627         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34628           XplatUIX11.cs:
34629           - We had SetWindowPos and MoveWindow to set window positions and
34630             size, removed MoveWindow. We have GetWindowPos, so it made sense to
34631             keep SetWindowPos as matching counterpart
34632           - Added some X11 sanity checking
34633
34634 2004-08-11 12:59  pbartok
34635
34636         * Control.cs:
34637           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
34638             (It seems that SetBounds is just a front for SetBoundsCore and
34639              SetBoundsCore updates the underlying window system and
34640              UpdateBounds is responsible for updating the variables associated
34641              with the Control and sending the events)
34642           - Major cleanup of Size handling; we now have two sizes, client_size
34643             and bounds. Bounds defines the window with decorations, client_size
34644             without them.
34645
34646 2004-08-11 12:55  pbartok
34647
34648         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34649           - Added method to calculate difference between decorated window and
34650             raw client area
34651
34652 2004-08-11 12:54  pbartok
34653
34654         * Label.cs:
34655           - Forcing redraw on resize
34656
34657 2004-08-11 11:43  pbartok
34658
34659         * ImageList.cs:
34660           - Removed disposing of the actual images when the list is disposed
34661
34662 2004-08-11 09:13  pbartok
34663
34664         * Control.cs:
34665           - Now properly reparents windows
34666
34667 2004-08-11 08:37  pbartok
34668
34669         * Control.cs:
34670           - Duh!
34671
34672 2004-08-11 07:47  pbartok
34673
34674         * Control.cs:
34675           - Rewrote the collection stuff. Might not be as fast now, not
34676             keeping the number of children around and accessible directly, but
34677             it's more straightforward
34678
34679 2004-08-11 07:44  pbartok
34680
34681         * AccessibleObject.cs:
34682           - Fixed to match ControlCollection rewrite
34683
34684 2004-08-11 07:43  pbartok
34685
34686         * ImageList.cs:
34687           - Added missing creation of the collection list
34688
34689 2004-08-10 20:08  jackson
34690
34691         * StatusBar.cs: Get the paint message from WndProc
34692
34693 2004-08-10 19:31  jackson
34694
34695         * ThemeWin32Classic.cs: Create Brushes as little as possible
34696
34697 2004-08-10 19:20  jackson
34698
34699         * UICues.cs: Add Flags attribute
34700
34701 2004-08-10 19:19  jackson
34702
34703         * StatusBarPanel.cs: Signature cleanup
34704
34705 2004-08-10 19:10  jackson
34706
34707         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
34708           Initial implementation of status bar item drawing
34709
34710 2004-08-10 17:27  jordi
34711
34712         * TrackBar.cs: add missing methods, properties, and restructure to
34713           hide extra ones
34714
34715 2004-08-10 16:24  jackson
34716
34717         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
34718           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
34719           attribute
34720
34721 2004-08-10 13:21  jordi
34722
34723         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
34724           enhancements and standarize on win colors defaults
34725
34726 2004-08-10 12:52  jackson
34727
34728         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
34729           ThemeWin32Classic.cs: Implement DrawItem functionality
34730
34731 2004-08-10 12:47  jordi
34732
34733         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
34734
34735 2004-08-10 12:32  jordi
34736
34737         * Control.cs: throw ontextchange event
34738
34739 2004-08-10 11:43  pbartok
34740
34741         * Control.cs:
34742           - Added more to the still unfinished Dock/Anchor layout code
34743
34744 2004-08-10 11:39  pbartok
34745
34746         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
34747           - Added GetWindowPos method
34748
34749 2004-08-10 11:36  pbartok
34750
34751         * XplatUIWin32.cs:
34752           - Implemented several methods
34753
34754 2004-08-10 09:47  jackson
34755
34756         * TrackBar.cs: Allow control to handle buffering
34757
34758 2004-08-10 09:41  jackson
34759
34760         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
34761
34762 2004-08-10 09:24  jackson
34763
34764         * Label.cs, LinkLabel.cs: Let Control handle buffering.
34765
34766 2004-08-10 09:09  jackson
34767
34768         * StatusBar.cs: Let Control handle all the buffering.
34769
34770 2004-08-10 09:08  jackson
34771
34772         * Control.cs: Control will now handle the buffering code, so each
34773           control does not have to implement this.
34774
34775 2004-08-10 08:34  jackson
34776
34777         * XplatUIDriver.cs: Use default colors from the theme
34778
34779 2004-08-09 17:12  pbartok
34780
34781         * ImageList.cs:
34782           - Fixed several bugs Ravindra pointed out
34783
34784 2004-08-09 16:11  pbartok
34785
34786         * Control.cs:
34787           - Added incomplete dock layout code
34788           - Added support for mouse wheel
34789
34790 2004-08-09 16:09  pbartok
34791
34792         * XplatUIX11.cs:
34793           - Added handling for middle and right mousebutton
34794           - Added handling for mouse wheel
34795           - Added handling for key state and mouse state and position
34796           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
34797           messages
34798
34799 2004-08-09 15:40  jackson
34800
34801         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
34802           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
34803           checkin
34804
34805 2004-08-09 15:37  jackson
34806
34807         * StatusBar.cs: Initial implementation of StatusBar
34808
34809 2004-08-09 15:36  jackson
34810
34811         * ITheme.cs: Add support for drawing status bar and getting status
34812           bar item sizes
34813
34814 2004-08-09 15:35  pbartok
34815
34816         * MouseButtons.cs:
34817           - Fixed values
34818
34819 2004-08-09 15:34  jackson
34820
34821         * ThemeWin32Classic.cs: Add support for drawing status bar and get
34822           status bar item sizes
34823
34824 2004-08-09 15:21  jackson
34825
34826         * ThemeWin32Classic.cs: Use known colors for default control
34827           colours
34828
34829 2004-08-09 15:12  jackson
34830
34831         * ThemeWin32Classic.cs: Make the default font static, it is static
34832           in control so this doesn't change functionality and creating fonts
34833           is sloooooow.
34834
34835 2004-08-09 14:56  pbartok
34836
34837         * X11Structs.cs:
34838           - Added GrabMode enum
34839
34840 2004-08-09 14:55  pbartok
34841
34842         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34843           - Removed Run method, was only required for initial development
34844
34845 2004-08-09 14:51  pbartok
34846
34847         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34848           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
34849           capture
34850
34851 2004-08-09 13:48  pbartok
34852
34853         * XplatUIX11.cs:
34854           - Fixed default sizing for child windows
34855
34856 2004-08-09 12:56  pbartok
34857
34858         * XplatUIX11.cs:
34859           - Added generation of WM_DESTROY message
34860           - Added handling of window manager induced shutdown
34861
34862 2004-08-09 11:31  jackson
34863
34864         * ThemeWin32Classic.cs: New names for control properties
34865
34866 2004-08-09 11:25  jackson
34867
34868         * Control.cs: Use new color names
34869
34870 2004-08-09 11:02  jackson
34871
34872         * XplatUI.cs: Get default window properties from the theme
34873
34874 2004-08-09 11:01  jackson
34875
34876         * ITheme.cs: The theme engine now controls default window
34877           properties
34878
34879 2004-08-09 11:00  jackson
34880
34881         * ThemeWin32Classic.cs: Add default window color properties
34882
34883 2004-08-09 10:17  jackson
34884
34885         * ThemeWin32Classic.cs: Use correct default back color
34886
34887 2004-08-09 10:05  jackson
34888
34889         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
34890           the theme now.
34891
34892 2004-08-09 09:56  jackson
34893
34894         * XplatUI.cs: Remove defaults, these are handled by the theme now.
34895
34896 2004-08-09 09:54  jackson
34897
34898         * Control.cs: Get default properties from the theme.
34899
34900 2004-08-09 09:53  jackson
34901
34902         * ITheme.cs: Themes now handle default control properties
34903
34904 2004-08-09 09:53  jackson
34905
34906         * ThemeWin32Classic.cs: Themes now handle default control
34907           properties so coloring will be consistent
34908
34909 2004-08-08 16:54  jordi
34910
34911         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
34912
34913 2004-08-08 15:08  jordi
34914
34915         * XplatUIX11.cs: fixes keyboard crash
34916
34917 2004-08-08 13:47  jordi
34918
34919         * Label.cs: add cvs header info
34920
34921 2004-08-08 12:09  jackson
34922
34923         * ThemeWin32Classic.cs: Add pen_buttonface
34924
34925 2004-08-08 11:52  jordi
34926
34927         * Label.cs, LinkLabel.cs: [no log message]
34928
34929 2004-08-08 11:34  jordi
34930
34931         * ThemeWin32Classic.cs: Use Windows Standard Colours
34932
34933 2004-08-07 17:32  jordi
34934
34935         * TrackBar.cs: throw exceptions of invalid enums values
34936
34937 2004-08-07 17:31  jordi
34938
34939         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
34940           draw method name
34941
34942 2004-08-07 16:56  jackson
34943
34944         * HorizontalAlignment.cs: Initial checkin
34945
34946 2004-08-07 13:16  jordi
34947
34948         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
34949           methods
34950
34951 2004-08-07 13:05  jordi
34952
34953         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
34954           GetSysColor defines
34955
34956 2004-08-06 18:01  pbartok
34957
34958         * ThemeWin32Classic.cs:
34959           - Fixed some rounding issues with float/int
34960
34961 2004-08-06 18:00  jackson
34962
34963         * DockStyle.cs, AnchorStyles.cs:
34964
34965                   Add flags and serializable attributes.
34966
34967 2004-08-06 17:46  pbartok
34968
34969         * XplatUIX11.cs:
34970           - Implemented GetParent
34971
34972 2004-08-06 17:18  pbartok
34973
34974         * TrackBar.cs:
34975           - Fixed some rounding issues with float/int
34976
34977 2004-08-06 17:17  pbartok
34978
34979         * X11Structs.cs, XplatUIX11.cs:
34980           - Fixed Refresh and Invalidate
34981
34982 2004-08-06 15:30  pbartok
34983
34984         * Control.cs, X11Structs.cs, XplatUIX11.cs:
34985           - Fixed recursive loop when resizing
34986           - Improved/fixed redrawing on expose messages
34987
34988 2004-08-06 09:53  jordi
34989
34990         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
34991           keyboard navigation
34992
34993 2004-08-06 08:02  pbartok
34994
34995         * X11Structs.cs, XplatUIX11.cs:
34996           - Fixed reparenting
34997           - Fixed window border creation
34998
34999 2004-08-05 15:38  pbartok
35000
35001         * XplatUIX11.cs:
35002           - Attempted fix for reparenting problems
35003
35004 2004-08-04 15:14  pbartok
35005
35006         * Control.cs:
35007           - Fixed Invalidation bug (calculated wrong client area)
35008           - Added ClientSize setter
35009
35010 2004-08-04 15:13  pbartok
35011
35012         * Form.cs:
35013           - Added AutoScale properties
35014
35015 2004-08-04 15:13  pbartok
35016
35017         * SWF.csproj:
35018           - Added latest files
35019
35020 2004-08-04 14:11  pbartok
35021
35022         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35023           XplatUIX11.cs:
35024           - Added Invalidate handling
35025
35026 2004-08-03 17:09  jordi
35027
35028         * XplatUIDriver.cs: fixes spelling mistake
35029
35030 2004-07-27 09:53  jordi
35031
35032         * TrackBar.cs: fixes trackbar events, def classname, methods
35033           signature
35034
35035 2004-07-27 09:29  jordi
35036
35037         * ScrollBar.cs: fixes scrollbar events
35038
35039 2004-07-27 04:38  jordi
35040
35041         * Control.cs: changes to be able to run winforms samples
35042
35043 2004-07-26 11:42  jordi
35044
35045         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
35046           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
35047
35048 2004-07-26 05:41  jordi
35049
35050         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
35051           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
35052           implementation
35053
35054 2004-07-22 09:22  jordi
35055
35056         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
35057           check link overlapping, implement events, and fixes
35058
35059 2004-07-21 10:28  jordi
35060
35061         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
35062
35063 2004-07-21 10:19  jordi
35064
35065         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
35066           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
35067           LinkLabelLinkClickedEventArgs.cs,
35068           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
35069           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
35070           implementation
35071
35072 2004-07-19 13:09  jordi
35073
35074         * Control.cs, Label.cs: label control re-written: added missing
35075           functionlity, events, and properties
35076
35077 2004-07-19 10:49  jordi
35078
35079         * Control.cs: fixes SetBounds logic
35080
35081 2004-07-19 01:29  jordi
35082
35083         * Control.cs: Call RefreshWindow only if the window has created
35084
35085 2004-07-15 14:05  pbartok
35086
35087         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
35088           - Implemented ImageList and ImageList.ImageCollection classes
35089           - Added ColorDepth enumeration
35090           - Updated SWF VS.Net project
35091
35092 2004-07-15 11:06  jordi
35093
35094         * XplatUIStructs.cs: added MsgButons enum
35095
35096 2004-07-15 11:03  jordi
35097
35098         * Control.cs: added basic mouse handeling events
35099
35100 2004-07-15 03:38  jordi
35101
35102         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
35103           Vertical TrackBar control implementation
35104
35105 2004-07-13 09:33  jordi
35106
35107         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
35108
35109 2004-07-13 09:31  jordi
35110
35111         * Control.cs, Form.cs: commit: new properties and fixes form size
35112           problems
35113
35114 2004-07-09 14:13  miguel
35115
35116         * ProgressBar.cs: Spelling
35117
35118 2004-07-09 11:25  pbartok
35119
35120         * ProgressBar.cs:
35121           - Removed usage of Rectangle for drawing. Miguel pointed out it's
35122           faster
35123
35124 2004-07-09 11:17  miguel
35125
35126         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
35127
35128                 * ProgressBar.cs: Fixed spelling for `block'
35129
35130                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
35131                 style guidelines.
35132
35133                 Avoid using the += on rect.X, that exposed a bug in the compiler.
35134
35135 2004-07-08 23:21  pbartok
35136
35137         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
35138           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
35139           BaseCollection.cs, Binding.cs, BindingContext.cs,
35140           BindingMemberInfo.cs, BindingsCollection.cs,
35141           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
35142           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
35143           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
35144           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
35145           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
35146           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
35147           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
35148           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
35149           FrameStyle.cs, GiveFeedbackEventArgs.cs,
35150           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
35151           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
35152           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
35153           InputLanguageChangedEventArgs.cs,
35154           InputLanguageChangedEventHandler.cs,
35155           InputLanguageChangingEventArgs.cs,
35156           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
35157           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
35158           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
35159           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
35160           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
35161           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
35162           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
35163           QueryAccessibilityHelpEventArgs.cs,
35164           QueryAccessibilityHelpEventHandler.cs,
35165           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
35166           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
35167           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
35168           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
35169           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
35170           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
35171           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
35172           XplatUIX11.cs, lang.cs:
35173           - Initial check-in
35174
35175